Server (IP: 192.168.2.100)
1] sudo aptitude install nfs-user-server
[For Ubuntu 6.06]
sudo aptitude install nfs-kernel-user
2] specify what directory to share by editing /etc/exports; example below
/download 192.168.2.0/255.255.255.0(ro,insecure,all_squash)
3] sudo /etc/init.d/nfs-user-server restart
[For Ubuntu 6.06]
sudo /etc/init.d/nfs-kernel-server restart
4] sudo exportfs -ua; sudo exportfs -a
Client (IP: 192.168.2.x)
1] sudo mkdir /mnt/nfs
[Ubuntu 6.06]
sudo aptitude install nfs-common
sudo /etc/init.d/nfs-common restart
2] sudo mount -t nfs 192.168.2.100:/download /mnt/nfs
3] Check if its mounted already
cd /mnt/nfs ; ls -l
or
df
4] To umount
cd / ; umount /mnt/nfs
No comments:
Post a Comment