Owncloud on Raspberry Pi using openSUSE

Finally, I made it!!! I used 3 of my favourite products. I'll show you what I did. This is an analytic tutorial all in 1. Let's start:
1. openSUSE installation on the card.
2. LAMP installation.
3. ownCloud installation.

1. openSUSE installation
This is very easy. I wrote a tutorial to the openSUSE connect group. You can visit the steps described there. If you have any questions, don't hesitate to ask at the group. Bernhard can answer your questions.

2. LAMP installation
Maybe this is the longer part of the tutorial. You can do that using ssh (ssh root@ This was my IP during the installation. Use yours). Don't forget user is root and password is linux for openSUSE img.

-> First we install MySQL 5:

zypper install mysql mysql-client

The system returned that it'll install the following:
mysql-community-server mysql-community-server-client mysql-community-server-errormessages

Then we create the system startup links for MySQL (so that MySQL starts automatically whenever the system boots) and start the MySQL server:
chkconfig --add mysql
/etc/init.d/mysql start

To secure the MySQL installation, run:

Now you will be asked several questions:
raspberrypi: mysql_secure_installation


In order to log into MySQL to secure it, we'll need the current
password for the root user.  If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none): <-- ENTER
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.

Set root password? [Y/n] <-- Y
New password: <-- fill in your desired MySQL root password
Re-enter new password: <-- confirm that password
Password updated successfully!
Reloading privilege tables..
 ... Success!

By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] <-- Y
 ... Success!

Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] <-- Y
 ... Success!

By default, MySQL comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] <-- Y
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] <-- Y
 ... Success!

Cleaning up...

All done!  If you've completed all of the above steps, your MySQL
installation should now be secure.

Thanks for using MySQL!

-> Then we have to install apache2:

zypper install apache2

Now configure your system to start Apache at boot time...

chkconfig --add apache2

start Apache

/etc/init.d/apache2 start

-> Install PHP 5:

zypper in apache2-mod_php5

and restart Apache afterwards

/etc/init.d/apache2 restart

-> Getting MySQL Support In PHP5 (one line)

zypper in php5-mysql php5-bcmath php5-bz2 php5-calendar php5-ctype php5-curl php5-dom php5-ftp php5-gd php5-gettext php5-gmp php5-iconv php5-imap php5-ldap php5-mbstring php5-mcrypt php5-odbc php5-openssl php5-pcntl php5-pgsql php5-posix php5-shmop php5-snmp php5-soap php5-sockets php5-sqlite php5-sysvsem php5-tokenizer php5-wddx php5-xmlrpc php5-xsl php5-zlib php5-exif php5-fastcgi php5-pear php5-sysvmsg php5-sysvshm

restart Apache

/etc/init.d/apache2 restart

-> Install phpMyAdmin

zypper install phpMyAdmin

 3. ownCloud installation
Now it's the last and the fun part.
There are some things that must be done before install ownCloud.

-> Install some programs that openSUSE Pi image lacks.

zypper in wget tar gzip 

-> Get the latest owncloud instance from the website

 wget http://mirrors.owncloud.org/releases/owncloud-4.5.5.tar.bz2

Unfortunately, I didn't know how to unzip the file. That's why I installed tar and gzip. So what I did was to compress owncloud as owncloud.tar.gz at my computer and transfer it to raspberry pi. I used the command:

tar xvfz owncloud.tar.gz

-> Then I moved the folder to the server folder (and I deleted the zipped file).

mv owncloud /srv/www/htdocs/owncloud 
-> Move to the folder

cd /srv/www/htdocs/

-> Change permissions

chown -R wwwrun owncloud

-> Now open phpMyAdmin

User: root
Pass: the password you used when you set up MySQL 
Create a user and database. I created a user and named the database with the same name (just for the example). 

 -> Move your data folder, outside the server folder for security.

Create a folder with the name /owncloud_data. Preferably if you have a seperate folder like /home, it's better to create it there.

mkdir /owncloud_data

Then change some permissions.

chmod 0770 /owncloud_data
chown wwwrun /owncloud_data 

-> Now you're ready to install ownCloud. Go to  (use your IP)  

fill the blanks


And here we are.

Have a lot of fun!!!