abonnel-siteweb/data/pages/informatique/linux/cfp/nfs-network-file-system/installer-nfs-raspbian-os-1...

62 lines
2.0 KiB
Plaintext
Raw Permalink Normal View History

2024-01-07 10:02:35 +01:00
====== Installer NFS Raspbian OS 10 ======
Sous **Raspbian 10**, il faut installer le paquet suivant pour monter et exporter les partages NFS :
<code bash>
sudo apt update
sudo apt install nfs-kernel-server
</code>
{{informatique:linux:cfp:nfs-network-file-system:pasted:20210221-222533.png|apt install nfs-kernel-server sous Raspbian 10}}
--
Pour apporter des modification dans le démon **NFS**, il est nécessaire de modifier le fichier ''/etc/default/nfs-kernel-server''.
<code>
# Number of servers to start up
RPCNFSDCOUNT=8
# 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="--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=""
</code>
--
Pour apporter des modification dans le paramétrage global de **NFS**, il est nécessaire de modifier le fichier ''/etc/default/nfs-common''.
<code>
# 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=
</code>