Storage
Mounting external drives
find the partitions uuids:
add at the end of /etc/fstab:
# Optional mounts that won't block boot if unavailable
UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX /hdd ext4 nofail,user 0 0
UUID=XXXXXXXXXXXXXXXX /data ntfs-3g nofail,user,permissions 0 0
to mount immediately:
sudo systemctl daemon-reload && \
sudo mkdir -p /hdd /data && \
sudo chown $USER:$USER /hdd /data && \
sudo mount /hdd && \
sudo mount /data
SMB share
creating smb.conf from template:
creating smb credentials:
enabling the services and allowing if firewall ufw:
sudo systemctl enable --now smbd nmbd && \
sudo ufw allow samba # if this errors cause no ufw that's fine
configuring services to wait until internet is on:
sudo mkdir -p /etc/systemd/system/smbd.service.d && \
sudo mkdir -p /etc/systemd/system/nmbd.service.d && \
sudo cp $DOTDIR/docs/templates/smb-network-wait.conf /etc/systemd/system/smbd.service.d/network-wait.conf && \
sudo cp $DOTDIR/docs/templates/nmb-network-wait.conf /etc/systemd/system/nmbd.service.d/network-wait.conf && \
sudo systemctl daemon-reload