<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><!-- generator="wordpress/2.3.3" --><rss 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/" version="2.0">

<channel>
	<title>Riding Linux</title>
	<link>http://www.ridinglinux.org</link>
	<description>The linux journey blog</description>
	<pubDate>Thu, 23 Oct 2008 05:16:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/RidingLinux" type="application/rss+xml" /><item>
		<title>How long have I been asleep?</title>
		<link>http://www.ridinglinux.org/2008/10/23/how-long-have-i-been-asleep/</link>
		<comments>http://www.ridinglinux.org/2008/10/23/how-long-have-i-been-asleep/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 05:16:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[Server Administration]]></category>

		<category><![CDATA[glpi]]></category>

		<category><![CDATA[nagios]]></category>

		<category><![CDATA[ocs inventory]]></category>
<category>glpi</category><category>nagios</category><category>ocs inventory</category>
		<guid isPermaLink="false">http://www.ridinglinux.org/2008/10/23/how-long-have-i-been-asleep/</guid>
		<description><![CDATA[&#8230;It has been quite a while since i last updated my blog. There are so many things going on in my life lately (in a good way) and I can say that I&#8217;m in a verge of a major shift of paradigm and perspective especially with regards to my career &#038; future. And yes, Open [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230;It has been quite a while since i last updated my blog. There are so many things going on in my life lately (in a good way) and I can say that I&#8217;m in a verge of a major shift of paradigm and perspective especially with regards to my career &#038; future. And yes, Open Source is still the key element of it. <img src='http://www.ridinglinux.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Recently I&#8217;ve been leading a project to implement a solution consisting of <a href="http://www.nagios.org/">Nagios</a> and <a href="http://www.ocsinventory-ng.org/">OCS Inventory</a> (with <a href="http://glpi-project.org/?lang=en">GLPI</a>) fo a local company which have a large number of IT assets spreaded all over Malaysia. It was quite an experience and I can say the scale of the project is the largest I&#8217;ve been involved so far in my career. There are a lot of chalenges, hiccups, headaches and even frustations during the project but at the end everything completed successfully.</p>
<p>I will provide the details if I have spare time, so stay tuned for more updates</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ridinglinux.org/2008/10/23/how-long-have-i-been-asleep/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Window Vista’s Source Code !</title>
		<link>http://www.ridinglinux.org/2008/07/05/window-vistas-source-code/</link>
		<comments>http://www.ridinglinux.org/2008/07/05/window-vistas-source-code/#comments</comments>
		<pubDate>Sat, 05 Jul 2008 12:46:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Non-OSS]]></category>
<category>microsoft</category><category>source code</category><category>windows vista</category>
		<guid isPermaLink="false">http://www.ridinglinux.org/2008/07/05/window-vistas-source-code/</guid>
		<description><![CDATA[Some guys manage to get their hand into the source code of Windows Vista. And it is now circulating through the internet. 
Click on the image below to view the source code.

  
Source:
http://tuxmax.blogspot.com
]]></description>
			<content:encoded><![CDATA[<p>Some guys manage to get their hand into the source code of Windows Vista. And it is now circulating through the internet. </p>
<p>Click on the image below to view the source code.</p>
<p><a href='http://www.ridinglinux.org/wp-content/uploads/2008/07/vista_source.gif' title='Vista Source Code'><img src='http://www.ridinglinux.org/wp-content/uploads/2008/07/vista_source.thumbnail.gif' alt='Vista Source Code' /></a></p>
<p> <img src='http://www.ridinglinux.org/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Source:<br />
<a href="http://tuxmax.blogspot.com/2008/04/esclusivo-frammento-del-codice-di_01.html">http://tuxmax.blogspot.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ridinglinux.org/2008/07/05/window-vistas-source-code/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Installing Mozilla Firefox 3 on Gentoo 2008.0</title>
		<link>http://www.ridinglinux.org/2008/07/03/installing-mozilla-firefox-3-on-gentoo-20080/</link>
		<comments>http://www.ridinglinux.org/2008/07/03/installing-mozilla-firefox-3-on-gentoo-20080/#comments</comments>
		<pubDate>Thu, 03 Jul 2008 07:20:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Desktop Workstation]]></category>
<category>firefox</category><category>gentoo</category><category>linux</category><category>mozilla</category><category>web browser</category>
		<guid isPermaLink="false">http://www.ridinglinux.org/2008/07/03/installing-mozilla-firefox-3-on-gentoo-20080/</guid>
		<description><![CDATA[I cannot hold myself anymore. I want Firefox 3 on my Gentoo machine ASAP. I don&#8217;t care about the feature, the risk and the hassle I might be facing installing unstable/testing application in my machine, I just want the new version on my PC!  
Using emerge to search the package 
emerge --search mozilla-firefox
Result:
*  [...]]]></description>
			<content:encoded><![CDATA[<p>I cannot hold myself anymore. I want Firefox 3 on my Gentoo machine ASAP. I don&#8217;t care about the feature, the risk and the hassle I might be facing installing unstable/testing application in my machine, I just want the new version on my PC! <img src='http://www.ridinglinux.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Using emerge to search the package </p>
<pre><code>emerge --search mozilla-firefox</code></pre>
<p>Result:</p>
<blockquote><p>*  www-client/mozilla-firefox<br />
      Latest version available: 2.0.0.14<br />
      Latest version installed: 2.0.0.14
</p></blockquote>
<p>Fair enough, the stable branch only have version 2.0.0.14 as the latest one. So I enable unstable/testing branch for that particular package by inserting the line below in my /etc/portage/package.keywords</p>
<pre><code>www-client/mozilla-firefox ~x86</code></pre>
<p>Do the search again</p>
<pre><code>emerge --search mozilla-firefox</code></pre>
<p>Result:</p>
<blockquote><p>*  www-client/mozilla-firefox<br />
      Latest version available: 3.0-r1<br />
      Latest version installed: 2.0.0.14<br />
      Size of files: 50,442 kB<br />
      Homepage:      http://www.mozilla.com/firefox<br />
      Description:   Firefox Web Browser<br />
      License:       || ( MPL-1.1 GPL-2 LGPL-2.1 )
</p></blockquote>
<p>Nice, they have version 3.0-r1 in the repository. </p>
<p>After thinking for a while, I decided to proceed with the installation. Of course I have to enable some other unstable/testing packages in order to meet the dependencies.</p>
<p>I added those lines below in my /etc/portage/package.keywords file</p>
<pre><code>net-libs/xulrunner ~x86
dev-libs/nspr ~x86
dev-libs/nss ~x86</code></pre>
<p>Specifying custom USE parameter in /etc/portage/package.use file</p>
<pre><code>www-client/mozilla-firefox java linguas_en_US -ipv6 </code></pre>
<p><em>I don&#8217;t need IPV6</em></p>
<p>And start the installation process</p>
<pre><code>emerge -av mozilla-firefox</code></pre>
<p>I answered &#8216;yes&#8217; when asked and the installation process started. It took almost 20 minutes for the system to compile them. When it finished, I&#8217;ve been greeted with the message below. </p>
<blockquote><p>* Old versions of installed libraries were detected on your system.<br />
 * In order to avoid breaking packages that depend on these old libs,<br />
 * the libraries are not being removed.  You need to run revdep-rebuild<br />
 * in order to remove these old dependencies.  If you do not have this<br />
 * helper program, simply emerge the &#8216;gentoolkit&#8217; package.<br />
 *<br />
 *   # revdep-rebuild &#8211;library libnspr4.so.6<br />
 *   # revdep-rebuild &#8211;library libplc4.so.6<br />
 *   # revdep-rebuild &#8211;library libplds4.so.6
</p></blockquote>
<p>Ok. Some post installation works to do. But I would skip those steps for now. I will do them if I encounter any problem on other applications.</p>
<p>So I restarted my Firefox, went to some normal plugin/extension upgrade process and there I go, Firefox version 3 !</p>
<p><a href='http://www.ridinglinux.org/wp-content/uploads/2008/07/firefox_31.jpg' title='Firefox Version 3'><img src='http://www.ridinglinux.org/wp-content/uploads/2008/07/firefox_31.thumbnail.jpg' alt='Firefox Version 3' /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ridinglinux.org/2008/07/03/installing-mozilla-firefox-3-on-gentoo-20080/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Dynamic email signature for your mail clients</title>
		<link>http://www.ridinglinux.org/2008/06/25/dynamic-email-signature-for-your-mail-clients/</link>
		<comments>http://www.ridinglinux.org/2008/06/25/dynamic-email-signature-for-your-mail-clients/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 04:52:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Desktop Workstation]]></category>
<category>atom</category><category>cron job</category><category>email signature</category><category>linux script</category><category>outgoing mails</category><category>python</category>
		<guid isPermaLink="false">http://www.ridinglinux.org/2008/06/25/dynamic-email-signature-for-your-mail-clients/</guid>
		<description><![CDATA[Actually it is not that dynamic. Basically I just want to embed the list of my 3 latest blog postings in all my outgoing mails, just below my signature. So what I meant by dynamic is that the text file which is holding the signature will get updated from time to time via a cron-job [...]]]></description>
			<content:encoded><![CDATA[<p>Actually it is not that dynamic. Basically I just want to embed the list of my 3 latest blog postings in all my outgoing mails, just below my signature. So what I meant by dynamic is that the text file which is holding the signature will get updated from time to time via a cron-job and a simple script. </p>
<p>The script will read the RSS/Atom feed from my blog and capture the title &#038; url of three latest postings and pump them into my signature file. I use <a href="http://www.python.org/">Python</a> script and the marvelous <a href="http://www.feedparser.org/">Universal Feed Parser</a>. </p>
<p>For most of linux system python would already been installed by default. However you might need to install  Universal Feed Parser (python-feedparser) in order for the script to work.</p>
<p>In my Gentoo machine<br />
emerge -av dev-python/feedparser</p>
<p>For Fedora Users<br />
yum install python-feedparser</p>
<p>For Ubuntu users<br />
apt-get install python-feedparser</p>
<p>The phyton code (<em>take note that I&#8217;m new to python. If you find that the script is not appropriate please do advise me</em>)</p>
<pre><code>
#!/usr/bin/python

import feedparser

#the signature file (output)
filename = '/path/to/your/home/folder/.signature1'

#numbers of items to be displayed
num = 3

#feed address
feedurl = "http://feeds.feedburner.com/RidingLinux"

#your signature. Change accordingly
text = """Regards
Your Name
Your Company
Address
Telephone

My latest BLOG posts:

"""

d = feedparser.parse(feedurl)
if d.feed.has_key('title') :
	file = open(filename, 'w')
	for i in range (num) :
		text = text + d['entries'][i]['title']+"\n"+d['entries'][i]['link']+"\n\n"
	file.write(text)
	file.close()
</code></pre>
<p>Save the above script in your home folder (eg: /home/yourname/signature-update.py) and test it out.<br />
Once everything is ok, add a cron-job for it to be executed in schedule.</p>
<p>Example (if you are using &#8216;crontab -e&#8217;) command</p>
<pre><code>0,30 * * * * python /home/yourname/signature-update.py >/dev/null 2>&#038;1</code></pre>
<p>This will execute the script every half and hour.</p>
<p>Sample generated file</p>
<blockquote><p>
Regards<br />
My Name<br />
My Company<br />
My Address<br />
My Telephone Number</p>
<p>My latest BLOG posts:</p>
<p>Vuurmuur firewall management interface for Linux Iptables<br />
http://www.ridinglinux.org/2008/06/23/vuurmuur-firewall-management-interface-for-linux-iptables/</p>
<p>Food Strainer - Your Wifi reception booster!<br />
http://www.ridinglinux.org/2008/06/15/food-strainer-your-wifi-reception-booster/</p>
<p>Simple port forwarding with Iptables in linux<br />
http://www.ridinglinux.org/2008/05/21/simple-port-forwarding-with-iptables-in-linux/
</p></blockquote>
<p>Now I can simply point my mail client (Evolution, KMail, Claws-Mail or Thunderbird) to use the above file as my signature.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ridinglinux.org/2008/06/25/dynamic-email-signature-for-your-mail-clients/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Vuurmuur firewall management interface for Linux Iptables</title>
		<link>http://www.ridinglinux.org/2008/06/23/vuurmuur-firewall-management-interface-for-linux-iptables/</link>
		<comments>http://www.ridinglinux.org/2008/06/23/vuurmuur-firewall-management-interface-for-linux-iptables/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 09:44:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Server Administration]]></category>
<category>firewall box</category><category>graphical interface</category><category>iptables</category><category>ncurses firewall</category><category>remote administration</category><category>traffic volume</category><category>vuurmuur</category>
		<guid isPermaLink="false">http://www.ridinglinux.org/2008/06/23/vuurmuur-firewall-management-interface-for-linux-iptables/</guid>
		<description><![CDATA[In my previous post regarding iptables, I&#8217;ve mention about an iptables management tool called Vuurmuur (http://www.vuurmuur.org/). Most people have probably heard about FireStarter, KMyFirewall and ShoreWall. Basically Vuurmuur serves the same purpose, which is providing easy way to manipulate iptables rules for users to manage their firewall without having to worry about all those complex [...]]]></description>
			<content:encoded><![CDATA[<p>In my previous post regarding <a href="http://www.ridinglinux.org/2008/05/21/simple-port-forwarding-with-iptables-in-linux/">iptables</a>, I&#8217;ve mention about an iptables management tool called <a href="http://www.ridinglinux.org/2008/05/21/simple-port-forwarding-with-iptables-in-linux/">Vuurmuur</a> <a href="http://www.vuurmuur.org/">(http://www.vuurmuur.org/)</a>. Most people have probably heard about FireStarter, KMyFirewall and ShoreWall. Basically Vuurmuur serves the same purpose, which is providing easy way to manipulate iptables rules for users to manage their firewall without having to worry about all those complex iptables commands. Those tools give us the ability to play around with iptables either by using graphical interface or adjusting configuration files. </p>
<p><a href='http://www.ridinglinux.org/wp-content/uploads/2008/06/vuurmuur-rules.png' title='Vuurmuur Rules List'><img src='http://www.ridinglinux.org/wp-content/uploads/2008/06/vuurmuur-rules.thumbnail.png' alt='Vuurmuur Rules List' /></a></p>
<p>The thing I like about vuurmuur is that it uses <a href="http://en.wikipedia.org/wiki/Ncurses">Ncurses</a> GUI interface, meaning that you can manage it via a terminal console or SSH. The drawback of using tools such as FireStarter, KmyFirewall is you need to have a graphical desktop, thus making it hard to manage them remotely especially via slow internet connection or if you are using Windows machine to do the administration process. While some other tools provide web-based management interface such as Smoothwall (via Webmin) or a dedicated firewall box like IpCop and Astaro Internet Security, allowing those web interface to the internet wouldn&#8217;t be a recommended practice. Furthermore, the web interface provided by Astaro Internet Security is too slow for a remote user.</p>
<p>So if you need a very light (and yet POWERFUL) solution suitable for frequent remote administration, its either you use the pure command line iptables command, or using config file based tool such as ShoreWall, or lastly if you really need non web-based GUI then Vuurmuur would be an ideal answer. You can simply SSH from anywhere (provided that you allow SSH remotely) or by using Windows SSH interface called Putty. </p>
<p>Apart form that, I am also pleased with it&#8217;s ability to do other things such as providing realtime log viewer, traffic shaping, traffic volume monitoring and lots more. Combine those things with <a href="http://iptraf.seul.org/">Iptraf</a>, then you will get hooked if front of your &#8216;blue screen&#8217; for the whole day, even worse than watching blue film. <img src='http://www.ridinglinux.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><a href='http://www.ridinglinux.org/wp-content/uploads/2008/06/vuurmuur-logview.png' title='Vuurmuur realtime log viewer'><img src='http://www.ridinglinux.org/wp-content/uploads/2008/06/vuurmuur-logview.thumbnail.png' alt='Vuurmuur realtime log viewer' /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ridinglinux.org/2008/06/23/vuurmuur-firewall-management-interface-for-linux-iptables/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Food Strainer - Your Wifi reception booster!</title>
		<link>http://www.ridinglinux.org/2008/06/15/food-strainer-your-wifi-reception-booster/</link>
		<comments>http://www.ridinglinux.org/2008/06/15/food-strainer-your-wifi-reception-booster/#comments</comments>
		<pubDate>Sun, 15 Jun 2008 05:54:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Non-OSS]]></category>
<category>food</category><category>strainer</category><category>usb</category><category>wifi</category>
		<guid isPermaLink="false">http://www.ridinglinux.org/2008/06/15/food-strainer-your-wifi-reception-booster/</guid>
		<description><![CDATA[I recently moved to a new house. Everything went well apart from my telephone &#038; internet line migration. As for now, the telco/ISP (the Malaysian TMNet aka TMNut) cannot do the migration process due to technical problems. Been whacking their customer service almost everyday but they seem to have a trick of looping our reports [...]]]></description>
			<content:encoded><![CDATA[<p>I recently moved to a new house. Everything went well apart from my telephone &#038; internet line migration. As for now, the telco/ISP (the Malaysian TMNet aka TMNut) cannot do the migration process due to technical problems. Been whacking their customer service almost everyday but they seem to have a trick of looping our reports and complains into some kind of black hole. They responded with varies of reasons such as no ports available, faulty line ect..etc.. but none of them seems to make any sense.</p>
<p>I desperately need internet connection at home and luckily a neighbor who are a broadband subscriber willing to share his internet connection with me via Wifi. He already have a wireless AP installed at his home for personal use.</p>
<p>So I plugged in my USB wifi adapter and manage to connect to his AP. </p>
<p><a href='http://www.ridinglinux.org/wp-content/uploads/2008/06/usb_wifi.png' title='My USB wifi adapter'><img src='http://www.ridinglinux.org/wp-content/uploads/2008/06/usb_wifi.thumbnail.png' alt='My USB wifi adapter' /></a></p>
<p>But the signal is very sluggish which is expected due to the distance between our house. The link quality barely archive 50% and I got frequent disconnection. </p>
<p><a href='http://www.ridinglinux.org/wp-content/uploads/2008/06/wifi1.PNG' title='Wifi before food strainer'><img src='http://www.ridinglinux.org/wp-content/uploads/2008/06/wifi1.thumbnail.PNG' alt='Wifi before food strainer' /></a></p>
<p>Fortunately a few months back I&#8217;ve stumbled upon some funny trick of using food strainer to boost wireless signal. So this is the most suitable time try it out.</p>
<p>I bought myself a new food strainer for RM11.00 and I cut a little hole just about the size of my USB wifi body. </p>
<p><a href='http://www.ridinglinux.org/wp-content/uploads/2008/06/my_new_food_strainer.png' title='My New Food Strainer'><img src='http://www.ridinglinux.org/wp-content/uploads/2008/06/my_new_food_strainer.thumbnail.png' alt='My New Food Strainer' /></a></p>
<p>Put the device through the hole</p>
<p><a href='http://www.ridinglinux.org/wp-content/uploads/2008/06/usb_wifi_and_food_strainer1.png' title='Wifi inside food strainer'><img src='http://www.ridinglinux.org/wp-content/uploads/2008/06/usb_wifi_and_food_strainer1.thumbnail.png' alt='Wifi inside food strainer' /></a></p>
<p><a href='http://www.ridinglinux.org/wp-content/uploads/2008/06/usb_wifi_and_food_strainer2.png' title='Wifi inside food strainer 2'><img src='http://www.ridinglinux.org/wp-content/uploads/2008/06/usb_wifi_and_food_strainer2.thumbnail.png' alt='Wifi inside food strainer 2' /></a></p>
<p>And&#8230; PRESTO!!!</p>
<p><a href='http://www.ridinglinux.org/wp-content/uploads/2008/06/wifi2.PNG' title='Wifi after food strainer'><img src='http://www.ridinglinux.org/wp-content/uploads/2008/06/wifi2.thumbnail.PNG' alt='Wifi after food strainer' /></a></p>
<p>Neat (ugly) huh&#8230; But it surely works. My connection is now very stable.</p>
<p>My desktop show off ! (pardon my old hardwares. I&#8217;m a cheap geek..)</p>
<p><a href='http://www.ridinglinux.org/wp-content/uploads/2008/06/my_desktop.png' title='My powerful desktop'><img src='http://www.ridinglinux.org/wp-content/uploads/2008/06/my_desktop.thumbnail.png' alt='My powerful desktop' /></a></p>
<p>***I&#8217;m now thinking of permanently unsubscribe my TmNut telephone/internet line <img src='http://www.ridinglinux.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ridinglinux.org/2008/06/15/food-strainer-your-wifi-reception-booster/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Simple port forwarding with Iptables in linux</title>
		<link>http://www.ridinglinux.org/2008/05/21/simple-port-forwarding-with-iptables-in-linux/</link>
		<comments>http://www.ridinglinux.org/2008/05/21/simple-port-forwarding-with-iptables-in-linux/#comments</comments>
		<pubDate>Wed, 21 May 2008 10:18:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Server Administration]]></category>
<category>firewall</category><category>forward chain</category><category>iptables</category><category>linux</category><category>linux machine</category><category>port forwarding</category>
		<guid isPermaLink="false">http://www.ridinglinux.org/2008/05/21/simple-port-forwarding-with-iptables-in-linux/</guid>
		<description><![CDATA[One of the most common question I received from my customers is how to setup a simple port forwarding on top of their existing iptables firewall rules. Most of my customers are using Centos 5 and only uses the standard iptables provided by default upon operating system installation. For a more complicated setup I usually [...]]]></description>
			<content:encoded><![CDATA[<p>One of the most common question I received from my customers is how to setup a simple port forwarding on top of their existing iptables firewall rules. Most of my customers are using Centos 5 and only uses the standard iptables provided by default upon operating system installation. For a more complicated setup I usually recommend existing iptables manipulation interface/packages (my favorite is Vuurmuur), but for those who just need one simple rule the the guide below should be enough to handle them.</p>
<p>Assumptions:</p>
<ul>
<li>Only use IPV4</li>
<li>Two unit of machines involved, the linux machine that will act as the gateway/forwarder (IP: 192.168.0.1) and the destination machine (IP: 192.168.0.100)</li>
<li>The port to be forwarded is 5901 (Change to whatever port you want)</li>
<li>This guide is based on linux Centos 5, some other distros could also use the same setup but some other might need additional modification</li>
<li>Iptables service is turned on, and SELinux is turned off</li>
</ul>
<p>Firstly, we have to make sure that the kernel allow port forwarding. Edit <strong>/etc/sysctl.conf</strong> and make the amendment below</p>
<pre><code>net.ipv4.ip_forward = 1</code></pre>
<p>To activate the rule above immediately without a reboot, run</p>
<pre><code>sysctl -p /etc/sysctl.conf</code></pre>
<p>Then run each of the commands below</p>
<p>To allow forwarding rule specifically to machine 192.168.0.100 in the FORWARD chain</p>
<pre><code>iptables -I FORWARD -p tcp -d 192.168.0.100 --dport 5901 -j ACCEPT</code></pre>
<p>The actual port forwarding rule</p>
<pre><code>iptables -t nat -A PREROUTING -i lo -p tcp --dport 5901 -j DNAT --to-destination 192.168.0.100:5901</code></pre>
<p>To masquerade the routed connection so that the firewall will treat it as local connection.</p>
<pre><code>iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE</code></pre>
<p>The port forwarding rules should be ready by now, you can test it by using some common tools like telnet.</p>
<p>To view the current rules, run</p>
<pre><code>/etc/init.d/iptables status</code></pre>
<p>Bear in mind that the iptables modification above will only effective on this boot session. It will be destroyed/reverted back to original setup after reboot. To make the rules permanent, make sure you backup your existing iptables template first. Simply copy <strong>/etc/sysconfig/iptables</strong> to another place or name.</p>
<p>After that, just run command </p>
<pre><code>service iptables save</code></pre>
<p>This will store your modified iptables rules into /etc/sysconfig/iptables thus making it persist even after reboot.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ridinglinux.org/2008/05/21/simple-port-forwarding-with-iptables-in-linux/feed/</wfw:commentRss>
		</item>
		<item>
		<title>MAMPU pioneered OpenOffice adoption for Malaysian Government</title>
		<link>http://www.ridinglinux.org/2008/03/19/mampu-pioneered-openoffice-adoption-for-malaysian-govenment/</link>
		<comments>http://www.ridinglinux.org/2008/03/19/mampu-pioneered-openoffice-adoption-for-malaysian-govenment/#comments</comments>
		<pubDate>Wed, 19 Mar 2008 05:56:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[General]]></category>
<category>government agencies</category><category>malaysia</category><category>mampu</category><category>microsoft office</category><category>openoffice</category><category>open source</category><category>oscc</category>
		<guid isPermaLink="false">http://www.ridinglinux.org/2008/03/19/mampu-pioneered-openoffice-adoption-for-malaysian-govenment/</guid>
		<description><![CDATA[Malaysian Administrative Modernisation And Management Planning Unit - MAMPU (http://www.mampu.gov.my) have recently making a bold move by introducing a policy to migrate to the OpenOffice.org open source productivity suite instead of the current widely used MS Office. The official adoption date will be on the 1st of April 2008 and the agency will also uninstall [...]]]></description>
			<content:encoded><![CDATA[<p>Malaysian Administrative Modernisation And Management Planning Unit - MAMPU (<a href="http://www.mampu.gov.my/">http://www.mampu.gov.my</a>) have recently making a <strong>bold</strong> move by introducing a policy to migrate to the OpenOffice.org open source productivity suite instead of the current widely used MS Office. The official adoption date will be on the 1st of April 2008 and the agency will also uninstall all copies of Microsoft Office by the end of 2008.</p>
<blockquote><p>
<strong>MAMPU Migrates to OpenOffice.org</strong></p>
<p>Putrajaya, 19th March 2008 - The Malaysian Administrative  Modernisation and Management Planning Unit (MAMPU), today officially  adopts a policy to migrate to the OpenOffice.org open source  productivity suite. This is in line with the Malaysian Public Sector  Open Source Master Plan, which calls for government agencies to reduce costs, increase freedom of choice and interoperability.</p>
<p>From April 1st, MAMPU will start adopting the OpenDocument Format (ODF), standard for all new documents created. ODF the ISO open standard for electronic documents is also the default format for OpenOffice.org. The agency will also uninstall all copies of Microsoft Office by the end of 2008.</p>
<p>To ensure a smooth migration, presently over 80 agency staff have been trained by the Open Source Competency Centre (OSCC). Additional staff will then be trained internally by the IT department, which will also provide support for OpenOffice.org.
</p></blockquote>
<p>More info at<br />
<a href="http://www.oscc.org.my/index.php?option=com_content&#038;task=view&#038;id=189&#038;Itemid=128">http://www.oscc.org.my/index.php?option=com_content&#038;task=view&#038;id=189&#038;Itemid=128</a></p>
<p> <a href="http://www.ridinglinux.org/2008/03/19/mampu-pioneered-openoffice-adoption-for-malaysian-govenment/#more-140" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ridinglinux.org/2008/03/19/mampu-pioneered-openoffice-adoption-for-malaysian-govenment/feed/</wfw:commentRss>
		</item>
		<item>
		<title>MyFina - Web-based Personal Financial System</title>
		<link>http://www.ridinglinux.org/2008/03/06/myfina-web-based-personal-financial-system/</link>
		<comments>http://www.ridinglinux.org/2008/03/06/myfina-web-based-personal-financial-system/#comments</comments>
		<pubDate>Thu, 06 Mar 2008 10:08:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[General]]></category>
<category>demo version</category><category>money</category><category>personal finance</category><category>source code</category>
		<guid isPermaLink="false">http://www.ridinglinux.org/2008/03/06/myfina-web-based-personal-financial-system/</guid>
		<description><![CDATA[I&#8217;m releasing the source code and also live demo version of my application called MyFina.
MyFina is a simple web based personal finance and budgeting program for managing accounts and expenses. The system aimed at those who have little or no financial background to gain control over their money. The system supports multiple numbers of users. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m releasing the source code and also live demo version of my application called MyFina.</p>
<blockquote><p>MyFina is a simple web based personal finance and budgeting program for managing accounts and expenses. The system aimed at those who have little or no financial background to gain control over their money. The system supports multiple numbers of users. In making this software, the developer has attempted to make things as simple as possible, while still retaining enough functions to satisfy most home users.</p></blockquote>
<p>More info at <a href="http://myfina.ridinglinux.org/">http://myfina.ridinglinux.org/</a></p>
<p><strong>UPDATE</strong><br />
This project has been registered at Sourceforge<br />
<a href="http://sourceforge.net/projects/myfina/">http://sourceforge.net/projects/myfina/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ridinglinux.org/2008/03/06/myfina-web-based-personal-financial-system/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Krusader - the Winscp alternative in linux</title>
		<link>http://www.ridinglinux.org/2007/12/13/krusader-the-winscp-alternative-in-linux/</link>
		<comments>http://www.ridinglinux.org/2007/12/13/krusader-the-winscp-alternative-in-linux/#comments</comments>
		<pubDate>Thu, 13 Dec 2007 06:02:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Win32 Replacement]]></category>
<category>kde</category><category>krusader</category><category>linux</category><category>winscp</category>
		<guid isPermaLink="false">http://www.ridinglinux.org/2007/12/13/krusader-the-winscp-alternative-in-linux/</guid>
		<description><![CDATA[This is the follow-up of my previous posting regarding &#8220;Winscp in linux (KDE &#038; Gnome)&#8220;. I&#8217;ve recently used a tool called Krusader (http://krusader.sourceforge.net/). This is the application that I found to be the closest match to WinSCP since they both are twin-panel file manager A.K.A orthodox file manager. Krusader have most of the features (maybe [...]]]></description>
			<content:encoded><![CDATA[<p>This is the follow-up of my previous posting regarding &#8220;<a href="http://www.ridinglinux.org/2007/03/27/winscp-in-linux-kde-gnome/">Winscp in linux (KDE &#038; Gnome)</a>&#8220;. I&#8217;ve recently used a tool called Krusader (<a href="http://krusader.sourceforge.net/">http://krusader.sourceforge.net/</a>). This is the application that I found to be the closest match to WinSCP since they both are twin-panel file manager A.K.A <em><a href="http://en.wikipedia.org/wiki/Orthodox_file_manager">orthodox file manager</a></em>. Krusader have most of the <a href="http://krusader.sourceforge.net/handbook/features.html">features</a> (maybe more) WinSCP had such as SSH/SCP connectivity, folder comparison and synchronization. Furthermore some of the hotkeys are pretty much alike.</p>
<p>From the official website</p>
<blockquote><p>
Krusader is an advanced twin panel (commander style) file manager for KDE and other desktops in the *nix world, similar to Midnight or Total Commander. It provides all the file management features you could possibly want. </p>
</blockquote>
<p>Some screen-shots of Krusader</p>
<p><a href='http://www.ridinglinux.org/wp-content/uploads/2007/12/krusader1.png' title='Krusader'><img src='http://www.ridinglinux.org/wp-content/uploads/2007/12/krusader1.thumbnail.png' alt='Krusader' /></a><br />
The application interface</p>
<p><a href='http://www.ridinglinux.org/wp-content/uploads/2007/12/krusader2.png' title='Krusader folder synchronization'><img src='http://www.ridinglinux.org/wp-content/uploads/2007/12/krusader2.thumbnail.png' alt='Krusader folder synchronization' /></a><br />
Folder compare and synchronization</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ridinglinux.org/2007/12/13/krusader-the-winscp-alternative-in-linux/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
