суббота, 28 апреля 2012 г.

Kannel Installation

Из багажника народу :)
root@sms:~#groupadd kannel
root@sms:~#useradd -g kannel kannel
root@sms:~#cd /usr/local
root@sms:~#mkdir /usr/local/src/kannel
root@sms:~#cd /usr/local/src/kannel
root@sms:~#svn co https://svn.kannel.org/gateway/trunk
root@sms:~#mv trunk gateway
root@sms:~#cd /usr/local/src/kannel/gateway
root@sms:~#./configure –with-mysql –enable-debug  –enable-start-stop-daemon –enable-pam
root@sms:~#touch .depend
root@sms:~#make depend
root@sms:~#make
root@sms:~#make bindir=/usr/local/kannel install
root@sms:~#cd
# Sql Box Installation
root@sms:~#cd /usr/local/src/kannel
root@sms:~#svn co https://svn.kannel.org/sqlbox/trunk
root@sms:~#mv trunk sqlbox
root@sms:~#cd /usr/local/src/kannel/sqlbox
root@sms:~#./bootstrap
root@sms:~#./configure –prefix=/usr/local/kannel –with-kannel-dir=/usr/local/kannel
root@sms:~#make
root@sms:~#make bindir=/usr/local/kannel/sqlbox install
root@sms:~#cd
# SMPP Box Installation
root@sms:~#cd /usr/local/src/kannel
root@sms:~#svn co https://svn.kannel.org/opensmppbox/trunk
root@sms:~#mv trunk smppbox
cd /usr/local/src/kannel/smppbox
root@sms:~#./configure –prefix=/usr/local/kannel –with-kannel-dir=/usr/local/kannel
root@sms:~#make
root@sms:~#make bindir=/usr/local/kannel/smppbox install
root@sms:~#cd
# Manage & Check Log files
root@sms:~#mkdir /etc/kannel
root@sms:~#mkdir /var/log/kannel
root@sms:~#mkdir /var/log/kannel/gateway
root@sms:~#mkdir /var/log/kannel/smsbox
root@sms:~#mkdir /var/log/kannel/wapbox
root@sms:~#mkdir /var/log/kannel/smsc
root@sms:~#mkdir /var/log/kannel/sqlbox
root@sms:~#mkdir /var/log/kannel/smppbox
root@sms:~#chmod 755 /var/log/kannel
root@sms:~#cp /usr/local/src/kannel/gateway/gw/smskannel.conf /etc/kannel/kannel.conf
root@sms:~#cp /usr/local/src/kannel/gateway/debian/kannel.default /etc/default/kannel
root@sms:~#cp /usr/local/src/kannel/gateway/debian/kannel.init /etc/init.d/kannel
root@sms:~#cp /usr/local/src/kannel/sqlbox/example/sqlbox.conf.example /etc/kannel/sqlbox.conf
root@sms:~#cp /usr/local/src/kannel/smppbox/example/opensmppbox.conf.example /etc/kannel/opensmppbox.conf
root@sms:~#cp /usr/local/src/kannel/smppbox/example/smpplogins.txt.example /etc/kannel/smpplogins.txt
root@sms:~#chmod 777 /etc/init.d/kannel
root@sms:~#update-rc.d kannel defaults
# Clean Installtion Files
root@sms:~#du -sh /var/cache/apt/archives
root@sms:~#apt-get -y –force-yes clean
# Open Terminal and run following command to test your kannel
root@sms:~#/usr/local/kannel/sbin/bearerbox -v 0 /etc/kannel/kannel.conf
root@sms:~#/usr/local/kannel/sbin/smsbox -v 0 /etc/kannel/kannel.conf
root@sms:~#/usr/local/kannel/sbin/wapbox -v 0 /etc/kannel/kannel.conf
root@sms:~#/usr/local/kannel/sbin/sqlbox -v 0 /etc/kannel/kannel.conf
root@sms:~#/usr/local/kannel/sbin/opensmppbox -v 0 /etc/kannel/opensmppbox.conf
:) Enjoy

Комментариев нет:

Отправить комментарий

Общее·количество·просмотров·страницы