NFS Server on Slackware 13.1
Supposed that your IP address is 192.168.1.x, and you are going to run NFS service for all users in 192.168.1.0/24 (192.168.1.1 - 192.168.1.254).On Slackware 13.1, it is very easy to do it.
- Make folder for NFS service, with all permission for all users.
- Edit /etc/exports
- Start NFS service
# mkdir /home/nfs && chmod 0777 /home/nfs/
/home/nfs 192.168.1.0/24(rw,no_root_squash,no_subtree_check,sync)
# chmod a+x /etc/rc.d/rc.nfsd && /etc/rc.d/rc.nfsd startIf it complains nfsd.ko module failed as shown:
FATAL: Error inserting nfsd (/lib/modules/2.6.33.4-smp/kernel/fs/nfsd/nfsd.ko): Invalid module formatMaybe you are using "huge" kernel (Slackware default kernel). You can update it with "generic" kernel (remember to mkinitrd). Also, you can just ignore the error, because NFS service runs successfully already. on client do this to mount the nfs : makedir /mnt/nfs mount -t nfs -o nolock,sync,ro 192.168.1.x:/home/nfs /mnt/nfs check with mount you will find out the mount
Tidak ada komentar:
Posting Komentar