To serve as reminder if I ever need to setup a NFS server on Gentoo and to help anyone seeking help I'll lay down the need steps to achieve success.
First become superuser:
- $ su
- # cd /usr/src/linux
- # make menuconfig
- check if the following options are enabled in the kernel config:
File Systems --->Save your kernel config and re-compile the kernel. If you need help on this please refer to Gentoo's documentation as kernel configuration isn't the focus of this post.
Network File Systems --->
<*> NFS file system support
[*] Provide NFSv3 client support
<*> NFS server support
[*] Provide NFSv3 server support
Now install the nfs-utils package from portage:
- # emerge nfs-utils
- # vim /etc/exports
- to share the /downloads directory to all computers on 192.168.1 network add the following line:
/downloads 192.168.1.1/24(rw,sync,no_subtree_check)Let's start the nfs service:
- # /etc/init.d/nfs start
- # rc-update add nfs default
- # showmount -e
- # /etc/init.d/nfs reload
For more detailed documentation take a look into:
http://nfs.sourceforge.net/nfs-howto/index.html
http://gentoo-wiki.com/HOWTO_Share_Directories_via_NFS
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#book_part1_chap7
http://www.gentoo.org/doc/en/kernel-upgrade.xml
No comments:
Post a Comment