HTGWA: Create an NFS share in Linux on a Raspberry Pi

It is a easy information, a part of a sequence I am going to name 'How-To Information With out Advertisements'. In it, I will doc how I create an NFS share in Linux on a Raspberry Pi.

Set up NFS

$ sudo apt-get set up -y nfs-kernel-server

Create a shared listing

$ sudo mkdir /mnt/mydrive/shared
$ sudo chmod -R 777 /mnt/mydrive/shared

I will not take care of permissions on this publish; read this post for extra recommendations.

Configure NFS to share that listing

Edit the NFS exports file with sudo nano /and so forth/exports, and add the next:

/mnt/mydrive/shared *(rw,all_squash,insecure,async,no_subtree_check,anonuid=1000,anongid=1000)

Replace the NFS energetic exports

sudo exportfs -ra

Hook up with the share

From one other pc, entry: nfs://[hostname-or-ip-of-pi]/mnt/mydrive/shared



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *