Kodi Community Forum
Ubuntu NFS setup Help - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Ubuntu NFS setup Help (/showthread.php?tid=312631)



Ubuntu NFS setup Help - 1QWK510 - 2017-04-18

Does anyone have a walk through guide on how to setup Ubuntu NFS ? I currently have 4 kodi pc's, 1 with the media I want to share running ubuntu 16.04, 2 others on Librelec, and then a fire tv 2nd gen. I installed the server but am lost when I get the /etc/exports. How can I share all media within my home. I have media on 4 hdd's on the computer running Ubuntu.

Thanks


RE: Ubuntu NFS setup Help - thd042 - 2017-04-18

Install NFS:
Code:
sudo apt-get install nfs-common nfs-kernel-server libnfsidmap2

I have the following additions in my /etc/fstab:
Code:
# re-mount for nfs
/media/Mediadisk                               /export/Mediadisk       none    bind    0       0
/media/Softwaredisk                            /export/Softwaredisk    none    bind    0       0
/media/Mediathek                               /export/Mediathek       none    bind    0       0
and my /etc/export has this:
Code:
/export                 192.168.178.0/24(rw,fsid=0,insecure,no_subtree_check,async)
/export/Mediadisk       192.168.178.0/24(rw,nohide,insecure,no_subtree_check,async)
/export/Softwaredisk    192.168.178.0/24(rw,nohide,insecure,no_subtree_check,async)
/export/Mediathek       192.168.178.0/24(rw,nohide,insecure,no_subtree_check,async)
For mount options re-check export(5), my installation is a home network, especially ""rw" and insecure" may not be a good idea in general.
mkdir /export
and start the server:
service nfs-kernel-server start


RE: Ubuntu NFS setup Help - speedwell68 - 2017-04-19

This is my /etc/exports if it helps any...

Code:
home/john/Music  192.168.1.0/24(rw,no_root_squash,nohide,insecure,no_subtree_check,async)
/media/john/Movies 192.168.1.0/24(rw,no_root_squash,nohide,insecure,no_subtree_check,async)
/media/john/TV 192.168.1.0/24(rw,no_root_squash,nohide,insecure,no_subtree_check,async)
/media/john/Movies2 192.168.1.0/24(rw,no_root_squash,nohide,insecure,no_subtree_check,async)
/media/john/TV2 192.168.1.0/24(rw,no_root_squash,nohide,insecure,no_subtree_check,async)
/media/john/TV3 192.168.1.0/24(rw,no_root_squash,nohide,insecure,no_subtree_check,async)

I used this as a reference...

https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nfs-mount-on-ubuntu-16-04


RE: Ubuntu NFS setup Help - 1QWK510 - 2017-04-21

Thanks guys I got everything working using your examples, my paths were not correct.