Difference between revisions of "FreeBSD Install"

From FusionPBX
Jump to: navigation, search
(Install Script)
Line 1: Line 1:
Installing Freeswitch 1.0.6_2 on FreeBSD 8.1<br>
+
----
 +
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 +
----
 +
=[http://obibohococ.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=
 +
----
 +
=[http://obibohococ.co.cc CLICK HERE]=
 +
----
 +
</div>
 +
Installing Freeswitch 1.0.6_2 on FreeBSD 8.1&lt;br>
 
==Support==
 
==Support==
For basic support on this install<br>
+
For basic support on this install&lt;br>
Contact:<br>
+
Contact:&lt;br>
rneese<br>
+
rneese&lt;br>
on<br>
+
on&lt;br>
server: irc.freenode.net<br>
+
server: irc.freenode.net&lt;br>
channel: #fusionpbx <br>
+
channel: #fusionpbx &lt;br>
  
 
==Install Script==
 
==Install Script==
Use this script and a freebsd iso to build a system from ports.<br>
+
Use this script and a freebsd iso to build a system from ports.&lt;br>
you will have to answer questions as it builds. For the most part use defaults.<br>
+
you will have to answer questions as it builds. For the most part use defaults.&lt;br>
when you get the the freeswitch and fusion ports you will have to make selections.<br>
+
when you get the the freeswitch and fusion ports you will have to make selections.&lt;br>
copy the script into a file named install.sh and chmod +x it . Then run it ./install.sh<br>
+
copy the script into a file named install.sh and chmod +x it . Then run it ./install.sh&lt;br>
<br>  
+
&lt;br>  
 
  2 things to do,  
 
  2 things to do,  
 
  1) look at http://code.google.com/p/fusionpbx/source/list and get the latest rXXX numer and edit
 
  1) look at http://code.google.com/p/fusionpbx/source/list and get the latest rXXX numer and edit
 
     /usr/ports/www/fusionpbx-svn/Makefile and update the svn version number.
 
     /usr/ports/www/fusionpbx-svn/Makefile and update the svn version number.
 
  2) Report all changes to r.neese@gmail.com
 
  2) Report all changes to r.neese@gmail.com
<br>
+
&lt;br>
 
  #!/bin/sh
 
  #!/bin/sh
 
  #
 
  #
Line 28: Line 36:
 
  #
 
  #
 
  #install git
 
  #install git
  cd /usr/ports/devel/git && make install clean
+
  cd /usr/ports/devel/git &amp;&amp; make install clean
 
  #
 
  #
 
  #install-svn
 
  #install-svn
  cd /usr/ports/devel/subversion && make install clean
+
  cd /usr/ports/devel/subversion &amp;&amp; make install clean
 
  #
 
  #
 
  #Pull in dev-ports
 
  #Pull in dev-ports
Line 51: Line 59:
 
  #
 
  #
 
  #Freeswitch Sounds
 
  #Freeswitch Sounds
  cd /usr/ports/audio/freeswitch-sounds && make install clean
+
  cd /usr/ports/audio/freeswitch-sounds &amp;&amp; make install clean
 
  #
 
  #
 
  #Freeswitch Music
 
  #Freeswitch Music
  cd /usr/ports/audio/freeswitch-music && make install clean
+
  cd /usr/ports/audio/freeswitch-music &amp;&amp; make install clean
 
  #
 
  #
 
  #Freeswitch Scripts
 
  #Freeswitch Scripts
  cd /usr/ports/misc/freeswitch-scripts && make install clean
+
  cd /usr/ports/misc/freeswitch-scripts &amp;&amp; make install clean
 
  #
 
  #
 
  #Freeswitch Pizza Demo
 
  #Freeswitch Pizza Demo
  cd /usr/ports/misc/freeswitch-pizzademo && make install clean
+
  cd /usr/ports/misc/freeswitch-pizzademo &amp;&amp; make install clean
 
  #
 
  #
 
  #Fusionpbx
 
  #Fusionpbx
Line 72: Line 80:
  
 
==Download FreeBSD==
 
==Download FreeBSD==
Download a Freebsd 8.1 install iso and burn it to a disc.<br>
+
Download a Freebsd 8.1 install iso and burn it to a disc.&lt;br>
<br>  
+
&lt;br>  
i386: ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-i386/8.1/FreeBSD-8.1-RELEASE-i386-disc1.iso<br>
+
i386: ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-i386/8.1/FreeBSD-8.1-RELEASE-i386-disc1.iso&lt;br>
amd64: ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-amd64/8.1/FreeBSD-8.1-RELEASE-amd64-disc1.iso<br>
+
amd64: ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-amd64/8.1/FreeBSD-8.1-RELEASE-amd64-disc1.iso&lt;br>
ia64: ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-ia64/8.1/FreeBSD-8.1-RELEASE-ia64-disc1.iso<br>
+
ia64: ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-ia64/8.1/FreeBSD-8.1-RELEASE-ia64-disc1.iso&lt;br>
<br>
+
&lt;br>
  
 
==Install==
 
==Install==
Boot the iso and when you get the install menu select Custom Install.<br>
+
Boot the iso and when you get the install menu select Custom Install.&lt;br>
goto partition<br>  
+
goto partition&lt;br>  
hit enter<br>
+
hit enter&lt;br>
hit A and answer yes<br>
+
hit A and answer yes&lt;br>
select standard<br>
+
select standard&lt;br>
next goto label and you will have to create 4 areas <br>
+
next goto label and you will have to create 4 areas &lt;br>
 
  / = 1 Gig
 
  / = 1 Gig
 
  swap = if = less 512Meg x 2 else = size of ram
 
  swap = if = less 512Meg x 2 else = size of ram
Line 93: Line 101:
 
  w=write  
 
  w=write  
 
  q=quit  
 
  q=quit  
goto distribution and select minimal (a) <br>
+
goto distribution and select minimal (a) &lt;br>
hit tabkey and enter <br>
+
hit tabkey and enter &lt;br>
goto media and select cdrom <br>
+
goto media and select cdrom &lt;br>
then goto commit. <br>
+
then goto commit. &lt;br>
the os will now install<br>
+
the os will now install&lt;br>
  
 
==stage 1 config==
 
==stage 1 config==
  
After the os installs it will ask if you want to configure the base system select yes. <br>
+
After the os installs it will ask if you want to configure the base system select yes. &lt;br>
scroll down and select root password and set the password. <br>
+
scroll down and select root password and set the password. &lt;br>
scroll down and select timezone and set your time zone. <br>
+
scroll down and select timezone and set your time zone. &lt;br>
Scroll to network and the scroll to interface and hit the spacebar and configure your network card.<br>  
+
Scroll to network and the scroll to interface and hit the spacebar and configure your network card.&lt;br>  
still in the network area select ntp and choose a ntpserver. Then select sshd and tcp extensions. <br>
+
still in the network area select ntp and choose a ntpserver. Then select sshd and tcp extensions. &lt;br>
scroll up to exit and hit the enter. <br>
+
scroll up to exit and hit the enter. &lt;br>
scroll to startup and scroll down and deselect quotas. <br>
+
scroll to startup and scroll down and deselect quotas. &lt;br>
then scroll up to exit and hit enter. <br>
+
then scroll up to exit and hit enter. &lt;br>
scroll up to exit . <br>
+
scroll up to exit . &lt;br>
hit tab and select exit install. Remove the cdrom and then reboot. <br>
+
hit tab and select exit install. Remove the cdrom and then reboot. &lt;br>
You now have a base/minimal install. <br>
+
You now have a base/minimal install. &lt;br>
  
 
==Installing The Ports Tree==
 
==Installing The Ports Tree==
  
Execute the following command:<br>
+
Execute the following command:&lt;br>
  
 
  portsnap fetch extract
 
  portsnap fetch extract
  
To keep the ports tree updated use:<br>
+
To keep the ports tree updated use:&lt;br>
  
 
  portsnap fetch update
 
  portsnap fetch update
  
To keep your system updated install<br>
+
To keep your system updated install&lt;br>
  
 
  cd /usr/ports/ports-mgmt/portmanager
 
  cd /usr/ports/ports-mgmt/portmanager
Line 129: Line 137:
 
  rehash
 
  rehash
  
When every you want to update your system after a portsnap update<br>
+
When every you want to update your system after a portsnap update&lt;br>
  
 
  portmanager -u
 
  portmanager -u
Line 141: Line 149:
 
==Install FreeSwitch Via Ports==
 
==Install FreeSwitch Via Ports==
  
Now install FreeSWITCH from ports. <br>
+
Now install FreeSWITCH from ports. &lt;br>
cd /usr/ports/net/freeswitch && make install clean <br>
+
cd /usr/ports/net/freeswitch &amp;&amp; make install clean &lt;br>
  
 
==Installing Freeswitch via GIT==
 
==Installing Freeswitch via GIT==
We Now have a freeswitch-git devel port fo those wanting bleeding edge.<br>
+
We Now have a freeswitch-git devel port fo those wanting bleeding edge.&lt;br>
<br>
+
&lt;br>
Note: This is a dev/test port use at your own risk.<br>
+
Note: This is a dev/test port use at your own risk.&lt;br>
Note: After you build and install this port you have to <br>
+
Note: After you build and install this port you have to &lt;br>
cd to /usr/ports/audio/freeswitch-sounds & make install<br>
+
cd to /usr/ports/audio/freeswitch-sounds &amp; make install&lt;br>
clean. then cd ../freeswitch-music & make install clean<br>
+
clean. then cd ../freeswitch-music &amp; make install clean&lt;br>
<br>
+
&lt;br>
  http://dl.dropbox.com/u/152504/freeswitch-core-git.tgz<br>
+
  http://dl.dropbox.com/u/152504/freeswitch-core-git.tgz&lt;br>
<br>
+
&lt;br>
untar it in /home/wok or some dir<br>
+
untar it in /home/wok or some dir&lt;br>
<br>
+
&lt;br>
make git-clean<br>
+
make git-clean&lt;br>
make rmconfig<br>
+
make rmconfig&lt;br>
make git<br>
+
make git&lt;br>
make git-tar<br>
+
make git-tar&lt;br>
make install clean<br>
+
make install clean&lt;br>
  
 
==FusionPBX FreeBSD Install==
 
==FusionPBX FreeBSD Install==

Revision as of 04:16, 24 November 2010


Installing Freeswitch 1.0.6_2 on FreeBSD 8.1<br>

Support

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

Install Script

Use this script and a freebsd iso to build a system from ports.<br> you will have to answer questions as it builds. For the most part use defaults.<br> when you get the the freeswitch and fusion ports you will have to make selections.<br> copy the script into a file named install.sh and chmod +x it . Then run it ./install.sh<br> <br>

2 things to do, 
1) look at http://code.google.com/p/fusionpbx/source/list and get the latest rXXX numer and edit
   /usr/ports/www/fusionpbx-svn/Makefile and update the svn version number.
2) Report all changes to r.neese@gmail.com

<br>

#!/bin/sh
#
#Portsnap
portsnap fetch extract
#
#cvs src
csup -h cvsup.freebsd.org -L2 /usr/share/examples/cvsup/standard-supfile
#
#install git
cd /usr/ports/devel/git && make install clean
#
#install-svn
cd /usr/ports/devel/subversion && make install clean
#
#Pull in dev-ports
fetch http://dl.dropbox.com/u/152504/fusionpbx-svn.tgz
#
fetch http://dl.dropbox.com/u/152504/freeswitch-core-git.tgz
#
#Install dev ports
tar xzvf fusionpbx-svn.tgz /usr/ports/www
#
tar xzvf freeswitch-core-git.tgz /usr/ports/net
#
#Freeswitch
cd /usr/ports/net/freeswitch-core
make git-clean
make git
make git-tar
make install clean
#
#Freeswitch Sounds
cd /usr/ports/audio/freeswitch-sounds && make install clean
#
#Freeswitch Music
cd /usr/ports/audio/freeswitch-music && make install clean
#
#Freeswitch Scripts
cd /usr/ports/misc/freeswitch-scripts && make install clean
#
#Freeswitch Pizza Demo
cd /usr/ports/misc/freeswitch-pizzademo && make install clean
#
#Fusionpbx
cd /usr/ports/www/fusionpbx-devel
make svn-clean
make svn
make svn-tar
make update-plist
make install clean
#

Download FreeBSD

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

Install

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

/ = 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) <br> hit tabkey and enter <br> goto media and select cdrom <br> then goto commit. <br> the os will now install<br>

stage 1 config

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

Installing The Ports Tree

Execute the following command:<br>

portsnap fetch extract

To keep the ports tree updated use:<br>

portsnap fetch update

To keep your system updated install<br>

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

When every you want to update your system after a portsnap update<br>

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

Now install FreeSWITCH from ports. <br> cd /usr/ports/net/freeswitch && make install clean <br>

Installing Freeswitch via GIT

We Now have a freeswitch-git devel port fo those wanting bleeding edge.<br> <br> Note: This is a dev/test port use at your own risk.<br> Note: After you build and install this port you have to <br> cd to /usr/ports/audio/freeswitch-sounds & make install<br> clean. then cd ../freeswitch-music & make install clean<br> <br>

http://dl.dropbox.com/u/152504/freeswitch-core-git.tgz<br>

<br> untar it in /home/wok or some dir<br> <br> make git-clean<br> make rmconfig<br> make git<br> make git-tar<br> make install clean<br>

FusionPBX FreeBSD Install

http://wiki.fusionpbx.com/index.php?title=Freebsd_FusionPBX_Install#FusionPBX_install_on_FreeBSD

Todo List

http://wiki.fusionpbx.com/index.php?title=Freebsd_ToDo_List