Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Install NFSv2 in debian 11
  • Loading branch information
alexcvc authored Sep 9, 2023
1 parent 77be11e commit 6148945
Showing 1 changed file with 73 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,79 @@ You should see this
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs

# Examples for Debian 11

File `/etc/exports`:

```
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/srv *(rw,no_root_squash,subtree_check)
/srv/tftp 192.168.1.0/255.255.255.0(rw,no_root_squash,subtree_check)
/srv/nfs 192.168.1.0/255.255.255.0(rw,no_root_squash,subtree_check)
```

File `/etc/default/nfs-common` :

```
# If you do not set values for the NEED_ options, they will be attempted
# autodetected; this should be sufficient for most people. Valid alternatives
# for the NEED_ options are "yes" and "no".
# Do you want to start the statd daemon? It is not needed for NFSv4.
NEED_STATD=
# Options for rpc.statd.
# Should rpc.statd listen on a specific port? This is especially useful
# when you have a port-based firewall. To use a fixed port, set this
# this variable to a statd argument like: "--port 4000 --outgoing-port 4001".
# For more information, see rpc.statd(8) or http://wiki.debian.org/SecuringNFS
STATDOPTS=
# Do you want to start the idmapd daemon? It is only needed for NFSv4.
NEED_IDMAPD=
# Do you want to start the gssd daemon? It is required for Kerberos mounts.
NEED_GSSD=
```



File `/etc/default/nfs-kernel-server` :

```
# Number of servers to start up
# enable NFSv2
RPCNFSDCOUNT="8 --nfs-version 2"
# Runtime priority of server (see nice(1))
RPCNFSDPRIORITY=0
# Options for rpc.mountd.
# If you have a port-based firewall, you might want to set up
# a fixed port here using the --port option. For more information,
# see rpc.mountd(8) or http://wiki.debian.org/SecuringNFS
# To disable NFSv4 on the server, specify '--no-nfs-version 4' here
RPCMOUNTDOPTS="--no-nfs-version 4 --manage-gids"
# Do you want to start the svcgssd daemon? It is only required for Kerberos
# exports. Valid alternatives are "yes" and "no"; the default is "no".
NEED_SVCGSSD=""
# Options for rpc.svcgssd.
RPCSVCGSSDOPTS=""
```

# Kernel 6

Expand Down

0 comments on commit 6148945

Please sign in to comment.