<div dir="ltr">Rowan,<div><br></div><div>Plugging away at your autoinstall script. Most of it is tweaking the conf.sh file.</div><div><br></div><div>I have found that it would be useful to include at least in the documentation of all the package dependencies the script requires.</div>
<div><br></div><div>I started with ubuntu-12.10-server-i386.iso and added openssh, lamp, and mail packages.</div><div><br></div><div><div> 1 vi /etc/locale.gen</div><div> 2 locale-gen</div><div> 3 vim /etc/locale.alias</div>
<div> 4 aptitude update</div><div> 5 cd /usr/local/</div><div> 6 apt-get install git</div><div> 7 vim /etc/hosts</div><div> 8 git <a href="https://github.com/rowanthorpe/ixp-autoinstall.git">https://github.com/rowanthorpe/ixp-autoinstall.git</a> autoinstall</div>
<div> 9 git</div><div> 10 apt-get install memcached</div><div> 11 apt-get install subversion</div><div> 12 apt-get install php5-memcache</div><div> 13 apt-get install php5-snmp</div><div> 14 apt-get install php-apc</div>
<div> 15 git clone <a href="https://github.com/rowanthorpe/ixp-autoinstall.git">https://github.com/rowanthorpe/ixp-autoinstall.git</a> autoinstall</div><div> 16 cd autoinstall/</div><div> 17 ls</div><div> 18 vim ixp-autoinstall_conf.sh.dist</div>
<div> 19 ls</div><div> 20 ./ixp-autoinstall.sh</div><div> 21 cp ixp-autoinstall_conf.sh.dist ixp-autoinstall_conf.sh</div><div> 22 ./ixp-autoinstall.sh</div></div><div><br></div><div>Found pear was missing</div>
<div><br></div><div><div> 26 pear channel-discover <a href="http://pear.symfony.com">pear.symfony.com</a></div><div> 27 apt-get install php-pear</div><div> 28 pear channel-discover <a href="http://pear.symfony.com">pear.symfony.com</a></div>
<div> 29 pear channel-discover <a href="http://pear.doctrine-project.org">pear.doctrine-project.org</a></div><div> 30 pear install doctrine/DoctrineORM</div><div> 31 ls</div><div> 32 cd ..</div><div> 33 ls</div>
<div> 34 cd ..</div><div> 35 ls</div><div> 36 updatedb</div><div> 37 locate ixp</div><div> 38 cd /usr/share/php/Doctrine</div><div> 39 ln -s ../Symfony</div><div> 40 ./ixp-autoinstall.sh</div><div> 41 cd /usr/local/autoinstall/</div>
<div> 42 ./ixp-autoinstall.sh</div><div> 43 rm -rf /opt/ixpmanager</div></div><div><br></div><div>Found 43 very useful</div><div>Then found I needed to flip a switch in the install.sh for mysql passwords.</div><div>
<br></div><div>Then found 55 very useful</div><div><br></div><div><div> 55 mysqladmin -u root -p drop ixp</div></div><div><br></div><div>Discovered MRTG not installed.</div><div><br></div><div><div> 68 apt-get install libconfig-general-perl libnetaddr-ip-perl mrtg</div>
<div> 69 mkdir -p /srv/mrtg</div><div> 70 mkdir -p /srv/mrtg/members</div></div><div><br></div><div><br></div><div>Currently I am still on MRTG with this error.</div><div><br></div><div><div>ixp-autoinstall.sh: setting up mrtg</div>
<div>sed: can't read /etc/mrtg-rrd.conf: No such file or directory</div></div><div><br></div><div>I haven't been able to determine where in the recipe this file gets built.</div><div><br></div><div>How is my recipe differing from yours?</div>
<div><br></div><div>Thanks,</div><div>Brian</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><strong style="font-family:'Lucida Grande',Verdana,Arial,sans-serif;font-size:12px;line-height:16px;color:rgb(136,136,136)">Brian Thompson</strong><br>
<span style="color:rgb(0,102,51);font-family:'Lucida Grande',Verdana,Arial,sans-serif;font-size:12px;line-height:16px">Senior Infrastructure Engineer // Senior Second Guesser</span><br><font color="#666666" face="Lucida Grande, Verdana, Arial, sans-serif"><span style="font-size:12px;line-height:15px"><br>
</span></font><span style="color:rgb(102,102,102);font-family:'Lucida Grande',Verdana,Arial,sans-serif;font-size:12px;line-height:16px">Direct: </span><a value="+15039436742" style="font-family:'Lucida Grande',Verdana,Arial,sans-serif;font-size:12px;line-height:16px;color:rgb(17,85,204)">503.943.6779</a><br>
<span style="color:rgb(102,102,102);font-family:'Lucida Grande',Verdana,Arial,sans-serif;font-size:12px;line-height:16px">Mobile: </span><a value="+15033196955" style="font-family:'Lucida Grande',Verdana,Arial,sans-serif;font-size:12px;line-height:16px;color:rgb(17,85,204)">503.707.9018</a><span style="color:rgb(102,102,102);font-family:'Lucida Grande',Verdana,Arial,sans-serif;font-size:12px;line-height:16px"> // Twitter: iovation</span><br>
<strong style="color:rgb(0,102,51);font-family:'Lucida Grande',Verdana,Arial,sans-serif;font-size:12px;line-height:16px"><a href="http://www.iovation.com/" title="Visit iovation.com" style="color:rgb(0,102,51);text-decoration:none;border-bottom-width:0px;border-bottom-style:initial;border-bottom-color:initial" target="_blank">www.iovation.com</a></strong><br>
<font color="#006633" face="Lucida Grande, Verdana, Arial, sans-serif"><span style="font-size:12px;line-height:15px"><br></span></font><span><font color="#888888"><div><font color="#006633" face="'Lucida Grande', Verdana, Arial, sans-serif"><span style="font-size:12px;line-height:16px"><img src="http://www.iovation.com/images/signature/eml_sig_mobilefraud.gif"></span></font></div>
</font></span></div>
<br><br><div class="gmail_quote">On Fri, Oct 11, 2013 at 2:09 PM, Brian Thompson <span dir="ltr"><<a href="mailto:brian.thompson@iovation.com" target="_blank">brian.thompson@iovation.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I may play with it on a third machine, although this is where things go sideways, I am not a programer or developer.<div><br></div><div>Setting variables is one thing, Understanding the whole script might be another.</div>
<div><br></div><div>Thanks, I will give it a try.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Brian</div></font></span></div><div class="gmail_extra"><div class="im"><br clear="all"><div><strong style="font-family:'Lucida Grande',Verdana,Arial,sans-serif;font-size:12px;line-height:16px;color:rgb(136,136,136)">Brian Thompson</strong><br>
<span style="color:rgb(0,102,51);font-family:'Lucida Grande',Verdana,Arial,sans-serif;font-size:12px;line-height:16px">Senior Infrastructure Engineer // Senior Second Guesser</span><br><font color="#666666" face="Lucida Grande, Verdana, Arial, sans-serif"><span style="font-size:12px;line-height:15px"><br>
</span></font><span style="color:rgb(102,102,102);font-family:'Lucida Grande',Verdana,Arial,sans-serif;font-size:12px;line-height:16px">Direct: </span><a value="+15039436742" style="font-family:'Lucida Grande',Verdana,Arial,sans-serif;font-size:12px;line-height:16px;color:rgb(17,85,204)">503.943.6779</a><br>
<span style="color:rgb(102,102,102);font-family:'Lucida Grande',Verdana,Arial,sans-serif;font-size:12px;line-height:16px">Mobile: </span><a value="+15033196955" style="font-family:'Lucida Grande',Verdana,Arial,sans-serif;font-size:12px;line-height:16px;color:rgb(17,85,204)">503.707.9018</a><span style="color:rgb(102,102,102);font-family:'Lucida Grande',Verdana,Arial,sans-serif;font-size:12px;line-height:16px"> // Twitter: iovation</span><br>
<strong style="color:rgb(0,102,51);font-family:'Lucida Grande',Verdana,Arial,sans-serif;font-size:12px;line-height:16px"><a href="http://www.iovation.com/" title="Visit iovation.com" style="color:rgb(0,102,51);text-decoration:none;border-bottom-width:0px;border-bottom-style:initial;border-bottom-color:initial" target="_blank">www.iovation.com</a></strong><br>
<font color="#006633" face="Lucida Grande, Verdana, Arial, sans-serif"><span style="font-size:12px;line-height:15px"><br></span></font><span><font color="#888888"><div><font color="#006633" face="'Lucida Grande', Verdana, Arial, sans-serif"><span style="font-size:12px;line-height:16px"><img src="http://www.iovation.com/images/signature/eml_sig_mobilefraud.gif"></span></font></div>
</font></span></div>
<br><br></div><div><div class="h5"><div class="gmail_quote">On Fri, Oct 11, 2013 at 1:39 PM, Rowan Thorpe <span dir="ltr"><<a href="mailto:rowan@rowanthorpe.com" target="_blank">rowan@rowanthorpe.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>> I should be able to download and install IXP Manager and required<br>
> libraries create database<br>
><br>
> copy application.ini .htaccess, ixpmanager.conf and dump and restore<br>
> mysql from old server.<br>
><br>
> is this correct?<br>
<br>
</div>As a point of reference (even if you don't actually use it directly,<br>
but just peruse its sequence) you might find this "autoinstall" script<br>
I created useful <a href="https://github.com/rowanthorpe/ixp-autoinstall" target="_blank">https://github.com/rowanthorpe/ixp-autoinstall</a><br>
<br>
It is portable POSIX shell. If you do actually try to use it, then<br>
*do* read the comments/warnings at the top of the script, and note that<br>
it will need tweaking in order to fulfil anything other than the<br>
limited requirements I had (presently tested for single IXP, on single<br>
server, on Debian GNU/Linux, etc). Also, I only checked it against<br>
whatever is the version of IXP-Manager stated in those comments. I made<br>
efforts to make it as forward-compatible as possible, but that won't<br>
stretch very far. I recommend not actually running the script without<br>
reading it and understanding what it does first (unless you're<br>
installing to a bare/backed-up offline server).<br>
<br>
In its present state it is probably much more useful as a visual<br>
reference than for direct use by anyone with different requirements<br>
from mine, and in that regard it shows that there are quite a few extra<br>
steps for bringing IXP-Manager up to a functional state (even if<br>
reinstalling a running system - that is what I had to do and why I<br>
wrote this script). In fact the main reason I uploaded it was that I<br>
think it could be a useful reference for devs to glance at to keep<br>
track of how much more of the install process needs to be internally<br>
automated to reach "one-click install" state. As IXP-M's install<br>
functionality advances that script should be able to shrink...<br>
<br>
HTH<br>
<br>
--<br>
Rowan Thorpe<br>
mailto:<a href="mailto:rowan@rowanthorpe.com" target="_blank">rowan@rowanthorpe.com</a><br>
PGP fingerprint:<br>
BB0A 0787 C0EE BDD8 7F97 3D30 49F2 13A5 265D CCBD<br>
----<br>
"There is a great difference between worry and concern. A worried<br>
person sees a problem, and a concerned person solves a problem."<br>
- Harold Stephens<br>
_______________________________________________<br>
INEX IXP Manager mailing list<br>
<a href="mailto:ixpmanager@inex.ie" target="_blank">ixpmanager@inex.ie</a><br>
<a href="https://www.inex.ie/mailman/listinfo/ixpmanager" target="_blank">https://www.inex.ie/mailman/listinfo/ixpmanager</a><br>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>