<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Andres Montalban</title><link>http://www.andresmontalban.com</link><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/AndresMontalban" /><description></description><language>en</language><lastBuildDate>Wed, 30 Nov 2011 07:31:15 PST</lastBuildDate><sy:updatePeriod xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">hourly</sy:updatePeriod><sy:updateFrequency xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">1</sy:updateFrequency><xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/AndresMontalban" /><feedburner:info uri="andresmontalban" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><title>A2Billing Auto Installer for CentOS 5 (i386 or x86_64)</title><link>http://feedproxy.google.com/~r/AndresMontalban/~3/hhJf_iZVmGI/</link><category>General</category><category>Howtos</category><category>a2billing</category><category>asterisk</category><category>automated</category><category>install</category><category>linux</category><category>script</category><category>voip</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andres Montalban</dc:creator><pubDate>Tue, 29 Nov 2011 12:01:44 PST</pubDate><guid isPermaLink="false">http://www.andresmontalban.com/?p=310</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/wTPVa-FRJ_BAp4YKOccfRrkIfM0/0/da"><img src="http://feedads.g.doubleclick.net/~a/wTPVa-FRJ_BAp4YKOccfRrkIfM0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/wTPVa-FRJ_BAp4YKOccfRrkIfM0/1/da"><img src="http://feedads.g.doubleclick.net/~a/wTPVa-FRJ_BAp4YKOccfRrkIfM0/1/di" border="0" ismap="true"></img></a></p><div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-top: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.andresmontalban.com%2Fa2billing-auto-installer-for-centos-5-i386-or-x86_64%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.andresmontalban.com%2Fa2billing-auto-installer-for-centos-5-i386-or-x86_64%2F&amp;source=andresmontalban&amp;style=normal&amp;service=bit.ly&amp;service_api=R_d1892de205dce585f612d7e87b77b33e&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Hi buds,</p>
<p>I am sharing a script that I have worked for a couple of days for my work in order to keep things easy and automated for me as I normally have to install some A2Billing boxes and it&#8217;s a quite long and tedius process. For more info here is the README:</p>
<blockquote><p>README</p>
<p>This script allows you to install A2Billing on a clean install of CentOS 5 (Either i386 or x86_64) just &#8216;Base&#8217; is required to install it.</p>
<p>Among other things the script does:</p>
<p>- Install &#038; Configure of LAMP (Requesting MySQL root &#038; a2billing password)<br />
- Install A2Billing<br />
- Configure it for production state<br />
- Compile from sources the Sangoma Wanpipe drivers if desired<br />
- Disable SELinux &#038; Firewall<br />
- Disable unused default services in CentOS 5<br />
- Install Asterisk from Digium repositories<br />
- Configure cronjobs, logs, etc</p>
<p>HOW TO INSTALL</p>
<p>Be sure to have the &#8216;screen&#8217; package installed, in order to do it you can run:</p>
<p>yum -y install screen</p>
<p>Then you have to execute the script on a screen session, to do this run:</p>
<p>screen</p>
<p>And then execute the script:</p>
<p>chmod +x a2billing_setup.sh<br />
./a2billing_setup.sh</p></blockquote>
<p>Source code available at: <a href="https://github.com/amontalban/A2Billing-Install-Script">https://github.com/amontalban/A2Billing-Install-Script</a></p>
<p>Thanks for checking it out!</p>
<img src="http://feeds.feedburner.com/~r/AndresMontalban/~4/hhJf_iZVmGI" height="1" width="1"/>]]></content:encoded><description>Hi buds, I am sharing a script that I have worked for a couple of days for my work in order to keep things easy and automated for me as I normally have to install some A2Billing boxes and it&amp;#8217;s a quite long and tedius process. For more info here is the README: README This [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.andresmontalban.com/a2billing-auto-installer-for-centos-5-i386-or-x86_64/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">19</slash:comments><feedburner:origLink>http://www.andresmontalban.com/a2billing-auto-installer-for-centos-5-i386-or-x86_64/</feedburner:origLink></item><item><title>Quick TIP (Remember to restart crond service after a timezone change)</title><link>http://feedproxy.google.com/~r/AndresMontalban/~3/7YJJIVh5LSQ/</link><category>Curiosities</category><category>Fail</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andres Montalban</dc:creator><pubDate>Mon, 03 Oct 2011 08:22:54 PDT</pubDate><guid isPermaLink="false">http://www.andresmontalban.com/?p=307</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/MmkIfW5JR2yDSytiJe2KbrZB0d0/0/da"><img src="http://feedads.g.doubleclick.net/~a/MmkIfW5JR2yDSytiJe2KbrZB0d0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/MmkIfW5JR2yDSytiJe2KbrZB0d0/1/da"><img src="http://feedads.g.doubleclick.net/~a/MmkIfW5JR2yDSytiJe2KbrZB0d0/1/di" border="0" ismap="true"></img></a></p><div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-top: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.andresmontalban.com%2Fquick-tip-remember-to-restart-crond-service-after-a-timezone-change%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.andresmontalban.com%2Fquick-tip-remember-to-restart-crond-service-after-a-timezone-change%2F&amp;source=andresmontalban&amp;style=normal&amp;service=bit.ly&amp;service_api=R_d1892de205dce585f612d7e87b77b33e&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Hi folks!</p>
<p>I learned this the hard way! I migrated a website from one server to another with crontabs, and the customer needed to have the scripts running on CEST timezone (While the server was on CST timezone), so I changed the timezone but the scripts were still running at CST timezone, some googling and I found out that the crond service doesn&#8217;t take the changes of the timezone if you don&#8217;t restart so remember:</p>
<p>For RHEL/CentOS:</p>
<p>service crond restart</p>
<p>For other Linux:</p>
<p>/etc/init.d/crond restart</p>
<p>Take care!</p>
<p>Cheers.</p>
<img src="http://feeds.feedburner.com/~r/AndresMontalban/~4/7YJJIVh5LSQ" height="1" width="1"/>]]></content:encoded><description>Hi folks! I learned this the hard way! I migrated a website from one server to another with crontabs, and the customer needed to have the scripts running on CEST timezone (While the server was on CST timezone), so I changed the timezone but the scripts were still running at CST timezone, some googling and [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.andresmontalban.com/quick-tip-remember-to-restart-crond-service-after-a-timezone-change/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://www.andresmontalban.com/quick-tip-remember-to-restart-crond-service-after-a-timezone-change/</feedburner:origLink></item><item><title>How to delete a huge amount of files at once on linux</title><link>http://feedproxy.google.com/~r/AndresMontalban/~3/DC0glKePFbM/</link><category>General</category><category>bash</category><category>linux</category><category>server</category><category>shell</category><category>Tricks</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andres Montalban</dc:creator><pubDate>Mon, 11 Jul 2011 13:53:24 PDT</pubDate><guid isPermaLink="false">http://www.andresmontalban.com/?p=291</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/4NPrCz_lOMfNu_lZ9pTF07wW-IA/0/da"><img src="http://feedads.g.doubleclick.net/~a/4NPrCz_lOMfNu_lZ9pTF07wW-IA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/4NPrCz_lOMfNu_lZ9pTF07wW-IA/1/da"><img src="http://feedads.g.doubleclick.net/~a/4NPrCz_lOMfNu_lZ9pTF07wW-IA/1/di" border="0" ismap="true"></img></a></p><div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-top: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.andresmontalban.com%2Fhow-to-delete-a-huge-amount-of-files-at-once-on-linux%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.andresmontalban.com%2Fhow-to-delete-a-huge-amount-of-files-at-once-on-linux%2F&amp;source=andresmontalban&amp;style=normal&amp;service=bit.ly&amp;service_api=R_d1892de205dce585f612d7e87b77b33e&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I was trying to delete a folder which tons of files and the rm command was giving me an error,<br />
luckly the almighty <a href="http://man.he.net/?topic=find&#038;section=all" title="Find man page" target="_blank">find</a> command did the job for me <img src='http://www.andresmontalban.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<blockquote><p><strong><code>-bash-3.2# ls -1 | wc -l<br />
54999</code></strong></p></blockquote>
<p><strong>Wow that&#8217;s a lot of files!</strong></p>
<blockquote><p><strong><code>-bash-3.2# rm *<br />
-bash: /bin/rm: Argument list too long</code></strong>
</p></blockquote>
<p><strong>Yikes! Let&#8217;s try the <a href="http://man.he.net/?topic=find&#038;section=all" title="Find man page" target="_blank">find</a> alternative</strong></p>
<blockquote><p><strong><code>-bash-3.2# find . -type f -exec rm -f {} \;<br />
-bash-3.2# ls -1 | wc -l<br />
0</code></strong></p></blockquote>
<p>Great <img src='http://www.andresmontalban.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://feeds.feedburner.com/~r/AndresMontalban/~4/DC0glKePFbM" height="1" width="1"/>]]></content:encoded><description>I was trying to delete a folder which tons of files and the rm command was giving me an error, luckly the almighty find command did the job for me -bash-3.2# ls -1 &amp;#124; wc -l 54999 Wow that&amp;#8217;s a lot of files! -bash-3.2# rm * -bash: /bin/rm: Argument list too long Yikes! Let&amp;#8217;s try [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.andresmontalban.com/how-to-delete-a-huge-amount-of-files-at-once-on-linux/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://www.andresmontalban.com/how-to-delete-a-huge-amount-of-files-at-once-on-linux/</feedburner:origLink></item><item><title>How to do a port forward with IPTables on Linux</title><link>http://feedproxy.google.com/~r/AndresMontalban/~3/wdGQEbWUX34/</link><category>Howtos</category><category>firewall</category><category>iptables</category><category>linux</category><category>server</category><category>www</category><category>zenoss</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andres Montalban</dc:creator><pubDate>Mon, 11 Jul 2011 13:40:09 PDT</pubDate><guid isPermaLink="false">http://www.andresmontalban.com/?p=249</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/LOS-p3q4QPCgmJ8ZSdmf5n8-A3U/0/da"><img src="http://feedads.g.doubleclick.net/~a/LOS-p3q4QPCgmJ8ZSdmf5n8-A3U/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/LOS-p3q4QPCgmJ8ZSdmf5n8-A3U/1/da"><img src="http://feedads.g.doubleclick.net/~a/LOS-p3q4QPCgmJ8ZSdmf5n8-A3U/1/di" border="0" ismap="true"></img></a></p><div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-top: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.andresmontalban.com%2Fhowto-do-a-port-forward-with-iptables-on-linux%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.andresmontalban.com%2Fhowto-do-a-port-forward-with-iptables-on-linux%2F&amp;source=andresmontalban&amp;style=normal&amp;service=bit.ly&amp;service_api=R_d1892de205dce585f612d7e87b77b33e&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Hi there!</p>
<p>Long time no post so I am posting this simple howto to show you how to forward a port with IPTables on Linux. This come up because I installed Zenoss on a server and the default port is 8080 and I don&#8217;t want to use it so I forwarded the port 80 to the port 8080 on the same machine.</p>
<p>The command to do this is:</p>
<blockquote><p><code><strong>iptables -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT \<br />
--to-ports 8080</strong></code></p></blockquote>
<p>Cheers!</p>
<img src="http://feeds.feedburner.com/~r/AndresMontalban/~4/wdGQEbWUX34" height="1" width="1"/>]]></content:encoded><description>Hi there! Long time no post so I am posting this simple howto to show you how to forward a port with IPTables on Linux. This come up because I installed Zenoss on a server and the default port is 8080 and I don&amp;#8217;t want to use it so I forwarded the port 80 to [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.andresmontalban.com/howto-do-a-port-forward-with-iptables-on-linux/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">1</slash:comments><feedburner:origLink>http://www.andresmontalban.com/howto-do-a-port-forward-with-iptables-on-linux/</feedburner:origLink></item><item><title>Hey I am alive!</title><link>http://feedproxy.google.com/~r/AndresMontalban/~3/2AYjFKCW1X8/</link><category>General</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andres Montalban</dc:creator><pubDate>Wed, 18 Aug 2010 17:43:09 PDT</pubDate><guid isPermaLink="false">http://www.andresmontalban.com/?p=233</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/zj5VCqKWbCHuH-WT4g3LmGujofU/0/da"><img src="http://feedads.g.doubleclick.net/~a/zj5VCqKWbCHuH-WT4g3LmGujofU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/zj5VCqKWbCHuH-WT4g3LmGujofU/1/da"><img src="http://feedads.g.doubleclick.net/~a/zj5VCqKWbCHuH-WT4g3LmGujofU/1/di" border="0" ismap="true"></img></a></p><div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-top: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.andresmontalban.com%2Fhey-i-am-alive%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.andresmontalban.com%2Fhey-i-am-alive%2F&amp;source=andresmontalban&amp;style=normal&amp;service=bit.ly&amp;service_api=R_d1892de205dce585f612d7e87b77b33e&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Hey people and bots,</p>
<p>I just wanted to say that <strong>I am alive</strong> but just too busy to maintain the blog (Well to be honest<strong> I also don’t enjoy writing as much as I did earlier</strong>, I don’t know why this happens to me with all the blogs I created…). The last post I wrote was 3 months ago and great things happened here in <strong>Uruguay, our national team ended up 4th in the FIFA World Cup</strong>, one thing that <strong>didn’t happen since 1970</strong> when my fathers were just teenagers. Also AM Technology &amp; Systems is getting bigger and bigger every day so this also consume almost all my day. That&#8217;s why I came up with this <strong>idea to revitalize this blog</strong>, instead of writing stuff that only bots and crawlers read all the time, I thought that would be great if you just tell me ideas for posts and I will just write about them, for example <strong>&#8220;How can I install XYZ software&#8221;</strong>, <strong>&#8220;How do I do XYZ stuff&#8221;</strong>, etc.</p>
<p>I think it&#8217;s better to write useful howtos for real people that just writing non-sense things that are only useful for me, besides I really got visitors attention on the <a href="http://www.andresmontalban.com/how-to-install-clipbucket-requirements-on-redhat-enterprise-5-server-with-cpanel/">FFMPEG Installation howto for Clip-Bucket</a> . So <strong>don&#8217;t be shay and leave me some comments about what you want me to write</strong>, I think it will be funny because I will take it as a challenge and I love challenges <img src='http://www.andresmontalban.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thank you for stopping by!</p>
<p>Cheers,</p>
<p>Andres</p>
<img src="http://feeds.feedburner.com/~r/AndresMontalban/~4/2AYjFKCW1X8" height="1" width="1"/>]]></content:encoded><description>Hey people and bots, I just wanted to say that I am alive but just too busy to maintain the blog (Well to be honest I also don’t enjoy writing as much as I did earlier, I don’t know why this happens to me with all the blogs I created…). The last post I wrote [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.andresmontalban.com/hey-i-am-alive/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">1</slash:comments><feedburner:origLink>http://www.andresmontalban.com/hey-i-am-alive/</feedburner:origLink></item><item><title>Change timezone from UTC to GMT using an automatic script</title><link>http://feedproxy.google.com/~r/AndresMontalban/~3/9Fw9mj6KhnE/</link><category>General</category><category>Howtos</category><category>alestic</category><category>AM Technology &amp; Systems</category><category>ami</category><category>aws</category><category>ec2</category><category>gmt</category><category>server</category><category>timezone</category><category>Tricks</category><category>ubuntu</category><category>utc</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andres Montalban</dc:creator><pubDate>Tue, 11 May 2010 12:02:08 PDT</pubDate><guid isPermaLink="false">http://www.andresmontalban.com/?p=200</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/MD4VHSGpqIYfWrDMTLKKp6CV82w/0/da"><img src="http://feedads.g.doubleclick.net/~a/MD4VHSGpqIYfWrDMTLKKp6CV82w/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/MD4VHSGpqIYfWrDMTLKKp6CV82w/1/da"><img src="http://feedads.g.doubleclick.net/~a/MD4VHSGpqIYfWrDMTLKKp6CV82w/1/di" border="0" ismap="true"></img></a></p><div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-top: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.andresmontalban.com%2Fchange-timezone-from-utc-to-gmt-using-an-automatic-script%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.andresmontalban.com%2Fchange-timezone-from-utc-to-gmt-using-an-automatic-script%2F&amp;source=andresmontalban&amp;style=normal&amp;service=bit.ly&amp;service_api=R_d1892de205dce585f612d7e87b77b33e&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Hi,</p>
<p>If you are using <a href="http://alestic.com">alestic</a> Ubuntu AMIs for AWS/EC2 the timezone is UTC by default, I had to change that to GMT for a customer here is a way to do it automatically in your build script or without human intervention:</p>
<blockquote><p>echo &#8220;Etc/GMT&#8221; | tee /etc/timezone<br />
dpkg-reconfigure &#8211;frontend noninteractive tzdata</p></blockquote>
<p>Note: The &#8211;frontend option has two &#8211; in front</p>
<p>You can check more timezones at the directory /usr/share/zoneinfo/</p>
<p>Hope it helps you!</p>
<p>Cheers!</p>
<img src="http://feeds.feedburner.com/~r/AndresMontalban/~4/9Fw9mj6KhnE" height="1" width="1"/>]]></content:encoded><description>Hi, If you are using alestic Ubuntu AMIs for AWS/EC2 the timezone is UTC by default, I had to change that to GMT for a customer here is a way to do it automatically in your build script or without human intervention: echo &amp;#8220;Etc/GMT&amp;#8221; &amp;#124; tee /etc/timezone dpkg-reconfigure &amp;#8211;frontend noninteractive tzdata Note: The &amp;#8211;frontend option [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.andresmontalban.com/change-timezone-from-utc-to-gmt-using-an-automatic-script/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">1</slash:comments><feedburner:origLink>http://www.andresmontalban.com/change-timezone-from-utc-to-gmt-using-an-automatic-script/</feedburner:origLink></item><item><title>How to backup and restore crontab</title><link>http://feedproxy.google.com/~r/AndresMontalban/~3/ZSLRQW_84R4/</link><category>Howtos</category><category>aws</category><category>backup</category><category>crontab</category><category>ebs</category><category>ec2</category><category>howto</category><category>linux</category><category>restore</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andres Montalban</dc:creator><pubDate>Tue, 11 May 2010 11:01:24 PDT</pubDate><guid isPermaLink="false">http://www.andresmontalban.com/?p=198</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/_y5w7S3mULC_PaWQgAClSSVmr8I/0/da"><img src="http://feedads.g.doubleclick.net/~a/_y5w7S3mULC_PaWQgAClSSVmr8I/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/_y5w7S3mULC_PaWQgAClSSVmr8I/1/da"><img src="http://feedads.g.doubleclick.net/~a/_y5w7S3mULC_PaWQgAClSSVmr8I/1/di" border="0" ismap="true"></img></a></p><div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-top: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.andresmontalban.com%2Fhow-to-backup-and-restore-crontab%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.andresmontalban.com%2Fhow-to-backup-and-restore-crontab%2F&amp;source=andresmontalban&amp;style=normal&amp;service=bit.ly&amp;service_api=R_d1892de205dce585f612d7e87b77b33e&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Hi folks,</p>
<p>Today I had to come up with a solution for a customer using AWS/EC2 to make their crontab resilient to server re-builds in case it goes down by autoscaler or other situations. That&#8217;s why I created a script that is called daily that backups the crontab of a specific user to a file in an EBS mounted volume maintaining a 7 days library just in case <img src='http://www.andresmontalban.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> :</p>
<blockquote><p>#!/bin/bash</p>
<p>find /data -maxdepth 1 -name &#8216;bkp-crontab-*&#8217; -mtime 7 -exec rm {} \;<br />
crontab -l -u YOUR_USER_GOES_HERE &gt; /data/bkp-crontab-`date +%Y-%m-%d`</p></blockquote>
<p>Then to recover the last backup of crontab for the user you can put this in your server script when you are building it:</p>
<blockquote><p>cat `ls -tr /data/bkp-crontab-* | tail -1` | crontab -u YOUR_USER_GOES_HERE -</p></blockquote>
<p>This will load the last backup file in the users crontab.</p>
<p>I hope this helps you to have your crontabs backed up <img src='http://www.andresmontalban.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Cheers!</p>
<img src="http://feeds.feedburner.com/~r/AndresMontalban/~4/ZSLRQW_84R4" height="1" width="1"/>]]></content:encoded><description>Hi folks, Today I had to come up with a solution for a customer using AWS/EC2 to make their crontab resilient to server re-builds in case it goes down by autoscaler or other situations. That&amp;#8217;s why I created a script that is called daily that backups the crontab of a specific user to a file [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.andresmontalban.com/how-to-backup-and-restore-crontab/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">1</slash:comments><feedburner:origLink>http://www.andresmontalban.com/how-to-backup-and-restore-crontab/</feedburner:origLink></item><item><title>htaccess error (Request exceeded the limit of 10 internal redirects due to probable configuration error.)</title><link>http://feedproxy.google.com/~r/AndresMontalban/~3/ARNbgj_u3yU/</link><category>Fail</category><category>404</category><category>apache</category><category>error</category><category>hotlinking</category><category>htaccess</category><category>redirects</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andres Montalban</dc:creator><pubDate>Thu, 06 May 2010 08:20:10 PDT</pubDate><guid isPermaLink="false">http://www.andresmontalban.com/?p=194</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/oNDo6FWO6sIEXjnA7jCok6dqUKc/0/da"><img src="http://feedads.g.doubleclick.net/~a/oNDo6FWO6sIEXjnA7jCok6dqUKc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/oNDo6FWO6sIEXjnA7jCok6dqUKc/1/da"><img src="http://feedads.g.doubleclick.net/~a/oNDo6FWO6sIEXjnA7jCok6dqUKc/1/di" border="0" ismap="true"></img></a></p><div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-top: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.andresmontalban.com%2Fhtaccess-error-request-exceeded-the-limit-of-10-internal-redirects-due-to-probable-configuration-error%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.andresmontalban.com%2Fhtaccess-error-request-exceeded-the-limit-of-10-internal-redirects-due-to-probable-configuration-error%2F&amp;source=andresmontalban&amp;style=normal&amp;service=bit.ly&amp;service_api=R_d1892de205dce585f612d7e87b77b33e&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<blockquote><p>[Thu May 06 10:20:11 2010] [error] [client xxx.xxx.xxx.xxx] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use &#8216;LimitInternalRecursion&#8217; to increase the limit if necessary. Use &#8216;LogLevel debug&#8217; to get a backtrace.</p></blockquote>
<p>Today I woke up with a message from Alyson (A visitor of my site) that some pages <strong>were producing 404 error</strong>, I immediately checked the website but it seemed to be working ok. So I went to the logs to check what&#8217;s going on and I found the above message all over my Apache error_log, after investigating what can be I found out that when I added hotlink protection to my website images <strong>because a Chinese guy was stealing my images</strong> and bandwidth,<strong> I screwed the .htaccess file with extra redirections</strong>.</p>
<p>So if you have this error please check your .htaccess file for extra redirects <img src='http://www.andresmontalban.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> .</p>
<p>Thank you Alyson for reporting this!</p>
<img src="http://feeds.feedburner.com/~r/AndresMontalban/~4/ARNbgj_u3yU" height="1" width="1"/>]]></content:encoded><description>[Thu May 06 10:20:11 2010] [error] [client xxx.xxx.xxx.xxx] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use &amp;#8216;LimitInternalRecursion&amp;#8217; to increase the limit if necessary. Use &amp;#8216;LogLevel debug&amp;#8217; to get a backtrace. Today I woke up with a message from Alyson (A visitor of my site) that some pages were producing [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.andresmontalban.com/htaccess-error-request-exceeded-the-limit-of-10-internal-redirects-due-to-probable-configuration-error/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://www.andresmontalban.com/htaccess-error-request-exceeded-the-limit-of-10-internal-redirects-due-to-probable-configuration-error/</feedburner:origLink></item><item><title>How to install ClipBucket requirements on RedHat Enterprise 5 Server with cPanel</title><link>http://feedproxy.google.com/~r/AndresMontalban/~3/iRvAI9q7v4I/</link><category>General</category><category>Howtos</category><category>AM Technology &amp; Systems</category><category>Clip Bucket</category><category>ClipBucket</category><category>cPanel</category><category>faac</category><category>faad2</category><category>ffmpeg</category><category>flvtool2</category><category>installation</category><category>lame</category><category>linux</category><category>mp4box</category><category>ogg</category><category>opencore-amr</category><category>ruby</category><category>x264</category><category>xvid</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andres Montalban</dc:creator><pubDate>Tue, 23 Mar 2010 12:28:59 PDT</pubDate><guid isPermaLink="false">http://www.andresmontalban.com/?p=176</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/lUwRdO_ol_TLdpFZEb5vQ0rN61s/0/da"><img src="http://feedads.g.doubleclick.net/~a/lUwRdO_ol_TLdpFZEb5vQ0rN61s/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/lUwRdO_ol_TLdpFZEb5vQ0rN61s/1/da"><img src="http://feedads.g.doubleclick.net/~a/lUwRdO_ol_TLdpFZEb5vQ0rN61s/1/di" border="0" ismap="true"></img></a></p><div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-top: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.andresmontalban.com%2Fhow-to-install-clipbucket-requirements-on-redhat-enterprise-5-server-with-cpanel%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.andresmontalban.com%2Fhow-to-install-clipbucket-requirements-on-redhat-enterprise-5-server-with-cpanel%2F&amp;source=andresmontalban&amp;style=normal&amp;service=bit.ly&amp;service_api=R_d1892de205dce585f612d7e87b77b33e&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><strong><span style="color: #ff0000;">Hey folks!</span></strong></p>
<p><strong><span style="color: #ff0000;">Since I have received tons of messages about what hosting provider I recommend to run ClipBucket with FFMPEG I have decided to share with you this great company where I moved all my websites to, they are <a href="http://www.andresmontalban.com/affiliate/linode" target="_blank">Linode</a>. They offer GREAT SERVICE &amp; SUPPORT (They answered my ticket to add an additional IP to my VPS in less than 5 minutes!) and also they have pretty cheap rates starting at $19.95 for a 512Mb Linux VPS with 16Gb of RAM. For more info click the image below:</span></strong></p>
<p style="text-align: center;"><a href="http://www.andresmontalban.com/affiliate/linode" target="_blank"><img class="aligncenter" title="Linode VPS for FFMPEG and ClipBucket (YouTube clone script)" src="http://www.linode.com/images/pr/banner_linode1_13k.gif" alt="Linode VPS for FFMPEG and ClipBucket (YouTube clone script)" width="468" height="60" /></a></p>
<hr style="width: 100%;" /><strong><span style="font-size: medium;"><span style="color: #ff0000;">Last update: 06/08/2010</span></span></strong></p>
<p><span style="color: #ff0000;"><strong>Due to the high amount of messages and questions on this post, we at </strong></span><span style="color: #ff0000;"><strong>AM Technology &amp; Systems thought that will be great to offer this installation or troubleshoot FFMPEG issues as one of our services, so&#8230;</strong></span></p>
<p style="text-align: center;"><a href="http://amtechhelp.com/ffmpeg-installation/" target="_blank"><img src="http://amtechhelp.com/images/banner_amtechhelp_500_200.png" alt="Get this software installed by Experts! Check AM Technology &amp; Systems" width="500" height="200" /></a></p>
<hr />
<p style="text-align: left;">The other day I had to install some software for a customer to run the <strong>Clip Bucket</strong> (<a href="http://www.clipbucket.com">http://www.clip-bucket.com</a>) script on their server. It was a lot of steps so I documented it and now I am sharing with you so you don&#8217;t have to research like I did to met all the requirements for <strong>Clip Bucket</strong> because in their website they don&#8217;t have a guide showing how to install it. <strong>Let&#8217;s get our hands dirty!</strong></p>
<p style="text-align: left;"><strong>Install Development Tools:</strong></p>
<blockquote><p>yum groupinstall &#8216;Development Tools&#8217;</p></blockquote>
<p><strong>Install RPMForge Repository:</strong></p>
<blockquote><p><strong>For 32 Bits installations:</strong> rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.1-1.el5.rf.i386.rpm</p>
<p><strong>For 64 Bits installations:</strong> rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm</p></blockquote>
<p><strong>Install yasm package:</strong></p>
<blockquote><p>yum install yasm</p></blockquote>
<p><strong>Install SVN (subversion) package:</strong></p>
<blockquote><p>yum install subversion</p></blockquote>
<p><strong>Install OpenCore-AMR:</strong></p>
<blockquote><p>cd /usr/src<br />
wget http://sourceforge.net/projects/opencore-amr/files/opencore-amr/0.1.2/opencore-amr-0.1.2.tar.gz/download<br />
tar -zxvf opencore-amr-0.1.2.tar.gz<br />
cd opencore-amr-0.1.2<br />
./configure<br />
make<br />
make install</p></blockquote>
<p><strong>Install Lame (libmp3lame):</strong></p>
<p><strong><cite>Note that the command has &#8211;with </cite><cite>(It is double -)</cite></strong></p>
<blockquote><p>cd /usr/src<br />
wget http://sourceforge.net/projects/lame/files/lame/3.98.4/lame-3.98.4.tar.gz/download<br />
tar -zxvf lame-3.98.4.tar.gz<br />
cd lame-3.98.4<br />
./configure &#8211;with-vorbis<br />
make<br />
make install</p></blockquote>
<p><strong>Install Ogg codec:</strong></p>
<blockquote>
<div id="_mcePaste">cd /usr/src</div>
<div id="_mcePaste">wget http://svn.xiph.org/releases/ogg/libogg-1.2.0.tar.gz</div>
<div id="_mcePaste">tar -zxvf libogg-1.2.0.tar.gz</div>
<div id="_mcePaste">cd libogg-1.2.0</div>
<div id="_mcePaste">./configure</div>
<div id="_mcePaste">make</div>
<div id="_mcePaste">make install</div>
</blockquote>
<p><strong>Refresh Libraries installed in the system:</strong></p>
<blockquote><p><strong> </strong>ldconfig -v</p></blockquote>
<p><strong>Install Vorbis:</strong></p>
<blockquote><p>cd /usr/src<br />
svn checkout -r 17000 http://svn.xiph.org/trunk/vorbis/ vorbis<br />
cd vorbis<br />
./autogen.sh<br />
make<br />
make install</p></blockquote>
<p><strong>Install XVid codec:</strong></p>
<blockquote><p>cd /usr/src<br />
wget http://downloads.xvid.org/downloads/xvidcore-1.2.2.tar.gz<br />
tar -zxvf xvidcore-1.2.2.tar.gz<br />
cd xvidcore<br />
cd build/generic<br />
./configure<br />
make<br />
make install</p></blockquote>
<p><strong>Install x264 codec:</strong></p>
<p><strong><cite>Note that the command has &#8211;enable-shared (It is double -)</cite></strong></p>
<blockquote><p>cd /usr/src<br />
wget ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20101101-2245.tar.bz2<br />
tar -xvjf x264-snapshot-20101101-2245.tar.bz2<br />
cd x264-snapshot-20101101-2245<br />
./configure &#8211;enable-shared<br />
make<br />
make install</p></blockquote>
<p><strong>Install FAAD2:</strong></p>
<blockquote><p>cd /usr/src<br />
wget http://sourceforge.net/projects/faac/files/faad2-src/faad2-2.7/faad2-2.7.tar.gz/download<br />
tar -zxvf faad2-2.7.tar.gz<br />
cd faad2-2.7<br />
./configure<br />
make<br />
make install</p></blockquote>
<p><strong>Install FAAC:</strong></p>
<blockquote><p>cd /usr/src<br />
wget http://sourceforge.net/projects/faac/files/faac-src/faac-1.28/faac-1.28.tar.bz2/download<br />
tar -xvjf faac-1.28.tar.bz2<br />
cd faac-1.28<br />
./configure<br />
make<br />
make install</p></blockquote>
<p><strong>Install FFMPEG:</strong></p>
<p><strong><cite>Note that the command has &#8211;enable&#8230;. </cite><cite>(It is double -)</cite></strong></p>
<blockquote><p>cd /usr/src<br />
svn checkout -r 25620 svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg<br />
cd ffmpeg</p>
<p>./configure &#8211;prefix=/usr/local &#8211;enable-pthreads &#8211;enable-pic &#8211;enable-gpl &#8211;enable-version3 &#8211;enable-libmp3lame &#8211;enable-nonfree &#8211;enable-libopencore-amrnb &#8211;enable-libopencore-amrwb &#8211;enable-libvorbis &#8211;disable-mmx &#8211;enable-shared &#8211;enable-libxvid &#8211;enable-libx264 &#8211;enable-libfaac</p>
<p>make<br />
make install</p>
<p><strong>Note: If you get an error like this when running the ./configure command:</strong></p>
<p><em>Unable to create and execute files in /tmp.  Set the TMPDIR environment<br />
variable to another directory and make sure that it is not mounted noexec.<br />
Sanity test failed.</em></p>
<p><strong>Then you will have to create a directory for example /usr/src/tmp and set the TMPDIR environment variable doing export TMPDIR=/usr/src/tmp and try again.</strong></p></blockquote>
<p><strong>Configure LD to add the path where FFMPEG is installed:</strong></p>
<blockquote><p>echo &#8220;/usr/local/lib&#8221; &gt; /etc/ld.so.conf.d/ffmpeg.conf</p>
<p>Refresh the LD cache: ldconfig -v</p></blockquote>
<p><strong>Install MP4Box (gpac):</strong></p>
<blockquote><p>cd /usr/src<br />
wget http://sourceforge.net/projects/gpac/files/GPAC%20extra%20libs/GPAC%20extra%20libs%200.4.5/gpac_extra_libs-0.4.5.tar.gz/download<br />
tar -zxvf gpac_extra_libs-0.4.5.tar.gz<br />
wget http://sourceforge.net/projects/gpac/files/GPAC/GPAC%200.4.5/gpac-0.4.5.tar.gz/download<br />
tar -zxvf gpac-0.4.5.tar.gz<br />
cd gpac_extra_libs<br />
cp -R * ../gpac/extra_lib<br />
cd ../gpac<br />
chmod +x configure<br />
./configure &#8211;use-js=no<br />
make lib<br />
make apps<br />
make install-lib<br />
make install<br />
cp bin/gcc/libgpac.so /usr/lib</p></blockquote>
<p><strong>Configure LD to add the path where gpac is installed:</strong></p>
<blockquote><p>echo &#8220;/usr/lib&#8221; &gt; /etc/ld.so.conf.d/gpac.conf</p>
<p>Refresh the LD cache: ldconfig -v</p></blockquote>
<p><strong>Install Ruby (Needed for FLVTool2):</strong></p>
<blockquote><p>cd /usr/src<br />
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p376.tar.gz<br />
tar -zxvf ruby-1.9.1-p376.tar.gz<br />
cd ruby-1.9.1-p376<br />
ls<br />
./configure<br />
make<br />
make  install</p></blockquote>
<p><strong>Install FLVTool2:</strong></p>
<blockquote><p>cd /usr/src<br />
wget http://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz<br />
tar -zxvf flvtool2-1.0.6.tgz<br />
cd flvtool2-1.0.6<br />
ruby setup.rb config<br />
ruby setup.rb setup<br />
ruby setup.rb install</p></blockquote>
<p><strong>And that should be all!</strong> After you install the above software remember to change the paths for all in the <strong>Website Configuration</strong> settings in your <strong>ClipBucket</strong> website.</p>
<p>If you followed all the guide the correct paths of the software should be like the ones in the images which are:</p>
<p><strong>FFMPEG: /usr/local/bin/ffmpeg</strong></p>
<p><strong>PHP: /usr/bin/php</strong></p>
<p><strong>FLVTool2: /usr/local/bin/flvtool2</strong></p>
<p><strong>MP4BOX: /usr/local/bin/MP4Box</strong></p>
<p>Here is a screenshot with all the required software up &amp; running on the server:</p>
<p style="text-align: center;"><a href="http://www.andresmontalban.com/wp-content/uploads/2010/03/screenshot.jpg" rel="thumbnail"><img class="size-medium wp-image-177  aligncenter" title="Clip Bucket Requirements" src="http://www.andresmontalban.com/wp-content/uploads/2010/03/screenshot-300x205.jpg" alt="" width="300" height="205" /></a></p>
<p style="text-align: center;">
<p style="text-align: center;">
<hr /><strong><span style="font-size: medium;"><span style="color: #ff0000;">Prior Updates:</span></span></strong></p>
<p><strong><span style="font-size: medium;"><span style="color: #ff0000;">Last update: 02/08/2010</span></span></strong></p>
<p><span style="color: #ff0000;"><strong>I have made some corrections and adds to the howto, for example running ldconfig -v in some places to refresh libraries in the system, upgrading FFMPEG version to 22733 because as </strong></span><a href="http://www.andresmontalban.com/how-to-install-clipbucket-requirements-on-redhat-enterprise-5-server-with-cpanel/#comment-435"><span style="color: #ff0000;"><strong>Arandas said</strong></span></a><span style="color: #ff0000;"><strong> the old version break swscale lib. I have found some issues with the ClipBucket not detecting libfaac or libtheora with the version 22733 but it is enabled and working in FFMPEG, so have that in mind when you do the module check.</strong></span></p>
<hr /><strong><span style="font-size: medium;"><span style="color: #ff0000;">Last update: 23/07/2010 </span></span></strong></p>
<p><span style="color: #ff0000;"><strong>I have fixed a typo in the FAAC download link, thanks to </strong></span><a href="http://www.andresmontalban.com/how-to-install-clipbucket-requirements-on-redhat-enterprise-5-server-with-cpanel/#comment-430"><span style="color: #ff0000;"><strong>Arandas comment</strong></span></a></p>
<hr /><strong><span style="font-size: medium;"><span style="color: #ff0000;">Last update: 17/06/2010</span></span></strong></p>
<p><span style="color: #ff0000;"><strong> I have changed the version of FFMPEG (r22608) after some issues with last FFMPEG trunk versions with MP4Box(gpac). Also I have changed some links to make them easier to copy and paste.</strong></span></p>
<img src="http://feeds.feedburner.com/~r/AndresMontalban/~4/iRvAI9q7v4I" height="1" width="1"/>]]></content:encoded><description>Hey folks! Since I have received tons of messages about what hosting provider I recommend to run ClipBucket with FFMPEG I have decided to share with you this great company where I moved all my websites to, they are Linode. They offer GREAT SERVICE &amp;#38; SUPPORT (They answered my ticket to add an additional IP [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.andresmontalban.com/how-to-install-clipbucket-requirements-on-redhat-enterprise-5-server-with-cpanel/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">70</slash:comments><feedburner:origLink>http://www.andresmontalban.com/how-to-install-clipbucket-requirements-on-redhat-enterprise-5-server-with-cpanel/</feedburner:origLink></item><item><title>Globally Enable SpamAssassin and SpamBox in cPanel</title><link>http://feedproxy.google.com/~r/AndresMontalban/~3/X-LZRPSDJJ0/</link><category>Howtos</category><category>AM Technology &amp; Systems</category><category>cPanel</category><category>linux</category><category>Tricks</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andres Montalban</dc:creator><pubDate>Mon, 15 Mar 2010 08:27:04 PDT</pubDate><guid isPermaLink="false">http://www.andresmontalban.com/?p=167</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/uo-A2GAMkXyyd9Lll81AmG9qiAk/0/da"><img src="http://feedads.g.doubleclick.net/~a/uo-A2GAMkXyyd9Lll81AmG9qiAk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/uo-A2GAMkXyyd9Lll81AmG9qiAk/1/da"><img src="http://feedads.g.doubleclick.net/~a/uo-A2GAMkXyyd9Lll81AmG9qiAk/1/di" border="0" ismap="true"></img></a></p><div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-top: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.andresmontalban.com%2Fglobally-enable-spamassassin-and-spambox-in-cpanel%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.andresmontalban.com%2Fglobally-enable-spamassassin-and-spambox-in-cpanel%2F&amp;source=andresmontalban&amp;style=normal&amp;service=bit.ly&amp;service_api=R_d1892de205dce585f612d7e87b77b33e&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Hi folks,</p>
<p>In this quick post I want to share with you a great script to easily enable SpamAssassin and SpamBox for all the accounts in your cPanel server. I was surprised that this option is not available at cPanel so I started to Google around and found this handy script:</p>
<blockquote><p>#!/bin/bash<br />
cd /home<br />
for user in `ls /var/cpanel/users`<br />
do<br />
test ! -d $user &amp;&amp; continue<br />
touch  $user/.spamassassinenable $user/.spamassassinboxenable<br />
chown $user:$user  $user/.spamassassinenable $user/.spamassassinboxenable<br />
echo $user complete<br />
done</p></blockquote>
<p>All credits goes to <a rel="nofollow" href="http://forums.cpanel.net/members/brianoz/">brianoz</a> user of cPanel forums. (I just changed the chown line to include the : instead of the .)</p>
<p>If you want to check the thread in that forum you can check this link: http://forums.cpanel.net/f5/spamassassin-global-enable-anyone-57111.html#post284327</p>
<p>I hope it helps you like it did it for me.</p>
<p>Take care!</p>
<img src="http://feeds.feedburner.com/~r/AndresMontalban/~4/X-LZRPSDJJ0" height="1" width="1"/>]]></content:encoded><description>Hi folks, In this quick post I want to share with you a great script to easily enable SpamAssassin and SpamBox for all the accounts in your cPanel server. I was surprised that this option is not available at cPanel so I started to Google around and found this handy script: #!/bin/bash cd /home for [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.andresmontalban.com/globally-enable-spamassassin-and-spambox-in-cpanel/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">2</slash:comments><feedburner:origLink>http://www.andresmontalban.com/globally-enable-spamassassin-and-spambox-in-cpanel/</feedburner:origLink></item></channel></rss>

