distros:fedora_workstation_gnome
This is an old revision of the document!
Table of Contents
Information
- Fedora Workstation 1)
- 38
Download
Workstation
Updated Live Images
Installation Notes
- Installing
f2fs-tools
in the Live environment before starting the installer allows for selecting F2FS for partitions in Anaconda - 2023/07/24: RPM Fusion doesn't seem necessary for media playback, but notably includes
intel-media-driver
systemd-boot
- 2023/07/18: Doesn't seem to work for F38
inst.sdboot
Partitioning
Delete
/home
Delete
/
- Leave
/boot
at ext4 - Re-create
/
without specifying a size - Leave
/
at ext4
HOSTS
- Unified hosts + fakenews + gambling + porn + social
Initial
- Only run once
ls '/etc/hosts~' || wget -O '/tmp/hosts-tmp' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/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-porn-social/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
DNF
- Disables Delta RPMs with
deltarpm=false
echo 'deltarpm=false' | sudo tee --append '/etc/dnf/dnf.conf' > '/dev/null' && cat '/etc/dnf/dnf.conf' | grep 'deltarpm=false'
sudo -e '/etc/dnf/dnf.conf'
Repositories
su
- Useful for fresh installations where repo(s) can be added, and then package updates can be ran afterwards unattended without having
sudo
timeout and re-prompt for the password
sudo su
RPM Fusion
free
sudo rpm --import 'https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-free-fedora-2020' && sync && sudo dnf install 'https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-'$(rpm -E %fedora)'.noarch.rpm' -y && sync
Test
wget -O '/tmp/RPM-GPG-KEY-rpmfusion-free' 'https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-free-fedora-2020' && sudo restorecon -F -I -R '/tmp/RPM-GPG-KEY-rpmfusion-free' && sudo rpm --import '/tmp/GPG-rpmfusion-free' && wget -O '/tmp/rpmfusion-free.rpm' 'https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-free-release-38.noarch.rpm' && sudo restorecon -F -I -R '/tmp/rpmfusion-free.rpm' && sudo dnf install '/tmp/rpmfusion-free.rpm' -y && sync
nonfree
sudo rpm --import 'https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-nonfree-fedora-2020' && sync && sudo dnf install 'https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-'$(rpm -E %fedora)'.noarch.rpm' -y && sync
Test
wget -O '/tmp/RPM-GPG-KEY-rpmfusion-nonfree' 'https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-nonfree-fedora-2020' && sudo restorecon -F -I -R '/tmp/RPM-GPG-KEY-rpmfusion-nonfree' && sudo rpm --import '/tmp/GPG-rpmfusion-nonfree' && wget -O '/tmp/rpmfusion-nonfree.rpm' 'https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-38.noarch.rpm' && sudo restorecon -F -I -R '/tmp/rpmfusion-nonfree.rpm' && sudo dnf install '/tmp/rpmfusion-nonfree.rpm' -y && sync
Software
Update
System
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
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'
RPM Fusion
Tainted Repos
- Provides interesting firmware files
sudo dnf install 'rpmfusion-free-release-tainted' 'rpmfusion-nonfree-release-tainted'
Multimedia
sudo dnf swap 'ffmpeg-free' 'ffmpeg' --allowerasing
sudo dnf groupupdate 'core' 'multimedia' 'sound-and-video' --setop='install_weak_deps=False' --exclude='PackageKit-gstreamer-plugin' --allowerasing && sync
General
sudo dnf install evolution file-roller filezilla foliate gbrainy gimp gnome-extensions-app irqbalance keepassxc mpv transmission-gtk android-tools aria2 binutils hdparm htop icoutils kernel-tools lm_sensors openssl1.1 p7zip p7zip-plugins smbios-utils-python unar wget xfsprogs-xfs_scrub xrandr yt-dlp
TODO
google-noto-*-vf-fonts gstreamer1-plugin-openh264 openh264 mozilla-openh264
RPM Fusion
free
ffmpeg-libs
nonfree
intel-media-driver
Tainted
libdvdcss *'-firmware'
Wine
wine winetricks mesa-libd3d mesa-libd3d.i686 openssl1.1.i686
Settings
Keyboard Shortcuts
gnome-terminal
bash -c "secret-tool lookup 'keepass' 'default' | keepassxc --pw-stdin ~/'Documents/keepass.kdbx'"
gnome-terminal --command "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-porn-social/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
Printer
- Internet Printing Protocol (ipps) → HP → IPP Everywhere ™
- Color Mode: Device Gray
- Administration → Set As Server Default
ipps://192.168.1.164/ipp/print
Network
- Use systemd-resolved for DNS as it caches
NetworkManager
127.0.0.1
::1
systemd-resolved
sudo mkdir -p '/etc/systemd/resolved.conf.d' && sudo -e '/etc/systemd/resolved.conf.d/99-dns-over-tls.conf'
[Resolve] DNS=1.1.1.2#security.cloudflare-dns.com 1.0.0.2#security.cloudflare-dns.com 2606:4700:4700::1112#security.cloudflare-dns.com 2606:4700:4700::1002#security.cloudflare-dns.com DNSOverTLS=yes
Nautilus
- Sort Folders Before Files
Rhythmbox
- See Internet Radio
Terminal
- 10-notch Transparency
Fan Profile
sudo smbios-thermal-ctl --set-thermal-mode='performance'
Kernel Options
Magic SysRq key
echo 'kernel.sysrq = 1' | sudo tee '/etc/sysctl.d/99-sysrq.conf' > '/dev/null' && cat '/etc/sysctl.d/99-sysrq.conf'
Swappiness
echo 'vm.swappiness = 0' | sudo tee '/etc/sysctl.d/99-swappiness.conf' > '/dev/null' && cat '/etc/sysctl.d/99-swappiness.conf'
Dracut
- System-specific boot optimization
Be sure to undo this if planning on booting the same disk install on different hardware, notably for servers
This may become deprecated with
systemd-boot
and F39
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
GRUB
Config
- Add commands within
args
sudo grubby --update-kernel='ALL' --args=''
GNOME
Dynamic Wallpaper
gsettings set 'org.gnome.desktop.background' 'picture-uri' '/usr/share/backgrounds/f'*'/default/f'*'.xml'
Extensions
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 ~/'.config/monitors.xml' ~gdm/'.config/monitors.xml' && sudo chown 'gdm':'gdm' ~gdm/'.config/monitors.xml'
Undo
sudo rm ~gdm/'.config/monitors.xml' && sync
Settings
All-in-one
- Last updated: 2023/08/16
gsettings reset 'org.gnome.shell' 'app-picker-layout' && gsettings set 'org.gnome.desktop.interface' 'enable-animations' 'true' && 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.desktop.wm.preferences' 'disable-workarounds' 'true' && gsettings set 'org.gnome.software' 'download-updates' 'false' && gsettings set 'org.gnome.desktop.interface' 'clock-show-weekday' 'true'
Individual
- Last updated: 2023/08/16
gsettings reset 'org.gnome.shell' 'app-picker-layout'
gsettings set 'org.gnome.desktop.interface' 'enable-animations' 'true'
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.desktop.wm.preferences' 'disable-workarounds' 'true'
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'
profile=gpu-hq scale=ewa_lanczossharp cscale=ewa_lanczossharp video-sync=display-resample interpolation tscale=oversample hwdec=vaapi hwdec-codecs=all save-position-on-quit sub-auto=fuzzy force-window=yes
PipeWire
- See PipeWire for main config
2023/07/15: RuneScape seems hard-coded for
44100
and in the past did not like being resampled
mkdir -p ~/'.config/pipewire/pipewire.conf.d' && nano ~/'.config/pipewire/pipewire.conf.d/99-custom.conf'
context.properties = { default.clock.rate = 44100 default.clock.allowed-rates = [ 44100 ] }
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
XFS Scrub
sudo systemctl enable 'xfs_scrub_all.timer' --now && sudo systemctl start 'xfs_scrub_all' && sync && sudo systemctl status 'xfs_scrub_all' -l
UTC
- Set RTC to UTC
Needed if Windows is installed first
Windows should also be set to UTC
sudo timedatectl set-local-rtc '0'
Verify
timedatectl | grep local
Wine
- See Wine
Wayland
i915 HDMI
- This sets RGB Full on HDMI, and the content type to
Game
on HDMI for low-latency
- Run
proptest
from a Wayland session to see moreconnector
and prop names This will prevent GDM from displaying if
proptest
is not installed
sudo dnf install 'drm-utils' -y && sudo -e '/etc/gdm/PostLogin/Default' && sudo restorecon -F -I -R '/etc/gdm/PostLogin/Default' && sudo chmod +x '/etc/gdm/PostLogin/Default' && sync
#!/bin/bash proptest -M 'i915' -D '/dev/dri/card'* '103' 'connector' '99' '1' proptest -M 'i915' -D '/dev/dri/card'* '103' 'connector' '107' '1'
Firefox
- See Firefox if old configuration is needed, otherwise use Firefox Sync
about:config
- See about:config
Extensions
gio open 'https://addons.mozilla.org/en-US/firefox/addon/decentraleyes/' 'https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/'
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
www.phoronix.com##.details > .comments www.phoronix.com##.author www.phoronix.com##.comments-label www.phoronix.com###sharebar www.phoronix.com###social www.phoronix.com###searchbox www.phoronix.com##div.popular-list > .comments
Tweaks
- Enables smooth-scrolling
echo 'MOZ_USE_XINPUT2=1' | sudo tee '/etc/profile.d/99-firefox-tweaks.sh' > '/dev/null' && cat '/etc/profile.d/99-firefox-tweaks.sh'
sudo -e '/etc/profile.d/99-firefox-tweaks.sh'
DNS over HTTPS
https://security.cloudflare-dns.com/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
C:/www/wiki/data/attic/distros/fedora_workstation_gnome.1694557001.txt.gz · Last modified: (external edit)