apt-get Install nfs kernel server

How do you install nfs kernel server in Linux using apt-get command?

How to Install nfs kernel server with apt-get?

apt-get install nfs kernel server -y

Install Nfs Kernel Server  Command

Here is a tutorial to learn how to install nfs kernel server using apt-get command.

Step 1: Open terminal with su access and enter the command as shown below:
apt-get install nfs kernel server -y

Step 2: After completion, the install command exits and instructs the user to restart the running instances of nfs kernel server if it is running already.

Result of the Command Execution shown below:

root@hiox:~ apt-get install nfs kernel server -y
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
initscripts libevent 1.4 2 libgssglue1 libnfsidmap2 librpcsecgss3 nfs common
portmap
The following NEW packages will be installed:
libevent 1.4 2 libgssglue1 libnfsidmap2 librpcsecgss3 nfs common
nfs kernel server portmap
The following packages will be upgraded:
initscripts
1 upgraded, 7 newly installed, 0 to remove and 102 not upgraded.
Need to get 671kB of archives.
After this operation, 1,794kB of additional disk space will be used.
Get:1 http://old releases.ubuntu.com/ubuntu/ lucid updates/main initscripts 2.87dsf 4ubuntu17.5 [75.6kB]
Get:2 http://old releases.ubuntu.com/ubuntu/ lucid updates/main libevent 1.4 2 1.4.13 stable 1ubuntu0.1 [61.9kB]
Get:3 http://old releases.ubuntu.com/ubuntu/ lucid updates/main libgssglue1 0.1 4ubuntu0.1 [24.6kB]
Get:4 http://old releases.ubuntu.com/ubuntu/ lucid/main libnfsidmap2 0.23 2 [32.1kB]
Get:5 http://old releases.ubuntu.com/ubuntu/ lucid/main librpcsecgss3 0.19 2 [36.3kB]
Get:6 http://old releases.ubuntu.com/ubuntu/ lucid updates/main portmap 6.0.0 1ubuntu2.2 [39.2kB]
Get:7 http://old releases.ubuntu.com/ubuntu/ lucid updates/main nfs common 1:1.2.0 4ubuntu4.2 [231kB]
Get:8 http://old releases.ubuntu.com/ubuntu/ lucid updates/main nfs kernel server 1:1.2.0 4ubuntu4.2 [170kB]
Preconfiguring packages ...
Fetched 671kB in 1s (471kB/s)
(Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 15943 files and directories currently installed.)
Preparing to replace initscripts 2.87dsf 4ubuntu17.4 (using .../initscripts_2.87dsf 4ubuntu17.5_amd64.deb) ...
Unpacking replacement initscripts ...
Selecting previously deselected package libevent 1.4 2.
Unpacking libevent 1.4 2 (from .../libevent 1.4 2_1.4.13 stable 1ubuntu0.1_amd64.deb) ...
Selecting previously deselected package libgssglue1.
Unpacking libgssglue1 (from .../libgssglue1_0.1 4ubuntu0.1_amd64.deb) ...
Selecting previously deselected package libnfsidmap2.
Unpacking libnfsidmap2 (from .../libnfsidmap2_0.23 2_amd64.deb) ...
Selecting previously deselected package librpcsecgss3.
Unpacking librpcsecgss3 (from .../librpcsecgss3_0.19 2_amd64.deb) ...
Selecting previously deselected package portmap.
Unpacking portmap (from .../portmap_6.0.0 1ubuntu2.2_amd64.deb) ...
Selecting previously deselected package nfs common.
Unpacking nfs common (from .../nfs common_1%3a1.2.0 4ubuntu4.2_amd64.deb) ...
Selecting previously deselected package nfs kernel server.
Unpacking nfs kernel server (from .../nfs kernel server_1%3a1.2.0 4ubuntu4.2_amd64.deb) ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for man db ...
Setting up initscripts (2.87dsf 4ubuntu17.5) ...
Installing new version of config file /etc/init.d/umountnfs.sh ...

Setting up libevent 1.4 2 (1.4.13 stable 1ubuntu0.1) ...

Setting up libgssglue1 (0.1 4ubuntu0.1) ...

Setting up libnfsidmap2 (0.23 2) ...

Setting up librpcsecgss3 (0.19 2) ...

Setting up portmap (6.0.0 1ubuntu2.2) ...
portmap start/running, process 1344

Setting up nfs common (1:1.2.0 4ubuntu4.2) ...

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

Creating config file /etc/default/nfs common with new version
Adding system user `statd' (UID 104) ...
Adding new user `statd' (UID 104) with group `nogroup' ...
Not creating home directory `/var/lib/nfs'.
statd start/running, process 1563
gssd stop/pre start, process 1586
idmapd stop/pre start, process 1612

Setting up nfs kernel server (1:1.2.0 4ubuntu4.2) ...

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... [169G [163G[ OK ]
* Starting NFS kernel daemon [169G [163G[ OK ]

Processing triggers for libc bin ...
ldconfig deferred processing now taking place
root@hiox:~


Related Topics

Apt Get Commands