💾 Archived View for yasendfile.org › TipTricks › nfs-setup-Artix-Runit.gmi captured on 2024-08-18 at 16:59:15. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-03-21)
-=-=-=-=-=-=-
Written by Wim Stockman - on 11 februari 2024
To install you need the nfs-utils-runit package
this will install the nfs-utils package and the necessairy sv scripts
sudo pacman -S nfs-utils-runit
You need 3 services for the nfs-server to run
To enable these create the followin symbolic links
ln -s /etc/runit/sv/statd /run/runit/service/
ln -s /etc/runit/sv/rpcbind /run/runit/service/
ln -s /etc/runit/sv/nfs-server /run/runit/service/
To start these:
sudo sv start statd
sudo sv start rpcbind
sudo sv start nfs-server
On a nfs server you have to export your folders in the /etc/exports file.
you can find the manual : man exports
/etc/exports:
#folder_you_want_to_share hostname1(rw,sync,no_subtree_check) /srv/nfs 192.168.1.3(rw,sync,no_subtree_check) #for a range of IPs /srv/nfs 192.168.1.0/255.255.255.0(rw,sync,no_subtree_check)
after saving the file run:
exportfs -arv
To mount the shared NFS folder on your client computer
sudo mount servername:/srv/nfs /mnt/nfs
Don't forget to unmout before shutting down
You can also add it to your /etc/fstab to automount on startup.
Have a nice Linux Day