sudo apt-get install portmap nfs-kernel-server
sudo gedit /etc/exports
/home 192.168.0.0/255.255.255.0(rw,sync,no_subtree_check)
/usr/local 192.168.0.0/255.255.255.0(rw,sync,no_subtree_check)
The above shares /home and /usr/local to all clients in the private
network falling within the designated ip address range.
After setting up /etc/exports, export the shares:
sudo exportfs -ra
You'll want to do this command whenever /etc/exports is modified.
Restart Services
If /etc/default/portmap was changed, portmap will need to be restarted:
sudo /etc/init.d/portmap restart
The NFS kernel server will also require a restart:
sudo /etc/init.d/nfs-kernel-server restart
client
sudo apt-get install portmap nfs-common
sudo mount 192.168.1.42:/home/music /home/poningru/music
Nenhum comentário:
Postar um comentário