
“Cara Install NFS File Sharing pada Linux Mint 20”
Introduction
NFS, short for Network File Share, is a distributed file system protocol that allows remote directories to be mounted on the server itself. It allows you to access and write files and folders from a remote host over the network, the same way someone would access files on local storage. To access data stored on a remote computer (ie an nsf server), the server implements an NFS daemon process to make the data available to clients. The system administrator then decides what to provide and makes sure that it can recognize validated clients. The NFS client, on the other hand, requests access to the exported data by issuing a mount command. If this is successful, the client machine can view and interact with the file system within the specified parameters.
Face Install NFS File Sharing pada Linux Mint 20
- Install NFS server
sudo apt update sudo apt upgrade sudo reboot
sudo apt install nfs-kernel-server
sudo mkdir -p /mnt/nfs_share sudo chown -R nobody:nogroup /mnt/nfs_share sudo chmod 777 /mnt/nfs_share
- Add access permissions
sudo vim /etc/exports /mnt/nfs_share 192.168.30.0/24(rw,sync,no_subtree_check) /mnt/nfs_share client_ip_1(rw,sync,no_subtree_check) /mnt/nfs_share client_ip_2(rw,sync,no_subtree_check)
sudo exportfs -a sudo systemctl restart nfs-kernel-server
$ sudo ufw allow from 192.168.30.0/24 to any port nfs $ sudo ufw enable
2. Install NFS Client
sudo apt install nfs-kernel-server
$ sudo mkdir -p /mnt/nfs_share $ sudo chown -R nobody:nogroup /mnt/nfs_share $ sudo chmod 777 /mnt/nfs_share
$ sudo vim /etc/exports /mnt/nfs_share 192.168.30.0/24(rw,sync,no_subtree_check) /mnt/nfs_share client_ip_1(rw,sync,no_subtree_check) /mnt/nfs_share client_ip_2(rw,sync,no_subtree_check)
$ sudo exportfs -a $ sudo systemctl restart nfs-kernel-server
$ sudo ufw allow from 192.168.30.0/24 to any port nfs $ sudo ufw enable
$ sudo apt update $ sudo apt install nfs-common
sudo mkdir -p /mnt/nfs_clientshare
- Mount pada shared NFS client
$ sudo mount <nfs-server-ip>:/mnt/nfs_share /mnt/nfs_clientshare
- Try the pada share NFS client
$ cd /mnt/nfs_share $ touch test1.txt test2.txt $ ls -l /mnt/nfs_clientshare
Closure
Sahabat Blog Learning & Doing is such an explanation of Face Install NFS File Sharing pada Linux Mint 20. It can be useful . See you again in the next post.
(Visited 2 times, 2 visits today)
Click to share with others