Cloud - jedimatt42/tipi GitHub Wiki

Cloud storage via TIPI

TIPI operates on top of the extensible capabilities of a Linux operating system. This allows end users to control how storage is provided. For instance, cloud storage can be fairly easily added by installing synchronization software or one or more network filesystems.

Webdav

I personally use nextcloud as my private-cloud solution. Nextcloud provides Webdav protocol support. This makes it easy to add to my TIPI filesystem.

login to the raspberry pi as user tipi and install the davfs2 package:

sudo apt-get install davfs2

Make a CLOUD directory that the TI-99/4A will be able to see:

mkdir /home/tipi/tipi_disk/CLOUD

Create a configuration folder for the user mountable webdav filesystem:

mkdir ~/.davfs2
cd ~/.davfs2
sudo cp /etc/davfs2/secrets .
sudo chown tipi:tipi secrets 
chmod 600 secrets 

Edit the secrets file and add your webdav server and credentials:

vi secrets 

It should now have lines that look something like:

/home/tipi/tipi_disk/CLOUD username password

Create a folder on your webdav server that you want to share with the TIPI. I called mine TIPI4A.

Now edit the system file system table to control mount on powerup:

sudo vi /etc/fstab

Where webdav.yourserver.net is the hostname of your NextCloud or other webdav server. username is the login user, and TIPI4A is the folder to share. Make the substitutions necessary for your own server. It should have a new line that looks like:

https://webdav.yourserver.net/remote.php/dav/files/username/TIPI4A /home/tipi/tipi_disk/CLOUD davfs user,rw,auto,_netdev 0 0

Grant the tipi user access to use the webdav filesystem:

sudo adduser tipi davfs2

Mount and test the CLOUD folder:

mount /home/tipi/tipi_disk/CLOUD

You should now be able to see files you save in TIPI.CLOUD. from your cloud storage interface.

If the mount prompted for credentials, then you have mistyped the mount path in the secrets file and/or the /etc/fstab.

Now to mount on startup, edit /etc/rc.local

sudo vi /etc/rc.local

before the exit 0 line, insert a line that reads:

su - tipi -c "mount /home/tipi/tipi_disk/CLOUD"

Google Drive

There are tools like gdrivefs, and this install/setup script that wraps it:

github.com/programmer2514/RPi-Google-Drive