Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use Linux packages instead of zip files #33

Open
jancborchardt opened this issue Aug 6, 2014 · 9 comments
Open

use Linux packages instead of zip files #33

jancborchardt opened this issue Aug 6, 2014 · 9 comments

Comments

@jancborchardt
Copy link
Contributor

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?

@petrockblog
Copy link
Owner

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

@jancborchardt
Copy link
Contributor Author

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
Copy link
Contributor Author

@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
Copy link
Contributor Author

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

@petrockblog
Copy link
Owner

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)?

@jancborchardt
Copy link
Contributor Author

@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.)

@DeepDiver1975
Copy link

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.

@dragotin
Copy link

dragotin commented Aug 8, 2014

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

@DeepDiver1975
Copy link

we do that already:

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

but we don't supply configs for other web servers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants