Easy Ubuntu 10.04
Easy_Ubuntu_10.04
Contents
Download Ubuntu 10.04 Server LTS (Lucid)
http://www.ubuntu.com/server/get-ubuntu/download
Select Ubuntu 10.04 LTS Long Term Support Choose 32 bit or 64 bit depending on your hardware
When you install ubuntu, you should select the "Manual package selection" option. This way we can keep the install to the bare minimum. Just quit tasksel during the install.
Get the latest install script
Project
http://sourceforge.net/projects/fusionpbxinstal/files/
Features
- It will grab the latest FreeSWITCH git, and compile it with the necessary modules for FusionPBX.
- It sets permissions properly for FreeSWITCH and FusionPBX
- Grabs the latest FusionPBX from SVN.
- It installs all necessary dependencies.
- Sets up Fail2Ban (for FreeSWITCH)
- Sets up LogRotate (for FreeSWITCH)
- Installs and configures apache2 or nginx, php5 or ph5-fpm,
- Installs sqlite (for FusionPBX), and optionally mysql.
- Checks for public IP address, optionally starts FreeSWITCH with -nonat
- Everything should automatically configure.
Notes
To download with wget:
- Find the latest script on sourceforge
- Get the 'download direct' link from sourceforge.
example:
cd /usr/local/bin wget "https://downloads.sourceforge.net/random_sourceforge_bits" -O install_fusionpbx chmod 744 install_fusionpbx /usr/local/bin/install_fusionpbx
Options
sudo install_fusionpbx This script should be called as: install_fusionpbx option1 option2 option1: install-freeswitch install-fusionpbx install-both upgrade-freeswitch upgrade-fusionpbx version|--version|-v option2: user: option waits in certain places for the user to check for errors auto: tries an automatic install. Get a cup of coffee, this will take a while. FOR THE BRAVE!
sudo install_fusionpbx --version Version 4.3.2.1 - 2011 January 1. WAF License
Install
sudo install_fusionpbx install-both user
Variables
These are included to make the auto mode more flexible. Open the script and set them however you wish.
- for apache set to a, for nginx/php-fpm set to n -> for an auto install, user mode will prompt
- APACHENGINX=a
- for mysql set to m. for sqlite set to s -> for an auto install, user mode will prompt.
- SQLITEMYSQL=s
- for -nonat option set PUBLICIP to yes -> for an auto install, user mode should detect and prompt.
- PUBLICIP=no
Changelog
- v4.3.2.1 2011 January 1
- small problem when selecting nginx and sqlite. php5-fpm needed to restart so FusionPBX could see the FreeSWITCH directory.
- v4.3.2 2010 December 30
- logrotate was improperly setup. Needed to send sighup to fs_cli. Caused FS to die the first time it tried to log after rotation.
- php5-cli is a dependancy. required for voicemail to email, and fax to email.
- added an nginx/php-fpm option. You can change a variable (for auto run)or it will prompt you when you install fusionpbx in user mode
- mysql added as an option.
- problem with the way ubuntu logs ssh failures [fail2ban].
- Failed password for root from 1.2.3.4 port 22 ssh2
- last message repeated 5 times
- SOLUTION: Turn off RepeatedMsgReduction in rsyslog.
- fail2ban: previous setup looked for freeswitch log in /var/log/freeswitch.log log is actually /usr/local/freeswitch/log/freeswitch.log
- Tries to see if you're on a static IP address. If you are, it wants to start FreeSWITCH with the -nonat option to save some time. Also a new variable
- TODO: Maybe probe cores and to the -b thing for quicker compile/bootstrap
- TODO: IPTABLES
- v4.3.1 2010 December 23
- made a state save file. so if there's an error, don't re-bootstrap, configure, etc. and remove it on a clean exit.
- requests for modules add/enable for ugrade-freeswitch. DONE
- mod dingaling needs libgnutls-dev libgnutls26 packages, and change:
- "--mode=relink gcc" --> "--mode=relink gcc -lgnutls"
- in /usr/src/freeswitch/src/mod/endpoints/mod_dingaling/mod_dingaling.la
- appears to be an ubuntu problem....
- v4.3 2010 December 22
- under case upgrade-freeswitch, variables were not set properly. It upgraded fusionpbx.. fixed.
- done: fail2ban error fixed. removed associated text
- done: have install check for /etc/fail2ban. reinstall (as in from iso) duplicates some txt
- done: remove or fix fusionpbx upgrade code. it either needs to log in and then update and run the schema upgrade. or get rid of it. Fixed by prompting the user to open a browser window, and warn.
- done: get logrotate working... let's not fill the disk.
- stop/start freeswitch for an upgrade, and an install...
- v4.2 2010 December 17
- made some changes so the text flows correctly now that we use curl to do install.php.
- sent curl output to dev null..
- added apt-get update before we install apache since remastersys removes apt data
- stopping FS before FusionPBX install, and starting afteward.
- changed license to WAF v1
- v4.1 2010 December 15
- changing cd sounds (48/32/16/8khz) down to hd sounds (16/8Kkhz)
- v4 2010 December 14
- now install-fusion|install-freeswitch|upgrade...
- also adding curl commands to finish fusionpbx install.
- v3 2010 December 13
- adding fail2ban et al.
- v2 2010 December 07
- adds arrays to process the modules. should make this much easier to edit.
- just make additions to modules_add
- This should work fine (even on a 2nd run).
- v1 2010 December 06
- first cut
Bugs and Getting Help
soapee01 on #fusionpbx (freenode) wrote this script. For help, go there. Bugs and feature requests can be handled on the sourceforge project page:
http://sourceforge.net/projects/fusionpbxinstal/
Voicemail to Email
Versions prior to 4.3.2 did not install php5-cli by default. This caused the fusionpbx install to miss the "PHP Directory" when it configures FreeSWITCH. The value should be
/usr/bin
The value was
/var/www/fusionpbx
- Log into FusionPBX
- Click System -> System Settings
- Edit the Domain
- Set "PHP Directory" to /usr/bin
- Save/Apply Settings.
- Now apply the fix to FreeSWITCH:
sudo vim /usr/local/freeswitch/conf/autoload_configs/switch.conf.xml
and edit the line:
<param name="mailer-app" value="/var/www/fusionpbx /var/www/fusionpbx/secure/v_mailto.php"/>
to be:
<param name="mailer-app" value="/usr/bin/php /var/www/fusionpbx/secure/v_mailto.php"/>
install php5-cli
sudo apt-get install php5-cli
Restart FreeSWITCH
/etc/init.d/freeswitch restart
ISO
This is a LiveCD for installing FreeSWITCH/FusionPBX. It's currently in work (64 bit and 32 bit). These are beta. They have been tested with vmplayer, but to my knowledge not yet installed on real hardware. Feedback requested: /msg soapee01 on Freenode (#fusionpbx). 2010-12-20
- Beta1
Issues with ISO
- openssh key problem. first boot after install should run 'dpkg-reconfigure openssh-server'
Issues with FusionPBX install script on the iso [v4.2]
- under case upgrade-freeswitch, variables were not set properly. It upgraded fusionpbx...
- fail2ban error fixed in latest FS git. remove associated text
- have install check for /etc/fail2ban. reinstall (as in from iso) duplicates some txt
- remove or fix fusionpbx upgrade code. it either needs to log in and then update and run the schema upgrade. or get rid of it.
- get logrotate working... let's not fill the disk.
Hopefully 4.3 will be out in the next day or two, and beta2 ISOs released soon after. 2010-12-20