Posted on | March 19, 2015 | No Comments
(On the occasion of the IPv6 sessions at http://wireless.ictp.it/school_2015/ – if you are interested in a workshop on this, please contact us!)
How to set up a Raspberry PI, IPv6 enabled filesharing server with ownCloud
1/ Install Ubuntu or Debian or similar
on a Raspberry PI – a PI2 is best.
help on installation is at: http://raspberry.org
2/ USB stick: plug in and mount
On the command line of you Pi, do the following
and then plug in a USB stick and see what device name it shows up as.
typically it is
if in doubt, take USB stick out,
and plug in again, until you see the device name.
you can also do a
#grep sd /var/log/kern.log
#grep usb /var/log/kern.log
to help you find it.
in what follows, we assume it is
and mount it:
#mount -t vfat -o rw /dev/sda1 /media/usbstick/
#cd /home/<your username>
#sh -c “echo ‘deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/xUbuntu_14.04/ /’ >> /etc/apt/sources.list.d/owncloud.list”
#apt-key add – < Release.key
#apt-get install owncloud
put the data directory on the stick and symlink it:
#cp -R ./* /media/usbstick/data/
#rm -rf ./data
#ln -s /media/usbstick/data/
Instead of the symlink, you could also edit
in your owncloud directory, and point at the data directory on the usb stick:
‘datadirectory’ => ‘/path/to/your/data’,
At this point, you should have an ownCloud server, reachable on
4/ Make it IPv6
Edit your apache’s site configuration
to start with this:
of course you do this with your IPv6 address, which you can find by doing
Then restart apache:
you should now have an IPv6 ownCloud server.
5/ Put this on your home’s DSL (or what your connection might be)
If you do this at home, you might now want to put this on your routers’ DMZ.