Ubuntu server 12.04/nfs

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m
m (Configure the Server)
 
Line 10: Line 10:
  
 
==Configure the Server==
 
==Configure the Server==
Simply add one line per export:
+
Simply add one line per export to <code>/etc/exports</code>:
 
<source lang="text">
 
<source lang="text">
 
/home/shared            192.168.0.0/24(rw,sync,subtree_check)
 
/home/shared            192.168.0.0/24(rw,sync,subtree_check)

Latest revision as of 12:34, 16 December 2014

Ubuntu Server 12.04

apt-get install nfs-kernel-server

[edit] Control the Server

service nfs-kernel-server start

[edit] Configure the Server

Simply add one line per export to /etc/exports:

/home/shared            192.168.0.0/24(rw,sync,subtree_check)

[edit] Configure the Client

Either use /etc/fstab like this:

server:/home/shared                      /home/shared      nfs     user,auto,exec  0       0

Or, use mount like this:

sudo mount -t nfs server:/home/shared ./shared
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox