-
Notifications
You must be signed in to change notification settings - Fork 0
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
2012/08/raspberry-pi-as-an-owncloud-server/ #4
Comments
Originally by martin why do you use “ntfs” for the external hard drive? |
I use NTFS because my main PCs are Windows, and want to be able to access the disk easily, if for example, I need to get files onto the disk, or off the disk quickly (The raspi is very slow!) I aim to do another article or two about setting up Samba for file and print sharing. |
Originally by Modi How did you manage the Owncloud sync client to work. |
I don’t remember having that error. I think you can now install OwnCloud using apt-get install owncloud. I’ll be trying that soon on a spare SD card. It should make installation and upgrades easier. |
Originally by Pawe? Szmajda Hey Greg, |
Raspberry Pi as an OwnCloud Server - Greg Woods - Occasionally Useful
First, see http://gregwoods.co.uk/2012/08/setting-up-the-raspberry-pi-the-basics/ Install Apache sudo apt-get install apache2 php5 php5-gd php5-sqlite libcurl4-openssl-dev php5-curl php5-common php-xml-parser sqlite Test the webserver works. Can browse to http:// Set up the USB disk for OwnCloud Format the disk as NTFS Plug it into the RaspberryPi sudo mkdir /media/disk Check user id with sudo nano /etc/passwd user ‘pi’ probably has an id of 1000 Check disk device name with sudo parted print all shows disk is /dev/sda and partition number is 1 (in my case) quit sudo nano /etc/fstab Add an entry… /dev/sda1 /media/disk ntfs permissions 0 0 save and quit nano sudo mount /media/disk sudo mkdir /media/disk/web sudo chown -R www-data:www-data /media/disk/web #a chmod doesn’t seem to be needed, it already has 0770 permissions Install OwnCloud sudo apt-get install sqlite check latest release at http://download.owncloud.org/releases sudo wget http://download.owncloud.org/releases/owncloud-4.0.7.tar.bz2 sudo tar -xjf owncloud-4.0.6.tar.bz2 sudo cp -r owncloud /var/www sudo chown -R www-data:www-data /var/www/owncloud Upgrading OwnCloud NOTE: I’ve only done this once, so I’ll ikely find a better way of doing it next time. This method doesn’t preserve config - try preserving it next time. Looks like it rescans the folders, possibly recreating the database COnfig is in /var/www/owncloud/config Maybe need to compare old and new config files after an upgrade Probably best to disconnect all clients. Not sure if possible to do this from the server. Stopping apache would likely do it. Delete the extracted owncloud files, and the owncloud installation sudo rm -r ~/owncloud sudo rm -r /var/www/owncloud Then the same instructions as a new install First Use / Setup of OwnCloud http:///owncloud/ You MUST choose the advanced settings Create admin user and password location of data is: /media/disk/web ToDo sudo apt-get install php-apc to speed things up in php Now go and download an OwnCloud client, and enjoy your local network DropBox-like functionality
https://gregwoods.github.io/2012/08/raspberry-pi-as-an-owncloud-server/
The text was updated successfully, but these errors were encountered: