{"id":19368709,"url":"https://github.com/nick22d/nfs-server","last_synced_at":"2026-05-12T20:34:44.842Z","repository":{"id":235511993,"uuid":"787400548","full_name":"nick22d/nfs-server","owner":"nick22d","description":"A bash script for configuring a Network File System server in Linux.","archived":false,"fork":false,"pushed_at":"2024-04-23T14:55:02.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-24T13:48:42.753Z","etag":null,"topics":["linux-server","nfs-server","sysadmin"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nick22d.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-04-16T13:01:30.000Z","updated_at":"2024-06-22T13:59:26.000Z","dependencies_parsed_at":"2024-04-23T17:40:10.735Z","dependency_job_id":"4bb8de0b-0b52-4db7-a771-8ca595028fa0","html_url":"https://github.com/nick22d/nfs-server","commit_stats":null,"previous_names":["nick22d/nfs-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nick22d/nfs-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nick22d%2Fnfs-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nick22d%2Fnfs-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nick22d%2Fnfs-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nick22d%2Fnfs-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nick22d","download_url":"https://codeload.github.com/nick22d/nfs-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nick22d%2Fnfs-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32956202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["linux-server","nfs-server","sysadmin"],"created_at":"2024-11-10T08:07:51.563Z","updated_at":"2026-05-12T20:34:44.820Z","avatar_url":"https://github.com/nick22d.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A bash script for configuring a Linux NFS server\r\n\r\nAn NFS (Network File System) server is a system that shares files and directories with other computers on a network using the NFS protocol. NFS allows clients to access files over a network as if they were located on the client's local filesystem.\r\n\r\nNFS is commonly used in environments where multiple computers need to access shared files or data, such as in office networks, academic institutions, or data centers. It provides a convenient way to share data between computers running different operating systems, as long as they support the [NFS protocol](https://www.rfc-editor.org/rfc/rfc7530).\r\n\r\n![Diagram](images/diagram.png)\r\n\r\n## Prerequisites\r\n\r\nIt is assumed that:\r\n\r\n- Your Linux server runs systemd. If your system uses a different init process (i.e. Upstart or SysVInit), this bash script will not work.\r\n\r\n- Network connectivity between your NFS server and clients has already been established.\r\n\r\n- You have been granted root-level permissions for the commands included in the script.\r\n\r\n## Usage \r\n\r\nTo deploy this solution, please follow the instructions below.\r\n\r\n**1)** Clone the repository locally:\r\n\r\n```\r\ngit clone https://github.com/nick22d/nfs-server.git\r\n```\r\n\r\n**2)** Navigate into the repository:\r\n\r\n```\r\ncd nfs-server/\r\n```\r\n\r\n**3)** Make the script executable:\r\n\r\n```\r\nsudo chmod +x ./nfs-server.sh\r\n```\r\n\r\n**4)** Run the script:\r\n\r\n```\r\nsudo ./nfs-server.sh\r\n```\r\n\r\n\r\n## Access the NFS resources from the client\r\n\r\n**1)** Create a folder under the /mnt directory:\r\n\r\n```\r\nsudo mkdir /mnt/network_shares\r\n```\r\n\r\n**2)** Install the nfs-common package:\r\n\r\n```\r\nsudo apt install nfs-common -y\r\n```\r\n\r\n**3)** Mount the shared resources of the NFS server to the client's directory:\r\n\r\n```\r\nsudo mount \u003cip of server\u003e:/mnt/nfs_shares /mnt/network_shares\r\n```\r\n\r\n**4)** Verify that the shared resources can be accessed:\r\n\r\n```\r\nls /mnt/network_shares\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnick22d%2Fnfs-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnick22d%2Fnfs-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnick22d%2Fnfs-server/lists"}