Easy Setup Guide For NFS in Linux

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
protocol77 Offline
Fan
Posts: 699
Joined: Jun 2011
Reputation: 2
Post: #1
hey does anyone know an easy to follow guide for setting up NFS for my xbmc machines i would be setting this up on an Ubuntu Based (Lubuntu) Home Server and i cannot seem to find an easy to use guide for connecting my xbmc machines (some windows and some openelec) to nfs shares
find quote
artrafael Offline
Team-XBMC Forum Moderator
Posts: 6,355
Joined: Jul 2010
Reputation: 112
Location: USA
Post: #2
Have you read this wiki article already? NFS
find quote
protocol77 Offline
Fan
Posts: 699
Joined: Jun 2011
Reputation: 2
Post: #3
yeah i have but i was looking for noob guide something like

Step 1: type this.....

Step 2 then type this...


preferrably with images if possible

i am just starting to learn linux so need to dumb it down for me Smile

basically i want to just share my tv show and movies folders with xbmc machines so i can scan then in and watch stuff i know i can simply use samba but i am looking to get the most performance as possible over the network
(This post was last modified: 2013-10-06 08:57 by protocol77.)
find quote
doug piston Offline
Junior Member
Posts: 47
Joined: Sep 2013
Reputation: 1
Post: #4
I'm not going to do pics but...

Code:
sudo apt-get install nfs-kernel-server
sudo nano /etc/exports

The last command will create your exports file by opening it in a text editor called nano. In that file you decide which directory you'd like to share and to what IP. For example I want to share the 'media' directory in my home directory and to my XBMC box which is at IP 192.168.1.110 so I would add this line

Code:
/home/adam/media 192.168.1.110(rw,no_subtree_check,async,insecure)

After that hold ctrl and hit 'x'. Follow the little guide at the bottom and it'll write and save the file.

Then restart the nfs server
Code:
sudo service nfs-kernel-server restart

PS> It's good to have static IP's for both the server and the client
PSS> I hate nano but it has an on screen guide and is a bit more newbie friendly.
find quote
shadow Offline
Senior Member
Posts: 178
Joined: Jan 2011
Reputation: 3
Post: #5
If you want to have any system on your LAN able to access the shares instead of just one, use this as the IP
192.168.1.0/24

Modify to your needs.
find quote