Default (non-software RAID1) CentOS install
Submitted by admin on Sun, 06/08/2008 - 15:04
Close ALL port forwards in the firewall to the server IP we are about to install
Install CentOS from DVD by booting from it. Set system time to UTC.
Partition /dev/sda1 as “boot” 100Meg ext3
Partition /dev/sda2 as “/ “ 74000Meg ext3
Partition /dev/sda3 as “swap” 1900Meg
Set static IP, netmask, gateway, DNS server
Set hostname to something like "asterisk.local". If you have multiple
installs it is important to make this hostname unique for each install
so when you get email notifications you will know which PBX is sending
it.
Make eth0 and eth1 identical except eth0 is active on boot and eth1 is
NOT! That way if eth0 ever fails you can easily switch over the cable
and activate eth1.
Ensure that all package groups and modules in default and custom install
packages are DE-selected for install (including "base system") so that
only a bare minimal install is done:
For performance and security reasons it is important to update the system immediately after install.
yum -y update
The following packages also need to be installed with yum:
yum groupinstall core
yum groupinstall base
yum install gcc gcc-c++
wget bison mysql-devel mysql-server php php-mysql php-pear php-pear-DB
php-mbstring nano ntp tftp-server httpd make ncurses-devel
libtermcap-devel sendmail sendmail-cf caching-nameserver sox newt-devel libxml2-devel libtiff-devel php-gd audiofile-devel gtk2-devel
Disable Firewall and SELinux
setup agent
Go to firewall configuration and ensure SELinux and Firewall are disabled
Reboot
reboot
CentOS Post Install Configuration
Submitted by admin on Sun, 06/08/2008 - 17:07
Enable the tftp server nano /etc/xinetd.d/tftp change “disable=yes” to “disable=no” (Ctrl-X>y>ENTER) Ensure Hard Drive SMART monitoring is enabled (if using SATA hardware RAID then disable) chkconfig smartd on Configure the network time server for managing the time displayed on the server and the phones. nano +21 /etc/ntp.conf restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap server 0.rhel.pool.ntp.org server 1.rhel.pool.ntp.org server 2.rhel.pool.ntp.org Leave everything else at defaults. Any other lines that start with “restrict” should be commented out “#” Configure time server to start at boot /sbin/chkconfig --level 345 ntpd on
Download and untar source files
Submitted by admin on Sun, 06/08/2008 - 17:14
Install lame mp3 encoder (not recommended) if you plan to
make use of mp3's for MOH. This is now a legacy feature as the default
behaviour of Asterisk/Freepbx is to NOT use mp3's for anything. Freepbx
by default now automatically converts uploaded mp3's to wav.
rpm -ivh http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/lame-3.98.2-1.el5.rf.i386.rpm
Install FreePBX. Check if this is the latest released version.
cd /usr/src
wget http://mirror.freepbx.org/freepbx-2.8.0.tar.gz
tar zxvf freepbx-2.8.0.tar.gz
Install Asterisk and addons. Check if this is the latest released version of Asterisk and Asterisk addons
wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.6.2.13.tar.gz
tar zxvf asterisk-1.6.2.13.tar.gz
wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-addons-1.6.2.2.tar.gz
tar zxvf asterisk-addons-1.6.2.2.tar.gz
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.4.0+2.4.0.tar.gz
tar zxvf dahdi-linux-complete-2.4.0+2.4.0.tar.gz
wget
http://downloads.digium.com/pub/libpri/libpri-1.4.11.4.tar.gz
tar zxvf libpri-1.4.11.4.tar.gz |