<?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>Weblog.LileDevil.Net &#187; Ubuntu</title>
	<atom:link href="http://weblog.liledevil.net/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://weblog.liledevil.net</link>
	<description>Trying to make the world better bit by bit</description>
	<lastBuildDate>Wed, 28 Jan 2015 21:56:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.38</generator>
	<item>
		<title>Give Your Ubuntu Unlimited Cloud Storage with AeroFS</title>
		<link>http://weblog.liledevil.net/2012/12/give-your-ubuntu-unlimited-cloud-storage/</link>
		<comments>http://weblog.liledevil.net/2012/12/give-your-ubuntu-unlimited-cloud-storage/#comments</comments>
		<pubDate>Tue, 18 Dec 2012 12:48:20 +0000</pubDate>
		<dc:creator><![CDATA[liledevil]]></dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[AeroFS]]></category>
		<category><![CDATA[AEROFSFOLDER]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[FOLDERS]]></category>
		<category><![CDATA[HOME]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Xubuntu]]></category>

		<guid isPermaLink="false">http://weblog.liledevil.net/?p=215</guid>
		<description><![CDATA[AeroFS Since some time I have been playing around with AeroFS(https://www.aerofs.com/) for a proper datasynchronisation between my devices. I can&#8217;t say anything negative about it so far, it works fast, secure and is highly configurable for everyone. To give an idea what AeroFS can do: Private Syncing, allowed you to sync your devices between all [&#8230;]]]></description>
				<content:encoded><![CDATA[<h2>AeroFS</h2>
<p>
Since some time I have been playing around with AeroFS(<a href='https://www.aerofs.com/'>https://www.aerofs.com/</a>) for a proper datasynchronisation between my devices.<br />
I can&#8217;t say anything negative about it so far, it works fast, secure and is highly configurable for everyone.<br />
To give an idea what AeroFS can do:</p>
<ul>
<li>Private Syncing, allowed you to sync your devices between all your devices(Android &#038; iOS support comming soon I hope!)</li>
<li>Unlimited Storage, the storage on your own devices is used and therefor your only limitation!</li>
<li>Sharing is caring, all your folders are private by default, but you can choose to share them with other AeroFS users</li>
<li>It&#8217;s Secure
<ul>
<li>Every device gets their own 2048bits key, making it very(!!) hard to be impersonated by black hat hackers!</li>
<li>These keys are used between your devices to verify their identity</li>
<li>These keys are also used to encrypt your data while syncing</li>
</ul>
</li>
<li>It has a graphical interface for easy configuration, but also a shell client for advanced/scripted configuration</li>
</ul>
<p>Best thing about this is, you dont have to rely on any public service, except for an Internet connection!<br />
Although for me it is common sense I would like to have it noted that your devices have to be turned on at the same to have them synchronise!!
</p>
<h2>My Script</h2>
<p>
Because I like AeroFS a lot, it does what it promises to do and it shows to be stable already in the current Beta stage, I have started to reconfigure my (X)Ubuntu machines to use this as much as possible, so my data is always stored in my personal &#8220;cloud&#8221; and I dont have to worry whether I put that one file in my AeroFS folder or not. So basically all my devices work on my personal storage cloud.<br />
Therefor I wrote a little bash script to run, that will make the important profile folders(Documents, Pictures, Music &#038; Videos) get moved and linked to the AeroFS folders. That way if I ever save anything in these folders it&#8217;s automatically synced between my devices. I also made the script in a way it can easily be extended with more folders.<br />
Below you will find the code, which you can just copy to a textfile and make it executable.(chmod +x [name textfile]) I will try to make this even more userfriendly or make a more extended description of how to do this as soon as possible.<br />
You can configure some of the parameters yourself or just go with the default settings which work with a default (X)Ubuntu installation and a default AeroFS installation.
</p>
<blockquote><p>
#! /bin/bash</code></p>
<p># The location of the AeroFS shell binary<br />
AEROFSBINSH=&#8221;/usr/bin/aerofs-sh&#8221;<br />
AEROFSOPTIONS=&#8221;-e&#8221;<br />
# The location of the AeroFS folder, default is set<br />
AEROFSFOLDER=$HOME/AeroFS/<br />
# Do you want this script to relocate your AeroFS Folder in case it isnt found at the configured path?<br />
RELOCATEAEROFSFOLDER=0<br />
# The folders to transfer/relocate to AeroFS, default folders with exception of Downloads<br />
FOLDERS[1]=&#8221;Documents&#8221;<br />
FOLDERS[2]=&#8221;Music&#8221;<br />
FOLDERS[3]=&#8221;Pictures&#8221;<br />
FOLDERS[4]=&#8221;Videos&#8221;<br />
# Not transferred to AeroFS by default, uncomment to have them transferred as well<br />
#FOLDERS[5]=&#8221;Downloads&#8221;<br />
#FOLDERS[6]=&#8221;Desktop&#8221;<br />
#FOLDERS[7]=&#8221;Test&#8221;</p>
<p># Migrate Data, do you want this script to transfer your data?(!!IT WILL BE DELETED IF NOT TRANSFERRED!!)<br />
# (Yes = 1, No = 0)<br />
MIGRATEDATA=1</p>
<p>MigrateFolder()<br />
{<br />
if [ -z &#8220;$1&#8243; ]                           # Is parameter #1 zero length?<br />
then<br />
echo &#8220;!!!No directory specified to migrate!!!&#8221;  # Or no parameter passed.<br />
else<br />
if [ ! -L $HOME/$1 ]; then<br />
#<br />
if [ -d $AEROFSFOLDER/$1 ]; then<br />
echo &#8220;$AEROFSFOLDER$1 exists&#8221;<br />
else<br />
echo &#8220;Creating $AEROFSFOLDER$i&#8221;<br />
$AEROFSBINSH $AEROFSOPTIONS mkdir $1<br />
fi<br />
if [ $MIGRATEDATA -eq 1 ];then<br />
echo &#8220;Moving Data from $HOME/$i to $AEROFSFOLDER$1&#8243;<br />
mv $HOME/$1/* $AEROFSFOLDER$1<br />
fi<br />
rm -rf $HOME/$1<br />
ln -s $AEROFSFOLDER$i $1<br />
else<br />
echo &#8220;!!!$1 is Skipped since it was already a Symbolic Link in the homefolder!!!&#8221;<br />
fi<br />
fi<br />
}<br />
MigrateAeroFS()<br />
{<br />
for i in &#8220;${FOLDERS[@]}&#8221;; do<br />
MigrateFolder $i<br />
done<br />
}</p>
<p>read -p &#8220;Press [Enter] key to start AeroFS Configuration&#8230;&#8221;<br />
cd $HOME<br />
if [ -e &#8220;$AEROFSBINSH&#8221; ]; then<br />
echo &#8220;Pausing AeroFS&#8221;<br />
$AEROFSBINSH $AEROFSOPTIONS pause<br />
#    echo &#8220;AeroFS is installed&#8221;<br />
#    echo &#8220;$AEROFSFOLDER&#8221;<br />
if [ -d $AEROFSFOLDER ]; then<br />
#        echo &#8220;AeroFS Folder does exist&#8221;<br />
MigrateAeroFS<br />
else<br />
#        echo &#8220;AeroFS Folder does NOT exist&#8221;<br />
if [ $RELOCATEAEROFSFOLDER -eq 1 ]; then<br />
echo &#8220;Relocating AeroFS Folder&#8221;<br />
mkdir -p $AEROFSFOLDER<br />
$AEROFSBINSH $AEROFSOPTIONS relocate $AEROFSFOLDER<br />
MigrateAeroFS<br />
else<br />
echo &#8220;!!!Your AeroFS Folder isnt properly configured in this script and isnt allowed to be relocated!!!&#8221;<br />
fi<br />
fi<br />
echo &#8220;Resuming AeroFS&#8221;<br />
$AEROFSBINSH $AEROFSOPTIONS resume<br />
else<br />
echo &#8220;!!!AeroFS is NOT installed or binarypath is not properly configured in this script!!!&#8221;<br />
fi
</p></blockquote>
<p>Little disclaimer, using this script is entirely at your own risk. Although I have tried to built in some checks to see whether everything is alright, I take no responsibility for any damage this script could cause.</p>
]]></content:encoded>
			<wfw:commentRss>http://weblog.liledevil.net/2012/12/give-your-ubuntu-unlimited-cloud-storage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
