more tweaks

This commit is contained in:
ktyl 2022-12-03 15:37:22 +00:00
parent 2d9b6b689a
commit 6d0715f5b5
1 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,9 @@ There are other ways to do this, but as my machines predimonantly run Debian- or
This post is largely based on the description on the [ArchWiki](https://wiki.archlinux.org/title/NFS#As_systemd_unit). This post is largely based on the description on the [ArchWiki](https://wiki.archlinux.org/title/NFS#As_systemd_unit).
My NAS' hostname is `sleeper-service`, and I'll be mounting the `Music` shared folder. My NAS' hostname is `sleeper-service`, and I'll be mounting the `Music` shared folder.
You'll need the `nfs-utils` package to mount NFS filesytems.
You may also need to configure security on your NAS to allow NFS connections from your local machine's IP.
## Initial mount ## Initial mount
Before doing anything automatically, we first need to create a `systemd` unit to mount the remote filesystem at a path in our local filesystem. Before doing anything automatically, we first need to create a `systemd` unit to mount the remote filesystem at a path in our local filesystem.
@ -45,7 +48,7 @@ WantedBy=multi-user.target
Once we've created this, we can try to manually mount the shared folder by starting the unit: Once we've created this, we can try to manually mount the shared folder by starting the unit:
``` ```
$ sudo systemctl start sleeper\\x2service-Music.mount $ sudo systemctl start sleeper\\x2dservice-Music.mount
$ ls /sleeper-service/Music $ ls /sleeper-service/Music
``` ```