pages tagged owncloudBitPipelinehttp://www.bitpipeline.eu/tags/owncloud/BitPipelineikiwiki2013-03-29T20:12:49ZMy very own dropbox : OwnCloudhttp://www.bitpipeline.eu/Blog/20130329-OwnCloud/2013-03-29T20:12:49Z2013-03-29T20:12:49Z
<p>Actually, it's a lot more than dropbox, It's also a calendar, contact manager, media player, etc. <a href="http://owncloud.org">OwnCloud</a>, what a great project.</p>
<h2 id="Installing_the_OwnCloud_server.">Installing the OwnCloud server.</h2>
<p>You need to have a web server that suport php and cgi and a database server. I choose to continue to use <a href="http://www.lighttpd.net">lighttpd</a> and <a href="http://www.postgresql.org">postgresq</a>.
Here is my list of <code>USE</code> flags for the relevant packages:</p>
<pre><code>dev-lang/php cgi curl gd imap inifile pcntl pdo postgres threads xmlwriter
www-apps/owncloud -mysql -sqlite postgres
www-servers/lighttpd libev php webdav
</code></pre>
<p><strong>Note</strong>: if you want to have your web root to be somewhere else than the default then you have to tell <code>webapp-config</code> it's location. Do so by editing the file <code>/etc/vhosts/webapp-config</code> and change the value of the variable <code>vhost_root</code> to the base location of your web server (the directory that will contain the <code>htdocs</code>). It's the same as in the <code>/etc/lighttpd/lighttpd.conf</code> variable <code>var.basedir</code>.</p>
<p>With gentoo you have to tell portage to accept keyword for the package <code>www-apps/owncloud</code> and emerge it.</p>
<p>Then edit the <code>lighttpd.conf</code> and add the following:</p>
<pre><code>$HTTP["url"] =~ "^/owncloud/data/" {
url.access-deny = ("")
}
</code></pre>
<p>This will tell <code>lighttpd</code> not to directly publish the files under ownCloud control. You can also change the location of this directory to somewhere else — you'll be asked for it's location the first time you access ownCloud, when you'll be presented with a nice wizard to setup the administrator user credentials, the database connection and data directory location.</p>
<h2 id="Syncing_with_the_linux_desktop">Syncing with the linux desktop</h2>
<p>To set the client in a gentoo host you must emerge the packages (it's hard to actually find out which ones are needed):</p>
<ul>
<li><code>net-misc/csync</code></li>
<li><code>net-misc/mirall</code></li>
</ul>
<p>Then start <code>owncloud</code> in your desktop (it will show up in the systray). Follow the wizard to set up the first configuration and then stop it so that you can set the server target directory to the root (it will be forced to be <code>clientcsync</code>) Edit the file <code>~/.local/share/data/ownCloud/folders/ownCloud</code> and change the line</p>
<pre><code>targetPath=clientcsync
</code></pre>
<p>to</p>
<pre><code>targetPath=
</code></pre>
<p>Start the <code>owncloud</code> again and now the directory <code>~/ownCloud</code> will be synchronized with the server and the other devices. <em>Magic!</em> <img src="http://www.bitpipeline.eu/tags/owncloud/../../smileys/smile.png" alt=":)" /></p>
<p>I guess this could also be acomplished by setting a new folder to sync with the user root of the ownCloud, but what's the fun of that?</p>
<p>One thing I would like to find is how to do the synchonization without a X server. Something I still have to research how to do.</p>
<h2 id="For_the_android_devices">For the android devices</h2>
<p>This is as easy as installing the <a href="https://play.google.com/store/apps/details?id=com.owncloud.android">owmClient Android client</a> (or at <a href="http://f-droid.org/repository/browse/?fdfilter=owncloud&fdid=com.owncloud.android">FDroid</a>) and follow the nice wizard.</p>