[asterisk-users] zaptel on CENTOS servercd
Jim Suber
jimsuber at bellsouth.net
Mon Jun 4 05:27:42 MST 2007
I use CentOS4.4. successfully. I do something which is very odd for a Linux
admin. I do a "install everything". There is/was a reason for this.
I was in a hurry to get a system online and didn't have time for a research
project. I wrote a simple shell script to compile the apps (zaptel, libpri,
asterisk),copy pre-defined .confs to asterisk -udev zaptel etc., set up
vsftpd for provisioning up to 20 Polycom phones, set up DHCPD and finally
the script removes a list of un-needed services left over from "install
everything" The list of un-needed services continues to grow as I learn
more. I know you won't find this in anyone's "Best Practices" wiki but I've
used this process (install the os, run the script) 6 times for six different
systems. It works flawlessly everytime. Takes an average of 51 minutes to
get a complete system up and running.
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Tzafrir Cohen
Sent: Monday, June 04, 2007 2:35 AM
To: asterisk-users at lists.digium.com
Subject: Re: [asterisk-users] zaptel on CENTOS servercd
One comment if I may:
http://www.voip-info.org/wiki/view/Asterisk+Linux+Centos does need some
cleanup. Let alone merging of the two separate procedures and an update.
Also:
On Sun, Jun 03, 2007 at 06:22:57PM -0400, Lee Jenkins wrote:
> Khaled Chehab wrote:
> >I suffered a lot from installing zaptel 1.4.2 on centos servercd ,Sure
> >there
> >is someone did that, Please in need to have the installation procedure
step
> >by step. Its too urgent for me .
> >
> >Thanks alot
> >
> >
>
> These scripts are working pretty well for me. They are based on a
> script I found on the wiki.
>
> # Script to download pre reqs for installation
> # ==============================================
>
> #!/bin/bash
>
> rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4
Isn't this done by the installer?
>
> yum -y install kernel-source bison openssl-devel
Why do you need kernel-source? I know it is fun do download some extra
40Gigs, but apart from that, the kernel-devel / kernel-smp-devel is all
you need to build zaptel. (likewise linux-headers-`uname -r` on
Debian/Ubuntu )
>
> yum -y update
>
> # Use "kernel-devel" instead of "kernel-smp-devel"
> # if not a SMP machine
> # ========================|==============|
> | |
> yum -y install gcc kernel kernel-smp-devel bison openssl-devel
Hmmm.... you install kernel, but kernel-*smp*-devel . Strange
ocmbination.
Why not simply 'yum update' to get the latest kernel, if needed? This
will upgrade either 'kernel' or 'kernel-smp', depending on the installed
package.
If you don't need a kernel upgrade you don't need the following:
>
> shutdown -r now
>
> # end script
>
>
>
>
> # Script to download asterisk, etc and build/install
> # ==================================================
> #!/bin/bash
>
> rm -f /usr/lib/asterisk/modules/*
>
> cd /usr/src
> rm -rf asterisk
> wget http://ftp.digium.com/pub/asterisk/releases/asterisk-1.2.18.tar.gz
> tar -zxvf asterisk-1.2.18.tar.gz
> mv asterisk-1.2.18 asterisk
>
> cd /usr/src
> rm -rf zaptel
> wget http://ftp.digium.com/pub/zaptel/releases/zaptel-1.2.17.1.tar.gz
> tar -zxvf zaptel-1.2.17.1.tar.gz
> mv zaptel-1.2.17.1 zaptel
>
> cd /usr/src
> rm -rf asterisk-addons
> wget
> http://ftp.digium.com/pub/asterisk/releases/asterisk-addons-1.2.6.tar.gz
> tar -zxvf asterisk-addons-1.2.6.tar.gz
> mv asterisk-addons-1.2.6 asterisk-addons
>
> cd /usr/src
> rm -rf asterisk-sounds
> wget
> http://ftp.digium.com/pub/asterisk/releases/asterisk-sounds-1.2.1.tar.gz
> tar -zxvf asterisk-sounds-1.2.1.tar.gz
> mv asterisk-sounds-1.2.1 asterisk-sounds
>
>
> cd /usr/src/zaptel
> make clean
> make install
> make config
>
> cd /usr/src/asterisk
> make clean
> make install
> make samples
> make config
>
> cd /usr/src/asterisk-addons
> make clean
> make install
>
> cd /usr/src/asterisk-sounds
> make install
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir at jabber.org
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list