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> 사용법|작성자 박재현
'DIGITory > Ubuntu' 카테고리의 다른 글
rename - 우분투 파일 이름 변경 (1) | 2012.05.12 |
---|---|
Ubuntu에 jdk 설치하기 (1) | 2012.05.03 |
Ubuntu - Nvidia driver (1) | 2012.04.26 |
Resolved : "E: Archive directory /var/cache/apt/archives/partial is missing." (1) | 2012.04.26 |
유용한 리눅스 프로그램들 (1) | 2012.04.21 |