pastervu.blogg.se

Raspberry pi slack client
Raspberry pi slack client













raspberry pi slack client

#RASPBERRY PI SLACK CLIENT INSTALL#

On the client install the NFS Client packages: $ sudo apt install nfs-common -yĬreate the mountpoint of choice and change the ownership: $ sudo chown pi:pi /mnt $ sudo systemctl enable nfs-kernel-server If you would like to have open access: /opt/nfs *(rw,all_squash,no_hide,insecure,async,no_subtree_check,anonuid=1000,anongid=1000)Įxport the config, enable the services on boot and start NFS: $ sudo exportfs -ra Setup our path that we would like to be accessible via NFS: /opt/nfs 192.168.1.0/24(rw,all_squash,no_hide,insecure,async,no_subtree_check,anonuid=1000,anongid=1000) Install the NFS Server packages: $ sudo apt install nfs-kernel-server nfs-common rpcbind -yĬonfigure the paths in /etc/exports, we need to uid gid for the user that owns permission that we need to pass to the NFS Client. Setup the Server Side - Installing NFS Server Populate the /etc/fstab with your disk info, it will look more or less like: /dev/sda2 /opt/nfs ext4 defaults,noatime 0 0Īppend rootdelay=10 after rootwait in /boot/cmdline.txt, then reboot for the changes to become active. We can get the disk by running either: $ sudo lsblk If you mounted the disk, and you would like to mount the disk on boot, we need to add it to our /etc/fstab. $ sudo find /opt/nfs/existing_dirs/ -type d -exec chmod 755 \ $ sudo chown -R pi:pi /opt/nfs/existing_dirs Prepare the directories: $ sudo mkdir -p /opt/nfsįor demonstration, I will be using the same disk as my OS, but if you have other disks that you would like to mount, mount them like the following: $ sudo lsblk Setup the Server Side - Disks and Directories Setup a NFS Server/Client on the RaspberryPi 3















Raspberry pi slack client