<?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; remote</title>
	<atom:link href="http://lindesk.com/tag/remote/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>
	</channel>
</rss>
