<?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>Lindesk &#187; Networking</title>
	<atom:link href="http://lindesk.com/category/networking/feed/" rel="self" type="application/rss+xml" />
	<link>http://lindesk.com</link>
	<description>Linux - on the Desktop</description>
	<lastBuildDate>Tue, 23 Jun 2009 14:03:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Sharing Files Between Computers on a Local Network Using Linux</title>
		<link>http://lindesk.com/2008/07/sharing-files-between-computers-on-a-local-network-using-linux/</link>
		<comments>http://lindesk.com/2008/07/sharing-files-between-computers-on-a-local-network-using-linux/#comments</comments>
		<pubDate>Sat, 26 Jul 2008 17:29:14 +0000</pubDate>
		<dc:creator>BinnyVA</dc:creator>
				<category><![CDATA[KDE]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[fish]]></category>
		<category><![CDATA[konquoror]]></category>
		<category><![CDATA[local]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://lindesk.com/?p=118</guid>
		<description><![CDATA[You can share files between two computers in a local network easily using SSH. This article will how you how to do it using SSH and Konqueror.]]></description>
			<content:encoded><![CDATA[<p><img src="http://lindesk.com/wp-content/uploads/2007/04/network.png" alt="" title="Networking" width="102" height="128" class="alignnone size-full wp-image-15 intro" align="right" /></p>
<p class="intro">Windows has a nice feature in Networking &#8211; you just configure the IPs correctly, and the network sharing &#8220;magically&#8221; works. In Linux <strong>we will have to manually configure Samba or some other similar tool to share files between two linux systems</strong> &#8211; and that&#8217;s a bit daunting for a new user. But there is an <strong>easier way &#8211; using SSH</strong>.</p>
<p><strong>SSH or Secure Shell is a program for logging into a remote machine</strong> and executing commands on a that machine. Don&#8217;t worry &#8211; you won&#8217;t have to type commands to transfer files &#8211; there are <strong>GUI clients that supports SSH protocol</strong> &#8211; for example, the great <a href="http://lindesk.com/2007/04/konqueror-a-killer-app-for-linux/">Konqueror</a>.</p>
<p>SSH is installed and turned on in most distros &#8211; so chances are you are running an SSH server at the moment. But if its not installed by default, you can install it using these commands&#8230;</p>
<h4>In Fedora/Red Hat</h4>
<p><code>yum install openssh</code></p>
<h4>In Ubuntu/Debian</h4>
<p><code>apt-get install openssh</code></p>
<p>After installing it, you have to <strong>activate it in the Services configuration</strong> utility. Once that is done, SSH will turned on at boot. Make sure the remote machine have SSH installed and running before trying to connect to it.</p>
<h2>An Example Implementation</h2>
<p>I use SSH to transfer files between my system and my brothers system. This will give you an overview of the network&#8230;</p>
<p><img src="http://lindesk.com/wp-content/uploads/2008/07/my_home_network.jpg" alt="Home Network" title="My Home Network" width="300" height="209" class="alignnone wp-image-119" /></p>
<p>Both the systems have SSH enabled. Now if I want to get some files from my brother&#8217;s system, all I have to do is <strong>open Konqueror and enter this address in the Address bar: <code>fish://username@192.168.1.20</code></strong></p>
<p>That is fish://[Remote User]@[Remote Machine's IP/Name].</p>
<p><img src="http://lindesk.com/wp-content/uploads/2008/07/konquror_ssh_login.png" alt="" title="Konquror SSH Login" width="393" height="368" class="alignnone size-full wp-image-120" /></p>
<p>This will show a password prompt &#8211; where you have to <strong>input the password of the remote user</strong>. Once that is done, <strong>you will see all the files in the remote machine that is accessable by the user you logged in as</strong>. All operation you are used to in Konqueror are still supported &#8211; Copy/Paste, Drag and Drop etc &#8211; they will work between the local system and the remote machine.</p>
<p>If you are a Gnome user, <strong>this is possible in Nautilus as well. Instead of <code>fish://username@192.168.1.20</code> , you have to enter <code>ssh://username@192.168.1.20</code> in the address bar</strong> &#8211; protocol is ssh:// instead of fish://.</p>
<h2>Limitations</h2>
<p>Keep in mind that this is practical only for small home networks. If you are implementing a large network with permission settings, shares and stuff, go with Samba. SSH is not a choice there.</p>
]]></content:encoded>
			<wfw:commentRss>http://lindesk.com/2008/07/sharing-files-between-computers-on-a-local-network-using-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Script to Backup Files Over a Network Using Rsync</title>
		<link>http://lindesk.com/2008/06/script-to-backup-files-over-a-network-using-rsync/</link>
		<comments>http://lindesk.com/2008/06/script-to-backup-files-over-a-network-using-rsync/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 16:29:42 +0000</pubDate>
		<dc:creator>BinnyVA</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Shell Scripts]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://lindesk.com/?p=112</guid>
		<description><![CDATA[
This script will backup the specified files to another computer on your network. You can also use this to send your files to a remote server. This script compliments the last Rsync Backup script. Its possible to combine both the script together, I prefer to keep them separate.
The Setup
For this to work, you need to [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://lindesk.com/wp-content/uploads/2008/02/terminal.png" alt="Script" title="Terminal" width="128" height="128" class="alignnone size-full wp-image-96 intro" align="right" /></p>
<p class="intro">This script will backup the specified files to another computer on your network. You can also use this to send your files to a remote server. This script compliments the last <a href="http://lindesk.com/2008/05/shell-script-to-backup-files-locally-using-rsync/">Rsync Backup script</a>. Its possible to combine both the script together, I prefer to keep them separate.</p>
<h2>The Setup</h2>
<p>For this to work, you need to have a <a href="http://www.linuxconfig.org/Passwordless_ssh">password-less login system over ssh</a>. You should configure the remote system to accept your credentials by giving your public key to the remote server. If you are not sure how to do that, just leave a comment and I&#8217;ll make a post on how to set it up.</p>
<p>The configuration file is the same format as the one used in the <a href="http://lindesk.com/2008/05/shell-script-to-backup-files-locally-using-rsync/">last Rsync script</a>. But in this case, the file name will be &#8216;<code>rsyncnetworkbackup.config</code>&#8216;.</p>
<h2>The Code</h2>
<pre><code class="perl">
#!/usr/bin/perl

#The folder on the remote system that must be used to store the data
$backup_folder = '/home/neo/Backup'; #Final '/' must NOT be there.
# The user for whom we have set up the key based login
$backup_user = 'neo';
# The IP address/domain name of the remote system.
$backup_server = '192.168.0.30';

use File::Basename;
my $config_file = dirname($0) . "/rsyncnetworkbackup.config";
my @all_locations = removeComments(getFileContents($config_file));

foreach my $folder_locations (@all_locations) {
	my($folder,$backup_location) = split(/\s+/,$folder_locations);

	print "Backing up $folder to $backup_location ... ";
	`rsync -avze ssh $folder $backup_user\@$backup_server:\"$backup_folder/$backup_location\"`;
	print "Done\n";
}

sub getFileContents {
	my $file = shift;
	my @lines;

	open (FILE,$file) || die("Can't open '$file': $!");

	@lines=&lt;FILE&gt;;
	close(FILE);
	return @lines;
}

sub removeComments {
	my @lines = @_;

	@cleaned = grep(!/^\s*#/, @lines); #Remove Comments
	@cleaned = grep(!/^\s*$/, @cleaned); #Remove Empty lines

	return @cleaned;
}</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://lindesk.com/2008/06/script-to-backup-files-over-a-network-using-rsync/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Using Konqueror as an FTP Client</title>
		<link>http://lindesk.com/2007/05/using-konqueror-as-an-ftp-client/</link>
		<comments>http://lindesk.com/2007/05/using-konqueror-as-an-ftp-client/#comments</comments>
		<pubDate>Sat, 05 May 2007 11:20:46 +0000</pubDate>
		<dc:creator>BinnyVA</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://lindesk.com/2007/05/using-konqueror-as-an-ftp-client/</guid>
		<description><![CDATA[
As a web developer good FTP clients are a necessity for me. I have to upload the scripts to the server. I used to use gFTP for this. Good client &#8211; clean interface, easy to use. But not as powerful as I wanted. Then I found FireFTP &#8211; the extension for Firefox &#8211; it is [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://lindesk.com/2007/04/konqueror-a-killer-app-for-linux/konqueror-logo/' rel='attachment wp-att-21' title='Konqueror Logo'><img class="intro" align="right" src='http://lindesk.com/wp-content/uploads/2007/04/konqueror.png' alt='Konqueror Logo' /></a></p>
<p class="intro">As a web developer good FTP clients are a necessity for me. I have to upload the scripts to the server. I used to use gFTP for this. Good client &#8211; clean interface, easy to use. But not as powerful as I wanted. Then I found FireFTP &#8211; the extension for Firefox &#8211; it is a good client. But recently I found that my favorite application, <strong class="highlight">Konqueror, can do it much better than all the other</strong> clients.</p>
<p>Didn&#8217;t know konqueror could be used as a FTP client? Just copy and paste this FTP URL into the address bar of Konqueror and see for yourself&#8230;<br />
<a href="ftp://checksoftware.com/">ftp://checksoftware.com/</a></p>
<h2>Advantages</h2>
<p>The main advantage of using Konqueror as the FTP client is that you are <strong class="highlight">very familiar with it</strong>. All the shortcuts, the tricks, you use when browsing through your files are available when you connect to a remote server as well. Ctrl+C and Ctrl+V? The FTP client has got it. What if you want to browse two folders in the remote server at the same time? Konqueror can do it.</p>
<h3>2 Pane View</h3>
<p>Like many other FTP Clients, you can <strong class="highlight">split Konqueror into two panes</strong>(Window-&gt;Split View Left and Right). This is perhaps the best way to use Konqueror as an FTP Client.</p>
<p><a href='http://lindesk.com/wp-content/uploads/2007/05/split_window.png' title='Konqueror using Split Window Interface'><img src='http://lindesk.com/wp-content/uploads/2007/05/split_window.thumbnail.png' alt='Konqueror using Split Window Interface' /></a></p>
<h3>X Pane View</h3>
<p>Unlike other FTP Clients, Konqueror goes further than just 2 panes. You can <strong class="highlight">keep on splitting a window</strong> to make it &#8216;just perfect&#8217; for you.</p>
<h3>Tabbed View</h3>
<p>If paned view is not enough, just open up a <strong class="highlight">new tab</strong> &#8211; and continue splitting it.</p>
<h3>Multiple Protocols &#8211; FTP/SFTP/FISH</h3>
<p><strong class="highlight">Konqueror supports many protocols</strong> &#8211; among which these three are the most important to us&#8230;</p>
<dl>
<dt>fish</dt>
<dd>You can use fish if you have a shell account on the remote server. For example, fish://admin@linkdesk.com would open a connection for user binnyva to a remote server &#8216;linkdesk.com&#8217;.</dd>
<dt>ftp</dt>
<dd>File Transfer Protocol &#8211; you should be knowing this if you have come this far <img src='http://lindesk.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </dd>
<dt>sftp</dt>
<dd>Secure FTP.</dd>
</dl>
<h2>Problems</h2>
<p>So far I have found only one issue with it &#8211; I was <strong class="highlight">not able to configure Konqueror to act as an FTP client properly when I was behind a proxy</strong>. I have reasons to believe that it was my fault &#8211; but I did spend some time trying. Could someone else confirm this?</p>
<h2>Conclusion</h2>
<p>Konqueror is the best FTP Client there is. Period.</p>
]]></content:encoded>
			<wfw:commentRss>http://lindesk.com/2007/05/using-konqueror-as-an-ftp-client/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Internet Connection Sharing using iptables</title>
		<link>http://lindesk.com/2007/04/internet-connection-sharing-using-iptables/</link>
		<comments>http://lindesk.com/2007/04/internet-connection-sharing-using-iptables/#comments</comments>
		<pubDate>Mon, 16 Apr 2007 11:08:27 +0000</pubDate>
		<dc:creator>BinnyVA</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://lindesk.com/2007/04/internet-connection-sharing-using-iptables/</guid>
		<description><![CDATA[
It is very easy to setup an internet connection sharing in Linux system using iptables. This method can be used to share an internet connection from a Linux system(I used Fedora Core 6, but it should work on other distributions that support iptables). Another method of doing this is using a proxy server like squid.
Enable [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://lindesk.com/wp-content/uploads/2007/04/network.png' alt='Networking' class="intro" align="right" /></p>
<p class="intro">It is very easy to setup an internet connection sharing in Linux system using iptables. This method can be used to share an internet connection from a Linux system(I used Fedora Core 6, but it should work on other distributions that support iptables). Another method of doing this is using a proxy server like squid.</p>
<h2>Enable IP forwarding</h2>
<p>Run as root</p>
<p><code>sysctl -w net.ipv4.ip_forward=1</code></p>
<p>To enable it in system startup, edit the file <code>/etc/sysctl.conf</code> and set</p>
<p><code>net.ipv4.ip_forward = 1</code></p>
<h2>iptables</h2>
<p>Run command as root</p>
<pre><code>iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
service iptables save</code></pre>
<h2>Configuration</h2>
<p>The configuration should be like this</p>
<h3>Router</h3>
<p>Connected to the internet provider<br />
IP : 192.168.1.1</p>
<h3>Internet Connected System</h3>
<h4>eth0 (LAN Card 1)</h4>
<p>Connected to router</p>
<ul>
<li>IP : 192.168.1.10</li>
<li>Netmask : 255.255.255.0</li>
<li>Gateway : 192.168.1.1 (IP of the router)</li>
</ul>
<h4>eth1 (LAN Card 2)</h4>
<p>Connected to the other system</p>
<ul>
<li>IP : 192.168.0.20 (Not the same network as the first card)</li>
<li>Netmask : 255.255.255.0</li>
<li>Gateway : 192.168.1.1 (IP of the router)</li>
</ul>
<h3>Second System</h3>
<h4>LAN Card connected to the first system</h4>
<ul>
<li>IP : 192.168.0.30</li>
<li>Netmask : 255.255.255.0</li>
<li>Gateway : 192.168.0.20 (IP of the second Card in the first system)</li>
</ul>
<h2>Disclaimer</h2>
<p>Linux networks is not a subject I am an expert on. So take my advice with a pinch of salt. The above procedure worked for me. <abbr title="Your Mileage May Vary">YMMV</abbr>.</p>
<h2>Status</h2>
<p>Some results of various commands are shown here. Check to see if it matches the result on your system.</p>
<pre><code class="cli"># <strong>iptables -t nat -L POSTROUTING</strong>
Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
MASQUERADE  all  --  anywhere             anywhere
</code></pre>
<pre><code class="cli"># <strong>cat /proc/sys/net/ipv4/ip_forward</strong>
1</code></pre>
<pre><code class="cli"># <strong>iptables -L</strong>
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://lindesk.com/2007/04/internet-connection-sharing-using-iptables/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>Using SSH over a Proxy</title>
		<link>http://lindesk.com/2007/04/using-ssh-over-a-proxy/</link>
		<comments>http://lindesk.com/2007/04/using-ssh-over-a-proxy/#comments</comments>
		<pubDate>Sun, 08 Apr 2007 20:24:39 +0000</pubDate>
		<dc:creator>BinnyVA</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://lindesk.com/2007/04/using-ssh-over-a-proxy/</guid>
		<description><![CDATA[
Back in the days when I was working in a web development company, I had to ssh into some sites for setting up crons, importing database dumps etc. But there was a problem &#8211; my system was behind a proxy. And SSH did not have an option to connect through a proxy.
To use ssh over [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://lindesk.com/2007/04/using-ssh-over-a-proxy/cockscrew/' rel='attachment wp-att-7' title='Cockscrew'><img src='http://lindesk.com/wp-content/uploads/2007/04/zigzag.jpg' alt='Cockscrew' class="intro" align="right" /></a></p>
<p class="intro">Back in the days when I was working in a web development company, I had to ssh into some sites for setting up crons, importing database dumps etc. But there was a problem &#8211; my system was behind a proxy. And <abbr title="Secure Shell">SSH</abbr> did not have an option to connect through a proxy.</p>
<p>To use ssh over a proxy connection, you need a software called <a href="http://www.agroman.net/corkscrew/">Cocrkscrew</a>. Download the source and compile/install it.</p>
<h2>Installation</h2>
<pre><code class="cli">wget http://www.agroman.net/corkscrew/corkscrew-2.0.tar.gz
tar -xzf corkscrew-2.0.tar.gz
cd corkscrew-2.0
./configure
make
su
[Enter Password]
make install</code></pre>
<h2>Configuration</h2>
<p>Open the file <code>~/.ssh/config</code></p>
<p>Add this line..</p>
<p><code>ProxyCommand /usr/local/bin/corkscrew &lt;proxy_server_ip&gt; &lt;proxy_server_port&gt; %h %p</code></p>
<p>Example&#8230;</p>
<p><code>ProxyCommand /usr/local/bin/corkscrew 192.168.1.15 80 %h %p</code></p>
<p>Here <code>192.168.1.15</code> is the proxy server and <code>80</code> is the port.</p>
<p>After this is done, just connect to the remote server using ssh.</p>
<p><code>ssh google.com</code></p>
]]></content:encoded>
			<wfw:commentRss>http://lindesk.com/2007/04/using-ssh-over-a-proxy/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
