Posts: 40
Joined: Jun 2019
Reputation:
0
mufc
Junior Member
Posts: 40
Something wrong ?
On the first Ubuntu (server) computer, install nfs-kernel-server packages.
sudo apt install nfs-kernel-server
Then edit the exports file with nano text editor. The exports files tell NFS server which directories or file systems will be shared to client.
sudo nano /etc/exports
The syntax is as follows
/mnt/Video client ip(rw,sync,root_squash,subtree_check)
Client
On the second Ubuntu computer, install nfs-common package.
sudo apt install nfs-common
next backup fstab file
sudo cp /etc/fstab /etc/fstab.bak
Then edit /etc/fstab file.
sudo nano /etc/fstab
Add the following line in the file. Replace nfs-server-ip with the IP address of the first Ubuntu computer.
client ip:/mnt/Video /mnt/nfs-share nfs rw,soft,intr,noatime,x-gvfs-show
Save and close the file. Then create the mount point.
sudo mkdir /mnt/nfs-share
Next, run the below command
sudo mount -a
Now you can access the server’s home directory in your file manager. (WRONG)
This is what I get
mount.nfs: requested NFS version or transport protocol is not supported
nfs share shows up in file manager but I get
Unable to access "nfs-share"
mount /mnt/nfs-share: operation permitted for root only.
Posts: 40
Joined: Jun 2019
Reputation:
0
mufc
Junior Member
Posts: 40
client ip:/mnt/Video /mnt/nfs-share nfs rw,soft,intr,noatime,x-gvfs-show
should be ?
server ip:/mnt/Video /mnt/nfs-share nfs rw,soft,intr,noatime,x-gvfs-show
Posts: 40
Joined: Jun 2019
Reputation:
0
mufc
Junior Member
Posts: 40
still same error. have to take wife out for about 90 minutes
Posts: 40
Joined: Jun 2019
Reputation:
0
mufc
Junior Member
Posts: 40
Ok yoda
not getting anywhere there so i tried your ssh steps.
everything fine, no errors etc and folders are in /mnt
with that done pop onto the device your using kodi on and go to add your media from network location don't forget to use the Username and Password for your server user account.
user name and password that logs me into my host pc correct?
i just get errors when tyring this
then you'll just need to navigate to /mnt/allmedia and add your media.
what do you mean here. navigate with kodi ?
Kodi on client cannot find anything
I aslo tried going in to /mnt and changing the ownership on the 3 folders where it says group from root to my login but that affected nothing.
I have also tried rebooting both computers
Posts: 40
Joined: Jun 2019
Reputation:
0
mufc
Junior Member
Posts: 40
I can however access those folders etc using Filezilla from the client
Posts: 40
Joined: Jun 2019
Reputation:
0
mufc
Junior Member
Posts: 40
after all this effort with ssh and nfs i thought I would try samba. worked like a charm. tickety boo
thanks yoda (and others for sticking around)