{"uuid":"ce4f73c0-a652-464a-bcb9-9a9fd2392a90","slug":"installer-nfs-raspbian-os-10","title":"Installer NFS Raspbian OS 10","author":"cedric@abonnel.fr","published":true,"published_at":"2023-02-09 19:19:13","created_at":"2023-02-09 19:19:13","updated_at":"2023-02-09 19:19:13","revisions":[],"cover":"","files_meta":[],"external_links":[],"seo_title":"","seo_description":"","og_image":"","category":"Informatique","content":"# Installer NFS Raspbian OS 10\n\nSous **Raspbian 10**, il faut installer le paquet suivant pour monter et exporter les partages NFS :\n\n```bash\nsudo apt update\nsudo apt install nfs-kernel-server\n```\n\n![apt install nfs-kernel-server sous Raspbian 10](20210221-222533.png)\n\n--\n\nPour apporter des modification dans le démon **NFS**, il est nécessaire de modifier le fichier `/etc/default/nfs-kernel-server`.\n\n```\n# Number of servers to start up\nRPCNFSDCOUNT=8\n\n# Runtime priority of server (see nice(1))\nRPCNFSDPRIORITY=0\n\n# Options for rpc.mountd.\n# If you have a port-based firewall, you might want to set up\n# a fixed port here using the --port option. For more information, \n# see rpc.mountd(8) or http:*wiki.debian.org/SecuringNFS\n# To disable NFSv4 on the server, specify '--no-nfs-version 4' here\nRPCMOUNTDOPTS=\"--manage-gids\"\n\n# Do you want to start the svcgssd daemon? It is only required for Kerberos\n# exports. Valid alternatives are \"yes\" and \"no\"; the default is \"no\".\nNEED_SVCGSSD=\"\"\n\n# Options for rpc.svcgssd.\nRPCSVCGSSDOPTS=\"\"\n```\n\n--\n\nPour apporter des modification dans le paramétrage global de **NFS**, il est nécessaire de modifier le fichier `/etc/default/nfs-common`.\n\n```\n# If you do not set values for the NEED_ options, they will be attempted\n# autodetected; this should be sufficient for most people. Valid alternatives\n# for the NEED_ options are \"yes\" and \"no\".\n\n# Do you want to start the statd daemon? It is not needed for NFSv4.\nNEED_STATD=\n\n# Options for rpc.statd.\n# Should rpc.statd listen on a specific port? This is especially useful\n# when you have a port-based firewall. To use a fixed port, set this\n# this variable to a statd argument like: \"--port 4000 --outgoing-port 4001\".\n# For more information, see rpc.statd(8) or http:*wiki.debian.org/SecuringNFS\nSTATDOPTS=\n\n# Do you want to start the idmapd daemon? It is only needed for NFSv4.\nNEED_IDMAPD=\n\n# Do you want to start the gssd daemon? It is required for Kerberos mounts.\nNEED_GSSD=\n```","featured":false,"tags":[]}