{"id":2645,"date":"2020-04-12T02:22:25","date_gmt":"2020-04-12T02:22:25","guid":{"rendered":"https:\/\/wiki.thomasandsofia.com\/?p=2645"},"modified":"2020-04-12T13:41:22","modified_gmt":"2020-04-12T13:41:22","slug":"nfs-network-file-share","status":"publish","type":"post","link":"https:\/\/wiki.thomasandsofia.com\/?p=2645","title":{"rendered":"NFS &#8211; Network File Share"},"content":{"rendered":"<p>This was way too easy.\u00a0 Need to play with this a bit.<\/p>\n<h1>Server Setup<\/h1>\n<h2>Software Installation<\/h2>\n<h3>RHEL, CentOS<\/h3>\n<pre>sudo yum -y install nfs-utils nfs-utils-lib<\/pre>\n<h3>Debian, Ubuntu<\/h3>\n<pre>sudo apt -y install nfs-kernal-server<\/pre>\n<h2>Create a shared folder<\/h2>\n<pre>sudo mkdir \/home\/public\r\nsudo chown nobody:nogroup \/home\/publi<\/pre>\n<h3>Optional: Create test files.<\/h3>\n<pre>cd \/home\/public\r\ntouch test1 test2 test<\/pre>\n<h2>Add the folder to the \/etc\/exports file<\/h2>\n<pre>nano \/etc\/exports\r\n#file contents below\r\n\/home\/public * (rw,sync)\r\n#\/home\/public IP.ADD.RE.SS1 ([ro, rw],sync)\r\n#\/home\/public IP.ADD.RE.SS2 ([ro, rw],sync)\r\n#\/home\/public IP.ADD.RE.SS\/24 ([ro, rw],sync)<\/pre>\n<h2>Start NFS<\/h2>\n<pre># Ubuntu only?\r\nsudo exportfs -a\r\n# All OS versions\r\nsystemctl start nfs<\/pre>\n<p>&nbsp;<\/p>\n<h1>Setup the Client<\/h1>\n<h2>Software Installation<\/h2>\n<h3>RHEL, CentOS<\/h3>\n<pre>sudo yum -y install nfs-utils nfs-utils-lib<\/pre>\n<h3>Debian, Ubuntu<\/h3>\n<pre>sudo apt -y install nfs-common<\/pre>\n<h2>Mount the shared folder<\/h2>\n<pre>mkdir \/mnt\/shared\r\nmount SERVER.DOMAIN.TLD:\/home\/public \/mnt\/shared<\/pre>\n<h2>Verify the files are available<\/h2>\n<pre>cd \/mnt\/shared\r\nls\r\ntest1  test2  test3<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This was way too easy.\u00a0 Need to play with this a bit. Server Setup Software Installation RHEL, CentOS sudo yum -y install nfs-utils nfs-utils-lib Debian, Ubuntu sudo apt -y install nfs-kernal-server Create a shared folder sudo mkdir \/home\/public sudo chown nobody:nogroup \/home\/publi Optional: Create test files. cd \/home\/public touch test1 test2 test Add the folder ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/?p=2645\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-2645","post","type-post","status-publish","format-standard","hentry","category-storage"],"_links":{"self":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/2645","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2645"}],"version-history":[{"count":6,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/2645\/revisions"}],"predecessor-version":[{"id":2651,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/2645\/revisions\/2651"}],"wp:attachment":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2645"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2645"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}