Freeside:1.7:Documentation:InstallingOnFreeBSD
kentucky movie russellville theater top i woke up in a car video serena williams nude rca component video cables internet cleanup 4 crack free foreclosure listings oliver stone new movie pornosaur kaiba the revenge crack altplayground radio kaos torrent infragistics netadvantage crack http wireless isp willsky mit pole vaulting videos pan peter pirate ship american insulated new movies and movies to come illinois foster home licensing procedure skala podatkowa 2004 wellbutrin and lexapro together sitemap nextel accessory wholesale picasa 2.0 crack juggernaut man movie x robert ranson top microsoft office xp download crack latinas movie clips snowy range snowmobile rentals dow jones futures movie prank myspace music video code for t.is what you know agreement end license software user russle crow movies an inspiration and paymaster for terrorist vehiculos industriales ocasion wellbutrin prices glucagon movie new tyrese property insurance magix movie editor pro 10 v 5.0.6.0 crack valley ford st. louis mo iwoa university nu virgos stop video augustus academy award best movie nominations guinea Setting up a FreeBSD server for Freeside
- 1. Install FreeBSD. - Do the complete install from CD.
- a. Insert Freebsd CD & boot to CD
- b. Select âÃÂÃÂCustomâÃÂÃÂ
- c. Select âÃÂÃÂPartitionâÃÂÃÂ
- d. Use âÃÂÃÂDâÃÂàto Delete any existing partitions
- e. Use âÃÂÃÂCâÃÂàto Create slices (this is just the drive, use one slice)
- f. Use âÃÂÃÂQâÃÂàto save & exit
- g. Select âÃÂÃÂBootMgrâÃÂÃÂ
- h. Select âÃÂÃÂLabelâÃÂÃÂ
- i. Use âÃÂÃÂCâÃÂàto create partitions
- j. Setup swap partition first (2 x RAM) âÃÂàuse âÃÂÃÂmâÃÂàat end of number to denote mb
- k. Select âÃÂÃÂswapâÃÂàas partition type
- l. Setup other partitions âÃÂàmount point for OS is âÃÂÃÂ/âÃÂÃÂ
- m. Use âÃÂÃÂQâÃÂàto save & finish
- n. Select âÃÂÃÂDistributionsâÃÂÃÂ
- o. Select âÃÂÃÂAllâÃÂÃÂ
- p. Select âÃÂÃÂYesâÃÂÃÂ
- q. Select âÃÂÃÂExitâÃÂÃÂ
- r. Select âÃÂÃÂMediaâÃÂÃÂ
- s. Select âÃÂÃÂCD/DVDâÃÂÃÂ
- t. Select âÃÂÃÂCommitâÃÂÃÂ
- u. Select âÃÂÃÂYesâÃÂÃÂ
- v. Select âÃÂÃÂNoâÃÂÃÂ
- w. Select âÃÂÃÂExitâÃÂÃÂ
- x. Select âÃÂÃÂXâÃÂÃÂ
- y. Select âÃÂÃÂYesâÃÂà& remove CD
- 2. Configure the server
- a. adduser âÃÂÃÂadduserâÃÂà(set up a user for use later so you donâÃÂÃÂt have to log into root everytime)
- b. set root password âÃÂÃÂpasswdâÃÂÃÂ
- c. Edit the rc.conf in etc
- i. hostname=âÃÂÃÂboxname.your.domainâÃÂÃÂ
- ii. ifconfig_fxp0=âÃÂÃÂyour.ip.here netmask your.subnet.hereâÃÂÃÂ
- iii. defaultrouter=âÃÂÃÂyour.gateway.ip.hereâÃÂÃÂ
- iv. inetd_enable=âÃÂÃÂYESâÃÂÃÂ
- v. sshd_enable=âÃÂÃÂYESâÃÂÃÂ
- vi. keyrate=âÃÂÃÂfastâÃÂÃÂ
- vii. update_motd=âÃÂÃÂNOâÃÂÃÂ
- viii. kern_securelevel_enable=âÃÂÃÂNOâÃÂÃÂ
- ix. usbd_enable=âÃÂÃÂYESâÃÂÃÂ
- x. syslogd_flags=âÃÂÃÂ-sâÃÂÃÂ
- xi. sendmail_enable=âÃÂÃÂNONEâÃÂÃÂ
- xii. apache22_enable=âÃÂÃÂYESâÃÂÃÂ
- xiii. postgresql_enable=âÃÂÃÂYESâÃÂÃÂ
- d. Enable root ssh logon
- i. Edit /etc/ssh/sshd_config to allow root login by changing to yes and unremarking line
- e. âÃÂÃÂcd /etcâÃÂÃÂ
- f. âÃÂÃÂvi resolv.confâÃÂÃÂ
- i. domain your.domain
- ii. nameserver your.dns.ip.here
- g. reboot
- h. portsnap fetch
- i. portsnap extract
- 3. Perl is already installed with Freebsd, use existing install (Satisfies Freeside install step 1.) However, make sure you're running Perl v5.8.8 'perl -v' otherwise you'll have some syntax errors later on.
- 4. Install Apache
- a. âÃÂÃÂcd /usr/ports/www/apache22âÃÂÃÂ
- b. âÃÂÃÂmake && make installâÃÂà(use defaults for any gui)
- c. âÃÂÃÂvi usr/local/etc/apache22/httpd.confâÃÂÃÂ
- i. Listen IP:Port
- ii. ServerAdmin youremail@yourdomain.com
- iii. ServerName your.servername:80
- iv. Reboot
- 5. Step two of Freeside install instructions almost completed, set up ssl later.
- 6. Install the cpan bundle & Apache bundle
- a. âÃÂÃÂperl âÃÂÃÂMCPAN âÃÂÃÂe shell; âÃÂÃÂ
- b. type âÃÂÃÂnoâÃÂÃÂ
- c. âÃÂÃÂinstall Bundle::CPANâÃÂà(watch error messages at end has taken as many as 7 times to get full load)
- d. âÃÂÃÂreload cpanâÃÂÃÂ
- e. âÃÂÃÂinstall Bundle::Apache2âÃÂÃÂ
- f. âÃÂÃÂquitâÃÂÃÂ
- 7. Install mod_perl âÃÂàfirst download the latest mod_perl to one of your ftp servers
- a. âÃÂÃÂmkdir /home/youruserfromstep2a/programsâÃÂÃÂ
- b. âÃÂÃÂcd /home/ youruserfromstep2a /programsâÃÂÃÂ
- c. âÃÂÃÂftp yourftpserverâÃÂÃÂ
- d. âÃÂÃÂcd filelocation âÃÂÃÂ
- e. âÃÂÃÂbinâÃÂÃÂ
- f. âÃÂÃÂget mod_perl-2.0-current.tar.gzâÃÂÃÂ
- g. âÃÂÃÂquitâÃÂÃÂ
- h. âÃÂÃÂtar âÃÂÃÂxvzf mod<tab>âÃÂÃÂ
- i. âÃÂÃÂcd mod_perl-2.0.3âÃÂÃÂ
- j. âÃÂÃÂperl Makefile.PL APACHE_SRC=/usr/ports/www/apache22\
EVERYTHING=1âÃÂà(apxs source is /usr/local/sbin/apxs)
- k. âÃÂÃÂmake && make installâÃÂÃÂ
- l. âÃÂÃÂ/usr/local/sbin/apxs âÃÂÃÂq LIBEXECDIRâÃÂà(should be /usr/local/libexec/apache22, so line would be libexec/apache22/mod_perl.so)
- m. add to httpd.conf âÃÂàLoadModule perl_module results of above/mod_perl.so (at bottom of LoadModule section)
- n. âÃÂÃÂapachectl restartâÃÂÃÂ
- 8. Install OpenSSH (use defaults on GUI)
- a. âÃÂÃÂcd /usr/ports/security/opensshâÃÂÃÂ
- b. âÃÂÃÂmake && make install && rebootâÃÂÃÂ
- 9. Install rsync: (use defaults on GUI)
- a. âÃÂÃÂcd /usr/ports/net/rsyncâÃÂÃÂ
- b. âÃÂÃÂmake && make install && rebootâÃÂÃÂ
- 10. Install Postgresql (use defaults on GUI)
- a. âÃÂÃÂcd /usr/ports/databases/postgresql81-serverâÃÂÃÂ
- b. âÃÂÃÂmake && make installâÃÂÃÂ
- c. Initialize postgresql -- âÃÂÃÂ/usr/local/etc/rc.d/postgresql initdbâÃÂà(you should see it build the database files needed here, if it doesnâÃÂÃÂt, then the postgresql install was bad and you need to restart the build process)
- d. Configure for OID
- i. âÃÂÃÂvi /usr/local/pgsql/data/postgresql.confâÃÂÃÂ
- ii. enable oid by changing to yes and unremarking line
- e. reboot
- 11. Install teTex
- a. âÃÂÃÂcd /usr/ports/print/teTeXâÃÂÃÂ
- b. âÃÂÃÂmake && make installâÃÂÃÂ
- 12. Install the required perl modules (At this point I recommend two interfaces into the box. I usually use the terminal and an SSH session. If a module errors out, go to a different screen and force the install before proceeding to the next item. IâÃÂÃÂve found the order these modules load seems to matter. You must cd to /root/.cpan/build and find the package directory and cd into it to run the manual make. First run âÃÂÃÂperl Makefile.PLâÃÂÃÂ, then âÃÂÃÂmakeâÃÂàand finally âÃÂÃÂmake installâÃÂÃÂ)
- a. âÃÂÃÂperl âÃÂÃÂMCPAN âÃÂÃÂe shell;âÃÂÃÂ
- b. type âÃÂÃÂnoâÃÂÃÂ
- c. install MIME::Base64
- d. install Digest::MD5
- e. install URI
- f. install HTML::Tagset
- g. install HTML::Parser
- h. i /libnet/
- i. install (full name of latest version of libnet)
- j. install Locale::Country
- k. install Net::Whois::Raw
- l. install libwww
- m. install Bundle::LWP
- n. install Business::CreditCard
- o. i /MailTools/
- p. install (full name of latest version of mailtools)
- q. i /TimeDate/
- r. Install (full name of latest version of TimeDate)
- s. install DateManip
- t. install File::CounterFile
- u. install FreezeThaw
- v. install String::Approx
- w. install Text::Template
- x. install DBI
- y. install DBD::Pg
- z. install DBIx::DBSchema
- aa. install Net::SSH
- bb. install String::ShellQuote
- cc. i /IVAN/Net/
- dd. install (full name of latest version of NET-SCP)
- ee. install HTML::Mason (apache src is /usr/ports/www/apache22)
- ff. install Tie::IxHash
- gg. install Time::Duration
- hh. install HTML::Widgets::SelectLayers
- ii. install Storable
- jj. install Cache::Cache
- kk. install NetAddr::IP
- ll. install Chart::Base
- mm. install Crypt::PasswdMD5
- nn. install Locale::SubCountry
- oo. install JavaScript::RPC
- pp. install Frontier::RPC2
- qq. install Text::CSV_XS
- rr. install Spreadsheet::WriteExcel
- ss. install IO::Stringy
- tt. install MIME::Tools
- uu. install Apache::Session
- vv. install HTML::TreeBuilder
- ww. install HTML::FormatText
- xx. install Test::Inline
- yy. install Class::ReturnValue
- zz. install DBIx::SearchBuilder
- aaa. install Log::Dispatch
- bbb. install Locale::Maketext::Lexicon
- ccc. install Locale::Maketext::Fuzzy
- ddd. install Text::Wrapper
- eee. install Time::ParseDate
- fff. install Term::ReadKey
- ggg. install Text::Autoformat
- hhh. install Text::Quoted
- iii. install Regexp::Common
- jjj. install HTML::Scrubber
- kkk. install Tree::Simple
- lll. install JSON
- mmm. install GD
- nnn. install DateTime::Format::Strptime
- ooo. install IPC::Run3
- ppp. install Color::Scheme
- qqq. install Data::Table
- rrr. install Lingua::EN::NameParse
- sss. install Lingua::EN::Inflect
- ttt. install Apache::DBI
- uuu. install HTTP::BrowserDetect
- vvv. âÃÂÃÂquitâÃÂÃÂ
Setting up a FreeSide server.
- 1. Get Freeside ready to install - Download the latest freeside tarball to your ftp server
- a. âÃÂÃÂcd /home/ youruserfromstep2a /programsâÃÂÃÂ
- b. âÃÂÃÂftp yourftpserverâÃÂà(log in)
- c. âÃÂÃÂcd filelocation âÃÂÃÂ
- d. âÃÂÃÂbinâÃÂÃÂ
- e. âÃÂÃÂget free<tab>âÃÂÃÂ
- f. âÃÂÃÂget MakefileâÃÂÃÂ
- g. âÃÂÃÂquitâÃÂÃÂ
- h. âÃÂÃÂtar âÃÂÃÂxvzf free<tab>âÃÂÃÂ
- i. âÃÂÃÂcp Makefile ./freeside/MakefileâÃÂÃÂ
- j. âÃÂÃÂcd free<tab>âÃÂÃÂ
- 2. adduser freeside (start with âÃÂÃÂadduserâÃÂàand answer questions, pwd yourpasswdhere)
- 3. âÃÂÃÂmkdir /usr/local/www/apache22/data/freesideâÃÂÃÂ
- 4. âÃÂÃÂchown freeside:www /usr/local/www/apache22/data/freesideâÃÂÃÂ
- 5. Allow the freeside user full access to the freeside database
- a. su pgsql
- b. createuser âÃÂÃÂP freeside
- c. set password (yourpasswdhere)
- d. not a superuser
- e. yes to create database
- f. no to create role
- 6. Add the freeside database
- a. su freeside
- b. createdb âÃÂÃÂE sql_ascii freeside
- 7. Build and install the Perl modules
- a. Exit all the way to root
- b. make perl-modules
- c. make install-perl-modules
- 8. Create config files: âÃÂÃÂmake create-configâÃÂÃÂ
- 9. Edit /usr/local/etc/apache22/httpd.conf
- a. Change user & group to freeside
- 10. apachectl restart
- 11. ps âÃÂÃÂaux (make sure apache now running as freeside)
- 12. âÃÂÃÂmake install-docsâÃÂÃÂ
- 13. Edit the httpd.conf for freeside
- a. Edit /usr/local/etc/apache22/httpd.conf
- b. At bottom add âÃÂÃÂInclude etc/apache22/Includes/âÃÂÃÂ
- 14. Create the database tables and initial data
- a. su freeside
- b. freeside-setup âÃÂÃÂd your.domain
- 15. Create the Freeside system users
- a. su freeside
- b. freeside-adduser âÃÂÃÂg 1 fs_queue
- c. freeside-adduser âÃÂÃÂg 1 fs_daily
- d. freeside-adduser âÃÂÃÂg 1 fs_selfservice
- 16. Correct access_user.pm
- a. edit /usr/local/lib/perl5/site_perl/5.8.8/FS/access_user.pm
- b. change the call to $htpasswd_file to âÃÂÃÂ/usr/local/etc/freeside/htpasswdâÃÂàinstead of just âÃÂÃÂhtpasswdâÃÂà(about line 18)
- c. change the system('htpasswd', '-b', @_, to system('/usr/local/sbin/htpasswd', '-b', @_, (about line 130)
- 17. Create one or more Freeside users
- a. su freeside
- b. freeside-adduser âÃÂÃÂg 1 yournewuser
- c. htpasswd /usr/local/etc/freeside/htpasswd yournewuser
- 18. Reboot
- 19. Get the correct httpd.conf with all the RT info
- a. Edit the /usr/local/etc/apache22/httpd.conf file
- b. Add the following near the end
- <Directory /usr/local/www/apache22/data/freeside>
- <Files ~ "\.(cgi|html)">
- AddHandler perl-script .cgi .html
- PerlHandler HTML::Mason
- </Files>
- AuthName freeside
- AuthType Basic
- AuthUserFile /usr/local/etc/freeside/htpasswd
- Require valid-user
- </Directory>
- <Perl>
- require "/usr/local/etc/freeside/handler.pl";
- </Perl>
- <Directory /usr/local/www/apache22/data/freeside/rt/NoAuth>
- <Limit GET POST>
- allow from all
- Satisfy Any
- SetHandler perl-script
- PerlHandler HTML::Mason
- </Limit>
- </Directory>
- <Directory /usr/local/www/apache22/data/freeside/rt/REST/1.0/NoAuth>
- <Limit GET POST>
- allow from all
- Satisfy any
- SetHandler perl-script
- PerlHandler HTML::Mason
- </Limit>
- </Directory>
- <DirectoryMatch "^%/usr/local/www/apache22/data/freeside/rt/.*NoAuth/images">
- SetHandler None
- </DirectoryMatch>
- <Directory /usr/local/www/apache22/data/freeside/rt/Ticket/Attachment>
- SetHandler perl-script
- PerlHandler HTML::Mason
- </Directory>
- <Directory /usr/local/www/apache22/data/freeside/rt/Search>
- SetHandler perl-script
- PerlHandler HTML::Mason
- </Directory>
- c. Immediately after the LoadModules, add
- PerlModule HTML::Mason
- 20. adduser rt (password yourpasswordforrt)
- 21. cd /home/ youruserfromstep2a /programs/freeside
- 22. Install & setup RT
- a. Make configure-rt
- b. Make create-rt
- c. Make install-rt
- 23. Set freeside to run on startup
- a. su root
- b. make install-init
- 24. Reboot
- 25. Log into Freeside
- 26. Go to Ticketing main
- 27. Go back to billing main
- 28. Add employee root
- 29. reboot
- 30. log back into freeside as root
- 31. Go to ticketing main, Configuration, Global, User Rights, Give your uid superuser rights
- 32. Go back to billing main and disable the root user