file sync (Forum tag)http://www.turnkeylinux.org/forum/term/944/0/feed
enTKLPatch - ownCloud v0.1http://www.turnkeylinux.org/forum/general/20120208/tklpatch-owncloud
<p><a href="http://owncloud.org" rel="nofollow">ownCloud</a> (or <a href="http://owncloud.com" rel="nofollow">owncloud.com</a>) is something of a &#39;Dropbox&#39; type file server (but without an autosync client - ie the web interface part of Dropbox). The big difference is that it is open source and allows you to run the server yourself. It also includes other cool features such as a browser based text editor and a photo gallery. Since v3.0 it also includes facility for additional (html/php/javascript) apps to be included. There aren&#39;t many available just yet, but you can have a look at what is there so far <a href="http://apps.owncloud.com/" rel="nofollow">here</a>.</p>
<p>The big thing it is missing IMO is that there isn&#39;t a standalone client available ATM (AFAIK it&#39;s on the wishlist). In my mind that was a little bit of a let down when I discovered that (I didn&#39;t realise until after I created the patch). However I still think that this would be a good candiate for TKL.</p>
<p>Following on from discussions on <a href="http://www.turnkeylinux.org/forum/general/20120107/dropbox-tkl-server#comment-12024" rel="nofollow">this thread</a> I finally got around to creating a patch for it but it hasn&#39;t been extensively tested (actually it&#39;s barely been tested at all and was bashed together in a couple of hours...).</p>
<h3>
What the patch does (in order):</h3>
<ul>
<li>
Add Apache2 site &quot;owncloud-standalone&quot;. [overlay]</li>
<li>
Add an amended <em>services.txt</em> to Confconsole output. [overlay]</li>
<li>
Add <em>owncloud-usr.sql</em> and <em>owncloud-setup.sql</em> files to /var/www for import to MySQL DB (by conf script). [overlay]</li>
<li>
Add customised <em>config.php</em> config file to /var/www for import into ownCloud (by conf script). [overlay]</li>
<li>
Add firstboot inithooks for setting Admin username and password and create random secrets for ownCloud MySQL DB (<em>owncloud.py</em>, <em>20rengen-oc-secrets</em> &amp; <em>40owncloud</em>) [overlay]</li>
<li>
Create MySQL user, create and populate database (using .sql files overlayed previously). [conf]</li>
<li>
Set hostname to &#39;owncloud&#39;. [conf]</li>
<li>
Install <em>php5-gd</em>. [conf]</li>
<li>
Download latest stable ownCloud from git. [conf]</li>
<li>
Disable default apache site and enable owncloud-standalone. [conf]</li>
<li>
Ensure ownership of ownCloud doc root by webserver (www-data). [conf]</li>
<li>
Stop Apache2 and MySQL services (so patching finalises cleanly). [conf]</li>
<li>
Cleans up inc apt. [conf]</li>
</ul>
<h3>
To do:</h3>
<ul>
<li>
Tweak file upload size (edit php.ini as detailed <a href="http://forum.owncloud.org/viewtopic.php?f=8&amp;t=1809" rel="nofollow">here</a>).</li>
<li>
Test application of the patch to an ISO.</li>
<li>
Extensive general usage testing (no usage testing has been done at all yet).</li>
<li>
Test connectivity of alternative methods such as WebDAV (ensure is all working as it should).</li>
<li>
Look at what (if any) ownCloud applications/plugins which may be useful for TKL community (probably none at this point, but be good to watch the apps page).</li>
<li>
Consider what documentation will be required.</li>
<li>
Check out some client sync options (ie a local client that can auto-sync a predefined folder to/from your ownCloud) so we can recreate a &quot;Dropbox-like&#39; experience. Rsync may be an option although perhaps leveraging an existing app that can sync via WebDAV may be a better option? <a href="http://freefilesync.sourceforge.net/" rel="nofollow">FreeFileSync</a> looks promising - it&#39;s cross-platform and can run via commandline apparently - worth further investigation. Another open source sync client that can sync to WebDAV (that looks promising) is <a href="http://www.re.be/webdav_sync/" rel="nofollow">WebDAV-Sync</a> - it&#39;s a Java app (that also has commandline too from what I can gather) so crossplatform support would be good one would guess. It seems that there is <a href="http://kfreitag.tumblr.com/post/17319346374/desktop-syncing-with-owncloud" rel="nofollow">official ownCloud client</a> development happening but currently no release. I found an <a href="http://gitorious.org/owncloud-sync-client" rel="nofollow">ownCloud desktop client</a> under development on Gitorious but I&#39;m not sure where it is up to. There is an Android client under development too. All ownCloud development seems to be occuring on Gitorious <a href="http://gitorious.org/owncloud" rel="nofollow">here</a>. More research suggests that <a href="http://www.webupd8.org/2012/02/desktop-syncing-comes-to-owncloud.html" rel="nofollow">Mirall/Csync</a> will be the tools/sync client of choice.<br />
This aspect definately requires significant investigation I think!</li>
</ul>
<h3>
Known Bugs</h3>
<ul>
<li>
None known currently.</li>
</ul>
<h3>
Notes:</h3>
<ul>
<li>
First boot scripts to set &#39;admin&#39; user password and set random ownCloud-MySQL passwords (not needed by end user, just created for security).</li>
<li>
I modified the database slightly (I added an &#39;id&#39;&nbsp; column to the user DB, with the first entry being preset to &#39;1&#39; and all subsequent entries being &#39;0&#39;). This is to ensure that when the firstboot script edits the Admin username and password it edits the first user. This isn&#39;t an issue initially (as there is only one entry) but as the user can set the username I anticipate that if the firstboot script were to be run again then it wouldn&#39;t know which entry to edit unless there was something to define it.</li>
<li>
Facility to impliment forcing of SSH with a .htaccess file is included in the conf script (but is currently commented out).</li>
<li>
Set ownCloud webroot (so ownCloud is available at <a href="https://%3cip%3e/" rel="nofollow" title="https://&lt;ip&gt;/" rel="nofollow">https://&lt;ip&gt;/</a> rather than <a href="https://%3cip%3e/knowledgetree/" rel="nofollow" title="https://&lt;ip&gt;/knowledgetree/" rel="nofollow">https://&lt;ip&gt;/owncloud/</a>).</li>
</ul>
<p>I haven&#39;t extensively tested it (in fact TBH I haven&#39;t tested it at all as a patch so there may be bugs...) but it seems to work so far.</p>
<p>The ownCloud app itself has also had very little testing and has only been tested as far as log in and navigate around. I have not tried connecting via a client or any other the other funky looking stuff it does.</p>
<p>Currently the ownCloud TKLPatch is only avaialble on my GitHub <a href="https://github.com/JedMeister/owncloud-patch" rel="nofollow" rel="nofollow">here</a>. Instructions on installing a patch from GitHub <a href="../../docs/tklpatch/apply#Applying%20a%20patch%20from%20GitHub%20source" rel="nofollow" rel="nofollow">here</a>.</p>http://www.turnkeylinux.org/forum/general/20120208/tklpatch-owncloud#commentsGeneraldropboxfile syncowncloudtklpatchTue, 07 Feb 2012 23:21:40 +0000Jeremy3132 at http://www.turnkeylinux.org'Dropbox like' TKL serverhttp://www.turnkeylinux.org/forum/general/20120107/dropbox-tkl-server
<p>
I have long wanted a &#39;Dropbox like&#39; server for syncing files between computers, but instead of having a limited cloud storage outside of my control I want a FOSS client, with inhouse (FOSS) server that I control!</p>
<p>
A long time ago I stumbled across <a href="http://sourceforge.net/projects/ifolder/" rel="nofollow">iFolder</a> (<a href="https://blueprints.launchpad.net/turnkeylinux/+spec/ifolder-appliance" rel="nofollow">blueprint</a>, <a href="http://wiki.turnkeylinux.org/Whiteboard/iFolder_Server" rel="nofollow">dev wiki</a>) but I never had any joy with it. A kind user posted instructions on how to install it successfully on Ubuntu 10.04/TKL v11.x but I never got around to it. Development seems to have stalled (last update on SF was 2010) and it doesn&#39;t have a .deb file which would allow easy client installation to Ubuntu/Debian (although it does have .rpm and .exe client binaries).</p>
<p>
So anyway I did a bit of searching today and came across some other options and I thought I&#39;d document it all here. So here are the list of options I found with some brief details:</p>
<ul>
<li>
<a href="http://sourceforge.net/projects/ifolder/" rel="nofollow">iFolder</a> - The &#39;original&#39; FOSS &#39;Dropbox like&#39; client server sync. May still be an option for TKL but I think there may be better ones.</li>
<li>
<a href="http://www.sparkleshare.org/" rel="nofollow">SparkleShare</a> (<a href="https://github.com/hbons/SparkleShare" rel="nofollow">GitHub</a>) - Looks very cool. Seems to use Git as a backend so everything is versioned, can use your own server or other services (such as GitHub). Multiple OS clients supported (Win/Linux/MacOS/Android/iOS). Has relatively easy setup. Whilst this looks pretty cool, I&#39;m not sure of the value of a TKL appliance unless it was perhaps integrated into the Fileserver (or similar) as it would still require some manual end-user config so not a lot of added value by TKLising it IMO.</li>
<li>
<a href="http://www.wiredwings.com/wiki/Untitled_Synchronization_and_Backup_Project" rel="nofollow">Untitled Synchronization and Backup Project</a> - Some interesting ideas and links etc, but not really anything usable... (I almost didn&#39;t include it here but it was one of the first things I stumbled across so thought I&#39;d include it).</li>
<li>
<a href="https://github.com/philcryer/lipsync" rel="nofollow">LipSync</a> - Lightweight auto folder sync tool. Looks interesting, but not really a condidate for TKL appliance IMO as it is Linux only and doesn&#39;t have any GUI (commandline only).</li>
<li>
<a href="http://www.cis.upenn.edu/~bcpierce/unison/" rel="nofollow">Unison</a> - Interesting take on the scenario. Cross platform, don&#39;t know much about it beyond that...</li>
<li>
<a href="http://www.syncany.org/" rel="nofollow">Syncany</a> (<a href="https://launchpad.net/syncany" rel="nofollow">LaunchPad</a>) - Looks very promising setup but is yet to release anything stable (and to try to release soonish they are currently looking to strip features). Also as it can use just about any external storage, the merits of a TKL Syncany server are limited IMO. Besides this development seems to have stalled. Still probably one to watch.</li>
<li>
<a href="http://owncloud.org/" rel="nofollow">ownCloud</a> (or <a href="http://owncloud.com" rel="nofollow">ownCloud.com</a>) - I think this is the most promising one of the lot! IMO it is a true open source contender to DropBox. They are looking to release their commercial version this year which will be a direct competitor to Dropbox. It is still lacking versioning and recovery (of deleted files) but it looks like its a planned feature. The best feature IMO is the Web interface (demo <a href="http://demo.owncloud.org/files/index.php" rel="nofollow">here</a>). This makes it the best contender for a TKL appliance IMO. And having said all that I think I will do a patch for it soon and have a play...! :)</li>
</ul>http://www.turnkeylinux.org/forum/general/20120107/dropbox-tkl-server#commentsGeneraldevelopmentdropboxfile syncideasifolderSat, 07 Jan 2012 12:29:10 +0000Jeremy3041 at http://www.turnkeylinux.org