desktop-ubuntu/_sys/nas.sh

16 lines
228 B
Bash
Raw Normal View History

2023-06-18 15:34:39 +02:00
#!/usr/bin/zsh
sudo mkdir '/Data'
sudo chown -R $USER:$USER '/Data'
sudo apt install -y \
nfs-common sshfs
# add mount to fstab
echo '
# Data
192.168.0.5:/nfs/Public /Data nfs auto 0 0
' | sudo tee -a '/etc/fstab'