1 进入超级用户
2 Check for updates and install required packages
Before running apt-get, you must edit the sources.list file so that you can install from the "universe".
nano +17 -w /etc/apt/sources.list
这个编辑器比较崩溃用的不熟,搞的很狼狈。所以后来我用vi修改的
Remove the # signs from this line and add multiverse at the end:
deb http://doc.docsou.com/ubuntu/ dapper universe multiverse
在文件中的最后添加
deb http://doc.docsou.com/ubuntu/ dapper universe multiverse
要保持etc/apt/sources.list 中的正确性
3 执行
root@test-Ubuntu:/home/jdeng# apt-get update
root@test-Ubuntu:/home/jdeng# apt-get install php5 php5-cli php5-mysql mysql-server php-pear php-db openssh-server curl sox apache2 subversion build-essential libncurses5-dev libssl-dev linux-headers-`uname -r` libmysqlclient15-dev
安装过程中需要设置mysql密码,自己发挥即可
安装完成之后系统提示需要重启,重启
4 重启之后进入下载流程
下载asterisk1.2(最新的版本是1.62的)
root@test-Ubuntu:/home/jdeng# svn co http://doc.docsou.com/svn/asterisk/branches/1.2 asterisk-1.2
root@test-Ubuntu:/home/jdeng# svn co http://doc.docsou.com/svn/zaptel/branches/1.2 zaptel-1.2
root@test-Ubuntu:/home/jdeng# svn co http://doc.docsou.com/svn/libpri/branches/1.2 libpri-1.2
root@test-Ubuntu:/home/jdeng# svn co http://doc.docsou.com/svn/asterisk-addons/branches/1.2 asterisk-addons-1.2
root@test-Ubuntu:/home/jdeng# svn co http://doc.docsou.com/svn/asterisk/trunk/sounds asterisk-sounds
5 下载完成,编译安装
root@test-Ubuntu:/data/asterisk1.6.2##cd libpri-1.2
root@test-Ubuntu:/data/asterisk1.6.2/libpri-1.2#make install
root@test-Ubuntu:/data/asterisk1.6.2/libpri-1.2# cd ../zaptel-1.4/
root@test-Ubuntu:/data/asterisk1.6.2/zaptel-1.2# make install config
(这步安装的时候出现一个问题,就是提示刚才执行过config,不管他继续执行该命令就可以了,如果你没有这个问题那就更好了呵呵)
root@test-Ubuntu:/data/asterisk1.6.2/zaptel-1.2# cd ../asterisk-1.2
root@test-Ubuntu:/data/asterisk1.6.2/asterisk-1.2# make install
出错:
make[1]:正在离开目录 `/data/asterisk1.6.2/asterisk-1.2
****
**** The configure script must be executed before running 'make'.
**** Please run "./configure".
****
make: *** [makeopts] 错误 1
root@test-Ubuntu:/data/asterisk1.6.2/asterisk-1.2# make
root@test-Ubuntu:/data/asterisk1.6.2/asterisk-1.2# ./configure
执行结果的最后是:
.$$$$$$$$$$$$$$$=..
.$7$7.. .7$$7:.
.$$:. ,$7.7
.$7. 7$$$$ .$$77
..$$. $$$$$ .$$$7
..7$ .?. $$$$$ .?. 7$$$.
$.$. .$$$7. $$$$7 .7$$$. .$$$.
.777. .$$$$$$77$$$77$$$$$7. $$$,