- $sudo apt-get update
- $sudo apt-get install nfs-common
จากนั้นระบบจะถามยืนยัง การติดตั้งโปรแกรม ให้ตอบ Y ถ้าต้องการติดตั้ง
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
libgssglue1 libnfsidmap2 librpcsecgss3 portmap
The following NEW packages will be installed:
libgssglue1 libnfsidmap2 librpcsecgss3 nfs-common portmap
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 333kB of archives.
After this operation, 1,126kB of additional disk space will be used.
Do you want to continue [Y/n]? y
รายละเอียดที่ แสดง หลังการตอบ Y ก็จะได้ประมาณนี้
Get:1 http://archive.ubuntu.com/ubuntu/ lucid/main libgssglue1 0.1-4 [22.4kB]
Get:2 http://archive.ubuntu.com/ubuntu/ lucid/main libnfsidmap2 0.23-2 [29.1kB]
Get:3 http://archive.ubuntu.com/ubuntu/ lucid/main librpcsecgss3 0.19-2 [33.1kB]
Get:4 http://archive.ubuntu.com/ubuntu/ lucid/main portmap 6.0.0-1ubuntu2 [37.2kB]
Get:5 http://archive.ubuntu.com/ubuntu/ lucid/main nfs-common 1:1.2.0-4ubuntu4 [212kB]
Fetched 333kB in 3s (95.3kB/s)
Preconfiguring packages …
Selecting previously deselected package libgssglue1.
(Reading database … 161647 files and directories currently installed.)
Unpacking libgssglue1 (from …/libgssglue1_0.1-4_i386.deb) …
Selecting previously deselected package libnfsidmap2.
Unpacking libnfsidmap2 (from …/libnfsidmap2_0.23-2_i386.deb) …
Selecting previously deselected package librpcsecgss3.
Unpacking librpcsecgss3 (from …/librpcsecgss3_0.19-2_i386.deb) …
Selecting previously deselected package portmap.
Unpacking portmap (from …/portmap_6.0.0-1ubuntu2_i386.deb) …
Selecting previously deselected package nfs-common.
Unpacking nfs-common (from …/nfs-common_1%3a1.2.0-4ubuntu4_i386.deb) …
Processing triggers for man-db …
Processing triggers for ureadahead …
Setting up libgssglue1 (0.1-4) …
Setting up libnfsidmap2 (0.23-2) …
Setting up librpcsecgss3 (0.19-2) …
Setting up portmap (6.0.0-1ubuntu2) …
portmap start/running, process 4193
Setting up nfs-common (1:1.2.0-4ubuntu4) …
Creating config file /etc/idmapd.conf with new version
Creating config file /etc/default/nfs-common with new version
Adding system user `statd’ (UID 116) …
Adding new user `statd’ (UID 116) with group `nogroup’ …
Not creating home directory `/var/lib/nfs’.
statd start/running, process 4416
gssd stop/pre-start, process 4441
idmapd stop/pre-start, process 4469
Processing triggers for libc-bin …
ldconfig deferred processing now taking place
เสร็จแล้ว ตรวจสอบดู server ที่เราทำการ NFS server เอาไว้โดยใช้คำสั่ง
- $ showmount -e server-Ip-address
- เช่น
- $ showmount -e 192.168.1.1
ระบบก็จะแสดงรายการที่ เครื่อง server ทีมีการ shared directory NFS เอาไว้ จบแล้ว เดีียวว่าง ผมจะมาต่อเรื่องการ ใช้งาน