<?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: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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>NamHuy</title>
	
	<link>http://namhuy.org/blog</link>
	<description>Linux For Everybody</description>
	<lastBuildDate>Fri, 24 Apr 2009 02:45:10 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/Namhuy" type="application/rss+xml" /><feedburner:emailServiceId>Namhuy</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2FNamhuy" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FNamhuy" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2FNamhuy" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/Namhuy" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FNamhuy" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FNamhuy" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FNamhuy" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://my.feedlounge.com/external/subscribe?url=http%3A%2F%2Ffeeds.feedburner.com%2FNamhuy" src="http://static.feedlounge.com/buttons/subscribe_0.gif">Subscribe with FeedLounge</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsalloy.com/?rss=http%3A%2F%2Ffeeds.feedburner.com%2FNamhuy" src="http://www.newsalloy.com/subrss3.gif">Subscribe with NewsAlloy</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2FNamhuy" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare href="http://mix.excite.eu/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FNamhuy" src="http://image.excite.co.uk/mix/addtomix.gif">Subscribe with Excite MIX</feedburner:feedFlare><feedburner:feedFlare href="http://www.flurry.com/pushRssFeed.do?r=fb&amp;url=http%3A%2F%2Ffeeds.feedburner.com%2FNamhuy" src="http://www.flurry.com/images/flurry_rss_logo2.gif">Subscribe with Flurry</feedburner:feedFlare><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Ubuntu 9.04 (Jaunty Jackalope) Final</title>
		<link>http://feedproxy.google.com/~r/Namhuy/~3/LNVGDUC3VIw/</link>
		<comments>http://namhuy.org/blog/2009/04/23/ubuntu-904-jaunty-jackalope-final/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 02:45:10 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Jaunty Jackalope]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/?p=76</guid>
		<description><![CDATA[Ubuntu is a community developed, linux-based operating system that is perfect for laptops, desktops and servers. It contains all the applications you need &#8211; a web browser, presentation, document and spreadsheet software, instant messaging and much more. Ubuntu is free software. Whether you use it at home, at school or at work Ubuntu contains all [...]]]></description>
			<content:encoded><![CDATA[<p>Ubuntu is a community developed, linux-based operating system that is perfect for laptops, desktops and servers. It contains all the applications you need &#8211; a web browser, presentation, document and spreadsheet software, instant messaging and much more. Ubuntu is free software. Whether you use it at home, at school or at work Ubuntu contains all the applications you&#8217;ll ever need, from word processing and email applications, to web server software and programming tools.</p>
<p>Ubuntu is and always will be free of charge. You do not pay any licensing fees. You can download, use and share Ubuntu with your friends, family, school or business for absolutely nothing. We issue a new desktop and server release every six months. That means you&#8217;ll always have the the latest and greatest applications that the open source world has to offer. Everything you need on one CD, which provides a complete working environment. Additional software is available online.</p>
<p>Ubuntu comes with full commercial support from Canonical and hundreds of companies around the world. Ubuntu includes the very best translations and accessibility infrastructure that the free software community has to offer. Ubuntu CDs contain only free software applications; we encourage you to use free and open source software, improve it and pass it on.</p>
<p>With Ubuntu Desktop Edition you can surf the web, read email, create documents and spreadsheets, edit images and much more. Ubuntu has a fast and easy graphical installer right on the Desktop CD. On a typical computer the installation should take you less than 25 minutes. The graphical installer enables you to get up and running quickly and easily. On the desktop you have a full set of productivity, internet, drawing and graphics applications, and games.</p>
<p>The Server Edition &#8211; built on the solid foundation of Debian which is known for its robust server installations — has a strong heritage for reliable performance and predictable evolution. As your business grows, so does your network. More applications need to be deployed and more servers are required. Ubuntu Server Edition offers support for several common configurations, and simplifies common Linux server deployment processes. It provides a well-integrated platform enabling you to quickly and easily deploy a new server with any of the standard internet services: mail, web, DNS, file serving or database management. A key lesson from its Debian heritage is that of security by default. The Ubuntu Server has no open ports after the installation and contains only the essential software needed to build a secure server.</p>
<p>Link : <a title="Ubuntu" href="http://releases.ubuntu.com/9.04/" target="_blank">Ubuntu 9.04 (Jaunty Jackalope) Final </a></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2Fnamhuy.org%2Fblog%2F2009%2F04%2F23%2Fubuntu-904-jaunty-jackalope-final%2F&amp;linkname=Ubuntu%209.04%20%28Jaunty%20Jackalope%29%20Final"><img src="http://namhuy.org/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Namhuy?a=LNVGDUC3VIw:NtdG6O-rnDs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Namhuy?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Namhuy?a=LNVGDUC3VIw:NtdG6O-rnDs:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Namhuy?d=dnMXMwOfBR0" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2009/04/23/ubuntu-904-jaunty-jackalope-final/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://namhuy.org/blog/2009/04/23/ubuntu-904-jaunty-jackalope-final/</feedburner:origLink></item>
		<item>
		<title>HOWTO: Recording audio cds with K3b</title>
		<link>http://feedproxy.google.com/~r/Namhuy/~3/yKwDG6SbpQk/</link>
		<comments>http://namhuy.org/blog/2009/03/09/howto-recording-audio-cds-with-k3b-2/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 09:38:23 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[k3b]]></category>
		<category><![CDATA[mp3]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/?p=74</guid>
		<description><![CDATA[k3b cannot deal with mp3 files by default in Ubuntu Edgy Eft.
If you need to produce an audio cd by adding mp3 files with k3b, you’ll need to install the following package:
sudo apt-get install libk3b2-mp3
and you are done!!
]]></description>
			<content:encoded><![CDATA[<p>k3b cannot deal with mp3 files by default in Ubuntu Edgy Eft.<br />
If you need to produce an audio cd by adding mp3 files with k3b, you’ll need to install the following package:<br />
sudo apt-get install libk3b2-mp3<br />
and you are done!!</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2Fnamhuy.org%2Fblog%2F2009%2F03%2F09%2Fhowto-recording-audio-cds-with-k3b-2%2F&amp;linkname=HOWTO%3A%20Recording%20audio%20cds%20with%20K3b"><img src="http://namhuy.org/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Namhuy?a=yKwDG6SbpQk:7qgwe0f9v2A:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Namhuy?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Namhuy?a=yKwDG6SbpQk:7qgwe0f9v2A:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Namhuy?d=dnMXMwOfBR0" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2009/03/09/howto-recording-audio-cds-with-k3b-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://namhuy.org/blog/2009/03/09/howto-recording-audio-cds-with-k3b-2/</feedburner:origLink></item>
		<item>
		<title>HowTo Ubuntu 8.10 64bit and Areca 6.2 (6.1) java Backup Utility</title>
		<link>http://feedproxy.google.com/~r/Namhuy/~3/9SNGujWjs6g/</link>
		<comments>http://namhuy.org/blog/2009/02/17/howto-ubuntu-810-64bit-and-areca-62-61-java-backup-utility/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 08:01:23 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[areca]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/?p=51</guid>
		<description><![CDATA[
1) Go to Synaptic and install
libswt-cairo-gtk-3.4-jni
libswt-gnome-gtk-3.4-jni
libswt-gtk-3.4-java
libswt-gtk-3.4-jni
libswt-mozilla-gtk-3.4-jni
2) cd /usr/lib/jni
cp the files:
libswt-atk-gtk-3448.so
libswt-cairo-gtk-3448.so
libswt-gtk-3448.so
libswt-pi-gtk-3448.so
libswt-awt-gtk-3448.so
libswt-gnome-gtk-3448.so
libswt-mozilla-gtk-3448.so
to the areca/lib folder with names in order of appearance:
libswt-atk-gtk-3232.so
libswt-cairo-gtk-3232.so
libswt-gtk-3232.so
libswt-pi-gtk-3232.so
libswt-awt-gtk-3232.so
libswt-gnome-gtk-3232.so
libswt-mozilla-gtk-3232.so
overwriting the original ones  .
3) the files:
org.eclipse.swt.gtk.linux.x86_3.2.0.v3232m.jar
org.eclipse.jface_3.2.0.I20060605-1400.jar
come from an eclipse installation actually, so if you don’t have eclipse,
download it and:
cd eclipse/plugins
and cp the org.eclipse.swt.gtk.linux.x86_64_3.4.1.v3449c.jar
into areca/lib org.eclipse.swt.gtk.linux.x86_3.2.0.v3232m.jar
and cp org.eclipse.jface_3.4.1.M20080827-2000.jar to areca/lib
org.eclipse.jface_3.2.0.I20060605-1400.jar
overwriting the original ones.
Now, the file libarecafs.so [...]]]></description>
			<content:encoded><![CDATA[<div class="snap_preview">
<p>1) Go to Synaptic and install</p>
<p>libswt-cairo-gtk-3.4-jni<br />
libswt-gnome-gtk-3.4-jni<br />
libswt-gtk-3.4-java<br />
libswt-gtk-3.4-jni<br />
libswt-mozilla-gtk-3.4-jni</p>
<p>2) cd /usr/lib/jni</p>
<p>cp the files:</p>
<p>libswt-atk-gtk-3448.so<br />
libswt-cairo-gtk-3448.so<br />
libswt-gtk-3448.so<br />
libswt-pi-gtk-3448.so<br />
libswt-awt-gtk-3448.so<br />
libswt-gnome-gtk-3448.so<br />
libswt-mozilla-gtk-3448.so</p>
<p>to the areca/lib folder with names in order of appearance:</p>
<p>libswt-atk-gtk-3232.so<br />
libswt-cairo-gtk-3232.so<br />
libswt-gtk-3232.so<br />
libswt-pi-gtk-3232.so<br />
libswt-awt-gtk-3232.so<br />
libswt-gnome-gtk-3232.so<br />
libswt-mozilla-gtk-3232.so</p>
<p>overwriting the original ones <img class="wp-smiley" src="http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif" alt=";)" /> .</p>
<p>3) the files:</p>
<p>org.eclipse.swt.gtk.linux.x86_3.2.0.v3232m.jar<br />
org.eclipse.jface_3.2.0.I20060605-1400.jar</p>
<p>come from an eclipse installation actually, so if you don’t have eclipse,<br />
download it and:</p>
<p>cd eclipse/plugins</p>
<p>and cp the org.eclipse.swt.gtk.linux.x86_64_3.4.1.v3449c.jar<br />
into areca/lib org.eclipse.swt.gtk.linux.x86_3.2.0.v3232m.jar</p>
<p>and cp org.eclipse.jface_3.4.1.M20080827-2000.jar to areca/lib<br />
org.eclipse.jface_3.2.0.I20060605-1400.jar</p>
<p>overwriting the original ones.</p>
<p>Now, the file libarecafs.so surprise, surprise is a 32 bit one, so I compiled the 64bit one.<br />
With the 32bit one, you’ll get a couple of warnings:</p>
<p>09-01-22 20:44 &#8211; WARNING &#8211; com.myJava.file.metadata.posix.jni.JNIMetaDataAccessor cannot be used on this system. Got the following error : “java.lang.UnsatisfiedLinkError : /home/jordilin/areca/lib/libarecafs.so: /home/jordilin/areca/lib/libarecafs.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)”<br />
09-01-22 20:44 &#8211; WARNING &#8211; [com.myJava.file.metadata.posix.jni.JNIMetaDataAccessor] not validated. The default metadata accessor will be used instead.</p>
<p>4) ./areca.sh<br />
5) done</p>
<p>Note. I tested this using 6.2 pre-release, but using 6.1 should be the same.</p></div>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2Fnamhuy.org%2Fblog%2F2009%2F02%2F17%2Fhowto-ubuntu-810-64bit-and-areca-62-61-java-backup-utility%2F&amp;linkname=HowTo%20Ubuntu%208.10%2064bit%20and%20Areca%206.2%20%286.1%29%20java%20Backup%20Utility"><img src="http://namhuy.org/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/Namhuy?a=KIBT7CVA"><img src="http://feeds.feedburner.com/~f/Namhuy?d=41" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/Namhuy?a=bNv4KSOz"><img src="http://feeds.feedburner.com/~f/Namhuy?d=43" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2009/02/17/howto-ubuntu-810-64bit-and-areca-62-61-java-backup-utility/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://namhuy.org/blog/2009/02/17/howto-ubuntu-810-64bit-and-areca-62-61-java-backup-utility/</feedburner:origLink></item>
		<item>
		<title>Ubuntu Linux: How to Install Flash Player for firefox</title>
		<link>http://feedproxy.google.com/~r/Namhuy/~3/ut-2H1tQD5A/</link>
		<comments>http://namhuy.org/blog/2008/09/27/ubuntu-linux-how-to-install-flash-player-for-firefox/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 04:47:44 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[flash player]]></category>
		<category><![CDATA[install]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/?p=45</guid>
		<description><![CDATA[Install Flash Player For Ubuntu Linux
Type the following command to install flash player:
$ sudo apt-get install flashplugin-nonfree
Now flash player should be working. Visit youtube or any other site to view flash content.
]]></description>
			<content:encoded><![CDATA[<h2>Install Flash Player For Ubuntu Linux</h2>
<p>Type the following command to install flash player:</p>
<p><strong>$ sudo apt-get install flashplugin-nonfree</strong></p>
<p>Now flash player should be working. Visit youtube or any other site to view flash content.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2Fnamhuy.org%2Fblog%2F2008%2F09%2F27%2Fubuntu-linux-how-to-install-flash-player-for-firefox%2F&amp;linkname=Ubuntu%20Linux%3A%20How%20to%20Install%20Flash%20Player%20for%20firefox"><img src="http://namhuy.org/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/Namhuy?a=Wf0IRb95"><img src="http://feeds.feedburner.com/~f/Namhuy?d=41" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/Namhuy?a=02trJXYj"><img src="http://feeds.feedburner.com/~f/Namhuy?d=43" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2008/09/27/ubuntu-linux-how-to-install-flash-player-for-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://namhuy.org/blog/2008/09/27/ubuntu-linux-how-to-install-flash-player-for-firefox/</feedburner:origLink></item>
		<item>
		<title>add delete and switch user in ubuntu by command lines</title>
		<link>http://feedproxy.google.com/~r/Namhuy/~3/YB_JVfWWnDw/</link>
		<comments>http://namhuy.org/blog/2008/04/20/add-delete-and-switch-user-in-ubuntu-by-command-lines/#comments</comments>
		<pubDate>Sun, 20 Apr 2008 19:55:33 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/?p=44</guid>
		<description><![CDATA[First, I want to add a user. So how to do it?
+ To add user:
sudo adduser &#60;username&#62;
to add password for your user
sudo passwd &#60;username&#62;
+ How can i switch from one user to another one? In this example, i want to switch from one user to another one.
su &#60;username&#62;
and type in your password to login
after that, [...]]]></description>
			<content:encoded><![CDATA[<p>First, I want to add a user. So how to do it?</p>
<p>+ To add user:</p>
<p style="padding-left: 30px;">sudo adduser &lt;username&gt;</p>
<p>to add password for your user</p>
<p style="padding-left: 30px;">sudo passwd &lt;username&gt;</p>
<p>+ How can i switch from one user to another one? In this example, i want to switch from one user to another one.</p>
<p style="padding-left: 30px;">su &lt;username&gt;</p>
<p>and type in your password to login</p>
<p>after that, you will be at a &#8216;$&#8217; prompt. type:</p>
<p style="padding-left: 30px;">bash</p>
<p>to get to a normal prompt.</p>
<p>+ How can I delete a user?</p>
<p style="padding-left: 30px;">sudo userdel &lt;username&gt;</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2Fnamhuy.org%2Fblog%2F2008%2F04%2F20%2Fadd-delete-and-switch-user-in-ubuntu-by-command-lines%2F&amp;linkname=add%20delete%20and%20switch%20user%20in%20ubuntu%20by%20command%20lines"><img src="http://namhuy.org/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/Namhuy?a=C4aWma2Z"><img src="http://feeds.feedburner.com/~f/Namhuy?d=41" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/Namhuy?a=iwG7lQ4N"><img src="http://feeds.feedburner.com/~f/Namhuy?d=43" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2008/04/20/add-delete-and-switch-user-in-ubuntu-by-command-lines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://namhuy.org/blog/2008/04/20/add-delete-and-switch-user-in-ubuntu-by-command-lines/</feedburner:origLink></item>
		<item>
		<title>Terminal or shell command to shutdown or reboot Ubuntu Linux</title>
		<link>http://feedproxy.google.com/~r/Namhuy/~3/Dr_1QEFIwpo/</link>
		<comments>http://namhuy.org/blog/2008/02/09/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux/#comments</comments>
		<pubDate>Sat, 09 Feb 2008 11:48:55 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[reboot]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[shutdown]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/2008/02/09/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux/</guid>
		<description><![CDATA[So how do you shutdown or reboot Ubuntu Linux from a terminal or a shell prompt? If GUI is working you can always click on a Quit button. If GUI is not working or if you are working remotely over ssh type the following command:

To shutdown / poweroff Ubuntu Linux
Type the command:
sudo halt
OR
sudo shutdown -h [...]]]></description>
			<content:encoded><![CDATA[<p>So how do you shutdown or reboot Ubuntu Linux from a terminal or a shell prompt? If GUI is working you can always click on a Quit button. If GUI is not working or if you are working remotely over ssh type the following command:</p>
<p><strong><br />
To shutdown / poweroff Ubuntu Linux</strong></p>
<p>Type the command:</p>
<blockquote><p>sudo halt</p></blockquote>
<p>OR</p>
<blockquote><p>sudo shutdown -h now</p></blockquote>
<p>OR</p>
<blockquote><p>sudo shutdown -r now</p></blockquote>
<p>OR</p>
<blockquote><p>sudo init 6</p></blockquote>
<p><strong>To reboot Ubuntu Linux</strong></p>
<p>Type the command:</p>
<blockquote><p>sudo reboot</p></blockquote>
<p>More information can be found about these two commands by typing following commands (man page):</p>
<blockquote><p>man reboot<br />
man shutdown</p></blockquote>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2Fnamhuy.org%2Fblog%2F2008%2F02%2F09%2Fterminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux%2F&amp;linkname=Terminal%20or%20shell%20command%20to%20shutdown%20or%20reboot%20Ubuntu%20Linux"><img src="http://namhuy.org/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/Namhuy?a=zz3fowSJ"><img src="http://feeds.feedburner.com/~f/Namhuy?d=41" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/Namhuy?a=tM0YSRov"><img src="http://feeds.feedburner.com/~f/Namhuy?d=43" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2008/02/09/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://namhuy.org/blog/2008/02/09/terminal-or-shell-command-to-shutdown-or-reboot-ubuntu-linux/</feedburner:origLink></item>
		<item>
		<title>Ubuntu Linux enable telnet service</title>
		<link>http://feedproxy.google.com/~r/Namhuy/~3/69WWYsZZDV0/</link>
		<comments>http://namhuy.org/blog/2008/02/05/ubuntu-linux-enable-telnet-service/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 00:00:50 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[telnet]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/2008/02/05/ubuntu-linux-enable-telnet-service/</guid>
		<description><![CDATA[What is telnet?
Telnet is a user command and an underlying TCP/IP protocol for accessing remote computers. Through Telnet, an administrator or another user can access someone else&#8217;s computer remotely. On the Web, HTTP and FTP protocols allow you to request specific files from remote computers, but not to actually be logged on as a user [...]]]></description>
			<content:encoded><![CDATA[<p>What is telnet?</p>
<p>Telnet is a user command and an underlying TCP/IP protocol for accessing remote computers. Through Telnet, an administrator or another user can access someone else&#8217;s computer remotely. On the Web, HTTP and FTP protocols allow you to request specific files from remote computers, but not to actually be logged on as a user of that computer. With Telnet, you log on as a regular user with whatever privileges you may have been granted to the specific application and data on that computer.</p>
<p>A Telnet command request looks like this (the computer name is made-up):</p>
<blockquote><p>telnet namhuy.org</p></blockquote>
<p>The result of this request would be an invitation to log on with a userid and a prompt for a password. If accepted, you would be logged on like any user who used this computer every day.</p>
<p>Telnet is most likely to be used by program developers and anyone who has a need to use specific applications or data located at a particular host computer.</p>
<p><strong> Install telnetd server</strong></p>
<blockquote><p>$ sudo apt-get install telnetd</p></blockquote>
<p>Restart inetd service:</p>
<blockquote><p>$ sudo /etc/init.d/openbsd-inetd restart</p></blockquote>
<p>You should now be able to telnet to the server from Windows or Linux desktop system to Ubentu Linux telnet server. Type the following command to connect to Telnet server:</p>
<blockquote><p>$ telnet ubentu-linux-server-ip<br />
$ telnet 192.168.1.200<br />
$ telnet ubentu.mydomain.com</p></blockquote>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2Fnamhuy.org%2Fblog%2F2008%2F02%2F05%2Fubuntu-linux-enable-telnet-service%2F&amp;linkname=Ubuntu%20Linux%20enable%20telnet%20service"><img src="http://namhuy.org/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/Namhuy?a=hyaI8G3I"><img src="http://feeds.feedburner.com/~f/Namhuy?d=41" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/Namhuy?a=08QR0mTc"><img src="http://feeds.feedburner.com/~f/Namhuy?d=43" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2008/02/05/ubuntu-linux-enable-telnet-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://namhuy.org/blog/2008/02/05/ubuntu-linux-enable-telnet-service/</feedburner:origLink></item>
		<item>
		<title>CVS server on Ubuntu</title>
		<link>http://feedproxy.google.com/~r/Namhuy/~3/hdbeeO91MTo/</link>
		<comments>http://namhuy.org/blog/2008/02/05/cvs-server-on-ubuntu/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 23:46:39 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[CVS server]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/2008/02/05/cvs-server-on-ubuntu/</guid>
		<description><![CDATA[Install CVS files:
sudo apt-get install cvs
Install the CVS server:
sudo apt-get install cvsd
When prompted in the cvsd installation process for Repository, type in “/cvsrepo”.
Now that the cvsd installation in complete goto /var/lib/cvsd
or seeking for a change(or if there is a new version of cvs updated):
sudo cvsd-buildroot /var/lib/cvsd
If the folder cvsrepo does not exist, then create it [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: 85%">Install CVS files:<br />
<strong><span style="color: #ff0000">sudo apt-get install cvs</span></strong></span></p>
<p>Install the CVS server:<br />
<strong><span style="color: #ff0000">sudo apt-get install cvsd</span></strong></p>
<p>When prompted in the cvsd installation process for Repository, type in “/cvsrepo”.</p>
<p>Now that the cvsd installation in complete goto /var/lib/cvsd<br />
<span style="font-size: 85%">or seeking for a change(or if there is a new version of cvs updated):</span></p>
<p><span style="font-size: 85%"><strong><span style="color: #ff0000">sudo cvsd-buildroot /var/lib/cvsd</span></strong></span><br />
If the folder cvsrepo does not exist, then create it ..<br />
<strong><span style="color: #ff0000">sudo mkdir cvsrepo</span></strong><br />
<strong><span style="color: #ff0000">sudo chown -R cvsd:cvsd cvsrepo</span><br />
</strong><br />
and then initilize the repository<br />
<span style="color: #ff0000"><strong>sudo cvs -d /var/lib/cvsd/cvsrepo init</strong></span><br />
create a user and password<br />
<span style="color: #ff0000"><strong>sudo cvsd-passwd /var/lib/cvsd/cvsrepo +username</strong></span><br />
<span style="font-family: 宋体">sudo vi /</span><span style="font-family: Times New Roman"><strong><span style="color: #ff0000">/var/lib/cvsd/cvsrepo/CVSROOT/config</span></strong></span><br />
<span style="font-family: Times New Roman"><strong><span style="color: #ff0000">Change &#8220;SystemAuto=no&#8221;</span></strong><br />
</span><br />
<span style="font-family: Times New Roman"><span style="font-family: 宋体">Test</span></span><br />
<span style="font-family: Times New Roman"></span><br />
<span style="font-family: Times New Roman"><span style="color: #ff0000"><strong><span style="font-family: 宋体">cvs -d :pserver:username@localhost:/</span><span style="font-family: Times New Roman">cvsrepo login</span></strong></span></span></p>
<p><span style="font-family: Times New Roman"><span style="color: #ff0000"><strong><span style="font-family: 宋体">cvs -d :pserver:username@localhost:/</span><span style="font-family: Times New Roman">cvsrepo checkout .</span></strong></span></span></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2Fnamhuy.org%2Fblog%2F2008%2F02%2F05%2Fcvs-server-on-ubuntu%2F&amp;linkname=CVS%20server%20on%20Ubuntu"><img src="http://namhuy.org/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/Namhuy?a=wrOI7v9j"><img src="http://feeds.feedburner.com/~f/Namhuy?d=41" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/Namhuy?a=U8UG3Zyf"><img src="http://feeds.feedburner.com/~f/Namhuy?d=43" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2008/02/05/cvs-server-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://namhuy.org/blog/2008/02/05/cvs-server-on-ubuntu/</feedburner:origLink></item>
		<item>
		<title>Auto login in Ubuntu</title>
		<link>http://feedproxy.google.com/~r/Namhuy/~3/YTSgx6qRHlI/</link>
		<comments>http://namhuy.org/blog/2008/01/25/auto-login-in-ubuntu/#comments</comments>
		<pubDate>Sat, 26 Jan 2008 03:30:08 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[auto login]]></category>
		<category><![CDATA[gdmsetup]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[userid]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/2008/01/25/auto-login-in-ubuntu/</guid>
		<description><![CDATA[I know that I’m the only user in my system and no one else will have access to it. I don’t see a point to have a login screen. With Windows, I know we can set to auto login using a userid. I was searching for similar thing in Ubuntu. Found one.
Go to terminal and [...]]]></description>
			<content:encoded><![CDATA[<p>I know that I’m the only user in my system and no one else will have access to it. I don’t see a point to have a login screen. With Windows, I know we can set to auto login using a userid. I was searching for similar thing in Ubuntu. Found one.</p>
<p>Go to terminal and type “sudo gdmsetup”. You will get login window preferences. Select Security tab; check “Enable automatic Login” and select the user. You are done! Simple ha? But why there is no shortcut in the</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2Fnamhuy.org%2Fblog%2F2008%2F01%2F25%2Fauto-login-in-ubuntu%2F&amp;linkname=Auto%20login%20in%20Ubuntu"><img src="http://namhuy.org/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/Namhuy?a=cJMBMHCV"><img src="http://feeds.feedburner.com/~f/Namhuy?d=41" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/Namhuy?a=0zypkGzZ"><img src="http://feeds.feedburner.com/~f/Namhuy?d=43" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2008/01/25/auto-login-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://namhuy.org/blog/2008/01/25/auto-login-in-ubuntu/</feedburner:origLink></item>
		<item>
		<title>Securing Linux Server with IPKungfu</title>
		<link>http://feedproxy.google.com/~r/Namhuy/~3/qZri1z8huwg/</link>
		<comments>http://namhuy.org/blog/2007/10/31/securing-linux-server-with-ipkungfu/#comments</comments>
		<pubDate>Wed, 31 Oct 2007 08:01:55 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[iptables]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/2007/10/31/securing-linux-server-with-ipkungfu/</guid>
		<description><![CDATA[Ipkungfu or linuxkungfu is an iptables firewall script. With ipkungfu, you can easily configure as to which port of the server will be opened for connection, restrict who can access the server plus other security features. You can refer to the website of ipkungfu at http://www.linuxkungfu.org/ for the list of complete features.
Ipkungfu is available a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.linuxkungfu.org/" target="_blank">Ipkungfu</a> or <a href="http://www.linuxkungfu.org/" target="_blank">linuxkungfu</a> is an iptables firewall script. With ipkungfu, you can easily configure as to which port of the server will be opened for connection, restrict who can access the server plus other security features. You can refer to the website of ipkungfu at <a href="http://www.linuxkungfu.org/" target="_blank">http://www.linuxkungfu.org/</a> for the list of complete features.</p>
<p>Ipkungfu is available a the <a href="http://namhuy.org/blog/category/open-source/linux/ubuntu/" target="_blank">Ubuntu</a> repositories. To install ubuntu,</p>
<blockquote><p># aptitude install ipkungfu</p></blockquote>
<p>Ipkungfu should now be working.</p>
<p>After installing ipkungfu, type<span id="more-39"></span></p>
<blockquote><p># ipkungfu</p></blockquote>
<p>to configure ipkungfu and answer “yes” if you are prompted.</p>
<blockquote><p>At this point, if you connecting remotely via ssh, make sure you are not disconnected because by default, ipkungfu is blocking all incoming connections. If you are working directly at the terminal, then there’s no problem. Open the file /etc/ipkungfu/services.conf</p></blockquote>
<p>and append ACCEPT beside the port that you want to open.</p>
<blockquote><p># Service Names and Protocols are lowercase, Targets are UPPERCASE.<br />
#<br />
# Example:<br />
# ssh:22:tcp:ACCEPT<br />
ftp-data:20:tcp<br />
ftp:21:tcp<br />
ssh:22:tcp:ACCEPT<br />
telnet:23:tcp<br />
smtp:25:tcp<br />
domain:53:tcp<br />
bootps:63:tcp<br />
http:80:tcp:ACCEPT<br />
pop3:110:tcp<br />
auth:113:tcp<br />
ntp:123:tcp<br />
imap:143:tcp<br />
https:443:tcp<br />
imaps:993:tcp<br />
pop3s:995:tcp<br />
socks:1080:tcp<br />
# Add your services below. The rule is:<br />
# ServiceName:ServicePort:Protocol[:ACCEPT|DROP|REJECT|or any valid target)] # extra comments<br />
#</p></blockquote>
<p>The, save the file. In the example, I have allowed connection for ports 22 (SSH) and 80 (HTTP). Open the file</p>
<blockquote><p>/etc/ipkungfu/ipkungfu.conf</p></blockquote>
<p>and configure it based on your server’s setting and your preferred setting.</p>
<blockquote><p># =========================================================================<br />
# $Id: ipkungfu.conf 57 2005-11-02 17:04:20Z s0undt3ch $<br />
# =========================================================================<br />
# Please read the README and FAQ for more information<br />
# Some distros (most notably Redhat) don&#8217;t have<br />
# everything we need in $PATH so we specify it here.<br />
# Make sure modprobe, iptables, and route are here,<br />
# as well as ordinary items such as echo and grep.</p>
<p># Default is as shown in the example below.<br />
#PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin</p>
<p># Set the path to ipkungfu&#8217;s runtime error log.<br />
# Default: /var/log/ipkungfu.log<br />
#IPKUNGFU_LOG=</p>
<p># Your external interface<br />
# This is the one that connects to the internet.<br />
# Ipkungfu will detect this if you don&#8217;t specify.<br />
EXT_NET=&#8221;eth0&#8243;<br />
#EXT_NET=&#8221;eth1&#8243;<br />
#EXT_NET=&#8221;ppp0&#8243;</p>
<p># Your internal interfaces, if any.  If you have more<br />
# than 1 internal interface, separate them with<br />
# spaces.  If you only have one interface, put &#8220;lo&#8221;<br />
# here. Default is auto-detected.<br />
#INT_NET=&#8221;eth0&#8243;<br />
#INT_NET=&#8221;eth1&#8243;<br />
#INT_NET=&#8221;lo&#8221;</p>
<p># IP Range of your internal network.  Use &#8220;127.0.0.1&#8243;<br />
# for a standalone machine.  Default is a reasonable<br />
# guess. Separate multiple ranges with spaces.<br />
#LOCAL_NET=&#8221;192.168.0.0/255.255.0.0 10.0.0.0/255.0.0.0&#8243;</p>
<p># Set this to 0 for a standalone machine, or 1 for<br />
# a gateway device to share an Internet connection.<br />
# Default is 1.<br />
GATEWAY=0</p>
<p># TCP ports you want to allow for incoming traffic<br />
# Don&#8217;t add ports here that you intend to forward.<br />
# This should be a list of tcp ports that have<br />
# servers listening on them on THIS machine,<br />
# separated by spaces. You can add port ranges<br />
# delimited by hyphens, such as &#8220;20-22&#8243;. Default<br />
# is none.<br />
#ALLOWED_TCP_IN=&#8221;22 80&#8243;</p>
<p># UDP ports to allow for incoming traffic<br />
# See the comments above for ALLOWED_TCP_IN<br />
#ALLOWED_UDP_IN=&#8221;"</p>
<p># Temporarily block future connection attempts from an<br />
# IP that hits these ports (If module is present)<br />
# Hits to these ports will be logged as &#8220;BADGUY&#8221; hits<br />
# regardless of log.conf settings.<br />
FORBIDDEN_PORTS=&#8221;135 137 139&#8243;</p>
<p># Drop all ping packets?<br />
# Set to 1 for yes, 0 for no. Default is no.<br />
BLOCK_PINGS=0</p>
<p># Possible values here are &#8220;DROP&#8221;, &#8220;REJECT&#8221;, or &#8220;MIRROR&#8221;<br />
#<br />
# &#8220;DROP&#8221; means your computer will not respond at all. &#8220;Stealth mode&#8221;<br />
#<br />
# &#8220;REJECT&#8221; means your computer will respond with a<br />
# message that the packet was rejected.<br />
#<br />
# &#8220;MIRROR&#8221;, if your kernel supports it, will swap the source and<br />
#   destination IP addresses, and send the offending packet back<br />
#   where it came from.  USE WITH EXTREME CAUTION! Only use this if you fully<br />
#   understand the consequences.<br />
#<br />
# The safest option, and the default in each case,,  is &#8220;DROP&#8221;. Don&#8217;t change<br />
# unless you fully understand this.<br />
# What to do with &#8216;probably malicious&#8217; packets<br />
#SUSPECT=&#8221;REJECT&#8221;<br />
SUSPECT=&#8221;DROP&#8221;</p>
<p># What to do with obviously invalid traffic<br />
# This is also the action for FORBIDDEN_PORTS<br />
#KNOWN_BAD=&#8221;REJECT&#8221;<br />
KNOWN_BAD=&#8221;DROP&#8221;</p>
<p># What to do with port scans<br />
#PORT_SCAN=&#8221;REJECT&#8221;<br />
PORT_SCAN=&#8221;DROP&#8221;</p>
<p># How should ipkungfu determine your IP address? The default<br />
# answer, &#8220;NONE&#8221;, will cause ipkungfu to not use the few<br />
# features that require it to know your external IP address.<br />
# This option is good for dialup users who run ipkungfu on<br />
# bootup, since dialup users rarely use the features that<br />
# require this, and the IP address for a dialup connection<br />
# generally isn&#8217;t known at bootup.  &#8220;AUTO&#8221; will cause<br />
# ipkungfu to automatically determine the IP address of<br />
# $EXT_NET when it is started.  If you have a static IP<br />
# address you can simply enter your IP address here.<br />
# If you do port forwarding and your ISP changes your IP<br />
# address, choose NONE here, or your port forwarding<br />
# will break when your IP address changes. Default is<br />
# &#8220;NONE&#8221;.<br />
#GET_IP=&#8221;NONE&#8221;<br />
#GET_IP=&#8221;AUTO&#8221;<br />
GET_IP=&#8221;202.92.148.101&#8243;</p>
<p># If the target for identd (113/tcp) is DROP, it can take<br />
# a long time to connect to some IRC servers. Set this to<br />
# 1 to speed up these connections with a negligible cost<br />
# to security.  Identd probes will be rejected with the<br />
# &#8216;reject-with-tcp-reset&#8217; option to close the connection<br />
# gracefully. If you want to actually allow ident probes,<br />
# and you&#8217;re running an identd, and you&#8217;ve allowed port<br />
# 113 in ALLOWED_TCP_IN, set this to 0. Default is 0.<br />
#DONT_DROP_IDENTD=0<br />
# Set this to 0 if you&#8217;re running ipkungfu on a machine<br />
# inside your LAN.  This will cause private IP addresses<br />
# coming in on $EXT_NET to be identified as a spoof,<br />
# which would be inaccurate on intra-LAN traffic<br />
# This will cause private IP addresses coming in on<br />
# $EXT_NET to be identified as a spoof. Default is 1.<br />
#DISALLOW_PRIVATE=1</p>
<p># For reasons unknown to me, ipkungfu sometimes causes<br />
# kernel panics when run at init time. This is my<br />
# attempt to work around that.  Ipkungfu will wait<br />
# the specified number of seconds before starting, to<br />
# let userspace/kernel traffic catch up before executing.<br />
# Default is 0.<br />
#WAIT_SECONDS=5</p>
<p># This option, if enabled, will cause ipkungfu to set<br />
# the default policy on all builtin chains in the filter<br />
# table to ACCEPT in the event of a failure.  This is<br />
# intended for remote administrators who may be locked<br />
# out of the firewall if ipkungfu fails.  A warning to<br />
# this effect will be echoed so that the situation can be<br />
# rectified quickly.  This is the same as running<br />
# ipkungfu with &#8211;failsafe.  Default is 0.<br />
#FAILSAFE=0</p>
<p># Configurable list of kernel modules to load at runtime.<br />
# If no list is provided, the default and needed ones,<br />
# ip_nat_irc, ip_conntrack_ftp ip_nat_ftp ip_conntrack_irc,<br />
# will still be loaded.<br />
#MODULES_LIST=&#8221;"</p></blockquote>
<p>The</p>
<blockquote><p>EXT_NET=&#8221;eth0&#8243;</p></blockquote>
<p>is you the active network interface.</p>
<blockquote><p>GATEWAY=0</p></blockquote>
<p>because I’m configuring a standalone server. I have also set the forbidden ports</p>
<blockquote><p>FORBIDDEN_PORTS=&#8221;135 137 139&#8243;</p></blockquote>
<p>I don’t block pings</p>
<blockquote><p>BLOCK_PINGS=0</p></blockquote>
<p>because the ping tool is an effective use to test for the connectivity of the server.<br />
For suspected, bad ports and port scan, I drop the packets.</p>
<blockquote><p>SUSPECT=&#8221;DROP&#8221;<br />
KNOWN_BAD=”DROP”<br />
PORT_SCAN=”DROP”</p></blockquote>
<p>If you have a static IP address, set GET_IP to your IP address.</p>
<blockquote><p>GET_IP=&#8221;202.92.148.101&#8243;</p></blockquote>
<p>The save the file. Restart by ipkungfu</p>
<blockquote><p>/etc/init.d/ipkungfu restart</p></blockquote>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2Fnamhuy.org%2Fblog%2F2007%2F10%2F31%2Fsecuring-linux-server-with-ipkungfu%2F&amp;linkname=Securing%20Linux%20Server%20with%20IPKungfu"><img src="http://namhuy.org/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/Namhuy?a=Y5RElIhm"><img src="http://feeds.feedburner.com/~f/Namhuy?d=41" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/Namhuy?a=J8mqLAJv"><img src="http://feeds.feedburner.com/~f/Namhuy?d=43" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2007/10/31/securing-linux-server-with-ipkungfu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://namhuy.org/blog/2007/10/31/securing-linux-server-with-ipkungfu/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 0.911 seconds. --><!-- Cached page generated by WP-Super-Cache on 2009-07-10 09:22:36 --><!-- Compression = gzip -->
