Thread Rating:
  • 0 Vote(s) - 0 Average
Ubuntu NFS setup Help
#1
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
Reply
#2
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
Reply
#3
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/t...untu-16-04
HTPCs: RPi 2B + Hyperion Ambilight & 3 x RPi 1B on LibreELEC 8.x
Amp: Pioneer VSX-819HK & S-HS 100 5.1 Speakers
Server: Acer Revo R3610, 4GB RAM, 4TB HDDs, Xubuntu 16.04 x64, NFS, MySQL
Network: Plusnet Hub One Router, Cisco Catalyst 2960, TP-Link TL-SG1005D & Netgear DGN1000 Switches
Games: Lakka Linux Retro Gaming on Acer ASX3200
Reply
#4
Thanks guys I got everything working using your examples, my paths were not correct.
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Ubuntu NFS setup Help00