<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Samiux&#039;s Blog</title>
	<atom:link href="http://samiux.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://samiux.wordpress.com</link>
	<description>Just Customized for You!</description>
	<lastBuildDate>Wed, 07 Dec 2011 18:05:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='samiux.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Samiux&#039;s Blog</title>
		<link>http://samiux.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://samiux.wordpress.com/osd.xml" title="Samiux&#039;s Blog" />
	<atom:link rel='hub' href='http://samiux.wordpress.com/?pushpress=hub'/>
		<item>
		<title>My blog is moved!</title>
		<link>http://samiux.wordpress.com/2009/09/09/my-blog-is-moved/</link>
		<comments>http://samiux.wordpress.com/2009/09/09/my-blog-is-moved/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 04:01:45 +0000</pubDate>
		<dc:creator>samiux</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://samiux.wordpress.com/2009/09/09/682/</guid>
		<description><![CDATA[Notice! This blog is moved to Samiux&#8217;s Blog.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=samiux.wordpress.com&amp;blog=297644&amp;post=682&amp;subd=samiux&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Notice!</strong></p>
<p><strong>This blog is moved to <a href="http://samiux.blogspot.com/">Samiux&#8217;s Blog</a>.</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/samiux.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/samiux.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/samiux.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/samiux.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/samiux.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/samiux.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/samiux.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/samiux.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/samiux.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/samiux.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/samiux.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/samiux.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/samiux.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/samiux.wordpress.com/682/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=samiux.wordpress.com&amp;blog=297644&amp;post=682&amp;subd=samiux&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://samiux.wordpress.com/2009/09/09/my-blog-is-moved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7056f9467afbc7d1135a07af05a5ab36?s=96&#38;d=identicon" medium="image">
			<media:title type="html">samiux</media:title>
		</media:content>
	</item>
		<item>
		<title>HOWTO : Hiawatha 6.16 web server on Ubuntu 9.04 Server</title>
		<link>http://samiux.wordpress.com/2009/08/30/howto-hiawatha-6-16-web-server-on-ubuntu-9-04-server/</link>
		<comments>http://samiux.wordpress.com/2009/08/30/howto-hiawatha-6-16-web-server-on-ubuntu-9-04-server/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 08:47:18 +0000</pubDate>
		<dc:creator>samiux</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://samiux.wordpress.com/?p=672</guid>
		<description><![CDATA[Hiawatha is a web server which is developed by Hugo Leisink who is in a great interest in IT security. It is designed with security in mind. It comes with Cross-site Scripting (XSS) prevention, Cross-site Request Forgery (CSRF) prevention, DoS/flooding protection, and SQL injection prevention. It works with PHP and MySQL. Therefore, the LAMP (Linux, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=samiux.wordpress.com&amp;blog=297644&amp;post=672&amp;subd=samiux&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.hiawatha-webserver.org/">Hiawatha</a> is a web server which is developed by Hugo Leisink who is in a great interest in IT security.  It is designed with security in mind.  It comes with Cross-site Scripting (XSS) prevention, Cross-site Request Forgery (CSRF) prevention, DoS/flooding protection, and SQL injection prevention.</p>
<p>It works with PHP and MySQL.  Therefore, the LAMP (Linux, Apache, MySQL and PHP) should be renamed to LHMP (Linux, Hiawatha, MySQL and PHP).</p>
<p><strong>Step 0 :</strong></p>
<p>Install Ubuntu 9.04 Server and OpenSSH as usual.  Make sure to perform the following.</p>
<blockquote><p><code>sudo apt-get update<br />
sudo apt-get upgrade<br />
sudo apt-get dist-upgrade</code></p></blockquote>
<p><strong>Step 1 :</strong></p>
<p>Download Hiawatha, the current version at this writing is 6.16, at <code>http://www.hiawatha-webserver.org/download</code>.</p>
<blockquote><p><code>sudo wget http://www.hiawatha-webserver.org/files/hiawatha-6.16.tar.gz<br />
tar -xzvf hiawatha-6.16.tar.gz<br />
cd hiawatha-6.16</code></p></blockquote>
<p>Configure and compile the Hiawatha.</p>
<p><code>sudo apt-get install build-essentail libc6-dev libssl-dev dpkg-dev debhelper fakeroot libxml2-dev libxslt1-dev</code></p>
<blockquote><p><code>sudo ./configure<br />
sudo make deb</code></p></blockquote>
<p>The deb package will be created at <code>/home/samiux</code>.  You can install it by :</p>
<blockquote><p><code>sudo dpkg -i hiawatha_6.16_amd64.deb</code></p></blockquote>
<p>or</p>
<blockquote><p><code>sudo dpkg -i hiawatha_6.16_i386.deb</code></p></blockquote>
<p><strong>Step 2 :</strong></p>
<p>Install mysql and php5.</p>
<blockquote><p><code>sudo apt-get install mysql-server mysql-client php5-cgi php5 php5-cli php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl</code></p></blockquote>
<p>Enter the password for the MySQL and write it down for further usage.</p>
<p><strong>Step 3 :</strong></p>
<blockquote><p><code>sudo nano /etc/hiawatha/php-fcgi.conf</code></p></blockquote>
<p>Uncomment the following line :</p>
<blockquote><p><code>Server = /usr/bin/php5-cgi ; 127.0.0.1:2005 ; www-data</code></p></blockquote>
<p>Activate <code>php-fcgi</code>.</p>
<blockquote><p><code>sudo php-fcgi -c /etc/hiawatha/php-fcgi.conf</code></p></blockquote>
<p>Kill it with -k, such as :</p>
<blockquote><p><code>sudo php-fcgi -k -c /etc/hiawatha/php-fcgi.conf</code></p></blockquote>
<p>*Make sure you have been activated <code>php-fcgi</code>; otherwise, php5 cannot be run.</p>
<p><strong>Step 4 :</strong></p>
<blockquote><p><code>sudo nano /etc/hiawatha/hiawatha.conf</code></p></blockquote>
<p>Uncomment <code>ServerId</code> at <code>GENERAL SETTINGS</code>.</p>
<blockquote><p><code>ServerId = www-data</code></p></blockquote>
<p>Uncomment the following entries at <code>BINDING SETTINGS</code>.</p>
<blockquote><p><code>Binding {<br />
&nbsp;&nbsp;&nbsp;Port = 80<br />
&nbsp;&nbsp;&nbsp;MaxKeepAlive = 30<br />
&nbsp;&nbsp;&nbsp;TimeForRequest = 3,20<br />
}</code></p></blockquote>
<p>Uncomment all the entries at <code>BANNING SETTINGS</code>.</p>
<blockquote><p><code>BanOnGarbage = 300<br />
BanOnMaxPerIP = 60<br />
BanOnMaxReqSize = 300<br />
KickOnBan = yes<br />
RebanDuringBan = yes<br />
BanOnSQLi = 0<br />
BanOnFlooding = 10/1:15<br />
BanlistMask = allow 192.168.0.0/24<br />
</code></p></blockquote>
<p>Uncomment all the entries at <code>COMMON GATEWAY INTERFACE (CGI) SETTINGS</code>.</p>
<blockquote><p><code>CGIhandler = /usr/hin/perl:pl<br />
CGIhandler = /usr/bin/php5-cgi:php,php5<br />
CGIhandler = /usr/bin/python:py<br />
CGIhandler = /usr/bin/ruby:rb<br />
CGIhandler = /usr/bin/ssi-cgi:shtml<br />
GCIextension = cgi</code></p></blockquote>
<p>Uncomment all the entries of <code>FastCGIserver</code> and rename <code>ConnectTo</code> to <code>127.0.0.1:2005</code>.</p>
<blockquote><p><code>FastCGIserver {<br />
&nbsp;&nbsp;&nbsp;FastCGIid = PHP5<br />
&nbsp;&nbsp;&nbsp;ConnectTo = 127.0.0.1:2005<br />
&nbsp;&nbsp;&nbsp;Extension = php, php5<br />
&nbsp;&nbsp;&nbsp;SessionTimeout = 30<br />
}</code></p></blockquote>
<p>Uncomment all the entries of <code>URL TOOLKIT</code>.</p>
<blockquote><p><code>UrlToolkit {<br />
&nbsp;&nbsp;&nbsp;ToolkitID = banshee<br />
&nbsp;&nbsp;&nbsp;RequestURI isfile Return<br />
&nbsp;&nbsp;&nbsp;Match ^/(favicon.ico|robots.txt|sitemap.xml)$ Return<br />
&nbsp;&nbsp;&nbsp;Match .*\?(.*) Rewrite /index.php?$1<br />
&nbsp;&nbsp;&nbsp;Match .* Rewrite /index.php<br />
}</code></p></blockquote>
<p>Uncomment all the entries of <code>VIRTUAL HOSTS</code> and alert it when necessary.</p>
<blockquote><p><code>VirtualHost {<br />
&nbsp;&nbsp;&nbsp;Hostname = www.samiux.com<br />
&nbsp;&nbsp;&nbsp;WebsiteRoot = /var/www/www.samiux.com<br />
&nbsp;&nbsp;&nbsp;StartFile = index.php<br />
&nbsp;&nbsp;&nbsp;AccessLogfile = /var/log/hiawatha/access.log<br />
&nbsp;&nbsp;&nbsp;ErrorLogfile = /var/log/hiawatha/error.log<br />
&nbsp;&nbsp;&nbsp;TimeForGCI = 5<br />
&nbsp;&nbsp;&nbsp;UseFastCGI = PHP5<br />
&nbsp;&nbsp;&nbsp;UseToolkit = banshee<br />
&nbsp;&nbsp;&nbsp;PreventCSRF = yes<br />
&nbsp;&nbsp;&nbsp;PreventSQLi = yes<br />
&nbsp;&nbsp;&nbsp;PreventXSS = yes<br />
}</code></p></blockquote>
<p>Assumed that your domain name is <code>samiux.com</code> and the site is at <code>/var/www/www.samiux.com</code>.</p>
<p><strong>Step 5 :</strong></p>
<blockquote><p><code>sudo nano /etc/php5/cgi/php.ini</code></p></blockquote>
<p>Change the following line to <code>Off</code>.</p>
<blockquote><p><code>allow_url_fopen = Off</code></p></blockquote>
<p><strong>Step 6 :</strong></p>
<p>Restart the Hiawatha.</p>
<blockquote><p><code>sudo /etc/init.d/hiawatha restart</code></p></blockquote>
<p><strong>Step 7 :</strong></p>
<p>Use AppArmor with Hiawatha.</p>
<blockquote><p><code>sudo aa-genprof hiawatha</code></p></blockquote>
<blockquote><p><code>sudo nano /etc/apparmor.d/usr.sbin.hiawatha</code></p></blockquote>
<p>Add the following lines.</p>
<blockquote><p><code>#include &lt;tunables/global&gt;<br />
/usr/sbin/hiawatha {<br />
&nbsp;&nbsp;&nbsp;#include &lt;abstractions/base&gt;<br />
&nbsp;&nbsp;&nbsp;capability chown,<br />
&nbsp;&nbsp;&nbsp;capability dac_override,<br />
&nbsp;&nbsp;&nbsp;capability net_bind_service,<br />
&nbsp;&nbsp;&nbsp;capability setgid,<br />
&nbsp;&nbsp;&nbsp;capability setuid,<br />
&nbsp;&nbsp;&nbsp;capability sys_chroot,<br />
&nbsp;&nbsp;&nbsp;network inet tcp,<br />
&nbsp;&nbsp;&nbsp;/etc/group r,<br />
&nbsp;&nbsp;&nbsp;/etc/hiawatha/** r,<br />
&nbsp;&nbsp;&nbsp;/etc/nsswitch.conf r,<br />
&nbsp;&nbsp;&nbsp;/etc/passwd r,<br />
&nbsp;&nbsp;&nbsp;/usr/bin/php5-cgi rix,<br />
&nbsp;&nbsp;&nbsp;/usr/sbin/cgi-wrapper mr,<br />
&nbsp;&nbsp;&nbsp;/usr/sbin/hiawatha mr,<br />
&nbsp;&nbsp;&nbsp;/usr/share/dbconfig-common/** r,<br />
&nbsp;&nbsp;&nbsp;/usr/share/phpmyadmin/ r,<br />
&nbsp;&nbsp;&nbsp;/usr/share/phpmyadmin/** r,<br />
&nbsp;&nbsp;&nbsp;/var/lib/** r,<br />
&nbsp;&nbsp;&nbsp;/var/lib/hiawatha/* rw,<br />
&nbsp;&nbsp;&nbsp;/var/log/hiawatha/ r,<br />
&nbsp;&nbsp;&nbsp;/var/log/hiawatha/** rw,<br />
&nbsp;&nbsp;&nbsp;/var/run/hiawatha.pid w,<br />
&nbsp;&nbsp;&nbsp;/var/www/ r,<br />
&nbsp;&nbsp;&nbsp;/var/www/** rw,<br />
&nbsp;&nbsp;&nbsp;/home/*/public_html/** r,<br />
}</code></p></blockquote>
<p>Make it enforce.</p>
<blockquote><p><code>sudo aa-enforce hiawatha</code></p></blockquote>
<p>That&#8217;s all.  See you!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/samiux.wordpress.com/672/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/samiux.wordpress.com/672/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/samiux.wordpress.com/672/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/samiux.wordpress.com/672/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/samiux.wordpress.com/672/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/samiux.wordpress.com/672/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/samiux.wordpress.com/672/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/samiux.wordpress.com/672/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/samiux.wordpress.com/672/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/samiux.wordpress.com/672/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/samiux.wordpress.com/672/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/samiux.wordpress.com/672/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/samiux.wordpress.com/672/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/samiux.wordpress.com/672/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=samiux.wordpress.com&amp;blog=297644&amp;post=672&amp;subd=samiux&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://samiux.wordpress.com/2009/08/30/howto-hiawatha-6-16-web-server-on-ubuntu-9-04-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7056f9467afbc7d1135a07af05a5ab36?s=96&#38;d=identicon" medium="image">
			<media:title type="html">samiux</media:title>
		</media:content>
	</item>
		<item>
		<title>HOWTO : Build deb from source on Ubuntu 9.04</title>
		<link>http://samiux.wordpress.com/2009/08/22/howto-build-deb-from-source-on-ubuntu-9-04/</link>
		<comments>http://samiux.wordpress.com/2009/08/22/howto-build-deb-from-source-on-ubuntu-9-04/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 20:40:51 +0000</pubDate>
		<dc:creator>samiux</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://samiux.wordpress.com/?p=659</guid>
		<description><![CDATA[Download checkinstall sudo apt-get install checkinstall Download the source file, such as foo.tar.gz and extract it. wget http://www.foo.com/downloads/foo.tar.gz tar -xzvf foo.tar.gz cd foo ./configure make sudo checkinstall After that, the package will be installed automatically and a deb is also generated. You can uninstall package as usual. For checkinstall usage, please man it.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=samiux.wordpress.com&amp;blog=297644&amp;post=659&amp;subd=samiux&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Download checkinstall</p>
<blockquote><p><code>sudo apt-get install checkinstall</code></p></blockquote>
<p>Download the source file, such as <code>foo.tar.gz</code> and extract it.</p>
<blockquote><p><code>wget http://www.foo.com/downloads/foo.tar.gz</code></p></blockquote>
<blockquote><p><code>tar -xzvf foo.tar.gz<br />
cd foo</code></p></blockquote>
<blockquote><p><code>./configure<br />
make<br />
sudo checkinstall</code></p></blockquote>
<p>After that, the package will be installed automatically and a deb is also generated.  You can uninstall package as usual.</p>
<p>For <code>checkinstall</code> usage, please man it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/samiux.wordpress.com/659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/samiux.wordpress.com/659/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/samiux.wordpress.com/659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/samiux.wordpress.com/659/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/samiux.wordpress.com/659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/samiux.wordpress.com/659/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/samiux.wordpress.com/659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/samiux.wordpress.com/659/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/samiux.wordpress.com/659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/samiux.wordpress.com/659/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/samiux.wordpress.com/659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/samiux.wordpress.com/659/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/samiux.wordpress.com/659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/samiux.wordpress.com/659/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=samiux.wordpress.com&amp;blog=297644&amp;post=659&amp;subd=samiux&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://samiux.wordpress.com/2009/08/22/howto-build-deb-from-source-on-ubuntu-9-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7056f9467afbc7d1135a07af05a5ab36?s=96&#38;d=identicon" medium="image">
			<media:title type="html">samiux</media:title>
		</media:content>
	</item>
		<item>
		<title>HOWTO : Clean up all log archives after a period of time</title>
		<link>http://samiux.wordpress.com/2009/08/18/howto-clean-up-all-log-archives-after-a-period-of-time/</link>
		<comments>http://samiux.wordpress.com/2009/08/18/howto-clean-up-all-log-archives-after-a-period-of-time/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 02:39:25 +0000</pubDate>
		<dc:creator>samiux</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://samiux.wordpress.com/?p=656</guid>
		<description><![CDATA[If I understand fully and correctly, logrotate just compress log files and the number of compressed log files will be growing up after a period of time. It will not delete those outdated compressed log files automatically. Therefore, I write the following shell script for the captioned purpose which will delete all the files at [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=samiux.wordpress.com&amp;blog=297644&amp;post=656&amp;subd=samiux&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If I understand fully and correctly, <code>logrotate</code> just compress log files and the number of compressed log files will be growing up after a period of time.  It will not delete those outdated compressed log files automatically.</p>
<p>Therefore, I write the following shell script for the captioned purpose which will delete all the files at <code>/var/log</code> and its subdirectories that are existing more than 30 days.</p>
<p>You can change the existing days by altering the value at <code>DAYEXIST</code>.</p>
<p><strong>Step 1 :</strong></p>
<blockquote><p><code>nano /home/samiux/cleanup</code></p></blockquote>
<p>&#8212;&#8212;&#8212;&#8212;- CUT HERE &#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
#!/bin/bash</p>
<p>LOGDIR=&#8221;/var/log&#8221;<br />
DAYEXIST=&#8221;30&#8243;</p>
<p>find $LOGDIR -type f -mtime +$DAYEXIST -exec rm {} \;</p>
<p>exit 0<br />
&#8212;&#8212;&#8212;&#8212;- CUT HERE &#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<blockquote><p><code>sudo chmod +x /home/samiux/cleanup</code></p></blockquote>
<p><strong>Step 2 :</strong></p>
<p>Perform the task at 0130 hours every day.</p>
<blockquote><p><code>sudo crontab -e</code></p></blockquote>
<blockquote><p><code>30 1 * * * /home/samiux/cleanup 2 &gt;&amp;1</code></p></blockquote>
<p><strong>Step 3 :</strong></p>
<p><strong>WARNING : DO IT AT YOUR RISK</strong></p>
<p>** Your comment is welcome when my concept is wrong, thanks **</p>
<p>Enjoy!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/samiux.wordpress.com/656/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/samiux.wordpress.com/656/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/samiux.wordpress.com/656/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/samiux.wordpress.com/656/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/samiux.wordpress.com/656/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/samiux.wordpress.com/656/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/samiux.wordpress.com/656/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/samiux.wordpress.com/656/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/samiux.wordpress.com/656/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/samiux.wordpress.com/656/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/samiux.wordpress.com/656/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/samiux.wordpress.com/656/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/samiux.wordpress.com/656/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/samiux.wordpress.com/656/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=samiux.wordpress.com&amp;blog=297644&amp;post=656&amp;subd=samiux&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://samiux.wordpress.com/2009/08/18/howto-clean-up-all-log-archives-after-a-period-of-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7056f9467afbc7d1135a07af05a5ab36?s=96&#38;d=identicon" medium="image">
			<media:title type="html">samiux</media:title>
		</media:content>
	</item>
		<item>
		<title>HOWTO : Passive mode for Pure-FTPd on Ubuntu Server 9.04</title>
		<link>http://samiux.wordpress.com/2009/08/18/howto-passive-mode-for-pure-ftpd-on-ubuntu-server-9-04/</link>
		<comments>http://samiux.wordpress.com/2009/08/18/howto-passive-mode-for-pure-ftpd-on-ubuntu-server-9-04/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 02:04:46 +0000</pubDate>
		<dc:creator>samiux</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://samiux.wordpress.com/?p=654</guid>
		<description><![CDATA[I used to use vsFTPd. However, I recently need to test ISPConfig 3 which requires to install Pure-FTPd. My testing server is behind NAT and FTP should be running in passive mode. How to do it on Pure-FTPd? Assumed that your server IP is 192.168.50.100 and you want to specify a port range 50000-50100 for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=samiux.wordpress.com&amp;blog=297644&amp;post=654&amp;subd=samiux&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I used to use vsFTPd.  However, I recently need to test ISPConfig 3 which requires to install Pure-FTPd.  My testing server is behind NAT and FTP should be running in passive mode.  How to do it on Pure-FTPd?</p>
<p>Assumed that your server IP is 192.168.50.100 and you want to specify a port range 50000-50100 for the passive mode.</p>
<p><strong>Step 1 :</strong></p>
<blockquote><p><code>sudo nano /etc/pure-ftpd/conf/PassivePortRange<br />
50000 50100</code></p></blockquote>
<blockquote><p><code>sudo nano /etc/pure-ftpd/conf/ForcePassiveIP<br />
192.168.50.100</code></p></blockquote>
<p><strong>Step 2 :</strong></p>
<p>Restart the service.</p>
<blockquote><p><code>sudo /etc/init.d/pure-ftpd restart</code></p></blockquote>
<p>That&#8217;s all!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/samiux.wordpress.com/654/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/samiux.wordpress.com/654/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/samiux.wordpress.com/654/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/samiux.wordpress.com/654/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/samiux.wordpress.com/654/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/samiux.wordpress.com/654/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/samiux.wordpress.com/654/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/samiux.wordpress.com/654/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/samiux.wordpress.com/654/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/samiux.wordpress.com/654/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/samiux.wordpress.com/654/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/samiux.wordpress.com/654/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/samiux.wordpress.com/654/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/samiux.wordpress.com/654/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=samiux.wordpress.com&amp;blog=297644&amp;post=654&amp;subd=samiux&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://samiux.wordpress.com/2009/08/18/howto-passive-mode-for-pure-ftpd-on-ubuntu-server-9-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7056f9467afbc7d1135a07af05a5ab36?s=96&#38;d=identicon" medium="image">
			<media:title type="html">samiux</media:title>
		</media:content>
	</item>
		<item>
		<title>HOWTO : Quota with ext4 on Ubuntu 9.04 Server</title>
		<link>http://samiux.wordpress.com/2009/08/17/howto-quota-with-ext4-on-ubuntu-9-04-server/</link>
		<comments>http://samiux.wordpress.com/2009/08/17/howto-quota-with-ext4-on-ubuntu-9-04-server/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 15:58:42 +0000</pubDate>
		<dc:creator>samiux</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://samiux.wordpress.com/?p=652</guid>
		<description><![CDATA[There is a bug in quota package when filesystem is ext4 in Ubuntu 9.04 Server. You cannot activate quota function under ext4 on Ubuntu 9.04. However, we can use Ubuntu 9.10&#8242;s package instead. It is in alpha stage at the moment. Step 1 : Download the package at here and the current version is 3.17-3 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=samiux.wordpress.com&amp;blog=297644&amp;post=652&amp;subd=samiux&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There is a bug in quota package when filesystem is ext4 in Ubuntu 9.04 Server.  You cannot activate quota function under ext4 on Ubuntu 9.04.  However, we can use Ubuntu 9.10&#8242;s package instead.  It is in alpha stage at the moment.</p>
<p><strong>Step 1 :</strong></p>
<p>Download the package at <a href="http://packages.ubuntu.com/karmic/admin/quota">here</a> and the current version is 3.17-3 by this writing.</p>
<p>Install the package and configure the package as usual.</p>
<blockquote><p><code>sudo dpkg -i &lt;package_name&gt;</code></p></blockquote>
<p><strong>Step 2 :</strong></p>
<p>Edit <code>/etc/fstab</code> and add &#8220;<code>usrquota,grpquota</code>&#8221; on the partition with the mount point /.</p>
<blockquote><p><code>sudo touch /quota.user /quota.group<br />
sudo chmod 600 /quota.*<br />
sudo mount -o remount /</code></p></blockquote>
<p><strong>Step 3 :</strong></p>
<blockquote><p><code>sudo quotacheck -avugm<br />
sudo quotaon -avug</code></p></blockquote>
<p>That&#8217;s all.  See you!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/samiux.wordpress.com/652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/samiux.wordpress.com/652/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/samiux.wordpress.com/652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/samiux.wordpress.com/652/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/samiux.wordpress.com/652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/samiux.wordpress.com/652/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/samiux.wordpress.com/652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/samiux.wordpress.com/652/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/samiux.wordpress.com/652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/samiux.wordpress.com/652/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/samiux.wordpress.com/652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/samiux.wordpress.com/652/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/samiux.wordpress.com/652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/samiux.wordpress.com/652/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=samiux.wordpress.com&amp;blog=297644&amp;post=652&amp;subd=samiux&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://samiux.wordpress.com/2009/08/17/howto-quota-with-ext4-on-ubuntu-9-04-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7056f9467afbc7d1135a07af05a5ab36?s=96&#38;d=identicon" medium="image">
			<media:title type="html">samiux</media:title>
		</media:content>
	</item>
		<item>
		<title>HOWTO : Torrentflux-b4rt with Cherokee on Ubuntu 9.04 Server</title>
		<link>http://samiux.wordpress.com/2009/08/15/howto-torrentflux-b4rt-with-cherokee-on-ubuntu-9-04-server/</link>
		<comments>http://samiux.wordpress.com/2009/08/15/howto-torrentflux-b4rt-with-cherokee-on-ubuntu-9-04-server/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 18:01:42 +0000</pubDate>
		<dc:creator>samiux</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://samiux.wordpress.com/?p=644</guid>
		<description><![CDATA[I am going to build a Bittorrent server with Cherokee web server instead of Apache. I call it as LCMP &#8211; Linux, Cherokee, MySQL and PHP. It may be the fastest web server in the world so far. You are not require to edit the config files. All settings are completed by your browser. Bittorrent [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=samiux.wordpress.com&amp;blog=297644&amp;post=644&amp;subd=samiux&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am going to build a Bittorrent server with Cherokee web server instead of Apache.  I call it as LCMP &#8211; Linux, Cherokee, MySQL and PHP.  It may be the fastest web server in the world so far.  You are not require to edit the config files.  All settings are completed by your browser.</p>
<p>Bittorrent server front-end is using Torrentflux-b4rt.  It is running on PHP and MySQL with bittornado.</p>
<p><strong>Step 0 :</strong></p>
<p>Install Ubuntu 9.04 Server edition as usual.  Select OpenSSH only when install.</p>
<p>After the installation, perform the system update.</p>
<blockquote><p><code>sudo apt-get update<br />
sudo apt-get upgrade<br />
sudo apt-get dist-upgrade</code></p></blockquote>
<p>Assume your server&#8217;s IP is 192.168.0.200</p>
<p><strong>Step 1 :</strong></p>
<blockquote><p><code>sudo nano /etc/apt/sources.list.d/cherokee.list</code></p></blockquote>
<p>Add the following lines.</p>
<blockquote><p><code>deb http://ppa.launchpad.net/cherokee-webserver/ppa/ubuntu jaunty main<br />
deb-src http://ppa.launchpad.net/cherokee-webserver/ppa/ubuntu jaunty main</code></p></blockquote>
<p>Add the key.</p>
<blockquote><p><code>sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EBA7BD49</code></p></blockquote>
<blockquote><p><code>sudo apt-get update<br />
sudo apt-get install cherokee</code></p></blockquote>
<p><strong>Step 2 :</strong></p>
<blockquote><p><code>sudo apt-get install mysql-server mysql-client</code></p></blockquote>
<p>Enter the MySQL root password when asked.  Make sure you have write it down.</p>
<p><strong>Step 3 :</strong></p>
<blockquote><p><code>sudo apt-get install php5-cgi</code></p></blockquote>
<blockquote><p><code>sudo nano /etc/php5/cgi/php.ini</code></p></blockquote>
<p>Append the following line at the end of the file.</p>
<blockquote><p><code>cgi.fix_pathinfo = 1</code></p></blockquote>
<blockquote><p><code>sudo /etc/init.d/cherokee restart</code></p></blockquote>
<blockquote><p><code>sudo apt-get install php5 php5-cli php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl</code></p></blockquote>
<blockquote><p><code>sudo /etc/init.d/cherokee restart</code></p></blockquote>
<p><strong>Step 4 :</strong></p>
<blockquote><p><code>sudo cherokee-admin -b</code></p></blockquote>
<p>The following will be displayed.</p>
<blockquote><p><code>Login:<br />
  User:              admin<br />
  One-time Password: W0K2jR961aYaeiwu</code></p></blockquote>
<blockquote><p><code>Web Interface:<br />
  URL:               http://localhost:9090/</code></p></blockquote>
<blockquote><p><code>Cherokee Web Server 0.99.22 (Aug  5 2009): Listening on port ALL:9090, TLS disabled, IPv6 disabled, using epoll, 4096 fds system limit, max. 2041 connections, caching I/O, single thread</code></p></blockquote>
<p>Open browser and point to <code>http://192.168.0.200:9090</code> or <code>http://localhost:9090</code></p>
<p>Enter the user name as &#8220;admin&#8221; and password as &#8220;W0K2jR961aYaeiwu&#8221; (which will be changed each time).</p>
<p><strong>Step 5 :</strong></p>
<p>Clone a virtual host from default.  Add the domain name, document root and etc.</p>
<p>The document root should be &#8220;/var/www/torrentflux&#8221;.</p>
<p>Go back to the terminal and press Ctrl + C to quit the Cherokee&#8217;s admin page.</p>
<blockquote><p><code>sudo /etc/init.d/cherokee restart</code></p></blockquote>
<p><strong>Step 6 :</strong></p>
<blockquote><p><code>sudo apt-get install unrar unzip vlc uudeview build-essential bittornado</code></p></blockquote>
<p>Download and compile cksfv that is required by torrentflux-b4rt.</p>
<blockquote><p><code>wget http://zakalwe.fi/~shd/foss/cksfv/files/cksfv-1.3.14.tar.bz2<br />
tar -xjvf cksfv-1.3.14.tar.bz2</code></p></blockquote>
<blockquote><p><code>cd cksfv-1.3.14<br />
./configure<br />
make<br />
sudo make install</code></p></blockquote>
<p>Get and install torrentflux-b4rt.</p>
<blockquote><p><code>wget http://download.berlios.de/tf-b4rt/torrentflux-b4rt_1.0-beta2.tar.bz2<br />
tar -xjvf torrentflux-b4rt_1.0-beta2.tar.bz2</code></p></blockquote>
<blockquote><p><code>cd torrentflux-b4rt_1.0-beta2<br />
sudo cp -R html /var/www/torrentflux<br />
sudo chmod -R 0777 /var/www/torrentflux/inc/config</code></p></blockquote>
<blockquote><p><code>sudo mkdir /home/samiux/torrent<br />
sudo chmod -R 0777 /home/samiux/torrent</code></p></blockquote>
<p><strong>Step 7 :</strong></p>
<p>Point your browser to <code>http://192.168.0.200/setup.php</code> and configure it.</p>
<p>** You keyin the username and password on the torrentflux-b4rt will be recorded for the admin account.  Please write it down.</p>
<p>The download directory should be &#8220;/home/samiux/torrent&#8221;.</p>
<p>After the configuration, delete the setup.php.</p>
<blockquote><p><code>sudo rm /var/www/torrentflux/setup.php</code></p></blockquote>
<p><strong>Step 8 :</strong></p>
<p>Make sure to forward the default ports 49160 to 49300 at your router or firewall.</p>
<p><strong>Step 9 (Optional) :</strong></p>
<p><a href="http://samiux.wordpress.com/2008/08/12/howto-home-made-nas-server-with-ubuntu-8041-%E2%80%93-part-iii/">Install vsftpd when necessary.</a></p>
<p>** Make sure you change the IP address at &#8220;pasv_address&#8221;.</p>
<p><strong>Step 10 (Optional) :</strong></p>
<p><a href="http://samiux.wordpress.com/2009/07/10/howto-rebootless-with-ksplice-uptrack-on-ubuntu-9-04/">Make your server bootless.</a></p>
<p>Enjoy!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/samiux.wordpress.com/644/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/samiux.wordpress.com/644/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/samiux.wordpress.com/644/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/samiux.wordpress.com/644/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/samiux.wordpress.com/644/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/samiux.wordpress.com/644/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/samiux.wordpress.com/644/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/samiux.wordpress.com/644/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/samiux.wordpress.com/644/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/samiux.wordpress.com/644/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/samiux.wordpress.com/644/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/samiux.wordpress.com/644/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/samiux.wordpress.com/644/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/samiux.wordpress.com/644/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=samiux.wordpress.com&amp;blog=297644&amp;post=644&amp;subd=samiux&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://samiux.wordpress.com/2009/08/15/howto-torrentflux-b4rt-with-cherokee-on-ubuntu-9-04-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7056f9467afbc7d1135a07af05a5ab36?s=96&#38;d=identicon" medium="image">
			<media:title type="html">samiux</media:title>
		</media:content>
	</item>
		<item>
		<title>HOWTO : Regenerate SSL certificate and Reset MySQL root password on Ubuntu 9.04</title>
		<link>http://samiux.wordpress.com/2009/08/09/howto-regenerate-ssl-certificate-and-reset-mysql-root-password-on-ubuntu-9-04/</link>
		<comments>http://samiux.wordpress.com/2009/08/09/howto-regenerate-ssl-certificate-and-reset-mysql-root-password-on-ubuntu-9-04/#comments</comments>
		<pubDate>Sun, 09 Aug 2009 07:07:40 +0000</pubDate>
		<dc:creator>samiux</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://samiux.wordpress.com/?p=637</guid>
		<description><![CDATA[When your SSL certificate is expired or need to regenerate for some reason, you can issue the following command under Ubuntu 9.04. sudo make-ssl-cert generate -default-snakeoil --force-overwrite When you forgot the root password of MySQL, you can reset it by issue the following command under Ubuntu 9.04. sudo dpkg-reconfigure mysql-server-5.0<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=samiux.wordpress.com&amp;blog=297644&amp;post=637&amp;subd=samiux&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When your SSL certificate is expired or need to regenerate for some reason, you can issue the following command under Ubuntu 9.04.</p>
<blockquote><p><code>sudo make-ssl-cert generate -default-snakeoil --force-overwrite</code></p></blockquote>
<p>When you forgot the root password of MySQL, you can reset it by issue the following command under Ubuntu 9.04.</p>
<blockquote><p><code>sudo dpkg-reconfigure mysql-server-5.0</code></p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/samiux.wordpress.com/637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/samiux.wordpress.com/637/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/samiux.wordpress.com/637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/samiux.wordpress.com/637/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/samiux.wordpress.com/637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/samiux.wordpress.com/637/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/samiux.wordpress.com/637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/samiux.wordpress.com/637/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/samiux.wordpress.com/637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/samiux.wordpress.com/637/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/samiux.wordpress.com/637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/samiux.wordpress.com/637/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/samiux.wordpress.com/637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/samiux.wordpress.com/637/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=samiux.wordpress.com&amp;blog=297644&amp;post=637&amp;subd=samiux&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://samiux.wordpress.com/2009/08/09/howto-regenerate-ssl-certificate-and-reset-mysql-root-password-on-ubuntu-9-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7056f9467afbc7d1135a07af05a5ab36?s=96&#38;d=identicon" medium="image">
			<media:title type="html">samiux</media:title>
		</media:content>
	</item>
		<item>
		<title>My Perfect Home Network 2009 (Version 4.0)</title>
		<link>http://samiux.wordpress.com/2009/08/08/my-perfect-home-network-2009-version-4-0/</link>
		<comments>http://samiux.wordpress.com/2009/08/08/my-perfect-home-network-2009-version-4-0/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 02:55:50 +0000</pubDate>
		<dc:creator>samiux</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://samiux.wordpress.com/?p=633</guid>
		<description><![CDATA[The following is the setting of &#8220;My Perfect Home Network 2009 (Version 4.0)&#8221;. Virtualization technology can reduce the number of servers you owned. It saves room, electricity and money as well as manpower to manage. Therefore, it has one more term &#8211; Green Computing. Configuration of KVM Server 2 x Intel Xeon E5420 Quad-Core CPU [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=samiux.wordpress.com&amp;blog=297644&amp;post=633&amp;subd=samiux&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://samiux.files.wordpress.com/2009/08/my_home_network_v4-0.png?w=468" alt="my_home_network_v4.0" title="my_home_network_v4.0"   class="aligncenter size-full wp-image-634" /></p>
<p>The following is the setting of &#8220;My Perfect Home Network 2009 (Version 4.0)&#8221;.  Virtualization technology can reduce the number of servers you owned.  It saves room, electricity and money as well as manpower to manage.  Therefore, it has one more term &#8211; Green Computing.</p>
<p><strong>Configuration of KVM Server</strong><br />
2 x Intel Xeon E5420 Quad-Core CPU<br />
16GB ECC DDR2 RAM<br />
6 x 1TB Hard drive on hardware RAID 5EE</p>
<p><strong>KVM Server</strong><br />
Virtualization Server (that runs the following 5 servers)<br />
<a href="http://samiux.wordpress.com/2009/06/22/howto-install-proxmox-ve-1-3-on-debian-5-01-lenny-amd64/">Proxmox on Debian 5.01 Lenny</a></p>
<p><strong>Server #0</strong><br />
Running <a href="http://www.untangle.com/tabs">Untangle</a> inside.</p>
<p><strong>Server #1</strong><br />
<a href="http://samiux.wordpress.com/2009/06/13/howto-almost-a-perfect-and-secure-ubuntu-9-04-lamp-server/">Almost perfect and secure Ubuntu 9.04 LAMP Server</a></p>
<p><strong>Server #2</strong><br />
<a href="http://samiux.wordpress.com/2009/06/27/howto-webdav-on-ubuntu-9-04-server/">WebDAV on Ubuntu 9.04 Server</a></p>
<p><strong>Server #3</strong><br />
<a href="http://samiux.wordpress.com/2009/07/17/howto-sockso-1-1-8-music-server-on-ubuntu-9-04-server/">Sockso (Music Server) on Ubuntu 9.04 Server</a></p>
<p><strong>Server #4</strong><br />
<a href="http://samiux.wordpress.com/2009/06/28/howto-ntop-on-ubuntu-9-04-server/">ntop on Ubuntu 9.04 Server</a></p>
<p><strong>Server #5</strong><br />
<a href="http://samiux.wordpress.com/2009/08/15/howto-torrentflux-b4rt-with-cherokee-on-ubuntu-9-04-server/">Torrentflux-b4rt with Cherokee on Ubuntu 9.04 Server</a></p>
<p>**********</p>
<p><strong>Router to router</strong><br />
<a href="http://samiux.wordpress.com/2007/07/16/router-to-router/">Connecting wired router to wireless router</a></p>
<p>**********</p>
<p><strong>Evolution of my network 2007-2009</strong></p>
<p>2007 &#8211; a very simple network with a wired and a wireless router</p>
<p><a href="http://samiux.wordpress.com/2008/09/28/my-home-network/">2008</a></p>
<p><a href="http://samiux.wordpress.com/2009/07/17/my-dream-home-network-2009/">2009 (Version 3.4)</a></p>
<p><strong>2009 (Version 4.0) *This writing* &#8211; It is finally simplified into one server with the help of modern computing technology!</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/samiux.wordpress.com/633/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/samiux.wordpress.com/633/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/samiux.wordpress.com/633/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/samiux.wordpress.com/633/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/samiux.wordpress.com/633/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/samiux.wordpress.com/633/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/samiux.wordpress.com/633/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/samiux.wordpress.com/633/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/samiux.wordpress.com/633/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/samiux.wordpress.com/633/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/samiux.wordpress.com/633/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/samiux.wordpress.com/633/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/samiux.wordpress.com/633/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/samiux.wordpress.com/633/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=samiux.wordpress.com&amp;blog=297644&amp;post=633&amp;subd=samiux&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://samiux.wordpress.com/2009/08/08/my-perfect-home-network-2009-version-4-0/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7056f9467afbc7d1135a07af05a5ab36?s=96&#38;d=identicon" medium="image">
			<media:title type="html">samiux</media:title>
		</media:content>

		<media:content url="http://samiux.files.wordpress.com/2009/08/my_home_network_v4-0.png" medium="image">
			<media:title type="html">my_home_network_v4.0</media:title>
		</media:content>
	</item>
		<item>
		<title>HOWTO : Add or rename network interface on Debian 5.0</title>
		<link>http://samiux.wordpress.com/2009/08/06/howto-add-or-rename-network-interface-on-debian-5-0/</link>
		<comments>http://samiux.wordpress.com/2009/08/06/howto-add-or-rename-network-interface-on-debian-5-0/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 20:40:17 +0000</pubDate>
		<dc:creator>samiux</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://samiux.wordpress.com/?p=631</guid>
		<description><![CDATA[When you insert a new network interface to a already setup server, it will not recognized your new added network interface correctly. However, we can edit it manually. Step 1 : sudo nano /etc/udev/rules.d/70-persistent-net.rules Edit the MAC address and/or name of the interface when necessary. Step 2 : sudo nano /etc/network/interfaces Add a new entry [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=samiux.wordpress.com&amp;blog=297644&amp;post=631&amp;subd=samiux&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When you insert a new network interface to a already setup server, it will not recognized your new added network interface correctly.  However, we can edit it manually.</p>
<p><strong>Step 1 :</strong></p>
<blockquote><p><code>sudo nano /etc/udev/rules.d/70-persistent-net.rules</code></p></blockquote>
<p>Edit the MAC address and/or name of the interface when necessary.</p>
<p><strong>Step 2 :</strong></p>
<blockquote><p><code>sudo nano /etc/network/interfaces</code></p></blockquote>
<p>Add a new entry for the new interface accordingly.</p>
<blockquote><p><code>auto eth2<br />
iface eth2 inet dhcp</code></p></blockquote>
<p>*dhcp if IP is assigned automatically by DHCP</p>
<p><strong>Step 3 :</strong></p>
<blockquote><p><code>sudo ifconfig ethX up</code></p></blockquote>
<blockquote><p><code>sudo /etc/init.d/networking restart</code></p></blockquote>
<p>*where ethX will be eth0, eth1, eth2 &#8230;.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/samiux.wordpress.com/631/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/samiux.wordpress.com/631/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/samiux.wordpress.com/631/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/samiux.wordpress.com/631/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/samiux.wordpress.com/631/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/samiux.wordpress.com/631/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/samiux.wordpress.com/631/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/samiux.wordpress.com/631/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/samiux.wordpress.com/631/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/samiux.wordpress.com/631/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/samiux.wordpress.com/631/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/samiux.wordpress.com/631/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/samiux.wordpress.com/631/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/samiux.wordpress.com/631/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=samiux.wordpress.com&amp;blog=297644&amp;post=631&amp;subd=samiux&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://samiux.wordpress.com/2009/08/06/howto-add-or-rename-network-interface-on-debian-5-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7056f9467afbc7d1135a07af05a5ab36?s=96&#38;d=identicon" medium="image">
			<media:title type="html">samiux</media:title>
		</media:content>
	</item>
	</channel>
</rss>
