This document assumes prior knowledge of how to use Linux and some Asterisk knowledge. If you ever have trouble with asterisk starting, run sudo su asterisk to view any error messages when running asterisk -vvvc. All of these instructions are written with the intention that the user be root at all times during the installation. To access a root shell on an Ubuntu system run sudo su.
Installing Ubuntu 6.06 LTS and setting up packages
1. Install Ubuntu Server 6.06. I recommend setting up a large partition for the /var filesystem since that is where a majority of the data for an Asterisk install is located.
2. After restarting from installation, the first thing we want to do is install SSH and setup a static IP on the box.
a) uncomment the universal repository line from /etc/apt/sources.list
deb http://us.archive.ubuntu.com/ubuntu/ dapper universe
deb-src http://us.archive.ubuntu.com/ubuntu/ dapper universe
b) update apt database and install openssh-server
aptitude update
aptitude openssh-server
c) at this point you probably will want to setup a static ip address if you haven’t already done so. Please check the Ubuntu documentation on how to do this
3. Get all Ubuntu updates
aptitude upgrade
reboot
4. Install necessary dependencies – Insert installation cd before proceeding
aptitude install cvs build-essential automake autoconf bison flex libtool libncurses5-dev libssl-dev php5 php5-cli php5-curl php5-gd php5-mysql mysql-server php-pear php-db curl sox apache2 subversion libssl-dev libmysqlclient15-dev