Difference between revisions of "FreeBSD Install"

From FusionPBX
Jump to: navigation, search
Line 1: Line 1:
 
Installing Freeswitch 1.0.6_2 on FreeBSD 8.1<br>
 
Installing Freeswitch 1.0.6_2 on FreeBSD 8.1<br>
<br>
 
Contents<br>
 
<br>
 
1 Support<br>
 
2 Download FreeBSD<br>
 
3 Install<br>
 
4 stage 1 config<br>
 
5 Installing The Ports Tree<br>
 
6 Installing FreeBSD Base Source<br>
 
7 Install FreeSwitch Via Ports<br>
 
8 Installing Freeswitch via GIT<br>
 
9 Edit /etc/rc.conf<br>
 
10 FusionPBX Install and Configuration<br>
 
<br>
 
 
==Support==
 
==Support==
 
<br>
 
<br>

Revision as of 16:32, 11 September 2010

Installing Freeswitch 1.0.6_2 on FreeBSD 8.1

Support


For basic support on this install
Contact:
rneese
on
server: irc.freenode.net
channel: #fusionpbx

Download FreeBSD


Download a Freebsd 8.1 install iso and burn it to a disc.
i386: ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-i386/8.1/FreeBSD-8.1-RELEASE-i386-disc1.iso
amd64: ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-amd64/8.1/FreeBSD-8.1-RELEASE-amd64-disc1.iso
ia64: ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-ia64/8.1/FreeBSD-8.1-RELEASE-ia64-disc1.iso

Install


Boot the iso and when you get the install menu select Custom Install.
goto partition: hit enter : hit a and answer yes : select standard
next goto label and you will have to create 4 areas

/ = 1 Gig
swap = if = less 512Meg x 2 else = size of ram
/var = 10% of drive or atleast 6 gig
/tmp = 1 Gig 
/usr =rest of drive 
w=write 
q=quit 

goto distribution and select minimal (a)
hit tabkey and enter
goto media and select cdrom
then goto commit.
the os will now install

stage 1 config

After the os installs it will ask if you want to configure the base system select yes.
scroll down and select root password and set the password.
scroll down and select timezone and set your time zone.
Scroll to network and the scroll to interface and hit the spacebar and configure your network card.
still in the network area select ntp and choose a ntpserver. Then select sshd and tcp extensions.
scroll up to exit and hit the enter.
scroll to startup and scroll down and deselect quotas.
then scroll up to exit and hit enter.
scroll up to exit .
hit tab and select exit install. Remove the cdrom and then reboot.
You now have a base/minimal install.

Installing The Ports Tree

Execute the following command:

portsnap fetch extract

To keep the ports tree updated use:

portsnap fetch update

To keep your system updated install

/usr/ports/ports-mgmt/portmanager
make install clean

When every you want to update your system after a portsnap update

portmanager -u

Installing FreeBSD Base Source

(Needed only if you're going to need Zaptel, tdm, or OpenZap Support.) csup -h cvsup.freebsd.org -L2 /usr/share/examples/cvsup/stable-supfile Note: you can replace cvsup with cvsup# #=(1 - 15). Install FreeSwitch Via Ports

(PORT IS BEING UPDATED) Now install FreeSWITCH from ports. cd /usr/ports/net/freeswitch-core make install clean MOH and Sounds cd /usr/ports/audio/freeswitch-sounds make install clean cd ../freeswitch-music make install clean

Installing Freeswitch via GIT

You will have to install each dep port by hand.

cd /usr/ports/devel/git && make install clean mkdir -p /usr/local/work cd /usr/local/work git clone git://git.freeswitch.org/freeswitch.git cd freeswitch ./bootstrap.sh configure --prefix=/usr/local/freeswitch --with-libgnutls-prefix=${LOCALBASE} --with-ogg=${LOCALBASE} --with-ogg-libraries=${LOCALBASE}/lib --with-ogg-includes=${LOCALBASE}/include make make install and then follow the listed commands for installing sounds Then chown -R freeswitch:freeswitch /usr/local/freeswitch cd into the scripts directory and cp freeswitch.sh /usr/local/etc/rc.d

Edit /etc/rc.conf


add the following line to the end of your /etc/rc.conf freeswitch_enable="YES"