Tuesday, 17 May 2022

Mounting nfs

Mount NFS share on Fedora with Asustor. At first check official description here:

https://www.asustor.com/en/knowledge/detail/?id=&group_id=508


After you do the share on your Linux you can add to /etc/fstab:


192.168.1.66:/volume1/Z /media/Z nfs defaults 0 0

192.168.1.66:/volume2/X /media/X nfs defaults 0 0

 

Of course you can try mount manually:

$ mount -t nfs 192.168.1.66:/volume1/X  /media/X


Longer sudo

Debian based:
$ sudo update-alternatives --config editor
Fedora based: 
$ export EDITOR=vim 

$ sudo visudo /etc/sudoers

Add timestamp_timeout after env_reset:

Defaults        env_reset,timestamp_timeout=40
Now bash will remember for 40 minutes.
0 means always ask passwd, disable passwd forever set to -1.