As well as being attached to the living room TV for use as a media centre, I also wanted to be able to use my Raspberry Pi 3 B+ as a simple NAS for other TVs in the house to stream from.
The Pi I’m using has a 1Tb desktop hard drive attached to it over USB, and I wanted a way to easily share the contents. It was actually relatively easy to set up… this is how to do it in OSMC;
- Install SSH to OSMC via the Store
- Now you can remote shell into the Pi to set up the network share
- Install NFS services using the following command;
sudo apt-get install nfs-kernel-server
- Edit the file shares;
sudo nano /etc/exports
Add a share like this;
(crossmnt fixed an issue where I could see the folders but no files)
- Restart the NFS service;
sudo /etc/init.d/nfs-kernel-server restart
That’s it.. you should now be able connect to the Raspberry Pi and see the files on any of the USB drives you’ve got attached.