How to Install and Configure a Network File System (NFS) Server and Client on Ubuntu Server

  Рет қаралды 16,472

The Lazy SysAdmin

The Lazy SysAdmin

Жыл бұрын

In this video, you will learn how to set up an Network File System (NFS) Server on Ubuntu 22.04 LTS Server. I will also show you how to mount an NFS file system on the client machine.
Join this channel to get access to perks: www.youtube.com/@lazysysad/join
PLEASE SUBSCRIBE :)
PLEASE HIT LIKE IF IT HELPED :)
GIVE SUPPORT - / lazysysad
BUY ME A COFFEE - www.buymeacoffee.com/lazysysad
PAYPAL - paypal.me/lazysysad
LINKS:
How to Install Ubuntu 22.04 LTS Server - • How to Install Ubuntu ...
Steps:
NFS Server
apt update
apt -y install nfs-kernel-server
systemctl status nfs-server
mkdir /exports
mkdir /exports/backups
vi /etc/exports
/exports/backups 192.168.0.127(rw,sync,no_subtree_check)
exportfs -ar
exportfs -v
ufw allow from 192.168.0.127 to any port nfs
NFS Client
apt -y install nfs-common
mkdir /mnt/backups
mount 192.168.0.126:/exports/backups /mnt/backups
vi /etc/fstab
192.168.0.126:/exports/backups /mnt/backups nfs auto,nofail,noatime,nolock,tcp,actimeo=1800,_netdev 0 0
Drop me your feedback and comments below.
That's all for now.
If this video helped you in any way, please like share and subscribe!
Thank you!!!

Пікірлер: 29
@timothycarry
@timothycarry Жыл бұрын
One of the clearest explanations I have seen in such a reasonable time-frame. I know the title says Ubuntu so this is just a small rant. The instructions also worked on Mint. CachyOS but not Fedora 38 and has driven me crazy. You could mount from the command line but fstab never worked. I gave up and just mounted with systemd
@patthe14th
@patthe14th 26 күн бұрын
That was really well taught. Thank you
@lazysysad
@lazysysad 21 күн бұрын
You're very welcome!
@Houston123ABC
@Houston123ABC 11 ай бұрын
This was great - especially the posted commands.
@lazysysad
@lazysysad 11 ай бұрын
Glad it helped!
@NithyashreeCM
@NithyashreeCM Ай бұрын
Thank you for crisp and clear explanation......
@lazysysad
@lazysysad Ай бұрын
You are welcome
@td8394
@td8394 4 ай бұрын
Why do we get incorrect size on client sever after mounting the partition on it , eg i have a 1tb partition but when i mount it on client machine it only shows me 70gb out of which only 10gb available, even though the partition is new with out any data in it
@shadowwizzard605
@shadowwizzard605 7 ай бұрын
i followed these exact steps, why can my clients not write in that folder?
@lazysysad
@lazysysad 6 ай бұрын
I missed this step: On the NFS Server, do: chown nobody:nogroup /exports/backups/
@ronakpamnani5961
@ronakpamnani5961 4 ай бұрын
Thanks sir very helpful
@lazysysad
@lazysysad 4 ай бұрын
Most welcome
@pankajjoshi8292
@pankajjoshi8292 17 күн бұрын
Sir how to do NIS so that any user can login from different terminal
Жыл бұрын
Is it possible to enable file transfer compression in nfs to save bandwith?
@lazysysad
@lazysysad Жыл бұрын
I'm not aware if that is possible.
@pr0jectSkyneT
@pr0jectSkyneT 6 ай бұрын
Thanks for this. Is there a way to secure the NFS share through credential authentication (username/password)?
@lazysysad
@lazysysad 6 ай бұрын
Password protection is not an integrated feature of Network File System (NFS), which normally uses host-based authentication.
@pr0jectSkyneT
@pr0jectSkyneT 6 ай бұрын
@@lazysysad ok thanks
@pankajjoshi8292
@pankajjoshi8292 4 ай бұрын
Sir how to do with NIS server
@anand-nb4bb
@anand-nb4bb Жыл бұрын
Hi can your please make a video on explaining when and why are these files used in simple terms /etc/resolve.conf, /etc/hosts, /etc/nsswitch.conf if and //etc/named.conf you can show a practical usage it will be great. Please its a request. Please do reply
@lazysysad
@lazysysad Жыл бұрын
Great suggestion!
@shelly1067
@shelly1067 Жыл бұрын
each time I get: rpc.statd not running but is required for remote locking, either use '-o nolock' to keep locks local, or start statd, Operation not permitted
@lazysysad
@lazysysad Жыл бұрын
are you getting errors starting statd? or are you just suggesting to run statd to use locking?
@shelly1067
@shelly1067 Жыл бұрын
@@lazysysad I get these when I mount filesystem from client using exports/backups /mnt
@dargelf
@dargelf 5 ай бұрын
great voice ;-)
@lazysysad
@lazysysad 5 ай бұрын
Thank you! 😃
@snake-taichi
@snake-taichi 7 ай бұрын
Now I'd like to understand, how the client gets permission to write into that folder. In my case, after following the video, no user on the client is able to write anything unfortunately.
@lazysysad
@lazysysad 6 ай бұрын
I missed this step: On the NFS Server, do: chown nobody:nogroup /exports/backups/
@lazysysad
@lazysysad 6 ай бұрын
NFS uses the user and group IDs (GID and UID) to establish permissions for write access.
How to Set Up an NFS Server on Ubuntu (Complete with AutoFS!)
36:30
Learn Linux TV
Рет қаралды 55 М.
How to Install and Configure an NFS Linux Server and Client
32:08
Akamai Developer
Рет қаралды 41 М.
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 12 МЛН
ВОДА В СОЛО
00:20
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 30 МЛН
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 205 МЛН
File sharing on Windows is bad this is how to make it better
11:32
Chris Titus Tech
Рет қаралды 166 М.
Tailscale VPN - WireGuard was never so easy!
15:41
Christian Lempa
Рет қаралды 196 М.
60 Linux Commands you NEED to know (in 10 minutes)
10:50
NetworkChuck
Рет қаралды 1,4 МЛН
RHCSA RHEL 8 - Mount and unmount network file systems using NFS
8:46
Computers, Security & Gadgets
Рет қаралды 11 М.
Setting up Simple Samba File Shares
24:24
Learn Linux TV
Рет қаралды 235 М.
The Ultimate Home File/Media Server Setup on Ubuntu Server
26:07
Drew Howden Tech
Рет қаралды 48 М.
Install and Configure Apache on Ubuntu Server | Set Up Virtual Host
31:46
Linux Crash Course - The /etc/fstab file
30:29
Learn Linux TV
Рет қаралды 101 М.
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 12 МЛН