Loading...

How to Install NFS (Network File System) on Ubuntu 18.04

Simple.Predictable.Scalable

Easily deploy your favorite applications in seconds at an unbeatable price for your next projects.

Installing NFS (Network File System) on Ubuntu 18.04

NFS (Network File System) is a distributed file system protocol that allows you to share files and directories with other Linux/Unix clients over a network. It allows you to mount remote directories on your local machine and access them as if they were on your local filesystem.

Here are the steps to install and configure NFS on Ubuntu 18.04:

sudo apt update
sudo apt install nfs-kernel-server
sudo mkdir /shared-directory
sudo chown nobody:nogroup /shared-directory
sudo chmod 777 /shared-directory
sudo nano /etc/exports
/shared-directory client_ip_address(rw,sync,no_subtree_check)
sudo exportfs -a
sudo systemctl restart nfs-kernel-server
sudo ufw allow from client_ip_address to any port nfs
sudo mount server_ip_address:/shared-directory /mount-directory
  1. Update your system's package repository:
  2. Install the NFS server package:
  3. Create a directory to be shared:
  4. Set appropriate permissions for the shared directory:
  5. Edit the NFS server configuration file:
  6. Add the following line to the end of the file to define the shared directory and the clients that can access it:
  7. Note: Replace "client_ip_address" with the actual IP address of the client machine that you want to grant access to.
  8. Save and close the file.
  9. Export the shared directory:
  10. Restart the NFS server:
  11. Allow NFS through the firewall:
  12. Note: Replace "client_ip_address" with the actual IP address of the client machine.
  13. Finally, mount the shared directory on the client machine:
  14. Note: Replace "server_ip_address" with the IP address of the NFS server, and "/mount-directory" with the local directory where you want to mount the shared directory.

You have successfully installed and configured NFS on Ubuntu 18.04. You can now share files and directories between your server and client machines over the network.

Remember to replace "client_ip_address" and "server_ip_address" with the actual IP addresses of your client and server machines respectively.

Installing NFS on Ubuntu 18.04
NFS installation guide for Ubuntu 18.04
step by step guide to install NFS on Ubuntu 18.04
NFS setup on Ubuntu 18.04
how to configure NFS on Ubuntu 18.04
NFS Ubuntu 18.04 tutorial
NFS server setup on Ubuntu 18.04
NFS client setup on Ubuntu 18.04
NFS configuration on Ubuntu 18.04
NFS mount on Ubuntu 18.04.

Why Customers Love Us

What our customers say about us

Ready To Get Started For Free?

Create your free account today.