From 1b66746c974ca1dc3b49fddb559c30adf8a2fc89 Mon Sep 17 00:00:00 2001 From: DuckDuckWhale Date: Wed, 3 Dec 2025 23:08:28 -0600 Subject: [PATCH] Misc: tmux, shells, Firefox, packages - setup: - Update Fedora install guide to Fedora 43. - Add packages g4music, gwenview, earlyoom, and easyeffects. - Use HDR in Firefox. - Allow containers to use GPU. - Enable earlyoom. - Remove Signal notification permission. - Add Gamescope. - Reload systemd daemon in SSH setup. - tmux: Rename default session to ssh & fix duplicate shell launch. --- auto/shells/bash | 2 +- auto/shells/fish | 2 +- auto/tmux/.tmux.conf | 1 - setup/fedora-install.md | 28 +++++++++++++++------------- setup/fedora-system-setup.md | 25 ++++++++++++++++++------- setup/fedora-user-setup.md | 30 ++++++++++++++++++------------ setup/ubuntu-setup.md | 4 ---- 7 files changed, 53 insertions(+), 39 deletions(-) diff --git a/auto/shells/bash b/auto/shells/bash index 77f6d41..e31f9ed 100755 --- a/auto/shells/bash +++ b/auto/shells/bash @@ -75,7 +75,7 @@ if [ -z "$TMUX" ] && [ -n "$SSH_TTY" ]; then tput rc tput el if [ "$input" = ' ' ]; then - exec tmux new -As default + exec tmux new -As ssh fi fi EOF diff --git a/auto/shells/fish b/auto/shells/fish index 18f12b1..8e7f497 100755 --- a/auto/shells/fish +++ b/auto/shells/fish @@ -46,7 +46,7 @@ sed 's/.*src \([0-9.]\+\).*/\1/' || echo not found)(set_color red)' tput rc tput el if [ "$input" = ' ' ] - exec tmux new -As default + exec tmux new -As ssh end end end diff --git a/auto/tmux/.tmux.conf b/auto/tmux/.tmux.conf index 1c4dc36..58773d7 100644 --- a/auto/tmux/.tmux.conf +++ b/auto/tmux/.tmux.conf @@ -1,5 +1,4 @@ set -g clock-mode-style 12 -set -g default-command "${SHELL}" set -g default-terminal "tmux-256color" set -as terminal-features ",xterm-256color:RGB,alacritty:RGB" # curly underline support diff --git a/setup/fedora-install.md b/setup/fedora-install.md index c0e5893..670f146 100644 --- a/setup/fedora-install.md +++ b/setup/fedora-install.md @@ -22,7 +22,7 @@ needed to create everything from scratch. _This document details the installation only. For setup, see [Fedora System Setup](fedora-system-setup.md) or [Fedora User Setup](fedora-user-setup.md). This is originally written -for Fedora 39 and updated to Fedora 41._ +for Fedora 39 and mostly updated to Fedora 43._ By following these steps, you will be able to install Fedora with: - `/` as a btrfs subvolume using xxhash as the checksum function on LUKS2 (an @@ -87,7 +87,7 @@ two 1024 MiB partitions at the end. Formatting here really isn't necessary if not for the Fedora installer graying out all the fields when it doesn't detect a file system (bug?). -I assume that you are using an UEFI system as almost all modern x86_64 systems +I assume that you are using an UEFI system as almost all modern x86\_64 systems have that, but you could verify that with `[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS`. @@ -118,23 +118,25 @@ installer which closes it after you've already selected your configuration. ## Installing Fedora -Now, start the installer. Choose your keyboard layout and timezone. Then click -into storage configuration. +Now, start the installer. Choose "Mount point assignment". I have some commands for unlocking the LUKS in my Ubuntu install guide, but here you can simply unlock the LUKS volume and the installer does all the work for you setting that up. -- Format `` (e.g. `/dev/nvme0n1p3`) as ext4 and mount to `/ - boot`. (Check the format checkbox.) -- Format `` (e.g. `/dev/nvme0n1p2`) as System EFI Partition and - mount to `/boot/efi`. -- Format `/dev/mapper/-root` as ext4 and mount to `/`. -- Format `/dev/mapper/-home` as ext4 and mount to `/home`. -- No need for swap as - [Fedora uses zram by default](https://fedoraproject.org/wiki/Changes/SwapOnZRAM). +- For mount point `/`, choose the root btrfs subvolume and check the reformat + box. +- For mount point `/boot`, choose the boot partition (e.g. `nvme0n1p3`) and + check the reformat box. +- For mount point `/boot/efi`, choose the EFI System Partition (e.g. + `nvme0n1p2`) check the reformat box. +- Add a mount point `/home`, choose the home btrfs subvolume, and leave the + reformat box unchecked. +- No need for swap as [Fedora uses zram by + default](https://fedoraproject.org/wiki/Changes/SwapOnZRAM). -Now click "Done" and start your install! It took only ten minutes for me. +Click "Next", review the changes, and start your install! It took only ten +minutes for me. Now, reboot into your newly installed system and test it out. Make sure it works before migrating your data as that may take a long time, so you don't want diff --git a/setup/fedora-system-setup.md b/setup/fedora-system-setup.md index aceee55..ace7a5b 100644 --- a/setup/fedora-system-setup.md +++ b/setup/fedora-system-setup.md @@ -23,22 +23,31 @@ qrencode xournalpp gstreamer1-plugins-bad-free-extras gnome-extensions-app gnome-shell-extension-gsconnect nautilus-gsconnect kernel-tools mozilla-openh264 gstreamer1-plugin-openh264 trash-cli ripgrep gnome-tweaks goldendict-ng gcc-c++ gimp ptyxis clang clang-tools-extra bat helix fish kdiskmark kiwix-desktop -libjxl-utils torbrowser-launcher` +libjxl-utils torbrowser-launcher g4music gwenview earlyoom` ### As needed `dnf install gnome-usage install rlwrap mediainfo nmap xeyes progress duperemove memtest86+ lm_sensors efitools quearcode qpdf kdenlive stress tokei -f3 exiftool datediff qalculate-gtk syncplay` +f3 exiftool datediff qalculate-gtk syncplay easyeffects` -## AMD +## AMD ROCm -``` +```sh sudo dnf install rocminfo rocm-smi sudo usermod -a -G render,video $(whoami) -```` +sudo setsebool -P container_use_devices on +``` Then relog. +## Early OOM + +```sh +# Change -M to 2000000. (System still thrashed at 1500000.) +sudoedit /etc/default/earlyoom +sudo systemctl enable --now earlyoom.service +``` + ## Flathub apps If you are somewhat of a FOSS purist like me and didn't enable third party @@ -71,7 +80,6 @@ can clear the app data. everyone", but that does not convince me. - Disable `org.freedesktop.login1`. Not sure why it's needed. If you know why, please let me know! - - Turn on notifications - Speech Note - `flatpak install net.mkiol.SpeechNote` - `flatpak install net.mkiol.SpeechNote.Addon.amd` @@ -94,6 +102,8 @@ can clear the app data. - Enable GPU acceleration and disable all devices - Remove Other files: `/run/.heim_org.h5l.kcm-socket` - Removing X11 will cause it to fail to launch, so don't do that. +- Gamescope + - `flatpak install flathub org.freedesktop.Platform.VulkanLayer.gamescope` - Minecraft (Prism Launcher) - `flatpak install flathub org.prismlauncher.PrismLauncher` - Remove `xdg-download:ro` @@ -144,7 +154,8 @@ which changes the default setting for some stupid reason. (Why does that file exist at all?? Please let me know if you have a clue.) ``` -systemctl reload sshd +sudo systemctl daemon-reload +sudo systemctl reload sshd sudo groupadd --system ssh-users sudo usermod -aG ssh-users $(whoami) ``` diff --git a/setup/fedora-user-setup.md b/setup/fedora-user-setup.md index 69e868a..2b6f65b 100644 --- a/setup/fedora-user-setup.md +++ b/setup/fedora-user-setup.md @@ -75,26 +75,32 @@ Reset SELinux labels: - Terminal: Ubuntu Mono Nerd Font 15, gray theme - Text Editor - - Monospace 15 + - Monospace 15 - Using the top right settings icon: - Show Line Number - Show Right Margin - Spaces Per Tab: 4 - GSConnect: Enable in Extensions app, pair with phone, and adjust settings - accordingly. +accordingly. - Xournal++: turn on dark mode - OBS: 2560x1440, - [mkv](https://en.wikipedia.org/wiki/Comparison_of_video_container_formats), - VAAPI AV1 (CQ 20), opus, output to `~/Videos/OBS/` - - Install [per application audio capture](https://github.com/dimtpap/obs-pipewire-audio-capture/releases/tag/1.1.4). - To install the plugin: open OBS folder from its menu, decompress the zip and - remove the outer folder and put in the `plugins` folder, creating it if it - doesn't exist. The final result should be something like - `.config/obs-studio/plugins/linux-pipewire-audio/{bin,data}/...` +[mkv](https://en.wikipedia.org/wiki/Comparison_of_video_container_formats), +VAAPI AV1 (CQ 20), opus, output to `~/Videos/OBS/` + - Install [per application audio capture](https://github.com/dimtpap/obs-pipewire-audio-capture/releases/tag/1.1.4). + To install the plugin: open OBS folder from its menu, decompress the zip and + remove the outer folder and put in the `plugins` folder, creating it if it + doesn't exist. The final result should be something like + `.config/obs-studio/plugins/linux-pipewire-audio/{bin,data}/...` - Enable websocket server and install - [obs CLI for obs-websocket v5](https://github.com/grigio/obs-cmd) to - emulate global shortcuts on Wayland - - Enable replay buffer of 60 seconds and 1000 MB + [obs CLI for obs-websocket v5](https://github.com/grigio/obs-cmd) to + emulate global shortcuts on Wayland + - Enable replay buffer of 60 seconds and 1000 MB +- Firefox: set `gfx.wayland.hdr` to `true` as I have a HDR monitor. +- Gapless (`g4music`): + - Background blur mode: Art Only + - Keep playing after window closed: on + - Monitor local file changes: on + - Normalize volume with ReplayGain: Album ## Tricks diff --git a/setup/ubuntu-setup.md b/setup/ubuntu-setup.md index c843606..46872e8 100644 --- a/setup/ubuntu-setup.md +++ b/setup/ubuntu-setup.md @@ -26,10 +26,6 @@ Here's my personal Ubuntu 23.10 setup. (Make sure to use Wayland on Nvidia!) ``` - Enable FlatHub: - `flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo` -- `earlyoom` config: edit `/etc/default/earlyoom` and add: - - `--avoid - '(^|/)(systemd|sshd|mosh-server|ssh|vim|sudo|sudoedit|gnome-shell|gnome-terminal-)$' - --prefer '(^|/)(Web Content|Isolated Web Co)$'` ## Optional packages