How to Set Up a NFS Server and Client on Ubuntu Karmic Koala

Setup the server or computer that will be sharing the files:; , Create a directory to be shared by running from terminal this command: sudo mkdir /home/share , Make the directory usable by running: sudo chown currentuser /home/share (where...

17 Steps 1 min read Advanced

Step-by-Step Guide

  1. Step 1: Setup the server or computer that will be sharing the files:;

    Change all three of the Folder access drop down boxes to "create and delete files" and all three File access drop down boxes to "read and write" then close. ,,,,,, ( or better just restart NFS with 'sudo /etc/init.d/nfs restart' ) ,,,,(x):/home/share /home/share nfs ro,soft,user,noauto 0 0 (where x is the ip address of the server be sure to reserve this ip address in your router) ,,,
  2. Step 2: Create a directory to be shared by running from terminal this command: sudo mkdir /home/share

  3. Step 3: Make the directory usable by running: sudo chown currentuser /home/share (where currentuser is replaced with the username currently logged in and being used)

  4. Step 4: Change permissions by right clicking the newly created folder and clicking properties and then the permissions tab at the top.

  5. Step 5: Place a file in the folder such as a movie to test it later.

  6. Step 6: Install nfs-kernel-server package via synaptic.

  7. Step 7: Open the nfs configuration file by running from terminal: sudo gedit /etc/exports

  8. Step 8: Tell nfs to share the directory we created by adding the line: /home/share 192.168.0.0/255.255.255.0(ro

  9. Step 9: Save file.

  10. Step 10: Reboot.

  11. Step 11: Setup the client or computer that will get the shared files:

  12. Step 12: Install nfs-common via synaptic.

  13. Step 13: Tell the client where to find the shared files by running this command from terminal: sudo gedit /etc/fstab

  14. Step 14: Add line: 192.168.0.

  15. Step 15: Save file.

  16. Step 16: Mount the shared files for use by running the command: mount /home/share

  17. Step 17: Test everything by opening earlier created file to test.

Detailed Guide

Change all three of the Folder access drop down boxes to "create and delete files" and all three File access drop down boxes to "read and write" then close. ,,,,,, ( or better just restart NFS with 'sudo /etc/init.d/nfs restart' ) ,,,,(x):/home/share /home/share nfs ro,soft,user,noauto 0 0 (where x is the ip address of the server be sure to reserve this ip address in your router) ,,,

About the Author

S

Stephen Hernandez

Committed to making lifestyle accessible and understandable for everyone.

47 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: