Link to home
Start Free TrialLog in
Avatar of Dwight Baer
Dwight BaerFlag for Canada

asked on

How to set up an NFS share in Ubuntu

I've built an Ubuntu server (Ubuntu version 18.04.4) and I need to share files on that server to an Ubuntu client.  (read-only)

Can you please point me to a good procedure to get that going?  I used to be a Unix system admin years ago.  But linux is a bit new to me.

Thanks
Avatar of Dwight Baer
Dwight Baer
Flag of Canada image

ASKER

I'm hoping to find something like this:
How to Setup NFS (Network File System) on RHEL/CentOS/Fedora and Debian/Ubuntu

https://www.tecmint.com/how-to-setup-nfs-server-in-linux/

... except that article is for Red Hat linux and it's 5 years old.

I need to set up both the server end as well as the client end.
Avatar of arnold
edit /etc/exports usually
here you can define who is authorized to access and what to access.
you have to make sure to configure the firewall, ufw to allow access to the NFSd service, RPC, and lockd.

The variation are minimal and depend on which NFS version you want to use.

on the client end, you would add the

server:.ahrename NFS and where you want it mount
man mount.nfs


mount -t nfs -o RO servername:/sharename /mnt
The purpose of this server is to serve files to students in a student lab who need to watch videos and read various recommended documents.

I'll submit a parallel question about "Best Practices" kinds of suggestions about how to set up that student machine.
Why via NFS? Why not through a web browser, streaming server?
Simpler setup, all users have to do is use the browser to access the URL you provide
Why NFS?  I don't know - I'm not designing this, my boss says to use NFS.  I'll ask.
To be clear - you are way ahead of me.  I need an easy-to-follow procedure, starting at step 1 with an installed linux system.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of madunix
madunix

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you so much, arnold and MadUnix.

I'll try this out tonight.