commit 85ccc805b8d90c81db23129250e13806e50e967c Author: Aiden Gerbrandt Date: Sun Dec 14 12:48:58 2025 -0600 Inital Commit diff --git a/Arch.md b/Arch.md new file mode 100644 index 0000000..a3f9f97 --- /dev/null +++ b/Arch.md @@ -0,0 +1,7 @@ +--- +tags: + - Arch +--- + +[[Setup]] +[[Local Host Names]] diff --git a/Connecting to samba shares (tardis).md b/Connecting to samba shares (tardis).md new file mode 100644 index 0000000..b40a558 --- /dev/null +++ b/Connecting to samba shares (tardis).md @@ -0,0 +1,97 @@ +--- +tags: + - Arch + - Bazzite +--- + +Make sure you can connect to the share using hostname.local. see [[Local Host Names]] + +**if changing location of the scripts** you need to update the script name to match the path exactly + +Create a file called `.tardis-creds` in your home dir and set it so it's only readable by you like before. +Put + +``` +username=tess +password=tess` +``` + +in the file + +create the file `/etc/systemd/system/mnt-tardis.mount` +In the file put the below: + + + +``` +[Unit] +Description=Mount SMB share Tardis +# We require network connection before proceeding. +Requires=network-online.target +After=network-online.target systemd-resolved.service +Wants=network-online.target systemd-resolved.service + +Mount] # +"What" is what will be mounted. ie our NAS SMB share +What=//tardis.local/files +# "Where" is where it will be mounted in the filesystem +Where=/var/mnt/tardis +Type=cifs +# Let the mounted filesystem be read/write-able +# Let the mounted filesystem be owned by the 'tess' user/group +# Use the specified credential file for the connection +Options=rw,uid=,gid=,nofail,credentials=/home/**username**/.tardis-creds +# Lets quit trying after 30 seconds +TimeoutSec=30 + +[Install] +WantedBy=multi-user.target +``` + + +Also replace `uid=,gid=` with your user and group id respectively. +They will probably both be 1000 (so `uid=1000,gid=1000`), but you can check with `id` or `id **username**` + +This is telling systemd how to mount your drive. + +Now create the automount file `/etc/systemd/system/mnt-tardis.automount` +In that file put: + +``` +[Unit] +Description=Automount SMB share Tardis + +[Automount] +# Adjust mount location to match yours. +Where=/mnt/tardis + +[Install] +WantedBy=multi-user.target` +``` + +Now we want to make the directory it will be mounting to +`sudo mkdir /mnt/tardis` + +Then we reload systemd +`sudo systemctl daemon-reload` + +First we start the .mount, and check for errors +``` +sudo systemctl start mnt-tardis.mount +systemctl status var-mnt-tardis.mount +``` +Then if there's no issues we can stop the normal mount and enable automount + +``` +sudo systemctl stop mnt-tardis.mount +sudo systemctl enable --now var-mnt-tardis.automount +``` +(`enable` means we are telling it to run on boot, and `--now` it telling it to also start it now) +We could just enable the normal mount and have it mount on boot, but automount will mean it will only connect to the samba drive when we try to access it. + +now we should see it show up under `/mnt/tardis` +And if we reboot it should show up still. + +For reference Aiden based it off of  [This](https://www.reddit.com/r/SteamDeck/comments/ymjnjy/mounting_smb_shares_with_systemd/) this post, just modified to this situation and me + +if running [[Bazzite]],  becuase of how fedora immutable distros are setup you need to use `/var/mnt`. the actual path is `/var/mnt` and `/mnt` is just linked to it. \ No newline at end of file diff --git a/Distros.md b/Distros.md new file mode 100644 index 0000000..1f800ab --- /dev/null +++ b/Distros.md @@ -0,0 +1,18 @@ +--- +tags: + - Arch + - Bazzite + - Debian +--- +[[Arch]] +- EndeavourOS + +[[Bazzite]] +- Fedora +- Gaming focused +- immutable OS + +[[Debian]] +- Server focused +- Stable +- Older versions \ No newline at end of file diff --git a/Local Host Names.md b/Local Host Names.md new file mode 100644 index 0000000..faef479 --- /dev/null +++ b/Local Host Names.md @@ -0,0 +1,4 @@ +the ability to use hostname.local is managed by avahi +To use a configured avahi, avahi-daemon.service needs to be running and port udp 5353 needs to be open in your firewall + +needs to be set up to [[Connecting to samba shares (tardis)]] \ No newline at end of file diff --git a/Setup.md b/Setup.md new file mode 100644 index 0000000..7dcbfb9 --- /dev/null +++ b/Setup.md @@ -0,0 +1,17 @@ +Links: +[[Arch]] + +### Secure Boot +If setting up secure boot with EndeavourOS, don't use the preset grub. do it from scratch. +The wiki is wrong and your ${GRUB_MODULES} needs to be in "" +#### Steps +1. [Install grub following the shim-lock info ](https://wiki.archlinux.org/title/GRUB#Shim-lock) + - If you do not have any drives with a ZFS filesystem, you should exclude the zfs* modules (As they require the ZFS [DKMS](https://wiki.archlinux.org/title/DKMS) Module) +2. Move `grubx64.efi` into the `esp/EFI/BOOT` directory and ensure is has that name. +3. [Follow the steps to setup shim](https://wiki.archlinux.org/title/Secure_Boot#Set_up_shim) (shim with key), including the mkinicpio hook to automatically sign the kernel on update. + - If you are using EndeavourOS, you will need to install `mkinitcpio` and uninstall `dracut` and `eos-dracut` +4. [Generate the GRUB config file](https://wiki.archlinux.org/title/GRUB#Generate_the_main_configuration_file) + - If you are wanting to dual boot, install `os-prober` and uncomment `GRUB_DISABLE_OS_PROBER=false` in `/etc/default/grub` then regenerate the config +5. Enable Secure Boot and import your MOK.cer into shim's MOK list. + +**Note:** If you ever re-install the GRUB `grubx64.efi` file (to get a newer version of GRUB for example), make sure to do so with the modules as described above, and you will need to re-sign the file with `sbsign`. \ No newline at end of file