Ubuntu NFS setup Help

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
1QWK510 Offline
Senior Member
Posts: 113
Joined: Dec 2011
Reputation: 0
Location: so.cal
Post: #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
find quote
thd042 Offline
Member
Posts: 88
Joined: Nov 2010
Reputation: 0
Post: #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
find quote
speedwell68 Offline
Fan
Posts: 617
Joined: Sep 2013
Reputation: 10
Post: #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 & 3 x RPi 1B on LibreELEC 7.x
Amp: Pioneer VSX-819HK & S-HS 100 5.1 Speakers
Server: Acer Revo R3610, 4GB RAM, 3TB HDDs, Xubuntu 16.04 x64, NFS, MySQL
find quote
1QWK510 Offline
Senior Member
Posts: 113
Joined: Dec 2011
Reputation: 0
Location: so.cal
Post: #4
Thanks guys I got everything working using your examples, my paths were not correct.
find quote