<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Engineer Tim &#187; Linux</title>
	<atom:link href="http://engineertim.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://engineertim.com</link>
	<description>Engineers Blog</description>
	<lastBuildDate>Thu, 10 Jun 2010 16:53:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Kaltura CE install on CentOS 5.4</title>
		<link>http://engineertim.com/linux/kaltura-ce-install-on-centos-5-4/</link>
		<comments>http://engineertim.com/linux/kaltura-ce-install-on-centos-5-4/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 00:40:50 +0000</pubDate>
		<dc:creator>Engineer Tim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[streaming]]></category>
		<category><![CDATA[xen]]></category>
		<category><![CDATA[xenforge]]></category>
		<category><![CDATA[epel]]></category>
		<category><![CDATA[kaltura]]></category>
		<category><![CDATA[remi]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://engineertim.com/?p=162</guid>
		<description><![CDATA[



I wanted to share this info on how to install the KalturaCE media server on CentOS.  I saw that a lot of people were having issues getting it to work.  Follow along, it is pretty easy to do.  This should be a cut and paste article.  I did this install in [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-2722578695771488";
/* Engineertim 200x90 */
google_ad_slot = "4567243520";
google_ad_width = 200;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>I wanted to share this info on how to install the <a href="http://www.kaltura.org/">KalturaCE</a> media server on CentOS.  I saw that a lot of people were having issues getting it to work.  Follow along, it is pretty easy to do.  This should be a cut and paste article.  I did this install in Xen with 32bit.  I have not tried this in a 64bit environment yet.  It should work the same, except the part where you have to get some php rpms below. </p>
<p>Ensure that your system is currently up to date.</p>
<p>I like always do my installing from /home/install/  Feel free to choose any directory you want to store your software in.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mkdir -p /home/install/rpms/<br />
cd /home/install/rpms/</div></div>
<p>We need to install the EPEL and rem repos.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm<br />
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm<br />
rpm -Uvh *.rpm</div></div>
<p>Now we need to install some needed software, we also enable the remi repo.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">yum install memcached httpd mysql mysql-server gmp libedit t1lib sqlite2 libXpm libXmu libXaw --enablerepo=remi</div></div>
<p>We need to grab the older php-5.2.10 rpms from remi with wget.  These are the i386 rpms.  The path for x86_64 is going to be different.  This path might work if you are wanting 64bit.</p>
<p><strong>http://rpms.famillecollet.com/enterprise/5/olds/x86_64/</strong></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-5.2.10-1.el5.remi.i386.rpm<br />
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-cli-5.2.10-1.el5.remi.i386.rpm<br />
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-common-5.2.10-1.el5.remi.i386.rpm<br />
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-gd-5.2.10-1.el5.remi.i386.rpm<br />
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-mysql-5.2.10-1.el5.remi.i386.rpm<br />
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-pdo-5.2.10-1.el5.remi.i386.rpm <br />
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-pecl-memcache-3.0.4-1.el5.remi.i386.rpm<br />
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-pecl-memcached-0.2.0-1.el5.remi.i386.rpm</div></div>
<p>Now we need to install the rpms we just grabbed.  Don&#8217;t install the php-pecl-memcache* ones yet.  These will be done at a later step.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">rpm -ivh php-5.2.10-1.el5.remi.i386.rpm php-cli-5.2.10-1.el5.remi.i386.rpm php-common-5.2.10-1.el5.remi.i386.rpm php-gd-5.2.10-1.el5.remi.i386.rpm php-mysql-5.2.10-1.el5.remi.i386.rpm php-pdo-5.2.10-1.el5.remi.i386.rpm</div></div>
<p>We need to install some more pre-reqs for memcache stuff.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">yum install php-pear libmemcached --enablerepo=remi</div></div>
<p>Now we get to install the last 2 rpms for php-pecl-memcache</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">rpm -ivh php-pecl-memcache*</div></div>
<p>Need to double check that short_open_tag is enabled for PHP.  This is done in the /etc/php.ini</p>
<p>short_open_tag = On</p>
<p>Edit /etc/httpd/con/httpd.conf</p>
<p>Find AllowOverride for the directory /var/www/html/<br />
Change it from<br />
AllowOverride None<br />
to<br />
AllowOverride All</p>
<p>Now lets start up the services.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">service memcached start<br />
service mysqld start<br />
service httpd start</div></div>
<p>Now comes the MySQL stuff.  We need to setup the database we want to use for kaltura.  You can change the following two lines to match what you want to use.  I use kaltura as the database and the name, and katura123 as the password.  Again, these can be set to whatever you want to use.  These will need to be known when you go into the kalturaCE installer.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">echo &quot;create database kaltura;&quot; | mysql</div></div>
<p>It is recommended that you create a user for the kaltura database.  Below is a simple create, please adjust to your liking.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">echo &quot;grant all privileges on kaltura.* to kaltura@&quot;localhost&quot; identified by 'kaltura123';&quot; &nbsp;| mysql</div></div>
<p>Now we need to get the current kalturaCE code.  The URL below will more than likely change, so make sure to goto the <a href="http://www.kaltura.org/downloads">kaltura</a> download site and copy the most current download URL.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;wget http://www.kaltura.org/sites/default/files/releases/kalturaCE_v1.5_linux386.tgz</div></div>
<p>Now we need to uncompress it and put it in the /var/www/html/ folder.  The -C tells tar to uncompress into that folder.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">tar -zxvf kalturaCE_v1.5_linux386.tgz -C /var/www/html/</div></div>
<p>Now open a browser and point it to </p>
<p>http://IP_OF_YOUR_SERVER/kalturaCE/install/</p>
<p>Where IP_OF_YOUR_SERVER is the actual IP address of your kalturaCE server.</p>
<p>Click begin installation</p>
<p>Should be all green check boxes.</p>
<p>Click on Continue</p>
<p>Database connections.<br />
You will need to have the database, database user, and password.  You should know this from a previous step.</p>
<p>Click Save and Continue.</p>
<p>Set the server url, if it is not already done so.</p>
<p>Set the Administrator Account with the info it asks for as well as email…</p>
<p>You should be done.</p>
<p>You can then goto</p>
<p>http://IP_OF_YOUR_SERVER/kalturaCE</p>
<p>You can get to the management interface using,</p>
<p>http://IP_OF_YOUR_SERVER/kalturaCE/index.php/kmc</p>
<p>Start adding your own media.  <img src='http://engineertim.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If there is enough interest in this, I can put up a Xen image on XenForge.org.  I would also be willing to create a distribution that would install everything, again if enough interest is shown.</p>
<p>****update to libmemcached issue*****<br />
If you get this<br />
error: Failed dependencies:<br />
libmemcached.so.2()(64bit) is needed by php-pecl-memcached-0.2.0-1.el5.remi.x86_64<br />
libmemcached.so.2(libmemcached_2)(64bit) is needed by php-pecl-memcached-0.2.0-1.el5.remi.x86_64</p>
<p>or this<br />
error: Failed dependencies:<br />
       libmemcached.so.2 is needed by php-pecl-memcached-0.2.0-1.el5.remi.i386<br />
       libmemcached.so.2(libmemcached_2) is needed by php-pecl-memcached-0.2.0-1.el5.remi.i386</p>
<p>For those of you having issues finding the libmemcached rpm, I think I found them. Damn remi removing rpms!! Try this link to a mirror of his rpms.<br />
32-bit<br />
wget http://cobbler.int-evry.fr/cblr/repo_mirror/el5-i386-remi/libmemcached-0.31-1.el5.remi.i386.rpm<br />
file location http://cobbler.int-evry.fr/cblr/repo_mirror/el5-i386-remi/</p>
<p>64-bit<br />
wget http://cobbler.int-evry.fr/cblr/repo_mirror/el5-x86_64-remi/libmemcached-0.31-1.el5.remi.x86_64.rpm<br />
file location http://cobbler.int-evry.fr/cblr/repo_mirror/el5-x86_64-remi/</p>
<p>Hopefully this helps!!<br />
Thank you,<br />
Engineer Tim</p>
]]></content:encoded>
			<wfw:commentRss>http://engineertim.com/linux/kaltura-ce-install-on-centos-5-4/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>asterisk bfd (brute force detection) rules for sip and iax</title>
		<link>http://engineertim.com/linux/asterisk-bfd-brute-force-detection-rules-for-sip-and-iax/</link>
		<comments>http://engineertim.com/linux/asterisk-bfd-brute-force-detection-rules-for-sip-and-iax/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 23:44:54 +0000</pubDate>
		<dc:creator>Engineer Tim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apf / bfd]]></category>
		<category><![CDATA[iptables]]></category>

		<guid isPermaLink="false">http://engineertim.com/?p=114</guid>
		<description><![CDATA[



Thank you to a couple users who pointed out that my bfd rules were a little less than perfect.  They worked great for me on a older version of bfd, but I believe a update to the bfd application caused them to stop working.  Either way, new rules have been created.
This one is [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-2722578695771488";
/* Engineertim 200x90 */
google_ad_slot = "4567243520";
google_ad_width = 200;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Thank you to a couple users who pointed out that my bfd rules were a little less than perfect.  They worked great for me on a older version of bfd, but I believe a update to the bfd application caused them to stop working.  Either way, new rules have been created.</p>
<p>This one is for SIP wrong passwords.  Save this as asterisksip</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># failed logins from a single address before ban<br />
# uncomment to override conf.bfd trig value<br />
TRIG=&quot;5&quot;<br />
<br />
# file must exist for rule to be active<br />
REQ=&quot;/usr/sbin/asterisk&quot;<br />
<br />
if [ -f &quot;$REQ&quot; ]<br />
then<br />
LP=&quot;/var/log/asterisk/full&quot;<br />
TLOG_TF=&quot;asterisk.sip&quot;<br />
TMP=&quot;/usr/local/bfd/tmp&quot;<br />
<br />
## ASTERISK: SIP wrong password<br />
ARG_VAL=`$TLOG_PATH $LP $TLOG_TF | grep -i &quot;wrong password&quot; | grep chan_sip | awk '{NF=NF-3} {print $NF}'| tr -d '\'\' `<br />
fi</div></div>
<p>This rule is for wrong or non existent extension.  Save this as asterisksip2</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># failed logins from a single address before ban<br />
# uncomment to override conf.bfd trig value<br />
TRIG=&quot;5&quot;<br />
<br />
# file must exist for rule to be active<br />
REQ=&quot;/usr/sbin/asterisk&quot;<br />
<br />
if [ -f &quot;$REQ&quot; ]<br />
then<br />
LP=&quot;/var/log/asterisk/full&quot;<br />
TLOG_TF=&quot;asterisk.sip2&quot;<br />
TMP=&quot;/usr/local/bfd/tmp&quot;<br />
<br />
## ASTERISK: SIP no extension<br />
ARG_VAL=`$TLOG_PATH $LP $TLOG_TF | grep -i &quot;No matching peer found&quot; | grep chan_sip | awk '{NF=NF-5} {print $NF}'| tr -d '\'\' `<br />
fi</div></div>
<p>This rule is for IAX.  Save this as asteriskiax.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># failed logins from a single address before ban<br />
# uncomment to override conf.bfd trig value<br />
<br />
TRIG=&quot;5&quot;<br />
# file must exist for rule to be active<br />
REQ=&quot;/usr/sbin/asterisk&quot;<br />
<br />
<br />
if [ -f &quot;$REQ&quot; ]<br />
then<br />
LP=&quot;/var/log/asterisk/full&quot;<br />
TLOG_TF=&quot;asterisk.iax&quot;<br />
TMP=&quot;/usr/local/bfd/tmp&quot;<br />
<br />
## ASTERISK: IAX2 auth failed<br />
<br />
ARG_VAL=`$TLOG_PATH $LP $TLOG_TF | grep -i &quot;failed MD5 authentication&quot; | grep chan_iax2 | awk '{NF=NF-8} {print $NF}'`<br />
fi</div></div>
<p>Special thanks goes to Ioan Indreias and Gonzalo Gonzalez.<br />
If it looks like the code is missing, try to highlight it all and copy/paste it into a text document.  Hopefully this will show the entire rule without issue.<br />
Make sure these rules are stored in /usr/local/bfd/rules/ Then rerun bfd with bfd -q and see if the new rules are in place by checking for the files in /usr/local/bfd/tmp/ .</p>
<p>Thank you,<br />
Engineer Tim</p>
]]></content:encoded>
			<wfw:commentRss>http://engineertim.com/linux/asterisk-bfd-brute-force-detection-rules-for-sip-and-iax/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>XenForge.org is online, come and get them!!</title>
		<link>http://engineertim.com/linux/xenforge-org-is-online-come-and-get-them/</link>
		<comments>http://engineertim.com/linux/xenforge-org-is-online-come-and-get-them/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 22:20:34 +0000</pubDate>
		<dc:creator>Engineer Tim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[trixbox]]></category>
		<category><![CDATA[xen]]></category>
		<category><![CDATA[xenforge]]></category>

		<guid isPermaLink="false">http://engineertim.com/?p=109</guid>
		<description><![CDATA[I had so many requests for my trixbox Xen image that I decided to create a new site.  XenForge.org is this site.  My hope is that people will be able to share their own Xen images with other users as well as use the ones that I create.  This site is also [...]]]></description>
			<content:encoded><![CDATA[<p>I had so many requests for my trixbox Xen image that I decided to create a new site.  <a href="http://xenforge.org">XenForge.org</a> is this site.  My hope is that people will be able to share their own Xen images with other users as well as use the ones that I create.  This site is also not just limited to Xen based images but all images that can be portable and use some form of virtualization technology will be welcome.  The only criteria is that no copyright violations or sharing of copyrighted material happens.  This means OpenSource and derivatives only.  </p>
<p>Currently XenForge offers the following.<br />
Xen Image downloads via Bittorrent links.<br />
The ability to add your own torrent file to the site for others to download.<br />
Forums to discuss the Xen images and config options.  </p>
<p>We hope to be able to offer the means to post torrent files directly to our torrent server from a user.  This is something that is currently being looked at.  Right now users can submit a image for approval and we will be happy to generate the torrent and seed it directly.  This is a manual process right now.</p>
<p>Feel free to join us on XenForge if you have the need for some Xen images.</p>
<p>Thank you,<br />
Engineer Tim</p>
]]></content:encoded>
			<wfw:commentRss>http://engineertim.com/linux/xenforge-org-is-online-come-and-get-them/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>trixbox 2.8 Xen fix/install</title>
		<link>http://engineertim.com/linux/trixbox-2-8-xen-fixinstall/</link>
		<comments>http://engineertim.com/linux/trixbox-2-8-xen-fixinstall/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 23:24:04 +0000</pubDate>
		<dc:creator>Engineer Tim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[trixbox]]></category>

		<guid isPermaLink="false">http://engineertim.com/?p=98</guid>
		<description><![CDATA[



For this to work, you need to have the install media for CentOS, I use the  CentOS 5.3 i386 DVD.  You should also have a read the trixbox-xen.pdf on this site.
CentOS specific stuff we need to do.
mount -oloop CentOS-5.3-i386-bin-DVD.iso /var/www/html/centos
make sure this is browsable in a web browser.  You will need to [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-2722578695771488";
/* Engineertim 200x90 */
google_ad_slot = "4567243520";
google_ad_width = 200;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>For this to work, you need to have the install media for CentOS, I use the  CentOS 5.3 i386 DVD.  You should also have a read the trixbox-xen.pdf on this site.</p>
<p><strong>CentOS specific stuff we need to do.</strong></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mount -oloop CentOS-5.3-i386-bin-DVD.iso /var/www/html/centos</div></div>
<p>make sure this is browsable in a web browser.  You will need to be able to serve the installer these files.</p>
<p>We need to copy off the vmliuz and initrd.img from the images/xen folder for our use during the install.  I like to serve all of my xen specific stuff from a nfs mount so that I can access these files from different xen servers without issues.  How you do it is up to you.  These files MUST be accessible by the computer that is going to boot the Xen DomU for trixbox28.  For ease of following this doc, I will user /srv/xen/trixbox28 as my directory for these files.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mkdir /srv/xen/trixbox28<br />
cd /var/www/html/centos/images/xen<br />
cp initrd.img vmlinuz /srv/xen/trixbox28/</div></div>
<p><strong>Trixbox Specific Repo Setup.</strong></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mkdir /var/www/html/trixbox</div></div>
<p>We have to create a trixbox folder to serve the rpms from for the installer.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mkdir /mnt/iso<br />
mount -oloop trixbox-2.8.0.iso /mnt/iso</div></div>
<p>We need to mount the trixbox-2.8.0 iso so we can get the rpms and the comps.xml file off.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cd /mnt/iso/trixbox<br />
cp *.rpm /var/www/html/trixbox/</div></div>
<p>Now we need to grab the comps.xml file for making the trixbox repo on our web server.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cd /mnt/iso/repodata<br />
cp comps.xml /var/www/html/trixbox/<br />
cd /var/www/html/trixbox/</div></div>
<p>We need to add a couple of rpms to our new trixbox repo for xen.  This will ensure the xen kernel and dahdi kmod files will work right out of the box. Make sure you are in /var/www/html/trixbox when doing the wget.  Please also make sure to use your closest mirror by going to http://www.centos.org/modules/tinycontent/index.php?id=30</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">wget http://mirror.nic.uoregon.edu/centos/5.3/updates/i386/RPMS/kernel-xen-2.6.18-128.1.10.el5.i686.rpm</div></div>
<p>We also need the kmod-dahdi from the trixbox repo.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">wget http://yum.trixbox.org/trixbox/2.8/test/kmod-dahdi-linux-xen-2.2.0-4_trixbox.2.6.18_128.1.10.el5.i686.rpm</div></div>
<p>Now lets create our repo for our installer.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">createrepo -g ./comps.xml ./</div></div>
<p>if the createrepo is not found, install it with yum and try again.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">yum -y createrepo</div></div>
<p>Now we create our install file. I call mine trixbox28.install, the contents are listed below.  Yours may differ. Of particular note is the kernel, ramdisk, and ks=http://192.168.1.216/trixbox.ks lines.  The file trixbox.ks is our kickstart file, which we will have to make changes to from my original one in my xen guide.</p>
<p>kernel = &#8220;/srv/xen/trixbox28/vmlinuz&#8221;<br />
ramdisk = &#8220;/srv/xen/trixbox28/initrd.img&#8221;<br />
extra = &#8220;text ks=http://192.168.1.216/trixbox.ks&#8221;<br />
name = &#8220;trixbox&#8221;<br />
memory = &#8220;512&#8243;<br />
disk = [ 'tap:aio:/srv/xen/trixbox.img,xvda,w', ]<br />
vif = [ 'bridge=xenbr0', ]<br />
vcpus=1<br />
on_reboot = &#8216;destroy&#8217;<br />
on_crash = &#8216;destroy&#8217;</p>
<p>Save this file in /etc/xen/ </p>
<p>Now we need to edit the trixbox.ks file or ks.cfg from my trixbox-xen guide.  We need to change the first line for the url to now point to our centos install media.<br />
url &#8211;url http://192.168.1.216/centos<br />
please make sure to use the ip address for your web server that is serving the centos install media.</p>
<p>We also need to add one additional repo (trixbox) to the trixbox.ks file.  This is done with the repo line.  Add this just before the %packages statement in the trixbox.ks file.  Be sure to change the IP address and path to reflect the trixbox repo we created from above.  We also need to add the kmod-dahdi-linux-xen so it gets installed and not install the kmod-dahdi-linux package.</p>
<p>#Add the repo information<br />
repo &#8211;name=trixbox &#8211;baseurl=http://192.168.1.216/trixbox/<br />
%packages<br />
@Core<br />
@Trixboxcore<br />
kernel<br />
kernel-xen<br />
#add kmod-dahdi-linux-xen<br />
kmod-dahdi-linux-xen<br />
#remove the one for the other kernel so they don&#8217;t conflict possibly<br />
-kmod-dahdi-linux<br />
postfix<br />
-sendmail</p>
<p>Now save your trixbox.ks or ks.cfg file with these changes.</p>
<p>Now start the install process for trixbox28.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">xm create -c trixbox28.install</div></div>
<p>Your installer should start and ask you for your local as well as a password for root.</p>
<p>You may, more than likely, see a few error messages fly by when the installer starts going.  These are ok to ignore.</p>
<p>Once the install has finished it will shutdown and you will need to start it with your actual trixbox28 xen config.  Mine is listed below, again yours might differ.</p>
<p>name = &#8220;trixbox28&#8243;<br />
memory = &#8220;512&#8243;<br />
disk = [ 'tap:aio:/srv/xen/trixbox.img,xvda,w', ]<br />
vif = [ 'bridge=xenbr0', ]<br />
bootloader=&#8221;/usr/bin/pygrub&#8221;<br />
vcpus=1<br />
on_reboot = &#8216;restart&#8217;<br />
on_crash = &#8216;restart&#8217;</p>
<p>You should see no errors with dhadi,<br />
Starting dahdi:  Loading DAHDI hardware modules:<br />
  wct4xxp:  [  OK  ]<br />
  wcte12xp:  [  OK  ]<br />
  wct1xxp:  [  OK  ]<br />
  wcte11xp:  [  OK  ]<br />
  wctdm24xxp:  [  OK  ]<br />
  opvxa1200:  [  OK  ]<br />
  wcfxo:  [  OK  ]<br />
  wctdm:  [  OK  ]<br />
  wcb4xxp:  [  OK  ]<br />
  wctc4xxp:  [  OK  ]<br />
  xpp_usb:  [  OK  ]</p>
<p>No hardware timing source found in /proc/dahdi, loading dahdi_dummy<br />
Running dahdi_cfg:  [  OK  ]</p>
<p>Firstboot scripts will run and you should be good to go.<br />
Let me know any issues, questions or concerns either by email by posting a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://engineertim.com/linux/trixbox-2-8-xen-fixinstall/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Jungledisk S3 backup</title>
		<link>http://engineertim.com/linux/jungledisk-s3-backup/</link>
		<comments>http://engineertim.com/linux/jungledisk-s3-backup/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 18:29:00 +0000</pubDate>
		<dc:creator>Engineer Tim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[gizmos]]></category>

		<guid isPermaLink="false">http://engineertim.com/?p=90</guid>
		<description><![CDATA[Installing Jungledisk and getting it to work can be a royal pain.  Here are the steps I used to get it to work on CentOS 4 and 5.]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-2722578695771488";
/* Engineertim 200x90 */
google_ad_slot = "4567243520";
google_ad_width = 200;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Installing Jungledisk and getting it to work can be a royal pain.  Here are the steps I used to get it to work on CentOS 4 and 5.</p>
<p>I first installed Junglediskworkgroup on my Mac.  This allowed me to use the junglediskworkgroup-settings.xml file for my Linux setup.<br />
You can use the Windows version as well to get the needed *-settings.xml file for use in the Linux environment.<br />
Ensure that you copy this file to your Linux server for use.  I will not cover how this is done in this post.</p>
<p>I like to make build-&#8221;project&#8221; folders for stuff I am working on.  This keeps things clean and I have a master build directory for everything I work on.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mkdir build-jungledisk<br />
cd build-jungledisk</div></div>
<p>Now you need to grab the .tar.gz file for jungledisk.<br />
Grab it from <a href="https://www.jungledisk.com/workgroup/download.aspx">here</a><br />
I used wget and copied the url of the file I needed by right clicking and choosing &#8220;copy link&#8221;</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">wget http://downloads.jungledisk.com/jungledisk/junglediskworkgroup64-261a.tar.gz</div></div>
<p>Be sure to user your own url from the site as this url may or may not work.</p>
<p>Uncompress junglediskworkgroup64-261a.tar.gz .</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">tar -zxvf junglediskworkgroup64-261a.tar.gz</div></div>
<p>You should now have a junglediskworkgroup folder with the jungledisk command line application.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cd junglediskworkgroup</div></div>
<p>Now copy the junglediskworkgroup-settings.xml into this folder.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cp /path/to/junglediskworkgroup-settings.xml build-jungledisk/junglediskworkgroup/</div></div>
<p>Now you need to install dkms dkms-fuse and fuse from dag.wieers.com<br />
<a href="http://dag.wieers.com/rpm/packages/dkms/">dkms</a><br />
<a href="http://dag.wieers.com/rpm/packages/dkms-fuse/">dkms-fuse</a><br />
<a href="http://dag.wieers.com/rpm/packages/fuse/">fuse</a></p>
<p>Again, I used wget to get the rpm files.  I put them in build-jungledisk and then installed them with.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">rpm -ivh *.rpm</div></div>
<p>Once the rpms are installed you need to</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">modprobe fuse</div></div>
<p>and verify it is installed with</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">lsmod | grep fuse</div></div>
<p>Before I could start jungledisk, I had to edit the cacheDirectory path in the junglediskworkgroup-settings.xml.  I created a new path in /opt/</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mkdir -p /opt/jungledisk/cache/</div></div>
<p>Then I edited the junglediskworkgroup-settings.xml and replaced the cacheDirectory with this, which reflected the new path.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;cacheDirectory&gt;/opt/jungledisk/cache/&lt;/cacheDirectory&gt;</div></div>
<p>If things are right, you can now start jungledisk</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cd junglediskworkgroup<br />
./jungledisk /media/jungledisk -o config=/path/to/junglediskworkgroup-settings.xml</div></div>
<p>Make sure to use the proper and full path to junglediskworkgroup-settings.xml</p>
<p>You should now see the new mount on the system with</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">df -h<br />
jungledisk#jungledisk &nbsp; &nbsp;382G &nbsp; &nbsp; 0 &nbsp;382G &nbsp; 0% /media/jungledisk</div></div>
<p>If you have issues check /var/log/junglediskwg.log</p>
<p>Thank you,<br />
Engineer Tim</p>
]]></content:encoded>
			<wfw:commentRss>http://engineertim.com/linux/jungledisk-s3-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>trixbox Xen Install Guide</title>
		<link>http://engineertim.com/linux/trixbox-xen-install-guide/</link>
		<comments>http://engineertim.com/linux/trixbox-xen-install-guide/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 19:28:16 +0000</pubDate>
		<dc:creator>Engineer Tim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[trixbox]]></category>
		<category><![CDATA[DomU]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://engineertim.com/?p=33</guid>
		<description><![CDATA[I have put together a install guide for use with trixbox 2.6.2.1 and Xen.  This guide will walk you through installing trixbox in a Xen DomU.  I hope people find it useful.
Thank you,
Engineer Tim






Download trixbox-xen
]]></description>
			<content:encoded><![CDATA[<p>I have put together a install guide for use with trixbox 2.6.2.1 and Xen.  This guide will walk you through installing trixbox in a Xen DomU.  I hope people find it useful.</p>
<p>Thank you,<br />
Engineer Tim<br />
<br />
<script type="text/javascript"><!--
google_ad_client = "pub-2722578695771488";
/* Engineertim 200x90 */
google_ad_slot = "4567243520";
google_ad_width = 200;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
<br />
<a href='http://engineertim.com/wp-content/uploads/2009/02/trixbox-xen.pdf'>Download trixbox-xen</a></p>
]]></content:encoded>
			<wfw:commentRss>http://engineertim.com/linux/trixbox-xen-install-guide/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>BFD (Brute Force) rule for Asterisk</title>
		<link>http://engineertim.com/linux/bfd-brute-force-rule-for-asterisk/</link>
		<comments>http://engineertim.com/linux/bfd-brute-force-rule-for-asterisk/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 01:28:53 +0000</pubDate>
		<dc:creator>Engineer Tim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[trixbox]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://sporkme.com/engineertim.com/?p=16</guid>
		<description><![CDATA[I whipped up a BFD rule to try and defend against sip attacks.  This watches for failed logins in the /var/log/asterisk/full log and then blocks them.  I set the TRIG level low so you might need to change this to something you are more comfortable with.  
 
Drop this file in /usr/local/bfd/rules/
Name the file asterisk
 
 
# failed logins [...]]]></description>
			<content:encoded><![CDATA[<p class="Body">I whipped up a BFD rule to try and defend against sip attacks.  This watches for failed logins in the /var/log/asterisk/full log and then blocks them.  I set the TRIG level low so you might need to change this to something you are more comfortable with.  </p>
<p class="Body"> </p>
<p class="Body">Drop this file in /usr/local/bfd/rules/</p>
<p class="Body">Name the file asterisk</p>
<p class="Body"> </p>
<p class="Body"> </p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># failed logins from a single address before ban<br />
# uncomment to override conf.bfd trig value<br />
TRIG=&quot;5&quot;<br />
<br />
# file must exist for rule to be active<br />
REQ=&quot;/usr/sbin/asterisk&quot;<br />
<br />
if [ -f &quot;$REQ&quot; ]; then<br />
LP=&quot;/var/log/asterisk/full&quot;<br />
TLOG_TF=&quot;asterisk&quot;<br />
TMP=&quot;/usr/local/bfd/tmp&quot;<br />
<br />
## ASTERISK<br />
ARG_VAL=`$TLOG_PATH $LP $TLOG_TF |grep &quot;Wrong password&quot; /var/log/asterisk/full | awk '{NF=NF-3} { print $NF}'| tr -d '\'\' `<br />
fi</div></div>
]]></content:encoded>
			<wfw:commentRss>http://engineertim.com/linux/bfd-brute-force-rule-for-asterisk/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Rebuild Zaptel Script</title>
		<link>http://engineertim.com/linux/rebuild-zaptel-script/</link>
		<comments>http://engineertim.com/linux/rebuild-zaptel-script/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 01:27:42 +0000</pubDate>
		<dc:creator>Engineer Tim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[trixbox]]></category>
		<category><![CDATA[zaptel]]></category>

		<guid isPermaLink="false">http://sporkme.com/engineertim.com/?p=14</guid>
		<description><![CDATA[So you want to recompile zaptel on trixbox.  I have put together a script that might help.  I have used this on a few custom installs and it seems to work.  However, don’t kill me if it screws something up.  You will need to start zaptel and amportal once the script finishes.  I don’t do [...]]]></description>
			<content:encoded><![CDATA[<p>So you want to recompile zaptel on trixbox.  I have put together a script that might help.  I have used this on a few custom installs and it seems to work.  However, don’t kill me if it screws something up.  You will need to start zaptel and amportal once the script finishes.  I don’t do this for you since I like to watch for errors on startup.<br />
<a rel="attachment wp-att-26" href="http://engineertim.com/?attachment_id=26">rebuild-zaptel.sh.txt</a></p>
]]></content:encoded>
			<wfw:commentRss>http://engineertim.com/linux/rebuild-zaptel-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.292 seconds -->
