OwnCloud Installation Guide

OwnCloud is a project that aims to bring cloud computing to everyone in making it as easy as it possibly could be to set it up. The project has been a while around but recently released ownCloud 2.0.1 which is supposed to be a quantum leap ahead from previous versions.

The crux is to have to have a lamp-server already running.

For Debian in general see here for example (a Debian wiki). For an introduction see here (Wikipedia).

For Germans and those who understand German this is a complete and detailed how to (for both ownCloud and the necessary preconditions).

Those screenshots below are supposed to be a crunchbang guide. That means you either had installed the lamp server with the help of the after-installation-script from crunchbang or you have to follow the instructions in the first link above or any other installation instructions you may find with a search machine.

To start with owncloud first go to http://owncloud.org/install/advanced/ and scroll down to "Ubuntu 10.10 Maverick / Ubuntu 10.04 Lucid or older, Debian 6.0 Squeeze". Most of the necessary information are already there.


Download ownCloud.

Installation process ownCloud

Go to download destination. (e.g. "cd downloads") ("ls" shows (lists) files in the directory you are)

Extract the file. You only have to copy and paste from the install instructions:
tar xfz owncloud-owncloud-master.tar.gz

Then copy the extracted file to its supposed destination in /var/www.
Again just copy and paste:
sudo cp -r owncloud /var/www

cp: cannot stat 'owncloud': No such file or directory

That's because the extracted file is called owncloud-owncloud and not owncloud.

So we have to change our command to:
sudo cp -r owncloud-owncloud /var/www/owncloud

Then it works.

We have to set the correct rights.

cd /var/www; sudo chown -R www-data:www-data owncloud

To complete the setup wizard as it says in Nr. 6. we have to type "localhost" into the address bar of our browser.

OK. Now we know apache works. But we want to access our ownCloud server.

Type into the address bar: "localhost/owncloud".

Type in the name and password for an administrator.

Then click on Advanced.

Type in a MySQL-user and the belonging password.

In my case I only had the root user for MySQL as I didn't have created any other user.

Give your ownCloud database a name and click on Finish setup.

You're in!

With a click on the little gearwheel in the lower-left corner you can do some configurations.

Configure your own account.

Create or configure other users.

Gain remote access

Now we only had access from our own computer. That does not really make sense. But we know everything works fine!

To get access from a remote location to our own computer we can use the pagekite service. The ownCloud-makers suggest that themselves on their homepage.

The service is not free though. After a trial period you have to acquire traffic amount. It does seem to me to be fair pricing though. Please read pagekite conditions for yourself.

Anyhow. Go to https://pagekite.net/wiki/Howto/GNULinux/OwnCloud/.
Follow the instructions.

It is only copy and paste. As before.

Download and installation:
curl -s https://pagekite.net/pk/ | sudo bash

Pagekite has been installed.

To run pagekite the first time you have to choose a name you want to put in front of ".pagekite.me".
pagekite.py 80 <a-name-to-choose>.pagekite.me

There are some questions to be answered then.

I already was registered. You might need to set up an account.

Then pagekite is up and running.

Thereafter you can start the service again with:
pagekite.py 80 <the-name-you-have-chosen>.pagekite.me

Now we can access our ownCloud file server from a remote destination.

We just have to type into the browser address bar:

That's it.