linux:distros:fedora_kde
Table of Contents
Information
Download
Fedora Media Writer
ISO
Updated Live Images
- Make sure the downloaded ISO says
KDE
Installation Notes
Partitioning
- Custom Partitioning → Standard
- Delete
/home
- Delete
/
- Re-create
/
without specifying a size 1) /boot
and/
are ext4- See Software RAID notes if software RAID across multiple drives is wanted
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 -v '/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 -v '/etc/hosts' && sync
Restore Backup
ls '/etc/hosts~' && sudo restorecon -F -I -R -v '/etc/hosts~' && sudo mv --force '/etc/hosts~' '/etc/hosts' && sync
Repositories
Keybase
sudo rpm --import 'https://keybase.io/docs/server_security/code_signing_key.asc' && sudo dnf config-manager --add-repo 'http://prerelease.keybase.io/rpm/$basearch'
Software
Update
System
sudo dnf autoremove -y && sudo dnf distro-sync -y && sync
Firmware
sudo fwupdmgr refresh --force && sudo fwupdmgr update --verbose
Flatpaks
- Sometimes this seems to take longer than expected on fresh installs
flatpak update && sudo flatpak update
GNU nano
- Installs
nano
- Sets
VISUAL
andEDITOR
tonano
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'
Multimedia
sudo dnf groupupdate 'core' 'multimedia' 'sound-and-video' --setop='install_weak_deps=False' --exclude='PackageKit-gstreamer-plugin' --allowerasing && sync
General
sudo dnf install filezilla okular gbrainy gimp keepassxc mpv obs-studio qbittorrent android-tools aria2 binutils hdparm htop icoutils kernel-tools lm_sensors gstreamer1-plugin-openh264 openh264 mozilla-openh264 p7zip p7zip-plugins unar wget yt-dlp
Intel
intel-opencl
Keybase
keybase
Wine
wine winetricks
mesa-libd3d mesa-libd3d.i686
Settings
KDE
Mouse & Touchpad
- Pointer acceleration: None
Keyboard
- Shortcuts
bash -c "secret-tool lookup 'keepass' 'default' | keepassxc --pw-stdin ~/'Documents/keepass.kdbx'"
konsole -e "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 -v '/etc/hosts' && sync && fstrim --all --verbose && sync && read -n '1' -s -r -p 'Done' && sleep '2''"
Keys
- Listed respectively to above
- Ctrl + Alt + Z
- Menu or F6
Display & Monitor
- Refresh rate: 75 Hz (after kernel option)
- RGB range: Full
- Color Profile: None
- Legacy applications (X11): Apply scaling themselves
- Screen tearing: [x] Allow in fullscreen windows
- 2024/08/06: Scale not at 100% or integers (any Fractional) may require
QT_SCALE_FACTOR_ROUNDING_POLICY=RoundPreferFloor
before Qt 6.8 (Bug 479891)
Wi-Fi & Internet
systemd-resolved
- systemd-resolved caches DNS
- Quad9, see 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.9#dns.quad9.net 149.112.112.112#dns.quad9.net 2620:fe::fe#dns.quad9.net 2620:fe::9#dns.quad9.net DNSOverTLS=yes
Text & Fonts
- Sub-pixel rendering: RGB
- Hinting: Full
Default Applications
- Video player: mpv Media Player
Window Management
Desktop Effects
- Appearance → Wobbly Windows
Search
- TODO: See how useful File indexing is to keep Enabled
Screen Locking
- Delay before password required: Require password immediately
Spell Check
- American English (United States)
- [x] Automatic spell checking enabled by default (TODO: Check if any ramifications)
Power Management
- TODO
Session
- On login, launch apps that were open: Start with an empty session
Printer
- Printer name can be
Ctrl + F
'd - AppSocket/HP JetDirect → HP → HP Officejet Pro 8710, hpcups (en) 2)
- 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)
isdrv
(en), (en)
islsb
- 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
Fan Profile
- This sets the fan thermal management profile to
Ultra performance
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
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'
GRUB
Config
- 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/07
GRUB_CMDLINE_LINUX=
sudo -e '/etc/default/grub' && sudo grub2-mkconfig -o '/boot/grub2/grub.cfg'
nohz='off' acpi_osi='Linux' pci='pcie_bus_perf,realloc,pcie_scan_all,big_root_window' pcie_aspm='off' video='HDMI-A-1:1920x1080MR@75' reboot='pci' nvme_core.default_ps_max_latency_us='0' usbhid.quirks='0x1b1c:0x1b75:0x20000408' usbcore.quirks='1b1c:1b75:gn'
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 KDE Wallet
secret-tool store --label='KeePass' 'keepass' 'default'
Keybase
run_keybase && sudo rm -f '/etc/yum.repos.d/prerelease.keybase.io_rpm_basearch.repo'
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 vo=dmabuf-wayland
hwdec=vaapi hwdec-codecs=all
Secure Shell
- See 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
- Set RTC to UTC
- Likely needed if Windows was installed first for dual-boot
- Windows (10+) should also be set to UTC
sudo timedatectl set-local-rtc '0'
Verify
timedatectl | grep local
Wine
- See Wine
Firefox
- See Firefox if old configuration is needed, otherwise use Firefox Sync
about:config
- See about:config for other settings
layout.frame_rate
ideally needs set if using Wayland and above 60Hz
layout.frame_rate
extensions.screenshots.disabled
extensions.pocket.enabled
dom.event.contextmenu.enabled
security.tls.enable_kyber
Extensions
uBlock Origin
Filters list
https://www.fanboy.co.nz/fanboy-problematic-sites.txt https://www.fanboy.co.nz/r/fanboy-ultimate.txt https://www.fanboy.co.nz/fanboy-cookiemonster_ubo.txt https://www.fanboy.co.nz/enhancedstats.txt
My filters
! Hide RuneScape Wiki clocks ! 2023/12/13 oldschool.runescape.wiki###utcdate > [href="#"] oldschool.runescape.wiki###footer-info-lastmod runescape.wiki##[href="/w/Clock_(interface)"] runescape.wiki###footer-info-lastmod ! Hide YouTube TV promo ! 2024/07/24 youtube.com###mealbar-promo-renderer > .yt-mealbar-promo-renderer.style-scope ! End
DNS over HTTPS
- Quad9, see dns_servers for other addresses
https://dns.quad9.net/dns-query
Server
- For workstations that run servers as a secondary directive
- For headless servers, see Fedora Server
Enable SSH
sudo systemctl enable --now 'sshd'
Automatic Updates
Service
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 misc_linux
/usr/local/www/wiki/data/pages/linux/distros/fedora_kde.txt · Last modified: by 127.0.0.1