RPi CloudPup Rc1

A home for all kinds of Puppy related projects
Post Reply
Message
Author
User avatar
Q5sys
Posts: 1105
Joined: Thu 11 Dec 2008, 19:49
Contact:

RPi CloudPup Rc1

#1 Post by Q5sys »

Image

Download here: Sourceforge Mirror
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:

Code: Select all

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: Select all

mp /etc/nginx/sites-available/default
Replace server_name with the IP of the device on your network.
Then restart nginx

Code: Select all

/etc/init.d/nginx restart

To shut down... SSH into unit:

Code: Select all

/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: Select all

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: Select all

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

Code: Select all

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: Select all

code: mount -t ntfs-3g /dev/sda1 /media/usbdrive
Set up owncloud for external drive:

Code: Select all

/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: Select all

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

Code: Select all

to 
'datadirectory' =>  '/media/usbdrive/owncloud6/data
Then restart nginx

Code: Select all

/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.

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#2 Post by jamesbond »

Interesting application for Raspi! :) I don't have Raspi so can't test - but I'm sure there are a lot other Raspi fans who will.
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

Cloud pup is a gread idea

#3 Post by Dromeno »

Great idea! I love my raspi! I am currently using one as mediacenter but the homecloud option is perhaps even more useful. And fortunately raspi's are not too expensive so I have a 2nd one now.

I was thinking about the same route (homecloud) but it also looks useful to add btsync as well (does not require port forwarding so you can access files easily all over the world)

[/url]http://www.murga-linux.com/puppy/viewto ... =85818[url]

[/url]http://blog.bittorrent.com/2013/05/23/h ... ry-pi/[url]

[/url]http://www.makeuseof.com/tag/build-your ... -sync/[url]

Ultimately I think the most useful option of all will be to use the raspi as home node for a retroshare connection.

Retroshare offers all possible kinds of secure file sharing plus communication (chat, email, voip). And -hopefully soon- an option to connect to the raspi+retroshare with your phone/tablet/notebook via a web interface

https://retroshareteam.wordpress.com/20 ... interface/

Then, at least, we can have an all free (both as in beer and as in speech) plus secure (as in gpg + ssh with forward secrecy) communication + file sharing network working on a friends-to-friends principle (no central servers anywhere)

I would love to have it all run on a raspian puppy. Unfortunately I do not have the skills for something like that.

until then... there is a retroshare version available for the raspi:
http://sourceforge.net/projects/pishare/
http://retroshare.sourceforge.net/downloads.html

Not with a good web interface yet, but it would be nice if it could be ported to raspi puppi nevertheless. Is there somebody on this forum who is capable and willing to do it?


Post Reply