OwncloudPie icon indicating copy to clipboard operation
OwncloudPie copied to clipboard

use Linux packages instead of zip files

Open jancborchardt opened this issue 9 years ago • 9 comments

The script seems to assume Raspbian, so it would make sense to use the Linux packages instead of the generic zip files: http://owncloud.org/install/#instructions-packages

The commands for that are

echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_7.0/ /' >> /etc/apt/sources.list.d/owncloud.list 
apt-get update
apt-get install owncloud

And for adding the key

wget http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_7.0/Release.key
apt-key add - < Release.key

What do you think @petrockblog?

jancborchardt avatar Aug 06 '14 17:08 jancborchardt

Thanks for that hint! Did you already test the Debian packages approach from above on a Raspberry yourself?

petrockblog avatar Aug 07 '14 05:08 petrockblog

Yes, I did that before finding your cool script! :)

These are the commands in the correct order (and with the sources.list command wrapped to use sudo):

sudo sh -c 'echo "deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_7.0/ /" >> /etc/apt/sources.list.d/owncloud.list'
wget http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_7.0/Release.key
sudo apt-key add - < Release.key
rm Release.key
sudo apt-get update
sudo apt-get install owncloud

The ownCloud package will then also request to install the dependencies, which are:

apache2 apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common exim4 exim4-base exim4-config exim4-daemon-light heirloom-mailx imagemagick-common
  libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblqr-1-0 libmagickcore5 libmagickwand5 libmcrypt4 libonig2 libpq5 libqdbm14 owncloud
  php-pear php-xml-parser php5 php5-cli php5-common php5-curl php5-gd php5-imagick php5-intl php5-mcrypt php5-mysqlnd php5-pgsql php5-sqlite ssl-cert

Not sure how we’d do it with Nginx then though – saw in your script and elsewhere that it seems to have better performance over Apache on the Pi.

jancborchardt avatar Aug 07 '14 20:08 jancborchardt

@petrockblog so after that process above, you simply need to go to http://raspberrypi/owncloud/ and put in the admin stuff. All permissions etc is cared for by the package manager.

The only thing left would be optimization. Either the APC stuff, or using Nginx, whatever.

Do we want to improve the script in that direction? :)

jancborchardt avatar Aug 07 '14 20:08 jancborchardt

But yeah, apache eats the CPU ;) so we need to find a way to use Nginx instead, but ideally with the owncloud package.

jancborchardt avatar Aug 07 '14 20:08 jancborchardt

Yes, I found Nginx to have a far better performance as Apache for this application.

Because of that I would not go for the APT package way, currently. Maybe someone will come with a handy idea for this issue (e.g., from on the Owncloud conference)?

petrockblog avatar Aug 08 '14 05:08 petrockblog

@DeepDiver1975 @dragotin is it possible to use the OBS package for the ownCloud server without needing to use Apache? (Because performance on Raspberry Pi is much much better with Nginx.)

jancborchardt avatar Aug 08 '14 07:08 jancborchardt

The OBS package represent the official recommended configuration - which is apache. But from my understanding if nginx is installed we do not pull in apache - but furthermore nginx config is still missing then.

DeepDiver1975 avatar Aug 08 '14 08:08 DeepDiver1975

I wonder why the deb packages could not depend on meta package httpd. We do that for fedora already.

dragotin avatar Aug 08 '14 09:08 dragotin

we do that already:

Depends: ${misc:Depends}, apache2 | httpd

but we don't supply configs for other web servers

DeepDiver1975 avatar Aug 08 '14 10:08 DeepDiver1975