Sharing directories between Ubuntu PCs
1. Server Ubuntu - has a directory to be shared. (IP : 90.80.70.60)
sudo apt-get install portmap nfs-kernel-server
vi /etc/exports
add to the file "[PATH of the directory to be shared] [Client Ubuntu's IP](rw)"
ex) /home/me/Shared 10.20.30.40(rw)
sudo /etc/init.d/nfs-kernel-server restart (IP : 10.20.30.40)
sudo exportfs -v (jut to check.. you can see the directory can be shared)
2. Client Ubuntu - Need to access the directory on Server Ubuntu
sudo apt-get install nfs-kernel-server (I'm not sure...it can be nfs-common)
sudo mkdir [directory to mount]
ex) sudo mkdir /mnt/nfs
showmount -c [Server Ubuntu's IP]
ex) showmount -c 90.80.70.60
If you can't see anything after doing this, It's about the security problem.
'lokkit' command to get it off.
mount it!!!
ex) sudo mount -t nfs 90.80.70.60:/home/me/Shared /mnt/nfs
(from : http://blog.naver.com/dresstowin?Redirect=Log&logNo=50079887962)
[출처] 리눅스 끼리 파일 공유하기 <NFS> 사용법|작성자 박재현