====== Information ======
* Fedora Workstation ((https://getfedora.org/en/workstation))
* 41 Beta
====== TODOs ======
* https://blog.gtk.org/2024/01/28/new-renderers-for-gtk/
====== Download ======
===== Workstation =====
* https://getfedora.org/en/workstation/download
===== Updated Live Images =====
* [[https://fedoraproject.org/wiki/Respins-SIG|Respins-SIG]]
* https://dl.fedoraproject.org/pub/alt/live-respins
====== Installation Notes ======
===== Partitioning =====
- :!: Delete ''/home''
- :!: Delete ''/''
- Set ''/boot'' to XFS ((Fedora Server and RHEL do XFS ''/boot'' and root ''/''))
- Re-create ''/'' without specifying a size ((this uses all available remaining space))
- Set ''/'' to XFS
* :!: See [[linux;notes;misc#fedora_anaconda|Software RAID]] notes if software RAID across multiple drives is wanted
====== HOSTS ======
* https://github.com/StevenBlack/hosts/
* Unified hosts + fakenews + gambling
===== Initial =====
* Only run once
ls '/etc/hosts~' || wget -O '/tmp/hosts-tmp' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts' && sudo cp --backup '/tmp/hosts-tmp' '/etc/hosts' && sudo restorecon -F -I -R '/etc/hosts' && sync
===== Update =====
****
ls '/etc/hosts~' && wget -O '/tmp/hosts-tmp' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts' && sudo mv --force '/tmp/hosts-tmp' '/etc/hosts' && sudo restorecon -F -I -R '/etc/hosts' && sync
===== Restore Backup =====
****
ls '/etc/hosts~' && sudo restorecon -F -I -R '/etc/hosts~' && sudo mv --force '/etc/hosts~' '/etc/hosts' && sync
====== Repositories ======
===== RPM Fusion =====
* See [[linux;notes;rpm_fusion|RPM Fusion]]
====== Software ======
===== Remove =====
* :!: [[https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247|#247]], GNOME Weather lacks location data since 2022, and leaves a notification shade without choosing one
* Last tested: 2024/09/25
* TODO: Move to general Software section
sudo dnf remove gnome-weather
===== Update =====
==== System ====
* See [[linux;notes;misc#dnf_autoremove_fix|DNF Autoremove Fix]] if ''dnf autoremove'' fails
sudo dnf autoremove -y && sudo dnf distro-sync -y && sync
==== Firmware ====
****
sudo fwupdmgr refresh --force && sudo fwupdmgr update --verbose
==== Flatpaks ====
****
flatpak update && sudo flatpak update
===== GNU nano =====
* Installs ''nano''
* Sets ''VISUAL'' and ''EDITOR'' to ''nano'' via environment variable
* Sets ''nowrap'' for current user
sudo dnf install 'nano' -y && export 'VISUAL=nano' && export 'EDITOR=nano' && echo -e 'export VISUAL=nano\nexport EDITOR=nano' | sudo tee '/etc/profile.d/editor-nano.sh' > '/dev/null' && cat '/etc/profile.d/editor-nano.sh' && mkdir -p ~/'.config/nano' && echo 'set nowrap' | tee ~/'.config/nano/nanorc' > '/dev/null' && cat ~/'.config/nano/nanorc'
===== General =====
****
sudo dnf install evolution file-roller filezilla foliate gbrainy gimp gnome-extensions-app keepassxc mpv obs-studio transmission-gtk android-tools aria2 binutils gdk-pixbuf2-modules-extra hdparm htop icoutils kernel-tools lm_sensors gstreamer1-plugin-openh264 openh264 mozilla-openh264 p7zip p7zip-plugins unar wget xrandr yt-dlp
===== Games =====
* ''kernel-modules-extra'' [[https://discussion.fedoraproject.org/t/game-controllers-no-longer-working/128863/2|info]] (extra game controllers)
FlightGear xonotic
kernel-modules-extra
===== Wine =====
****
wine winetricks
====== Settings ======
===== Keyboard Shortcuts =====
ptyxis --standalone
bash -c "secret-tool lookup 'keepass' 'default' | keepassxc --pw-stdin ~/'Documents/keepass.kdbx'"
ptyxis --standalone --execute "sudo sh -c 'dnf clean 'all' && dnf distro-sync -y && sync && flatpak update && wget -O '/tmp/sb-hosts' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts' && mv --force '/tmp/sb-hosts' '/etc/hosts' && restorecon -F -I -R '/etc/hosts' && sync && fstrim --all --verbose && sync && read -n '1' -s -r -p 'Done' && sleep '2''"
==== Keys ====
* Listed respectively to above
* Ctrl + Alt + T
* Ctrl + Alt + Z
* Menu or F6
===== Printer =====
* http://localhost:631/admin
* Printer name can be ''Ctrl + F'''d
* :!: AppSocket/HP JetDirect -> HP -> HP Officejet Pro 8710, hpcups (en) ((single ''en'' **not** ''en, en''))
* Color Mode: Device Gray
* Administration -> Set As Server Default
socket://192.168.1.164:9100
HP Officejet Pro 8710
==== Info ====
* ''HP Officejet Pro 8710, hpcups 3.23.5'' has two options, ''(en)'' and ''(en), (en)''
* With Firefox, do ''Inspect''
* ''(en)'' is ''drv''
* ''(en), (en)'' is ''lsb''
* https://access.redhat.com/solutions/6971890 implies the ''drv'' path is the modern choice
* :!: The IPP option //sometimes//(?) prints blurry documents; CUPS says old non-IPP drivers will be deprecated eventually
===== Network =====
==== systemd-resolved ====
* systemd-resolved caches DNS
* [[servers;upstream_dns_servers#systemd-resolved|Quad9 ECS]], see [[servers;upstream_dns_servers|DNS Servers]] for other addresses
sudo mkdir -p '/etc/systemd/resolved.conf.d' && sudo -e '/etc/systemd/resolved.conf.d/99-dns-over-tls.conf'
[Resolve]
DNS=9.9.9.11#dns11.quad9.net 149.112.112.11#dns11.quad9.net 2620:fe::11#dns11.quad9.net 2620:fe::fe:11#dns11.quad9.net
DNSOverTLS=yes
=== NetworkManager ===
* :?: TODO: [[https://wiki.archlinux.org/title/Systemd-resolved#Automatically|ArchWiki]] mentions ''systemd-resolved'' should be auto-used via ''resolv.conf''
* :!: TODO: Don't set DNS in NetworkManager, and disable Automatic DNS; check with ''resolvectl status''
127.0.0.1
::1
===== Nautilus =====
* Sort Folders Before Files
===== Rhythmbox =====
* See [[personal;internet_radio#rhythmbox|Internet Radio]]
===== Fan Profile =====
* https://www.dell.com/support/kbdoc/en-us/000177768/guide-to-dell-power-manager
* :!: 2024/09/25: This doesn't work on F41 beta ((''dell-smbios A80593CE-A997-11DA-B012-B622A1EF5492: Invalid call 17/19: 0''))
sudo dnf install 'smbios-utils-python' -y && sudo smbios-thermal-ctl --set-thermal-mode='performance' && sudo dnf remove 'smbios-utils-python' -y
===== Kernel Options =====
==== Magic SysRq key ====
* https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html
* Ideal: ''kernel.sysrq = 1''
echo 'kernel.sysrq = 1' | sudo tee '/etc/sysctl.d/99-sysrq.conf' > '/dev/null' && cat '/etc/sysctl.d/99-sysrq.conf'
sysctl 'kernel.sysrq'
==== Intel Perf Counters ====
* https://wiki.archlinux.org/title/intel_graphics#Enable_performance_support
* Ideal: ''dev.i915.perf_stream_paranoid = 0''
* Requires ''initramfs'' to be rebuilt (covered by Dracut Tweaks)
echo 'dev.i915.perf_stream_paranoid=0' | sudo tee '/etc/sysctl.d/99-i915-perf.conf' > '/dev/null' && cat '/etc/sysctl.d/99-i915-perf.conf'
sudo sysctl 'dev.i915.perf_stream_paranoid'
===== Bootloader =====
==== Dracut ====
* System-specific boot optimization
* :!: Expects GRUB
* :!: Be sure to undo this if planning on booting the same disk install on different hardware, notably for servers
sudo -e '/etc/dracut.conf.d/99-custom.conf' && sudo dracut --force --regenerate-all
compress="cat"
do_strip="yes"
aggressive_strip="yes"
hostonly="yes"
hostonly_mode="strict"
fileloglvl="0"
sysloglvl="0"
stdloglvl="0"
=== Undo ===
****
sudo rm -f '/etc/dracut.conf.d/99-custom.conf' && sudo dracut --force --regenerate-all && sync
==== Boot Options ====
* :!: [[linux;notes;kernel_parameters|More Kernel Parameters]]
* Add commands within ''args''
sudo grubby --update-kernel='ALL' --args=''
sudo grubby --update-kernel='ALL' --remove-args=''
sudo -e '/etc/default/grub' && sudo grub2-mkconfig -o '/boot/grub2/grub.cfg'
==== Spinesnap ====
* Last updated: 2024/08/26
* ''GRUB_TIMEOUT=1''
* ''GRUB_CMDLINE_LINUX=''
sudo -e '/etc/default/grub' && sudo grub2-mkconfig -o '/boot/grub2/grub.cfg'
TODO
===== GNOME =====
==== Extensions ====
* https://extensions.gnome.org/extension/545/hide-top-bar/
==== External Monitor Settings ====
* This copies the configured monitor settings from the current user to ''gdm'' and also applies it to the log-in screen
* Notably useful for setting a laptop's built-in screen as disabled for the log-in screen while used in a dock configuration
sudo cp --remove-destination ~/'.config/monitors.xml' ~gdm/'.config/monitors.xml' && sudo chown 'gdm':'gdm' ~gdm/'.config/monitors.xml' && sudo restorecon -F -I -R ~gdm/'.config/monitors.xml'
=== Undo ===
****
sudo rm ~gdm/'.config/monitors.xml' && sync
==== Tweaks ====
sudo -e '/etc/profile.d/99-tweaks.sh'
# Mutter
export MUTTER_DEBUG_FORCE_KMS_MODE='simple'
# Clutter
export CLUTTER_PAINT='disable-dynamic-max-render-time'
# End
==== Settings ====
=== All-in-one ===
* Last updated: 2024/08/25
gsettings reset 'org.gnome.shell' 'app-picker-layout' && gsettings set 'org.gnome.desktop.interface' 'enable-animations' 'false' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'send-events' 'disabled-on-external-mouse' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'natural-scroll' 'false' && gsettings set 'org.gnome.desktop.peripherals.mouse' 'accel-profile' 'flat' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'tap-to-click' 'false' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'tap-and-drag' 'false' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'disable-while-typing' 'false' && gsettings set 'org.gnome.desktop.peripherals.touchpad' 'click-method' 'areas' && gsettings set 'org.gnome.desktop.interface' 'clock-show-date' 'true' && gsettings set 'org.gnome.desktop.wm.preferences' 'focus-mode' 'click' && gsettings set 'org.gnome.software' 'download-updates' 'false' && gsettings set 'org.gnome.desktop.interface' 'clock-show-weekday' 'true'
=== Individual ===
gsettings reset 'org.gnome.shell' 'app-picker-layout'
gsettings set 'org.gnome.desktop.interface' 'enable-animations' 'false'
gsettings set 'org.gnome.desktop.peripherals.touchpad' 'send-events' 'disabled-on-external-mouse'
gsettings set 'org.gnome.desktop.peripherals.touchpad' 'natural-scroll' 'false'
gsettings set 'org.gnome.desktop.peripherals.mouse' 'accel-profile' 'flat'
gsettings set 'org.gnome.desktop.peripherals.touchpad' 'tap-to-click' 'false'
gsettings set 'org.gnome.desktop.peripherals.touchpad' 'tap-and-drag' 'false'
gsettings set 'org.gnome.desktop.peripherals.touchpad' 'disable-while-typing' 'false'
gsettings set 'org.gnome.desktop.peripherals.touchpad' 'click-method' 'areas'
gsettings set 'org.gnome.desktop.interface' 'clock-show-date' 'true'
gsettings set 'org.gnome.desktop.wm.preferences' 'focus-mode' 'click'
gsettings set 'org.gnome.software' 'download-updates' 'false'
gsettings set 'org.gnome.desktop.interface' 'clock-show-weekday' 'true'
===== Hostname =====
* Change ''x'' to computer name
hostnamectl set-hostname 'x'
===== KeePassXC =====
==== Settings ====
* General -> [ ] Load previous databases on startup
* Security -> [x] Use DuckDuckGo service to download website icons
==== Add Database Password to GNOME Keyring ====
****
secret-tool store --label='KeePass' 'keepass' 'default'
===== lm_sensors =====
sudo sensors-detect --auto
sudo -e '/etc/sysconfig/lm_sensors'
===== mpv =====
mkdir -p ~/'.config/mpv' && nano ~/'.config/mpv/mpv.conf'
save-position-on-quit
sub-auto=fuzzy
force-window=yes
profile=gpu-hq
scale=ewa_lanczossharp
cscale=ewa_lanczossharp
video-sync=display-resample
interpolation
tscale=oversample
hwdec=vaapi
hwdec-codecs=all
vo=dmabuf-wayland
===== Secure Shell =====
* See [[programs;linux;openssh_client|OpenSSH Client]] notes to generate/restore public key
===== Drive Maintenance =====
==== Trim ====
****
sudo systemctl enable 'fstrim.timer' --now && sudo systemctl start 'fstrim' && sync && sudo systemctl status 'fstrim' -l
===== UTC =====
* [[https://wiki.archlinux.org/index.php/System_time#Time_standard|System time - ArchWiki]]
* Set RTC to UTC
* :!: Likely needed if Windows was installed first for dual-boot
* :!: Windows should also be set to UTC
sudo timedatectl set-local-rtc '0'
==== Verify ====
****
timedatectl | grep local
===== Wine =====
* See [[linux;notes;wine|Wine]]
===== Display =====
==== Full RGB HDMI ====
* TODO: https://gitlab.gnome.org/GNOME/mutter/-/issues/1871#note_2090262
full
====== Firefox ======
* See [[programs;firefox|Firefox]]
====== Server ======
* For workstations that run servers as a secondary directive
* For headless servers, see [[linux;distros;server;fedora_server|Fedora Server]]
===== Enable SSH =====
****
sudo systemctl enable --now 'sshd'
===== Automatic Updates =====
==== Service ====
* TODO: Add HOSTS file update from [[linux:distros:server:fedora_server#service|Server notes]]
sudo -e '/etc/systemd/system/fedora-up.service'
[Service]
Type=oneshot
ExecStartPre='/usr/bin/dnf' clean 'all'
ExecStart='/usr/bin/dnf' distro-sync -y
ExecStart='/usr/bin/dnf' autoremove -y
ExecStartPost='/usr/bin/sync'
ExecStartPost='/usr/bin/systemctl' reboot
===== Timer =====
* 03:00 Oak
sudo -e '/etc/systemd/system/fedora-up.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'fedora-up.timer' --now
[Unit]
Description=Software Package Maintenance and Updater
After=network-online.target
Wants=network-online.target
[Timer]
OnCalendar=*-*-* 03:00:00
Persistent=true
[Install]
WantedBy=timers.target
====== Notable Folders and Commands ======
* See [[linux;notes;misc]]