<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Using kickstart sounds good to me.&nbsp; I think we should keep separate the
different steps:<br>
1. Create a base image of the OS<br>
2. Install the iptel.org apps and dependencies<br>
3. Do local configurations<br>
4. Create deployable virtual machine<br>
<br>
If each of these steps are isolated, different people can be
responsible for the different steps.<br>
<br>
I have reorganized the project page into sections and incorporated lots
of input from Jeremy at <a class="moz-txt-link-freetext" href="http://iptel.org/bundle/project">http://iptel.org/bundle/project</a><br>
We now need to create a project plan, split into responsibilities, and
take some key decisions.<br>
I think one key decision that we have already converged on is: for
first version use CentOS5 and create vmware appliance.<br>
g-)<br>
<br>
<br>
Jai Rangi wrote:
<blockquote
 cite="mid:eb007ec0712102146x15d75e0dg15504d0431712bcc@mail.gmail.com"
 type="cite">Sounds good,<br>
Here is the script. Its been a while that we have used it. We might
need to modify something. I can look into it later. Let me know if this
is something you are looking for. <br>
************************<br>
#!/bin/sh<br>
# Need to add /bin/sh path<br>
# This script will install the softwares required to build softswitch.<br>
# Sysrequirements &nbsp;FC5, DELL 1950,<br>
# Jai<br>
# 12/11/06<br>
  <br>
HOSTNAME=`hostname`<br>
TEMPLATE=<a moz-do-not-send="true" href="http://192.168.2.201/"
 target="_blank">
192.168.1.1</a><br>
  <br>
if [ "`id -u`" != "0" -o `hostname` != "$HOSTNAME" ]; then<br>
&nbsp;printf "NEED TO BE ROOT AND TO RUN ON $HOSTNAME\n"<br>
&nbsp;exit 0<br>
fi<br>
  <br>
echo "You are ROOT &nbsp;on &nbsp; Make sure you know what are you doing,
  <br>
&nbsp;Press ENTER to continue"<br>
  <br>
read<br>
  <br>
echo "Server name = $HOSTNAME"<br>
echo "FTP Server = $TEMPLATE"<br>
echo "Press ENTER to start"<br>
  <br>
read<br>
  <br>
printf "PROCEEDING WITH INSTALLATION OF Softswitch on ${HOSTNAME}
...\n\n"
  <br>
  <br>
  <br>
printf "ARE YOU SURE YOU WANT TO CONTINUE (Y/N)?"<br>
read X<br>
if [ "x$X" != "xY" ]; then<br>
&nbsp;printf "aborting. Press Y or N \n"<br>
&nbsp;exit 0<br>
fi<br>
printf "\n"
  <br>
  <br>
mkdir&nbsp; //home/switch<br>
ln -s /home/switch /usr/local/<br>
  <br>
  <br>
cd /usr/local/src<br>
  <br>
echo "------INSTALLING freeradius -----------------------------"<br>
  <br>
printf "Do you want to INSTALL FREERADIUS (Y/N)?"
  <br>
read X<br>
if [ "x$X" == "xY" ]; then<br>
cd /usr/local/src/<br>
wget <a moz-do-not-send="true"
 href="ftp://ftp.freeradius.org/pub/radius/old/freeradius-1.1.2.tar.gz"
 target="_blank">ftp://ftp.freeradius.org/pub/radius/old/freeradius-1.1.2.tar.gz
  </a><br>
tar zxvf freeradius-1.1.2.tar.gz<br>
cd freeradius-1.1.2<br>
./configure<br>
  <br>
make<br>
make install<br>
#cd ..<br>
echo "enable digest auth in radiusd.conf, configure clients.conf,
&nbsp;create radius db and import tables."
  <br>
  <br>
else<br>
printf "OK YOU Pressed N that means you don't want free radius. No
Problem \n"<br>
fi<br>
  <br>
echo "------ &nbsp;radius client lib &nbsp;-----------------------------"<br>
printf "Do you want to radius client lib (Y/N)?"
  <br>
  <br>
read X<br>
  <br>
if [ "x$X" == "xY" ]; then<br>
cd /usr/local/src/<br>
wget <a moz-do-not-send="true"
 href="http://download.berlios.de/radiusclient-ng/radiusclient-ng-0.5.2.tar.gz"
 target="_blank">http://download.berlios.de/radiusclient-ng/radiusclient-ng-0.5.2.tar.gz
  </a><br>
  <br>
tar zxvf radiusclient-ng-0.5.2.tar.gz<br>
cd radiusclient-ng-0.5.2<br>
./configure<br>
make<br>
make install<br>
  <br>
#vi /etc/ld.so.conf<br>
# &nbsp; &nbsp; &nbsp; /usr/local/lib<br>
cat "/usr/local/lib" &gt; /etc/ld.so.conf.d/radius-
i386.conf<br>
  <br>
ldconfig<br>
cd ..<br>
  <br>
else<br>
printf "OK YOU did not Pressed Y that means you don't want radius
client lib. I don't care, I am just a script \n"<br>
  <br>
fi<br>
  <br>
echo "------ &nbsp;MEDIAPROXY -------------------"
  <br>
printf "Do you want to Mediaproxy &nbsp;(Y/N)?"<br>
  <br>
read X<br>
  <br>
if [ "x$X" == "xY" ]; then<br>
cd /usr/local/src/<br>
wget <a moz-do-not-send="true"
 href="http://mediaproxy.ag-projects.com/old/mediaproxy-1.4.2.tar.gz"
 target="_blank">
http://mediaproxy.ag-projects.com/old/mediaproxy-1.4.2.tar.gz</a><br>
tar mediaproxy-1.4.2.tar.gz<br>
mv mediaproxy /usr/local/mediaproxy<br>
  <br>
#cp mediaproxy.ini.sample mediaproxy.ini<br>
  <br>
#vi mediaproxy.ini<br>
# &nbsp; &nbsp; &nbsp; &nbsp;edit the options as per our envi.
  <br>
cd &nbsp;/usr/local/mediaproxy/<br>
wget <a class="moz-txt-link-freetext" href="ftp://$TEMPLATE/configure_ser">ftp://$TEMPLATE/configure_ser</a>
  <div id="1g1m" class="ArwC7c ckChnd">_server/configfiles/mediaproxy.ini<br>
  <br>
cp /usr/local/mediaproxy/boot/mediaproxy.other /etc/init.d/mediaproxy<br>
/etc/init.d/mediaproxy start
  <br>
cd /usr/local/src/<br>
  <br>
else<br>
printf
"OK YOU did not Pressed Y that means you dont want Mediaproxy. I dont
care, But remember SIP users wont be able to talk \n"<br>
fi<br>
  <br>
echo "------ &nbsp;ser -------------------"<br>
printf "Do you want to INSTALL SER (Y/N)?"<br>
  <br>
read X<br>
  <br>
if [ "x$X" == "xY" ]; then
  <br>
  <br>
## We make changes in the Makefile for all the modules, build our own
tar and store it on our ftp server.<br>
#wget <a moz-do-not-send="true"
 href="http://ftp.iptel.org/pub/ser/0.9.6/src/ser-0.9.6_src.tar.gz"
 target="_blank">http://ftp.iptel.org/pub/ser/0.9.6/src/ser-0.9.6_src.tar.gz
  </a><br>
cd /usr/local/src/<br>
wget <a class="moz-txt-link-freetext" href="ftp://$TEMPLATE/configure_ser_server/ser-0.9.6_bingo.tar.gz">ftp://$TEMPLATE/configure_ser_server/ser-0.9.6_bingo.tar.gz</a><br>
echo "Press ENTER to start"<br>
read<br>
tar zxvf ser-0.9.6_bingo.tar.gz<br>
echo "Press ENTER to start"<br>
read<br>
  <br>
cd ser-0.9.6<br>
pwd<br>
  <br>
#cd modules/acc<br>
#vi Makefile<br>
#remove comment from sql and radius lines<br>
  <br>
#vi Makefile<br>
#remove *_radius from exclude list<br>
  <br>
make all<br>
make install<br>
cd /usr/local/etc/ser/
  <br>
wget <a class="moz-txt-link-freetext" href="ftp://$TEMPLATE/configure_ser_server/configfiles/ser.cfg">ftp://$TEMPLATE/configure_ser_server/configfiles/ser.cfg</a><br>
  <br>
else<br>
printf "OK YOU did not Pressed Y that means you don't want a softswitch
you. Just playing with me HUHH, OK \n"<br>
fi<br>
  <br>
# <a moz-do-not-send="true"
 href="http://www.openser.org/docs/openser-radius-1.0.x.html"
 target="_blank">http://www.openser.org/docs/openser-radius-1.0.x.html</a><br>
# ----------------------------------------------<br>
echo "------ &nbsp;APACHE -------------------"
  <br>
printf "Do you want to INSTALL APACHE (Y/N)?"<br>
read X<br>
if [ "x$X" == "xY" ]; then<br>
cd /usr/local/src/<br>
wget <a moz-do-not-send="true"
 href="http://www.axint.net/apache/httpd/httpd-2.2.3.tar.gz"
 target="_blank">
http://www.axint.net/apache/httpd/httpd-2.2.3.tar.gz</a><br>
tar zxvf httpd-2.2.3.tar.gz<br>
cd httpd-2.2.3<br>
./configure --enable-shared=max --enable-module=rewrite
--enable-module=so --with-apxs2<br>
make<br>
make install<br>
  <br>
else<br>
printf "OK YOU did not Pressed Y that means you dont want APACHE. You
might need this for serweb. \n"<br>
fi<br>
  <br>
echo "------ &nbsp;IMAP -------------------"<br>
printf "Do you want to INSTALL IMAP, (Y/N)?"
  <br>
read X<br>
  <br>
if [ "x$X" == "xY" ]; then<br>
  <br>
cd /usr/local/src/<br>
cd /usr/local/src/<br>
#wget <a moz-do-not-send="true"
 href="http://www.mirrorservice.org/sites/tp.cac.washington.edu/imap/old/imap-2004c1.tar.Z"
 target="_blank">
http://www.mirrorservice.org/sites/tp.cac.washington.edu/imap/old/imap-2004c1.tar.Z</a><br>
wget <a moz-do-not-send="true"
 href="ftp://192.168.2.201/configure_ser_server/imap-2004c1.tar.Z"
 target="_blank">ftp://192.168.2.201/configure_ser_server/imap-2004c1.tar.Z
  </a><br>
tar zxf imap-2004c1.tar.Z<br>
  <br>
cd imap-2004c1<br>
make slx SSLTYPE=none<br>
cd c-client/<br>
cp c-client.a /usr/lib<br>
cp rfc822.h mail.h linkage.h /usr/include/<br>
  <br>
else<br>
printf "OK YOU did not Pressed Y that means you dont want APACHE. You
might need this for serweb. \n"
  <br>
fi<br>
  <br>
  <br>
echo "------ &nbsp;PHP 4.xx -------------------"<br>
printf "Do you want to INSTALL PHP 4.xx, If you dont install this then
DONT complain if your serweb doesnt work (Y/N)?"<br>
  <br>
read X<br>
  <br>
if [ "x$X" == "xY" ]; then<br>
  <br>
cd /usr/local/src/<br>
wget <a moz-do-not-send="true"
 href="http://museum.php.net/php4/php-4.3.10.tar.gz" target="_blank">http://museum.php.net/php4/php-4.3.10.tar.gz</a><br>
tar zxvf php-4.3.10.tar.gz
  <br>
cd php-4.3.10<br>
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
--with-imap<br>
make<br>
make install<br>
  <br>
cp php.ini-dist /usr/local/lib/php.ini<br>
cd &nbsp;/usr/local/apache2/<br>
wget <a class="moz-txt-link-freetext" href="ftp://$TEMPLATE/configure_ser_server/configfiles/httpd.conf">ftp://$TEMPLATE/configure_ser_server/configfiles/httpd.conf</a>
  <br>
  <br>
#vi /usr/local/apache2/conf/httpd.conf<br>
# &nbsp; &nbsp; &nbsp; &nbsp;AddType application/x-httpd-php .php .phtml<br>
# &nbsp; &nbsp; &nbsp; &nbsp;LoadModule php4_module libexec/libphp4.so<br>
#<br>
# &nbsp; &nbsp; &nbsp; &nbsp;modify the index.html line and add index.php to the list
  <br>
#<br>
# &nbsp; &nbsp; &nbsp; &nbsp;Listen 81<br>
  <br>
/usr/local/apache2/bin/apachectl start<br>
  <br>
else<br>
printf "OK YOU did not Pressed Y that means you refused to install PHP.
You will need this for serweb. \n"<br>
fi<br>
  <br>
echo "------ &nbsp;PHP 4.xx -------------------"<br>
printf "Do you want to INSTALL PHP 4.xx, If you dont install this then
DONT complain if your serweb doesnt work (Y/N)?"<br>
read X<br>
  <br>
if [ "x$X" == "xY" ]; then
  <br>
  <br>
cd /usr/local/src/<br>
  <br>
wget <a moz-do-not-send="true"
 href="http://ftp.iptel.org/pub/serweb/serweb-0.9.6.tar.gz"
 target="_blank">http://ftp.iptel.org/pub/serweb/serweb-0.9.6.tar.gz</a><br>
  <br>
tar zxvf serweb-0.9.6.tar.gz<br>
  <br>
mv serweb-0.9.6 serweb<br>
# next few line have been taken care of httpd.conf in apache
installation.<br>
  <br>
#vi /usr/local/apache2/conf/httpd.conf<br>
  <br>
#Alias /serweb "/usr/local/serweb/html/"<br>
  <br>
#&lt;Directory "/usr/local/serweb/html"&gt;
  <br>
# &nbsp; &nbsp; &nbsp; &nbsp;AllowOverride None<br>
# &nbsp; &nbsp; &nbsp; &nbsp;Options None<br>
# &nbsp; &nbsp; &nbsp; &nbsp;Order allow,deny<br>
# &nbsp; &nbsp; &nbsp; &nbsp;Allow from all<br>
#&lt;/Directory&gt;<br>
  <br>
cd /usr/local/serweb/config<br>
  <br>
#vi config*<br>
&nbsp; &nbsp; &nbsp; &nbsp;modify all config files are per your env.
  <br>
  <br>
#edit:<br>
#vi /usr/local/etc/ser/ser.cfg<br>
#fifo_mode=666<br>
  <br>
#Send daily missed calls<br>
#Crontab line:<br>
#5 0 * * * /usr/local/bin/php
/usr/local/serweb/scripts/cron_job/send_daily_missed_calls.php<br>
  <br>
#Server monitoring
  <br>
#Crontab line:<br>
#* * * * * /usr/local/bin/php
/usr/local/serweb/scripts/cron_job/read_ser_moni.php<br>
  <br>
else<br>
printf "OK YOU did not Pressed Y that means you refused to install PHP.
You will need this for serweb. \n"
  <br>
fi<br>
  <br>
  <br>
echo "------ DIALIP_ADMIN -------------------"<br>
printf "Do you want to INSTALL DIALUP_ADMIN (Y/N)?"<br>
read X<br>
  <br>
if [ "x$X" == "xY" ]; then<br>
  <br>
cd /usr/local/src/
  <br>
wget <a moz-do-not-send="true"
 href="http://nchc.dl.sourceforge.net/sourceforge/dialup-admin/dialup_admin-1.62.tar.gz"
 target="_blank">http://nchc.dl.sourceforge.net/sourceforge/dialup-admin/dialup_admin-1.62.tar.gz</a><br>
  <br>
tar zxvf dialup_admin-
1.62.tar.gz<br>
mv dialup_admin /usr/local/radiusadmin<br>
  <br>
#vi /usr/local/apache2/conf/httpd.conf<br>
  <br>
#Alias /radius "/usr/local/radiusadmin/htdocs/"<br>
  <br>
#&lt;Directory "/usr/local/radiusadmin/htdocs"&gt;
  <br>
# &nbsp; &nbsp; &nbsp; &nbsp;AllowOverride None<br>
# &nbsp; &nbsp; &nbsp; &nbsp;Options None<br>
# &nbsp; &nbsp; &nbsp; &nbsp;Order allow,deny<br>
# &nbsp; &nbsp; &nbsp; &nbsp;Allow from all<br>
#&lt;/Directory&gt;<br>
  <br>
#cd /usr/local/radiusadmin/sql<br>
# &nbsp; import all sql queries to radius database
  <br>
#cd /usr/local/radiusadmin/conf<br>
# &nbsp; modify config files</div>
  <br>
  <br>
**********************<br>
  <br>
  <br>
  <div class="gmail_quote">On Dec 10, 2007 9:15 PM, ram &lt;<a
 moz-do-not-send="true" href="mailto:talk2ram@gmail.com">talk2ram@gmail.com
  </a>&gt; wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
    <br>
    <div class="gmail_quote">
    <div class="Ih2E3d">On Dec 10, 2007 11:02 PM, Jai Rangi &lt;<a
 moz-do-not-send="true" href="mailto:jprangi@gmail.com" target="_blank">jprangi@gmail.com</a>&gt;
wrote:<br>
    <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">Preparing
Kickstart file is a good idea. <br>
How about running a post installation script in the kickstart file. We
have done this a lots on time in FC*. The process should be something
like this,
      <br>
1. Build a default kickstart file that will install all the required
packages for all the ser components. <br>
2. The kickstart file have an option to run a post installation script.
      <br>
3. Now we need to have one zip file of all the components we want to
install related to ser. (ser, werbwer, sems, sipp, sppsak etc). That
file can be placed either on the CDs or can be downloaded from
somewhere. All the components can be packaged in the one zip file of
they can be downloaded separately. <br>
4. The script can be interactive. </blockquote>
    <div>&nbsp;</div>
    <div>&nbsp;</div>
    </div>
    <div>yes that will be the idea, for the CD install</div>
    <div>&nbsp;</div>
    <div>after install of OS, we can run post install script to compile
rest all required for </div>
    <div>SER ( or compile already for the same OS Distro and move them
directly to the respective Directory)</div>
    <div class="Ih2E3d">
    <div>&nbsp;</div>
    <div>&nbsp;</div>
    <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"><span></span><br>
      <br>
BTW I have a small postinstallation shell script like that, and I can
share that. <br>
    </blockquote>
    <div>&nbsp;</div>
    </div>
    <div>post to group, may be if require people may use.</div>
    <font color="#888888">
    <div>&nbsp;</div>
    <div>ram</div>
    </font>
    <div>
    <div class="Wj3C7c">
    <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"><font
 color="#888888"><span></span><br>
      <br>
-Jai</font>
      <div>
      <div><br>
      <br>
      <br>
      <div class="gmail_quote">On Dec 10, 2007 3:42 AM, SIP &lt;<a
 moz-do-not-send="true" href="mailto:sip@arcdiv.com" target="_blank">
sip@arcdiv.com</a>&gt; wrote:<br>
      <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
        <div>
        <div>Greger V. Teigre wrote: <br>
&gt; [removed sems, semsdev, and serdev from cc]<br>
&gt;<br>
&gt;<br>
&gt; SIP wrote:<br>
&gt;&gt; Something I noted about the project. &nbsp;While I am all for a
virtual image<br>
&gt;&gt; for testing purposes and getting things up and running while
we're <br>
&gt;&gt; creating this project, I think the ultimate goal should be
something<br>
&gt;&gt; like an ISO that's ready to go on a server. There are many of
us in the<br>
&gt;&gt; systems world who have not bought into the whole
virtualisation <br>
&gt;&gt; marketing gimmick when it comes to system deployment, and for
the casual<br>
&gt;&gt; home user who's less comfortable with using VMs for an actual
production<br>
&gt;&gt; system (which is, to be honest, a lot of people), it might be
easier in <br>
&gt;&gt; the long term to get everything the way we want it and then
make an ISO<br>
&gt;&gt; that's ready to drop onto whatever machine with all the
components we need.<br>
&gt;&gt;<br>
&gt; Ok. When you say "ISO that's ready to drop onto", do you have a <br>
&gt; particular procedure in mind?<br>
&gt;<br>
&gt; g-)<br>
        <br>
        </div>
        </div>
Something like taking a kickstart file and making an installable livecd<br>
from it (something similar to the LiveCD berlios project). I don't KNOW
        <br>
of one that works to create installable ISOs in CentOS, but I'm sure<br>
there must be... somewhere... maybe....?<br>
        <div>
        <div><br>
N.<br>
_______________________________________________<br>
Serusers mailing list<br>
        <a moz-do-not-send="true" href="mailto:Serusers@lists.iptel.org"
 target="_blank">Serusers@lists.iptel.org</a><br>
        <a moz-do-not-send="true"
 href="http://lists.iptel.org/mailman/listinfo/serusers" target="_blank">http://lists.iptel.org/mailman/listinfo/serusers
        </a><br>
        </div>
        </div>
      </blockquote>
      </div>
      <br>
      </div>
      </div>
      <br>
_______________________________________________<br>
Serusers mailing list<br>
      <a moz-do-not-send="true" href="mailto:Serusers@lists.iptel.org"
 target="_blank">Serusers@lists.iptel.org</a><br>
      <a moz-do-not-send="true"
 href="http://lists.iptel.org/mailman/listinfo/serusers" target="_blank">http://lists.iptel.org/mailman/listinfo/serusers</a><br>
      <br>
    </blockquote>
    </div>
    </div>
    </div>
    <br>
  </blockquote>
  </div>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Serusers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a>
<a class="moz-txt-link-freetext" href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a>
  </pre>
</blockquote>
</body>
</html>