Q5sys





Joined: 11 Dec 2008

Posts: 1126

Joined: 11 Dec 2008Posts: 1126



Post subject: RPi CloudPup Rc1

Subject description: Testers needed Posted: Sun 15 Dec 2013, 12:36Post subject:RPi CloudPup Rc1Subject description: Testers needed



Download here:

Backup Mirror





This is a mostly set up Owncloud Install on top of Puppy Linux on the Raspberry Pi. There is a small amount of work that needs to be done before this will be up and running on your network, but its not hard.

Any problems or issues please report them so I can fix any problems you find.



Note: The Raspberry Pi is NOT a high powered computer. As such PHP does put a strain on the unit. For this reason this Image has been statically overclocked to 900mhz. If you experience SD card corruption comment out the overclocking lines in the /boot/config.txt file.



Note 2: Nginx, Sqlite, and Owncloud all run as SPOT , so keep in mind that you will have to chown any directories so that owncloud can see/use them. I did this so that if your server is compromised an attacker isn't given root instantly.









SSH Password = woofwoof

To change password use the passwd command.



Optional - Generate your own SSL certs:

Download here: Sourceforge Mirror This is a mostly set up Owncloud Install on top of Puppy Linux on the Raspberry Pi. There is a small amount of work that needs to be done before this will be up and running on your network, but its not hard.Any problems or issues please report them so I can fix any problems you find., so keep in mind that you will have to chown any directories so that owncloud can see/use them. I did this so that if your server is compromised an attacker isn't given root instantly.SSH Password = woofwoofTo change password use the passwd command.- Generate your own SSL certs: Code: openssl req $@ -new -x509 -days -365 -nodes -out /etc/nginx/cert.pem -keyout /etc/nginx/cert.key

chmod 600 /etc/nginx/cert.pem

chmod 600 /etc/nginx/cert.key



Required - Edit nginx config

Code: mp /etc/nginx/sites-available/default

Replace server_name with the IP of the device on your network.

Then restart nginx

Code: /etc/init.d/nginx restart





To shut down... SSH into unit:

Code: /etc/init.d/nginx stop

nohup poweroff &





To change time feel free to tweak /etc/init.d/rc.time accordingly





To set up USB HD for owncloud:



Plug your drive into the RPi and find out the device of your hard drive

Code: tail dmesg

Look for the device ID. It 'should' be sda: sda1 If it is not, replace sda1 below with the device ID on your system.

code:

Code: mkdir /media/usbdrive (You can make this anything you want instead of usbdrive)

mount the drive:

Code: mount /dev/sda1 /media/usbdrive (or whatever you named it)

If the drive is an NTFS drive (I highly recommend you do NOT use an NTFS drive due to the performance penalty you will incur)

Code: code: mount -t ntfs-3g /dev/sda1 /media/usbdrive



Set up owncloud for external drive:

Code: /etc/init.d/nginx stop

mkdir /media/usbdrive/owncloud6

chown spot:spot /media/usbdrive/owncloud6

mv /var/ww/owncloud/data /media/usbdrive/owncloud6

mp /var/www/owncloud/config/config.php



FIND AND REPLACE

Code: 'datadirectory' => '/var/www/owncloud/data"

Code: to

'datadirectory' => '/media/usbdrive/owncloud6/data



Then restart nginx

Code: /etc/init.d/nginx start '/var/www/owncloud/data[/url]



x86 version will be developed once the bugs are worked out in this ARM release.