NFS Server install

NFS Server install – Step

1. install nfs-common

yen@yen-X61:~$ sudo apt-get install nfs-common
正在讀取套件清單… 完成
正在重建相依關係
正在讀取狀態資料… 完成
The following packages were automatically installed and are no longer required:
linux-headers-2.6.35-22-generic linux-headers-2.6.35-22
使用 ‘apt-get autoremove’ 來將其移除。
下列的額外套件將被安裝:
libgssglue1 libnfsidmap2 librpcsecgss3 portmap
下列【新】套件將會被安裝:
libgssglue1 libnfsidmap2 librpcsecgss3 nfs-common portmap
升級 0 個,新安裝 5 個,移除 0 個,有 0 個未被升級。
需要下載 385kB 的套件檔。
此操作完成之後,會多佔用 1,270kB 的磁碟空間。
是否繼續進行 [Y/n]?y
下載:1 http://tw.archive.ubuntu.com/ubuntu/ maverick/main libgssglue1 amd64 0.1-4 [24.4kB]
下載:2 http://tw.archive.ubuntu.com/ubuntu/ maverick/main libnfsidmap2 amd64 0.23-2 [32.1kB]
下載:3 http://tw.archive.ubuntu.com/ubuntu/ maverick/main librpcsecgss3 amd64 0.19-2 [36.3kB]
下載:4 http://tw.archive.ubuntu.com/ubuntu/ maverick-updates/main portmap amd64 6.0.0-2ubuntu1.1 [39.1kB]
下載:5 http://tw.archive.ubuntu.com/ubuntu/ maverick-updates/main nfs-common amd64 1:1.2.2-1ubuntu1.1 [253kB]
取得 385kB 用了 8s (43.2kB/s)
正在預先設定套件 …
選取了原先未被選取的套件 libgssglue1。
(正在讀取資料庫 … 系統目前共安裝了 153458 個檔案和目錄。)
正在解開 libgssglue1 (從 …/libgssglue1_0.1-4_amd64.deb)…
選取了原先未被選取的套件 libnfsidmap2。
正在解開 libnfsidmap2 (從 …/libnfsidmap2_0.23-2_amd64.deb)…
選取了原先未被選取的套件 librpcsecgss3。
正在解開 librpcsecgss3 (從 …/librpcsecgss3_0.19-2_amd64.deb)…
選取了原先未被選取的套件 portmap。
正在解開 portmap (從 …/portmap_6.0.0-2ubuntu1.1_amd64.deb)…
選取了原先未被選取的套件 nfs-common。
正在解開 nfs-common (從 …/nfs-common_1%3a1.2.2-1ubuntu1.1_amd64.deb)…
正在進行 man-db 的觸發程式 …
正在進行 ureadahead 的觸發程式 …
正在設定 libgssglue1 (0.1-4) …
正在設定 libnfsidmap2 (0.23-2) …
正在設定 librpcsecgss3 (0.19-2) …
正在設定 portmap (6.0.0-2ubuntu1.1) …
portmap start/running, process 2627
正在設定 nfs-common (1:1.2.2-1ubuntu1.1) …

Creating config file /etc/idmapd.conf with new version

Creating config file /etc/default/nfs-common with new version
增加系統使用者 `statd’ (UID 115 )
Adding new user `statd’ (UID 115) with group `nogroup’ …
未建立家目錄『/var/lib/nfs』。
statd start/running, process 2851
gssd stop/pre-start, process 2881
idmapd stop/pre-start, process 2914
正在進行 libc-bin 的觸發程式 …
ldconfig deferred processing now taking place
yen@yen-X61:~$

2. install nfs-kernel-server

yen@yen-X61:~$ sudo apt-get install nfs-kernel-server
正在讀取套件清單… 完成
正在重建相依關係
正在讀取狀態資料… 完成
The following packages were automatically installed and are no longer required:
linux-headers-2.6.35-22-generic linux-headers-2.6.35-22
使用 ‘apt-get autoremove’ 來將其移除。
下列【新】套件將會被安裝:
nfs-kernel-server
升級 0 個,新安裝 1 個,移除 0 個,有 0 個未被升級。
需要下載 173kB 的套件檔。
此操作完成之後,會多佔用 430kB 的磁碟空間。
下載:1 http://tw.archive.ubuntu.com/ubuntu/ maverick-updates/main nfs-kernel-server amd64 1:1.2.2-1ubuntu1.1 [173kB]
取得 173kB 用了 0s (214kB/s)
選取了原先未被選取的套件 nfs-kernel-server。
(正在讀取資料庫 … 系統目前共安裝了 153551 個檔案和目錄。)
正在解開 nfs-kernel-server (從 …/nfs-kernel-server_1%3a1.2.2-1ubuntu1.1_amd64.deb)…
正在進行 ureadahead 的觸發程式 …
正在進行 man-db 的觸發程式 …
正在設定 nfs-kernel-server (1:1.2.2-1ubuntu1.1) …

Creating config file /etc/exports with new version

Creating config file /etc/default/nfs-kernel-server with new version
* Exporting directories for NFS kernel daemon… [ OK ]
* Starting NFS kernel daemon [ OK ]
yen@yen-X61:~/$

3. 設定 /etc/exports
(ex: 將 /home/yen/old export )
$ sudo vi /etc/exports
/home/yen/ * (rw,sync)

4. nfs server Start
$ sudo /etc/init.d/nfs-kernel-server start

5. check Service
$ showmount -e localhost
Export list for localhost:
/home/yen *

6. Configure NFS client on Windows

請參考: http://support.microsoft.com/kb/324055


Leave a Comment

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料