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

<channel>
	<title>Linux * Screw &#187; howtos</title>
	<atom:link href="http://www.linuxscrew.com/category/howtos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxscrew.com</link>
	<description></description>
	<lastBuildDate>Thu, 15 Jul 2010 15:44:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=6465</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Create Encrypted Filesystem Within a File (truecrypt way)</title>
		<link>http://www.linuxscrew.com/2010/05/08/create-encrypted-filesystem-within-a-file-truecrypt-way/</link>
		<comments>http://www.linuxscrew.com/2010/05/08/create-encrypted-filesystem-within-a-file-truecrypt-way/#comments</comments>
		<pubDate>Sat, 08 May 2010 08:18:59 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[applications]]></category>
		<category><![CDATA[howtos]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=1034</guid>
		<description><![CDATA[Some time ago I&#8217;ve written an article named 16 GB encrypted candy file describing how to create encrypted filesystem within regular file. After quick research it became clear that cryptoloop is vulnerable and there is open exploit available on the web: see it here (thanks to everybody who commented that article). So I don&#8217;t recommend to [...]]]></description>
			<content:encoded><![CDATA[<p>Some time ago I&#8217;ve written an article named <a href="http://www.linuxscrew.com/2010/05/05/16-gb-encrypted-candy/">16 GB encrypted candy file</a> describing how to create encrypted filesystem within regular file. After quick research it became clear that <a href="http://www.spiritus-temporis.com/cryptoloop/">cryptoloop</a> is vulnerable and there is open exploit available on the web: see it <a href="http://www.securiteam.com/exploits/5UP0P1PFPM.html">here</a> (thanks to everybody who commented that article). So <strong>I don&#8217;t recommend to use cryptoloop</strong> but instead take a look at <strong><a href="http://www.truecrypt.org/">truecrypt</a></strong> that makes it possible not only to encrypt whole storage but also to create encrypted file just like I&#8217;ve described in <a href="../2010/05/05/16-gb-encrypted-candy/">16 GB  encrypted candy file</a> article.</p>
<p><span id="more-1034"></span>Truecrypt is cross platform disk/file encryption software that is available for windows, mac os and linux. In order to get started visit <a href="http://www.truecrypt.org/">www.truecrypt.org</a> site and download the latest version of this software (<a href="http://www.truecrypt.org/download/truecrypt-6.3a-linux-x86.tar.gz">direct link</a>) and install it:</p>
<p><code>cd /usr/src<br />
sudo -s<br />
wget -c  http://www.truecrypt.org/download/truecrypt-6.3a-linux-x86.tar.gz<br />
tar -xvzf truecrypt-6.3a-linux-x86.tar.gz<br />
./truecrypt-6.3a-setup-x86<br />
exit</code></p>
<p>When installation is finished you will see Trucrypt item in Gnome menu (if not or use different X manager &#8212; type truecrypt in command line). Here how it looks like:</p>
<p style="text-align: center;"><img class="aligncenter" title="truecrypt" src="/files/Screenshot-TrueCrypt.png" alt="truecrypt" /></p>
<p>In order to create encrypted file press &#8220;Create Volume&#8221; button and follow instructions:</p>
<p style="text-align: center;"><img class="aligncenter" title="truecrypt" src="/files/tr1.png" alt="truecrypt" /></p>
<p style="text-align: center;"><img class="aligncenter" title="truecrypt" src="/files/tr2.png" alt="truecrypt" /></p>
<p style="text-align: center;"><img class="aligncenter" title="truecrypt" src="/files/tr3.png" alt="truecrypt" /></p>
<p style="text-align: center;"><img class="aligncenter" title="truecrypt" src="/files/tr4.png" alt="truecrypt" /></p>
<p style="text-align: center;"><img class="aligncenter" title="truecrypt" src="/files/tr5.png" alt="truecrypt" /></p>
<p>Use long passwords like &#8220;e07910a06a086c83ba41827aa00b26ed&#8221; instead of &#8220;123&#8243; or &#8220;iloveyou&#8221;:</p>
<p style="text-align: center;"><img class="aligncenter" title="truecrypt" src="/files/tr6.png" alt="truecrypt" /></p>
<p style="text-align: center;"><img class="aligncenter" title="truecrypt" src="/files/tr7.png" alt="truecrypt" /></p>
<p style="text-align: center;"><img class="aligncenter" title="truecrypt" src="/files/tr8.png" alt="truecrypt" /></p>
<p style="text-align: center;"><img class="aligncenter" title="truecrypt" src="/files/tr9.png" alt="truecrypt" /></p>
<p>Once encrypted candy is created you can store it on usb flash drive or elsewhere, it doesn&#8217;t matter how that storage is formatted &#8212; it can be CD or windows formatter ipod.</p>
<p>Use the same utility to open the file &#8212; press &#8220;Select File&#8221; and point to newly created encrypted file, then choose first slot and select &#8220;Mount Volume&#8221; in drop down menu (it will ask for your sudo password and then password you typed when created the file):</p>
<p style="text-align: center;"><img class="aligncenter" title="truecrypt" src="/files/tr10.png" alt="truecrypt" /></p>
<p>As the result encrypted filesystem will be mounted into /media/truecrypt1 directory:</p>
<p style="text-align: center;"><img class="aligncenter" title="truecrypt" src="/files/tr10.png" alt="truecrypt" /></p>
<p>Copy your sensitive files there and unmount /media/truecrypt1 when done (select &#8220;Dismount&#8221; in drop down menu).<br />
Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2010/05/08/create-encrypted-filesystem-within-a-file-truecrypt-way/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Install Windows after Ubuntu Lucid Lynx</title>
		<link>http://www.linuxscrew.com/2010/05/06/install-windows-after-ubuntu-lucid-lynx/</link>
		<comments>http://www.linuxscrew.com/2010/05/06/install-windows-after-ubuntu-lucid-lynx/#comments</comments>
		<pubDate>Thu, 06 May 2010 15:02:17 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[backup]]></category>
		<category><![CDATA[howtos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=1001</guid>
		<description><![CDATA[Sh*t happens. There is no more applications to manage my 6th generation iPod Classic 160 GB under Linux/Ubuntu. I have to install Windows as the second operating system along with newly installed Ubuntu Lucid Lynx (it rocks but this is for another post) to run iTunes.
For rather long time I&#8217;ve been using gtkpod, amarok, banshee, exaile [...]]]></description>
			<content:encoded><![CDATA[<p>Sh*t happens. There is no more applications to manage my <a href="http://en.wikipedia.org/wiki/IPod_classic#Sixth_generation">6th generation </a><strong><a href="http://en.wikipedia.org/wiki/IPod_classic#Sixth_generation">iPod Classic 160 GB</a></strong> under L<strong>inux/<a href="http://www.ubuntu.com">Ubuntu</a></strong>. I have to install <strong>Windows </strong>as the <strong>second operating system</strong> along with newly installed <strong>Ubuntu Lucid Lynx</strong> (it rocks but this is for another post) to run <strong>iTunes</strong>.</p>
<p>For rather long time I&#8217;ve been using <a href="http://www.gtkpod.org">gtkpod</a>, <a href="http://amarok.kde.org">amarok</a>, <a href="http://banshee-project.org/">banshee</a>, <a href="http://www.exaile.org">exaile</a> or <a href="http://projects.gnome.org/rhythmbox/">rhythmbox</a> to sync my ipod under Linux/Ubuntu and load my music collection there. As we all know <del>The Elder Brother</del> <a href="http://www.apple.com">Apple</a> fights with interoperability and makes ipod/iphone users to use <a href="http://en.wikipedia.org/wiki/Itunes">iTunes</a> only. Any other applications that can read/write to ipod data format are prohibited by Apple. This also concerns <a href="http://www.rockbox.org">Rockbox</a> and <a href="http://ipodlinux.sourceforge.net/index.shtml">ipod4linux</a> alternative firmwares &#8212; once Apple encrypted ipod firmware it became impossible to use them. It definitely sucks. At least due to the fact there are millions of Linux users who are real or potential customers of Apple products. Anyways these facts have been discussed in various forums, blogs like <a href="http://mdeslaur.blogspot.com/2009/07/goodbye-apple.html">this</a> and similar but this post about how to install Windows as the second operating system along with Ubuntu or any other Linux.</p>
<p><a href="http://www.linuxscrew.com/wp-content/uploads/2010/05/gparted.png"><img class="alignright" title="gparted example" src="http://www.linuxscrew.com/wp-content/uploads/2010/05/gparted.png" alt="gparted example" width="177" height="121" /></a>The first that we need to do is to <strong>create new partition for Windows</strong> and format it to <strong><a href="http://www.ntfs.com/">NTFS</a></strong>. Exact steps to accomplish this depend on your HDD partition table e.g. there is one large <a href="http://en.wikipedia.org/wiki/Ext3">ext3</a>/<a href="http://en.wikipedia.org/wiki/Ext4">ext4</a> partition for Ubuntu or there are several partitions for various distributions or mount points. Anyway you should use partition manager to create and/or format NTFS partition. I use <a href="http://gparted.sourceforge.net/"><strong>gparted</strong></a>. It is graphical and it just works (use &#8216;<code>sudo apt-get install gparted</code>&#8216; if you run Ubuntu/Debian).</p>
<p>Second you should backup your <strong><a href="http://en.wikipedia.org/wiki/Master_boot_record">MBR</a></strong> record and restore it after Windows installation that silently erases existing bootloader and installs windows one, use &#8220;<code>dd if=/dev/sda of=/mbr.bin bs=446 count=1</code>&#8221; to save MRB into mbr.bin file and &#8220;<code>dd if=/media/sda/mbr.bin of=/dev/sda bs=446 count=1</code>&#8221; to restore it from file to HDD.</p>
<p>To sum everything up here is the algorithm:</p>
<p>0. <strong>BACKUP ALL YOUR DATA!</strong><br />
1. <strong>Create NTFS partition</strong> using gparted.<br />
2. <strong>Backup MBR</strong> using <em>dd</em> command e.g. &#8220;dd if=/dev/sda of=/mbr.bin bs=446 count=1&#8243; (/dev/sda means your HDD).<br />
3. Boot Windows installation CD and <strong>install it onto newly created NTFS partition</strong>.<br />
4. Boot into Linux live CD  e.g. <a href="http://www.ubuntu.com/GetUbuntu/download">Ubuntu Live CD</a>.<br />
5. <strong>Restore MBR</strong> using <em>dd</em> e.g. &#8220;dd if=/media/sda/mbr.bin of=/dev/sda bs=446 count=1&#8243;.<br />
6. Reboot.<br />
7. Select Ubuntu in grub menu and boot it.<br />
8. <a href="http://www.cyberciti.biz/faq/grubconf-for-windows-vista-or-xp-dual-boot/">Setup <strong>grup for Windows</strong> booting</a>.</p>
<p>In order to accomplish the last 8th item you should add the following text block to the end of grub config (read <a href="http://www.cyberciti.biz/faq/grubconf-for-windows-vista-or-xp-dual-boot/">this article</a> for detailed information):</p>
<p><code>title Microsoft Windows XP<br />
root (hd0,1)<br />
savedefault<br />
makeactive<br />
chainloader +1</code></p>
<p>Good luck!</p>
<p>P.S. If something goes wrong or you need more details you can take a look at the following article at ubuntu.com: <a href="https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows">Recovering Ubuntu After Installing Windows</a>. It&#8217;s written in rather tangled manner but still informative.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2010/05/06/install-windows-after-ubuntu-lucid-lynx/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Fastest way to create ramdisk in Ubuntu/Linux</title>
		<link>http://www.linuxscrew.com/2010/03/24/fastest-way-to-create-ramdisk-in-ubuntulinux/</link>
		<comments>http://www.linuxscrew.com/2010/03/24/fastest-way-to-create-ramdisk-in-ubuntulinux/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 12:08:04 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[howtos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=988</guid>
		<description><![CDATA[I hope many of you will agree that sometimes it&#8217;s really good idea to have some small amount of RAM mounted as a filesystem. It may be necessary when running some bash or perl script that handles, say, thousands of small files so it&#8217;s much more effective not to waste computer resources on reading/writing data [...]]]></description>
			<content:encoded><![CDATA[<p>I hope many of you will agree that sometimes it&#8217;s really good idea to have some small amount of RAM mounted as a filesystem. It may be necessary when running some bash or perl script that handles, say, thousands of small files so it&#8217;s much more effective not to waste computer resources on reading/writing data on hard disk but keep those files directly in memory. This idea is known as <a href="http://en.wikipedia.org/wiki/RAM_disk">Virtual RAM Drive</a> or <strong>ramdisk</strong> and can be setup in <strong>Ubuntu</strong> or almost any other <strong>Linux</strong> distribution using the following commands under root (to become root in Ubuntu use <code>"<strong>sudo -s</strong></code>&#8220;):</p>
<p># <strong>mkdir /tmp/ramdisk; chmod 777 /tmp/ramdisk</strong><br />
# <strong>mount -t tmpfs -o size=256M tmpfs /tmp/ramdisk/</strong></p>
<p>where 256M is amount of RAM you wish to allocate for ramdisk. It&#8217;s clear that this value should be <strong>less than amount of free memory</strong> (use &#8220;<code>free -m</code>&#8220;). BTW, if you specify too many MBs for ramdisk Linux will try to allocate it from RAM and then from swap so resulting performance would be very poor.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2010/03/24/fastest-way-to-create-ramdisk-in-ubuntulinux/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Cisco GRE example setup</title>
		<link>http://www.linuxscrew.com/2010/02/18/cisco-gre-example-setup/</link>
		<comments>http://www.linuxscrew.com/2010/02/18/cisco-gre-example-setup/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 15:06:23 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[cisco]]></category>
		<category><![CDATA[howtos]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=977</guid>
		<description><![CDATA[Hosts from LAN1 should be able to access hosts at LAN2 and vice-versa through GRE tunnel between R1 and R2. ISP doesn&#8217;t care what networks are behind R1 and R2 so the only way to establish connection between LAN1 and LAN2 is to use VPN, in this example we use GRE.

GRE setup example topology

R1&#8217;s startup-config [...]]]></description>
			<content:encoded><![CDATA[<p>Hosts from LAN1 should be able to access hosts at LAN2 and vice-versa through GRE tunnel between R1 and R2. ISP doesn&#8217;t care what networks are behind R1 and R2 so the only way to establish connection between LAN1 and LAN2 is to use VPN, in this example we use GRE.</p>
<p style="text-align: center;"><a href="http://www.linuxscrew.com/wp-content/uploads/2010/02/GRE-lab.jpg"><img class="size-full wp-image-978 aligncenter" title="GRE-lab" src="http://www.linuxscrew.com/wp-content/uploads/2010/02/GRE-lab.jpg" alt="" width="431" height="148" /></a><br />
GRE setup example topology</p>
<p><span id="more-977"></span></p>
<p style="text-align: left;"><strong>R1&#8217;s startup-config (part of it)</strong></p>
<p style="text-align: left;">!</p>
<pre>hostname R1
!
interface Tunnel0
description GRE tunell to R2
ip address 192.168.200.1 255.255.255.0
tunnel source 123.123.0.10
tunnel destination 123.123.1.10
!
interface FastEthernet 1/0
ip address 10.0.0.1 255.255.255.0
!
interface Serial1/0
ip address 123.123.0.10 255.255.255.0
serial restart-delay 0
!
ip classless
ip route 0.0.0.0 0.0.0.0 123.123.0.1
ip route 10.1.1.0 255.255.255.0 192.168.200.2
!</pre>
<p><strong>R2&#8217;s startup-config (part of it)</strong></p>
<p style="text-align: left;">!</p>
<pre>hostname R2
!
interface Tunnel0
description GRE tunnel to R2
ip address 192.168.200.2 255.255.255.0
tunnel source 123.123.1.10
tunnel destination 123.123.0.10
!
interface FastEthernet 1/0
ip address 10.1.1.1 255.255.255.0
!
interface Serial1/0
ip address 123.123.1.10 255.255.255.0
no fair-queue
serial restart-delay 0
!
ip classless
ip route 0.0.0.0 0.0.0.0 123.123.1.1
ip route 10.0.0.0 255.255.255.0 192.168.200.1
!</pre>
<p><strong>Results</strong></p>
<pre>R2#ping 10.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/17/28 ms

R3#ping 10.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/20/44 ms</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2010/02/18/cisco-gre-example-setup/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install Ubuntu Chromium browser (Google Chrome for Linux)</title>
		<link>http://www.linuxscrew.com/2009/06/22/install-ubuntu-chromium-browser-google-chrome-for-linux/</link>
		<comments>http://www.linuxscrew.com/2009/06/22/install-ubuntu-chromium-browser-google-chrome-for-linux/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 14:30:18 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[applications]]></category>
		<category><![CDATA[howtos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=798</guid>
		<description><![CDATA[Update: Using Ubuntu Lucid Lynx? Here is corresponding article for you:
Install Google Chrome (Chromium) on Ubuntu Lucid Lynx.
One of the easiest way to try Chromium browser in Ubuntu Linux (Google Chrome browser for Unix/Linux operating system is named as Chromium) is to use daily binary builds at https://launchpad.net/chromium-project. Today Ubuntu is the most popular Linux [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update</strong>: Using <em>Ubuntu Lucid Lynx</em>? Here is corresponding article for you:<br />
<a href="http://www.linuxscrew.com/2010/05/08/install-google-chrome-chromium-ubuntu-lucid-lynx/">Install Google Chrome (Chromium) on Ubuntu Lucid Lynx</a>.</p>
<p>One of the easiest way to try <strong>Chromium</strong> browser in <strong>Ubuntu</strong> Linux (<strong><a href="http://www.google.com/chrome">Google Chrome</a> browser</strong> for Unix/Linux operating system is named as <a href="http://code.google.com/chromium/">Chromium</a>) is to use daily binary builds at <a rel="nofollow" href="https://launchpad.net/chromium-project">https://launchpad.net/chromium-project</a>. Today Ubuntu is the most popular Linux disributions for desktops so there are daily builds available for the following Ubuntu versions: <strong><a href="http://releases.ubuntu.com/hardy/">hardy</a></strong>, <strong><a href="http://releases.ubuntu.com/intrepid/">intrepid</a></strong>, <strong><a href="http://releases.ubuntu.com/jaunty/">jaunty</a></strong>, <strong><a href="https://lists.ubuntu.com/archives/ubuntu-devel-announce/2009-February/000536.html">karmic</a></strong>.</p>
<p>First let your Ubuntu know where it should find chromium-browser deb package:</p>
<p><code>vi /etc/apt/sources.list</code></p>
<p>add the following lines:</p>
<p><code>deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu jaunty main<br />
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu jaunty main</code></p>
<p>Replace jaunty with hardy, intrepid or karmic depending which version you run at your computer. If you feel this information is not sufficient for you, follow <a href="https://help.ubuntu.com/8.04/add-applications/C/extra-repositories-adding.html">this link</a> to get Ubuntu official information on this matter or follow <a href="https://help.launchpad.net/Packaging/PPA#Adding%20a%20PPA%20to%20your%20Ubuntu%20repositories">Launchpad help</a>.</p>
<p>The next step is to install Chromium browser:</p>
<p><code>sudo apt-get update</code><br />
<code>sudo apt-get install chromium-browser</code><br />
or<br />
<code>sudo aptitude install chromium-browser</code></p>
<p>Once you press enter <strong>Ubuntu</strong> will download around 18 MB of data from launchpad&#8217;s server and will install Chromium with gnome menu entries and shortcuts. Now you can go to <em>System menu &#8211;&gt; Internet &#8211;&gt; Chromium Web Browser</em> in order to launch<strong> Google browser</strong>.</p>
<div class="wp-caption aligncenter" style="width: 594px"><img title="Chromium Ubuntu (google chrome for linux)" src="http://linuxscrew.com/files/Chromium-Ubuntu.png" alt="Ubuntu Chromium (google chrome for linux)" width="584" height="561" /><p class="wp-caption-text">Ubuntu Chromium Google browser (Google Chrome Ubuntu)</p></div>
<p>As you might know there is still no official release of chromium/chrome available for Linux, so these daily builds from launchpad are for testing/observations purposes only. For example, there is no flash plugin available so you will be able to see html pages like this one and no swf/flash content. Anyway thanks to Google for great browser which has all chances to become &#8220;browser number one&#8221; for Linux or even for the rest of operating system such as Windows or Mac. Who knows? <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>You might also find this page using <a href="http://www.google.com">Google</a> and the following keywords: <em>Ubuntu Chrome, Google Chrome Ubuntu, Chrome for Ubuntu </em>and others.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2009/06/22/install-ubuntu-chromium-browser-google-chrome-for-linux/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Mount remote filesystem via ssh protocol using sshfs and fuse [Fedora/RedHat/Debian/Ubuntu way]</title>
		<link>http://www.linuxscrew.com/2009/03/10/mount-remote-filesystem-via-ssh-protocol-using-sshfs-and-fuse-fedoraredhatdebianubuntu-way/</link>
		<comments>http://www.linuxscrew.com/2009/03/10/mount-remote-filesystem-via-ssh-protocol-using-sshfs-and-fuse-fedoraredhatdebianubuntu-way/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 17:56:18 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[docs]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[howtos]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=674</guid>
		<description><![CDATA[




Imagine the following situation: you have to compile some Linux/Unix application or kernel module that requires kernel source present at your hard drive, say, in /usr/src/kernels/kernel-2.6.21-i386/ or elsewhere. But there is not enough disk space to copy these sources or install kernel-devel or linux-source packages (in Fedora/RedHat or Ubuntu/Debian distros respectively)&#8230; Sounds familiar? Believe me, [...]]]></description>
			<content:encoded><![CDATA[<div class="mceTemp">
<dl id="attachment_673" class="wp-caption alignright" style="width: 138px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-673" title="sshfs" src="http://www.linuxscrew.com/wp-content/uploads/2009/03/sshfs.png" alt="sshfs" width="128" height="128" /></dt>
</dl>
</div>
<p>Imagine the following situation: you have to compile some Linux/Unix application or kernel module that requires kernel source present at your hard drive, say, in /usr/src/kernels/kernel-2.6.21-i386/ or elsewhere. But there is not enough disk space to copy these sources or install kernel-devel or linux-source packages (in Fedora/RedHat or Ubuntu/Debian distros respectively)&#8230; Sounds familiar? Believe me, sometimes it happens <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>As a solution you can <strong>mount</strong> the directory of some remote PC that contains needed kernel source. It can be done via several protocols like smb, ftp etc. In this article we will mount remote directory using <strong>ssh protocol</strong> that is one the most popular for remote and secure access to <strong>Linux</strong> boxes over the network.</p>
<p>Below are the steps which should be taken to get the ball rolling. We need two packages: <strong>sshfs</strong> and <strong>fuse-utils</strong>.</p>
<p><img class="size-full wp-image-683 alignright" title="ssh" src="http://www.linuxscrew.com/wp-content/uploads/2009/03/ssh.jpg" alt="ssh" width="264" height="415" /><strong>1.</strong> Install necessary packages:</p>
<p>a. Ubuntu/Debian:</p>
<p><code>sudo aptitude install fuse-utils sshfs</code></p>
<p>b. Fedora/Centos/RedHat:</p>
<p><code>yum install fuse-sshfs fuse fuse-libs</code></p>
<p>c. Other Linux: download and compile sshfs/fuse from <a href="http://fuse.sourceforge.net/sshfs.html">sources</a></p>
<p><strong>2.</strong> Check that kernel module <code>fuse</code> is loaded:</p>
<p><code>lsmod | grep fuse</code></p>
<p>There should be the line containing &#8220;fuse&#8221; in the output (of not try <code>modprobe fuse</code>).</p>
<p><strong>3.</strong> Mount remote filesystem using something like this (two commands):</p>
<p><code>mkdir -p /mnt/sshfs/</code><br />
<code>sshfs remote-user@remote-machine:/some/directory /mnt/sshfs</code></p>
<p>where <em>remote-user</em> is the username allowed to login <em>remote-machine</em> via ssh protocol. It will ask you to type the password so just type it and press return <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>4.</strong> That&#8217;s it. Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2009/03/10/mount-remote-filesystem-via-ssh-protocol-using-sshfs-and-fuse-fedoraredhatdebianubuntu-way/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Use iTunes in Linux including Apple Music Store</title>
		<link>http://www.linuxscrew.com/2008/12/15/use-itunes-in-linux-including-apple-music-store/</link>
		<comments>http://www.linuxscrew.com/2008/12/15/use-itunes-in-linux-including-apple-music-store/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 21:48:19 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[applications]]></category>
		<category><![CDATA[howtos]]></category>
		<category><![CDATA[ipod]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=627</guid>
		<description><![CDATA[Quick Introduction to iTunes
Apple iTunes is one of the most popular proprietary digital media players in the whole world. Using this no doubts outstanding application you can organize, play music/video files in very comfortable and user friendly way (it&#8217;s not an advertisement but real truth). Moreover iTunes is the only way to access Apple&#8217;s onilne [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Quick Introduction to iTunes</strong></p>
<p><img src="http://www.linuxscrew.com/wp-content/uploads/2007/09/itunes7logo.jpg" alt="itunes logo" align="right" />Apple iTunes is one of the most popular proprietary digital media players in the whole world. Using this no doubts outstanding application you can organize, play music/video files in very comfortable and user friendly way (it&#8217;s not an advertisement but real truth). Moreover iTunes is the only way to access <strong><a href="http://www.apple.com">Apple&#8217;s</a> onilne <a href="http://en.wikipedia.org/wiki/ITunes_Store">music store</a></strong> and thus people often seeks the possibility to seamlessly access it after moving to Linux from Mac or Windows.</p>
<p>Well, unfortunately Apple doesn&#8217;t believe in magic so there is no native support of iTunes in Linux. At the same time none would deny that Wine does and guys from this project do their best to make things with iTunes in Linux better. In our example we use iTunes 7.3 which comes with Quick Time player 7.1.6, Apple <a href="http://www.iphonelinux.org/index.php/Main_Page">iPhone</a> support and of course <a href="http://www.ipodhacks.com/">iPods</a> of any version, family and generation.</p>
<p><strong>Install Apple iTunes 7.3 in Linux</strong></p>
<p>1. <a href="http://www.filehippo.com/download_itunes/tech/?2877">Download iTunes 7.3</a> from apple.com or <a href="http://www.filehippo.com/">filehippo.com</a></p>
<p>2. Prepare Wine for itunes installation (if not installed do &#8220;apt-get install wine -y&#8221; or &#8220;yum install wine -y&#8221; in <strong>Ubuntu</strong>/Debian or Fedora/Redhat/Centos respectively):</p>
<p>$winecfg<br />
wine: creating configuration directory &#8216;/home/artemn/.wine&#8217;&#8230;<br />
fixme:midi:OSS_MidiInit Synthesizer supports MIDI in. Not yet supported.<br />
wine: &#8216;/home/artemn/.wine&#8217; created successfully.</p>
<p>Select your audio driver, it may be something like OSS or Alsa so use one u actually use <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Set Hardware Acceleration to &#8220;Emulation&#8221; option. All other <strong>Wine</strong> settings are per your consideration e.g. Graphics tab.</p>
<p>3. Update richedit30 (Win32 Cabinet Self-Extractor):</p>
<p><code>cd ~/.wine/drive_c/windows/system32<br />
mv richedit32.dll richedit32.bak<br />
mv richedit20.dll richedit20.bak<br />
wine <a href="http://media.codeweavers.com/pub/crossover/office/support/richedit30.exe">richedit30.exe</a></code></p>
<p>Set richedit20.dll and richedit32.dll as native <code>through winecfg</code>.</p>
<p>4. <code>$wine iTunesSetup.exe</code><br />
It will open iTune&#8217;s installation program under wine so you just install itunes as usually you did it in Windows. If error happens just re-run installer. See screenshot below:</p>
<p style="text-align: center;"><a href="http://www.linuxscrew.com/wp-content/uploads/2008/12/screenshot-wi.png"><img class="size-medium wp-image-628 aligncenter" title="screenshot-wi" src="http://www.linuxscrew.com/wp-content/uploads/2008/12/screenshot-wi-300x231.png" alt="" width="300" height="231" /></a></p>
<p style="text-align: left;">5. Now you can start itunes and go through first run setup (all related screenshots are <a href="http://www.wine-reviews.net/applications/itunes-73-on-linux-with-wine.html">here</a>). Just don&#8217;t care about errors thrown into the console:</p>
<p><code>$ cd ~/.wine/drive_c/Program\ Files/iTunes<br />
$ wine itunes.exe</code></p>
<p>6. That&#8217;s it! Now u can use iTunes in Linux as you did it before in other operatin system:</p>
<p><img class="alignnone size-medium wp-image-629" title="screenshot-wine" src="http://www.linuxscrew.com/wp-content/uploads/2008/12/screenshot-wine-300x231.png" alt="" width="300" height="231" /></p>
<p><img class="alignnone size-medium wp-image-630" title="screenshot-wine-des26" src="http://www.linuxscrew.com/wp-content/uploads/2008/12/screenshot-wine-des26-300x231.png" alt="" width="300" height="231" /></p>
<p>P.S. By the way there are numerous <a href="http://www.ubuntuka.com/itunes-ubuntu-linux/#itunes_ubuntu_alternatives">Linux really native alternatives to itunes</a> for comfortable music/video organizing and iPod management. At the same time latter can&#8217;t be as native and seamless as it&#8217;s in iTunes because those playes use Apple&#8217;s proprietary file storage system.</p>
<p>But I definitely recommend <a href="http://banshee-project.org/">banshee</a>, <a href="http://amarok.kde.org/en">amarok</a> and&#8230; <a href="http://exaile.org/">exaile</a> <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><object id="Player_a639a3e7-0d75-495b-acc1-9c258c2cd400" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="600px" height="200px" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&amp;MarketPlace=US&amp;ID=V20070822%2FUS%2Flinscr-20%2F8010%2Fa639a3e7-0d75-495b-acc1-9c258c2cd400&amp;Operation=GetDisplayTemplate" /><param name="name" value="Player_a639a3e7-0d75-495b-acc1-9c258c2cd400" /><param name="align" value="middle" /><embed id="Player_a639a3e7-0d75-495b-acc1-9c258c2cd400" type="application/x-shockwave-flash" width="600px" height="200px" src="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&amp;MarketPlace=US&amp;ID=V20070822%2FUS%2Flinscr-20%2F8010%2Fa639a3e7-0d75-495b-acc1-9c258c2cd400&amp;Operation=GetDisplayTemplate" align="middle" name="Player_a639a3e7-0d75-495b-acc1-9c258c2cd400" allowscriptaccess="always" bgcolor="#FFFFFF" quality="high"></embed></object></p>
<p><noscript>null</noscript></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2008/12/15/use-itunes-in-linux-including-apple-music-store/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Open .docx documents in Linux (OpenOffice)</title>
		<link>http://www.linuxscrew.com/2008/12/15/open-docx-documents-in-linux-openoffice/</link>
		<comments>http://www.linuxscrew.com/2008/12/15/open-docx-documents-in-linux-openoffice/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 20:13:23 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[applications]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[distros]]></category>
		<category><![CDATA[docs]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[howtos]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[suse]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=623</guid>
		<description><![CDATA[Well, as for now it is not a problem anymore to open Microsoft Office 2007 .docx documents in any Linux distribution coming with OpenOffice suit. It may be Ubuntu (Feisty, Gutsy, Interpid whatever), almost any version of Fedora/RedHat/Centos, *SUSE, Mandriva and of course Debian (as per my personal opinion it&#8217;s the best one).
What is .docx [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">Well, as for now it is not a problem anymore to open <a href="http://office.microsoft.com/">Microsoft Office 2007</a> .docx documents in any Linux distribution coming with <a href="http://openoffice.org">OpenOffice</a> suit. It may be Ubuntu (Feisty, Gutsy, Interpid whatever), almost any version of Fedora/RedHat/Centos, *SUSE, Mandriva and of course Debian (as per my personal opinion it&#8217;s the best one).</p>
<p style="text-align: left;">What is .docx actually? It&#8217;s Microsoft&#8217;s file format representing word processor documents and named <a href="http://en.wikipedia.org/wiki/Office_Open_XML">OpenXML</a> (as an attempt to create open and free international standard). Today .docx is default format for Microsoft&#8217;s word processor <a href="http://www.microsoft.com/word/">Word</a>.</p>
<p style="text-align: left;">There are myriads of online converters between OpenXML and OpenOffice formats including .docx, .xlsx, .odt and many etc but sometimes it&#8217;s much more better to just open received .docx file in Linux offline (if there is temporarily no Internet connection or for security/private reasons etc).</p>
<p style="text-align: left;">So, just download the following package to certain directory like /usr/src, here are the commands to do it:</p>
<p style="text-align: left;"><code>1. cd /usr/src<br />
2. sudo wget http://blog.mypapit.net/imej/odf_filter.tar.bz2</code></p>
<p style="text-align: left;">The next step is to unpack the contents of the archive (<a href="http://howto.wikia.com/wiki/Howto_untar_a_tar_file_or_gzip-bz2_tar_file">.tar.bz2</a> is definitely well compressed file) and copy 3 files to OpenOffice&#8217;s system directories:</p>
<p style="text-align: left;"><code>3. sudo tar -xvjf odf_filter.tar.bz2<br />
4. sudo cp OdfConverter /usr/lib/openoffice/program/</code><br />
<code>5. sudo cp MOOXTypeDetection.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Types/<br />
6. sudo cp MOOXFilter_cpp.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Filter/</code></p>
<p style="text-align: left;">As you can see from picture below now it&#8217;s possible to natively open .docx files in openoffice under Linux. Of course such &#8220;native&#8221; support may imply some artefacts in opened files due to file formats incompatibility so it&#8217;s also a good option to ask your friends to convert .docs into .pdf before sending you <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><center><img title="openoffice_openxml" src="http://www.linuxscrew.com/wp-content/uploads/2008/12/openoffice_openxml-300x244.png" alt="openoffice openxml .docx" width="300" height="244" /></center></p>
<p style="text-align: left;">P.S. Thanks to guys from <a href="http://blog.mypapit.net/2007/09/how-to-open-microsoft-openxml-docx-documents-in-openoffice.html">mypapit</a>.</p>
<p style="text-align: left;">P.S. Here are several online converters .doc(x) &lt;-&gt; .odf &lt;-&gt; .pdf:</p>
<p style="text-align: left;">1. <a href="http://www.zamzar.com/">ZAMZAR</a> (possibly the best converter), 2. <a href="http://docx-converter.com/">http://docx-converter.com/</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2008/12/15/open-docx-documents-in-linux-openoffice/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Convert WMA to MP3 in Ubuntu</title>
		<link>http://www.linuxscrew.com/2008/12/01/convert-wma-to-mp3-in-ubuntu/</link>
		<comments>http://www.linuxscrew.com/2008/12/01/convert-wma-to-mp3-in-ubuntu/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 18:50:13 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[howtos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=872</guid>
		<description><![CDATA[In order to convert WMA file into MP3 format in Ubuntu (or Debian) you should install the following requirements first:
1. mplayer (sudo aptitude install mplayer)
2. lame (sudo aptitude install lame)
3. win32 codecs (sudo aptitude install ubuntu-restricted-extras)
and then convert file.wma into file.mp3 using the following console command:
mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader file.wma;lame [...]]]></description>
			<content:encoded><![CDATA[<p><img title="mplayer logo" src="http://www.linuxscrew.com/wp-content/uploads/2007/09/tn_1161779659712955458879234715.png" alt="mplayer logo" align="right" />In order to <strong>convert</strong> <a href="http://en.wikipedia.org/wiki/Windows_Media_Audio"><strong>WMA</strong></a> file <strong>into</strong> <a href="http://en.wikipedia.org/wiki/MP3"><strong>MP3</strong></a> format in <a href="http://www.ubuntu.com"><strong>Ubuntu</strong></a> (or <a href="http://www.debian.org">Debian</a>) you should install the following requirements first:</p>
<p>1. <a href="http://www.mplayerhq.hu">mplayer</a> (<code>sudo aptitude install mplayer</code>)<br />
2. <a href="http://en.wikipedia.org/wiki/LAME">lame</a> (<code>sudo aptitude install lame</code>)<br />
3. <a href="https://help.ubuntu.com/community/RestrictedFormats#head-6c942d1939d97331f96e42b63774003fde7daed5">win32 codecs</a> (<code>sudo aptitude install ubuntu-restricted-extras</code>)</p>
<p>and then convert <strong>file.wma</strong> into <strong>file.mp3</strong> using the following console command:</p>
<p><code>mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader <strong>file.wma</strong>;lame -m s -V 3 audiodump.wav;mv audiodump.wav.mp3 <strong>file.mp3</strong>;rm audiodump.wav</code></p>
<p>This also works for <a href="http://www.fedoraproject.org">Fedora</a> / <a href="http://www.centos.org">Centos</a> / <a href="http://www.redhat.com">Redhat</a> family Linux distributions (requirements <a href="http://www.redips.net/linux/yum-install-mplayer/">should be installed</a> by yum package manager via third-party software repositories).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2008/12/01/convert-wma-to-mp3-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>FTP port forwarding using Linux router</title>
		<link>http://www.linuxscrew.com/2008/11/20/ftp-port-forwarding-using-linux-router/</link>
		<comments>http://www.linuxscrew.com/2008/11/20/ftp-port-forwarding-using-linux-router/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 21:33:17 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[howtos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/2008/11/20/ftp-port-forwarding-using-linux-router/</guid>
		<description><![CDATA[Well, let&#8217;s imagine rather trivial situation: you have Linux router connected to Internet via e.g. ADSL modem and some local network comprising several computers and servers connected to that router via switches and/or Wi-Fi access points.
Done? Ok.
There is one public IP assigned to WAN interface of the router while FTP server (of course run by [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.linuxscrew.com/wp-content/uploads/2008/05/netfilter-logo2.png" alt="" width="265" height="72" align="right" />Well, let&#8217;s imagine rather trivial situation: you have <a href="http://en.wikipedia.org/wiki/List_of_Linux_router_or_firewall_distributions">Linux router</a> connected to Internet via e.g. <a href="http://www.webopedia.com/TERM/A/ADSL.html">ADSL</a> modem and some local network comprising several computers and servers connected to that router via switches and/or Wi-Fi access points.</p>
<p>Done? Ok.</p>
<p>There is one public IP assigned to WAN interface of the router while <strong>FTP</strong> server (of course run by Linux as well) has IP something like <a href="http://en.wikipedia.org/wiki/Private_network">192.168.123.14 or 172.16.*.* or 10.*.*.*.</a> Moreover you want to allow people to access your FTP from every corner of Internet&#8230; So, there are several ways how to apply this but let&#8217;s talk about how to achieve this by means of using <strong><a href="http://portforward.com/routers.htm">port forwarding</a></strong> feature that is available in any router&#8217;s functions list.</p>
<p>So, let&#8217;s say we have the following configuration:</p>
<p>Internet &lt;-&gt; [a] router [b] &lt;-&gt; [c] FTP server</p>
<p>[<strong>a</strong>] is WAN interface with <a href="http://www.weethet.nl/english/internet_getmyip.php">212.213.214.215</a> (just an example) IP assigned to it, [<strong>b</strong>] is NIC with 192.168.0.1 and [<strong>c</strong>] is server&#8217;s interface with IP 192.168.0.2. All what we need is that users from Internet can access FTP server using 212.213.214.215 IP and default <a href="http://www.grc.com/port_21.htm">21 TCP port</a>.</p>
<p>One of the main problems is that <a href="http://slacksite.com/other/ftp.html"><strong>passive mode</strong></a> of FTP service uses any port from range 1024 to 65535 so it&#8217;s not enough to forward 21/20 ports to FTP server and let the ball rolling. So, go to servers&#8217; CLI and open configuration file of an FTP service. It would be <a href="http://vsftpd.beasts.org/">vsftpd</a>, <a href="http://www.proftpd.org/">proftpd</a> whatever. Let&#8217;s say we have <strong>vsftpd </strong>so we have to add the following lines to <a href="http://www.netadmintools.com/art355.html">/etc/vsftpd.conf</a>:</p>
<p><code>pasv_min_port=12000<br />
pasv_max_port=13000</code></p>
<p>When changes are saved <a href="http://www.redhat.com/docs/manuals/enterprise/RHEL-3-Manual/ref-guide/s1-ftp-vsftpd-start.html">restart vsftpd server</a>.</p>
<p>Now access router&#8217;s CLI and type the following:</p>
<p><code>iptables -t nat -I PREROUTING -d 212.213.214.215 -p tcp -m tcp --dport 21 -j DNAT --to-destination 192.168.0.1</code><br />
<code>iptables -t nat -I PREROUTING -d 212.213.214.215 -p tcp -m tcp --dport 12000:13000 -j DNAT --to-destination 192.168.0.1</code></p>
<p>This will add <a href="http://www.netfilter.org/">netfilter</a> <a href="http://www.bctes.com/software-only-solution.html">port forwarding rules</a> which will redirect traffic coming at routers&#8217; public IP through 21 TCP port to FTP server and will properly handle passive FTP mode.</p>
<p>Wuala &#8211; it&#8217;s a finish.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2008/11/20/ftp-port-forwarding-using-linux-router/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
