User Tools

Site Tools


distros:fedora_workstation_gnome

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
distros:fedora_workstation_gnome [2019/11/09 15:24] Sean Rhonedistros:fedora_workstation_gnome [2024/05/02 01:43] Sean Rhone
Line 2: Line 2:
  
   * Fedora Workstation ((https://getfedora.org/en/workstation))   * Fedora Workstation ((https://getfedora.org/en/workstation))
-  * 31+  * 40
  
-====== Issues ======+====== Download ======
  
-  * KeePassXC loads databases slower specifically on Fedora vs other distros ((https://bugzilla.redhat.com/show_bug.cgi?id=1653435))+===== Fedora Media Writer =====
  
-====== TODO ====== +  * https://github.com/FedoraQt/MediaWriter/releases
- +
-  * https://blog.tingping.se/2018/12/01/amdgpu-fullrgb.html +
- +
-====== Download ======+
  
 ===== Workstation ===== ===== Workstation =====
Line 19: Line 15:
  
 ===== Updated Live Images ===== ===== Updated Live Images =====
 +
 +  * [[https://fedoraproject.org/wiki/Respins-SIG|Respins-SIG]]
  
   * https://dl.fedoraproject.org/pub/alt/live-respins   * https://dl.fedoraproject.org/pub/alt/live-respins
 +  * 2024/04/29: This is still offering F39 images currently
  
 ====== Installation Notes ====== ====== Installation Notes ======
  
-  * ''EFI/fedora/shimx64.efi'' ((EFI file to boot and in the case of (quirky) InsydeH2O UEFI implementations, add to SecureBoot trust; doesn't matter if SecureBoot is enabled or not)) +===== ISO Image Write =====
-  * Remove ''/home'', set ''/boot'' and ''/'' to use XFS, expand ''/''+
  
-====== HOSTS ======+  * :!: 2024/04/29: Rufus from Windows 10 wrote F40's Workstation ISO in DD mode to an external HDD and caused media check to fail around 4% 
 +  * :!: Fedora Image Writer [[https://github.com/FedoraQt/MediaWriter/releases/tag/5.0.9|5.0.9 win64]] also had failed media checks in the past ([[https://github.com/FedoraQt/MediaWriter/issues/669#issuecomment-1901538714|comment]]), but [[https://github.com/FedoraQt/MediaWriter/releases/tag/latest-windows|this version]] ((Oct 25, 2023, [[https://github.com/FedoraQt/MediaWriter/commit/43acd55d77299ee674c91e9743e61d659f31d0ba|43acd55]])) was consistently fine
  
-  * https://github.com/StevenBlack/hosts/ +  * 2024/04/29: ''dd'' images from Linux or a LiveUSB session of it, or [[https://etcher.balena.io/#download-etcher|balena's Etcher]] portable on Windows
-  * Using ''Unified hosts + fakenews + gambling''+
  
-  sudo wget -O '/etc/hosts' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts' && sync+===== Partitioning =====
  
-  cat '/etc/hosts| grep 'Date:'+  - :!: Delete ''/home'' 
 +  - :!: Delete ''/'' 
 +  - Set ''/boot'' to XFS ((Fedora Server and RHEL do it)) 
 +  - Re-create ''/'' without specifying a size ((this uses all available remaining space)) 
 +  - Set ''/'' to F2FS or XFS ((If F2FS isn't an option, install ''f2fs-tools'' on F38 and older before starting Anaconda)) 
 +  - :!: See [[notes:misc_linux#create_software_raid|Software RAID]] notes if software RAID across multiple drives is wanted
  
-  sudo -e '/etc/hosts'+====== HOSTS ======
  
-===== RoE LAN =====+  * https://github.com/StevenBlack/hosts/ 
 +  * Unified hosts + fakenews + gambling
  
-  * This adds RoE sites to HOSTS file and allows resources to be grabbed over LAN +===== Initial =====
-  * Useful for doing large configurations with sites on local LAN+
  
-  echo -e '\n# RoE LAN\n192.168.1.153 realmofespionage.xyz\n192.168.1.153 social.realmofespionage.xyz\n192.168.1.153 blog.realmofespionage.xyz\n192.168.1.153 media.realmofespionage.xyz\n192.168.1.153 wiki.realmofespionage.xyz' | sudo tee --append '/etc/hosts' > '/dev/null' && cat '/etc/hosts' | grep 'realmofespionage.xyz'+  * Only run once
  
-====== DNF ======+  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
  
-  * Disables Delta RPMs with ''deltarpm=false''+===== Update =====
  
-  cat '/etc/dnf/dnf.conf' | grep 'deltarpm=false' || echo 'deltarpm=false' | sudo tee --append '/etc/dnf/dnf.conf' > '/dev/null' && cat '/etc/dnf/dnf.conf'+****
  
-====== Repositories ======+  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
  
-===== su =====+===== Restore Backup =====
  
-  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+  ls '/etc/hosts~' && sudo restorecon -F -I -R '/etc/hosts~' && sudo mv --force '/etc/hosts~' '/etc/hosts' && sync
  
-===== RPM Fusion =====+====== DNF ======
  
-  * https://rpmfusion.org+  * Disables Delta RPMs with ''deltarpm=false''
  
-==== free ====+  echo 'deltarpm=false' | sudo tee --append '/etc/dnf/dnf.conf' > '/dev/null' && cat '/etc/dnf/dnf.conf' | grep 'deltarpm=false'
  
-  * https://download1.rpmfusion.org/free/fedora+  sudo -e '/etc/dnf/dnf.conf'
  
-  sudo rpm --import 'https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-free-fedora-'$(rpm -E %fedora) && sync && sudo dnf install 'https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-'$(rpm -E %fedora)'.noarch.rpm' -y && sync+====== Repositories ======
  
-==== nonfree ====+===== Keybase =====
  
-  * https://download1.rpmfusion.org/nonfree/fedora+  * https://keybase.io/
  
-  sudo rpm --import 'https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-nonfree-fedora-'$(rpm -E %fedora) && sync && sudo dnf install 'https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-'$(rpm -E %fedora)'.noarch.rpm' -y && sync+  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'
  
-===== RawhideKernelNodebug =====+===== RPM Fusion =====
  
-  * https://fedoraproject.org/wiki/RawhideKernelNodebug +  * https://rpmfusion.org 
-  * https://dl.fedoraproject.org/pub/alt/rawhide-kernel-nodebug +  * See [[notes:fedora_rpm_fusion|RPM Fusion]] notes
- +
-  sudo dnf config-manager --add-repo='http://dl.fedoraproject.org/pub/alt/rawhide-kernel-nodebug/fedora-rawhide-kernel-nodebug.repo'+
  
 ====== Software ====== ====== Software ======
Line 88: Line 89:
 ==== System ==== ==== System ====
  
-  * The initial ''dnf clean all'' was removed from here since on a fresh install, there's nothing to remove, and fresh repo data is pulled-in+  * See [[notes:misc_linux#dnf_autoremove_fix]] if ''dnf autoremove'' fails
  
-  sudo dnf distro-sync -y && sync +  sudo dnf autoremove -y && sudo dnf distro-sync -&& sync
- +
-  sudo dnf autoremove +
- +
-=== Autoremove Fix === +
- +
-  * Removes the initially-installed kernel in order to fix ``dnf autoremove`` +
-  * :!: This will vary depending on the Fedora image version used +
- +
-  sudo dnf remove *5.3.7* +
- +
-=== Various === +
- +
-  * Collection of various update and maintenance commands +
- +
-  sudo dnf clean 'all' +
- +
-  sudo dnf distro-sync +
- +
-  sudo dnf update +
- +
-  sudo fwupdmgr refresh && fwupdmgr update --verbose +
- +
-  sudo flatpak update +
- +
-  sudo rm -Rfv '/usr/lib64/firefox/browser/features' '/home/'*'/.mozilla/firefox/'*'/features' +
- +
-  sudo wget -O '/etc/hosts' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts' +
- +
-  sudo fstrim --all --verbose && sync && read -n '1' -s -r -p 'Done' && sleep '2''"+
  
 ==== Firmware ==== ==== Firmware ====
Line 125: Line 97:
 **** ****
  
-  sudo fwupdmgr refresh && sudo fwupdmgr update --verbose+  sudo fwupdmgr refresh --force && sudo fwupdmgr update --verbose
  
 ==== Flatpaks ==== ==== Flatpaks ====
Line 141: Line 113:
   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'   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 Initial =====+==== Multimedia ====
  
-  https://rpmfusion.org/Configuration +****
-  Covers AppStream data and missing Multimedia packages+
  
-  sudo dnf groupupdate core multimedia sound-and-video && sync+<code>sudo dnf groupupdate 'core' 'multimedia' 'sound-and-video' --setop='install_weak_deps=False' --exclude='PackageKit-gstreamer-plugin' --allowerasing && sync</code>
  
 ===== General ===== ===== General =====
  
-  ''p7zip-plugins'' provides ''7z'' which can be used for extracting ISOs and other formats+****
  
-  sudo dnf install filezilla keepassxc p7zip p7zip-plugins unar aria2 gimp transmission-gtk hdparm nano htop wget irqbalance evolution flashrom+  sudo dnf install evolution file-roller filezilla foliate gbrainy gimp gnome-extensions-app keepassxc mpv transmission-gtk android-tools aria2 binutils hdparm htop icoutils kernel-tools lm_sensors gstreamer1-plugin-openh264 openh264 mozilla-openh264 p7zip p7zip-plugins unar wget xrandr yt-dlp 
  
-===== RPM Fusion ===== +===== Google Chrome =====
- +
-==== free ==== +
- +
-  * ''ffmpeg'' is for ''youtube-dl'' to correct DASH containers +
- +
-  ffmpeg mpv +
- +
-==== nonfree ====+
  
 **** ****
  
-  steam +  google-chrome-stable
- +
-===== Game Controllers ===== +
- +
-  * Necessary for Xbox 360 controllers, and maybe others +
- +
-  kernel-modules-extra +
- +
-===== VA-API ===== +
- +
-  * ''libva-intel-driver'' requires the [[#free1|RPM Fusion free repo]] +
- +
-  gstreamer1-vaapi +
- +
-  libva-intel-driver +
- +
-===== ckb-next ===== +
- +
-  * https://github.com/ckb-next/ckb-next +
- +
-  ckb-next+
  
 ===== Keybase ===== ===== Keybase =====
- 
-  * https://keybase.io 
- 
-  'https://prerelease.keybase.io/keybase_amd64.rpm' 
- 
-===== Wine ===== 
  
 **** ****
  
-  wine winetricks+  keybase
  
-===== Tor Browser =====+===== OBS Studio =====
  
-****+  ''obs-studio'' is in Fedora repos and works fine by itself, but pulls in interesting dependencies from [[notes:fedora_rpm_fusion#free|RPM Fusion's free repo]]
  
-  torbrowser-launcher+  obs-studio
  
-===== Google Chrome =====+===== Wine =====
  
-****+<code>wine winetricks</code>
  
-  sudo rpm --import 'https://dl-ssl.google.com/linux/linux_signing_key.pub' && sudo dnf install 'https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm'+<code>mesa-libd3d mesa-libd3d.i686</code>
  
 ====== Settings ====== ====== Settings ======
Line 216: Line 153:
 ===== Keyboard Shortcuts ===== ===== Keyboard Shortcuts =====
  
-  gnome-terminal+<code>gnome-terminal</code>
  
-  bash -c "secret-tool lookup 'keepass' 'default' | keepassxc --pw-stdin ~/'Documents/keepass.kdbx'"+<code>bash -c "secret-tool lookup 'keepass' 'default' | keepassxc --pw-stdin ~/'Documents/keepass.kdbx'"</code>
  
-  gnome-terminal --command "sudo sh -c 'dnf clean 'all' && dnf distro-sync -y && sync && fwupdmgr refresh && fwupdmgr update --verbose && flatpak update && rm -Rfv '/usr/lib64/firefox/browser/features' '/home/'*'/.mozilla/firefox/'*'/features' && wget -O '/etc/hosts' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts' && sync && fstrim --all --verbose && sync && read -n '1' -s -r -p 'Done' && sleep '2''"+<code>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/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''"</code>
  
 ==== Keys ==== ==== Keys ====
Line 228: Line 165:
   * Ctrl + Alt + T   * Ctrl + Alt + T
   * Ctrl + Alt + Z   * Ctrl + Alt + Z
-  * Pause or F7+  * Menu or F6
  
 ===== Printer ===== ===== Printer =====
Line 234: Line 171:
   * http://localhost:631/admin   * http://localhost:631/admin
  
-  * :!: Select the ''en, en'' printer driver +  * Printer name can be ''Ctrl + F'''
-  * Output Mode: Black Only Grayscale +  * :!: AppSocket/HP JetDirect -> HP -> HP Officejet Pro 8710, hpcups (en) ((single ''en'' **not** ''en, en'')) 
-  * Print Quality: High-Resolution Photo+  * Color Mode: Device Gray
   * Administration -> Set As Server Default   * Administration -> Set As Server Default
  
   socket://192.168.1.164:9100   socket://192.168.1.164:9100
  
-===== gedit =====+  HP Officejet Pro 8710 
 + 
 +==== Info ====
  
-  * 4 Tab width +  * ''HP Officejet Pro 8710, hpcups 3.23.5'' has two options, ''(en)'' and ''(en), (en)'' 
-  * Insert Spaces for Tab mode+  * 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 ===== ===== Network =====
  
-==== DNS ====+==== systemd-resolved ====
  
-=== Pi-hole ===+  * systemd-resolved caches DNS 
 +  * [[notes:dns_servers#quad9|Quad9]], see [[notes:dns_servers]] for other addresses
  
-  * See [[http://192.168.1.155/admin/settings.php|System Settings]] page on LAN+  sudo mkdir -p '/etc/systemd/resolved.conf.d' && sudo -e '/etc/systemd/resolved.conf.d/99-dns-over-tls.conf'
  
-=== UncensoredDNS === +<code> 
- +[Resolve] 
-  * https://blog.uncensoreddns.org/ +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</code>
-  89.233.43.71,91.239.100.100 +
- +
-  2a01:3a0:53:53::,2001:67c:28a4:: +
- +
-=== OpenNIC Anycast === +
- +
-  * https://wiki.opennic.org/start#anycast_tier_2_dns_resolvers +
- +
-  185.121.177.177,169.239.202.202+
  
-  2a05:dfc7:5::53,2a05:dfc7:5::5353+=== NetworkManager ===
  
-==== VPN.AC ====+<code>127.0.0.1</code>
  
-  * See [[information:vpn.ac|VPN.AC]] +<code>::1</code>
-  * :!: If using this VPN, disable IPv6 from NetworkManager+
  
 ===== Nautilus ===== ===== Nautilus =====
  
-  * Sort folders before files +  * Sort Folders Before Files
-  * 4096 MB File Previews+
  
 ===== Rhythmbox ===== ===== Rhythmbox =====
Line 288: Line 221:
   * 10-notch Transparency   * 10-notch Transparency
  
-===== Transmission =====+===== Fan Profile =====
  
-  * Blocklist+  * https://www.dell.com/support/kbdoc/en-us/000177768/guide-to-dell-power-manager
  
-  http://john.bitsurge.net/public/biglist.p2p.gz+  sudo dnf install 'smbios-utils-python' -y && sudo smbios-thermal-ctl --set-thermal-mode='performance' && sudo dnf remove 'smbios-utils-python' -y
  
-===== GRUB =====+===== Kernel Options =====
  
-==== grubby ====+==== Magic SysRq key ====
  
-  * Add commands within ''args'' +  * https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html 
-  * :!: ''grubby'' doesn't exist on Fedora 31 by-default+  * ''kernel.sysrq = 1''
  
-  sudo grubby --update-kernel='ALL' --args=''+  echo 'kernel.sysrq 1| sudo tee '/etc/sysctl.d/99-sysrq.conf> '/dev/null' && cat '/etc/sysctl.d/99-sysrq.conf'
  
-==== GRUB ====+  sysctl 'kernel.sysrq'
  
-=== UEFI ===+===== GRUB =====
  
-****+==== Config ====
  
-  sudo -e '/etc/default/grub&& sudo grub2-mkconfig -o '/boot/efi/EFI/fedora/grub.cfg'+  * :!: [[notes:kernel_parameters|More Kernel Parameters]] 
 +  * Add commands within ''args''
  
-=== Legacy ===+  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'   sudo -e '/etc/default/grub' && sudo grub2-mkconfig -o '/boot/grub2/grub.cfg'
  
-==== Other Parameters ====+==== Spinesnap ====
  
-  * See [[notes:kernel_parameters|Kernel Parameters]] for other options+  * Last updated2024/04/29 
 +  * ''GRUB_CMDLINE_LINUX=''
  
-==== AIO ====+  sudo -e '/etc/default/grub' && sudo grub2-mkconfig -o '/boot/grub2/grub.cfg'
  
-=== Spinesnap ===+<code>preempt='full' threadirqs nohz='off' acpi_osi='Linux' pci='pcie_bus_perf,realloc,pcie_scan_all,big_root_window' video='HDMI-A-1:1920x1080MR@75' reboot='pci'</code>
  
-  * Last updated: 2019/10/22+===== GNOME =====
  
-  i915.enable_fbc=1 i915.fastboot=1 pci=nocrs,pcie_bus_perf+==== Disable Wayland ====
  
-==== i915 ====+  * :!: 2023/07/23: It's been the cause of **far** too many issues and solving nothing while doing it
  
-  i915.enable_fbc=1 i915.fastboot=1+  * Last tested: 2024/04/29
  
-  i915.enable_psr=1+<code>cat '/etc/gdm/custom.conf' | grep '#WaylandEnable' > '/dev/null' && sudo sed -i 's/'#WaylandEnable=false'/'WaylandEnable=false'/g' '/etc/gdm/custom.conf' && cat '/etc/gdm/custom.conf' | grep 'WaylandEnable=false'</code>
  
-==== amdgpu ====+<code>sudo -e '/etc/gdm/custom.conf'</code>
  
-  * Allows use of Overdrive options for overclocking+==== Force evdev ====
  
-  amdgpu.ppfeaturemask=0xffffffff+  * TODO: Check if symlink works for xorg.confs 
 +  * TODO: Check mouse acceleration
  
-=== Test ===+  sudo dnf install 'xorg-x11-drv-evdev' -y && sudo ln --symbolic --force '/usr/share/X11/xorg.conf.d/10-evdev.conf' '/etc/X11/xorg.conf.d/'
  
-****+  sudo dnf install 'xorg-x11-drv-evdev' -y && sudo cp '/usr/share/X11/xorg.conf.d/10-evdev.conf' '/etc/X11/xorg.conf.d/'
  
-  amdgpu.mes=1 amdgpu.mcbp=+==== Dynamic Wallpaper ====
- +
-=== Verify ===+
  
 **** ****
  
-  cat '/sys/module/amdgpu/parameters/ppfeaturemask| grep '4294967295'+  gsettings set 'org.gnome.desktop.background' 'picture-uri' '/usr/share/backgrounds/f'*'/default/f'*'.xml'
  
-==== PCI ====+==== Extensions ====
  
-****+=== Disable unredirect fullscreen windows ===
  
-  pci=nocrs,pcie_bus_perf+  * https://extensions.gnome.org/extension/1873/disable-unredirect-fullscreen-windows/ 
 +  * 2023: This resolves screen tearing with some games on Intel UHD 630 on GNOME on Xorg ((seemingly not required for GNOME on Wayland))
  
-==== IOMMU ====+=== Hide Top Bar ===
  
-  * On F31 beta, this had some DMAR issues+  * https://extensions.gnome.org/extension/545/hide-top-bar/ 
 +  * :!: 2024/04/29: TODO: Compile from source for GNOME 46 https://gitlab.gnome.org/tuxor1337/hidetopbar/-/merge_requests/401
  
-  intel_iommu=on+==== External Monitor Settings ====
  
-===== GNOME =====+  * 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
  
-==== Disable Wayland ====+  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'
  
-  cat '/etc/gdm/custom.conf' | grep '#WaylandEnable' > '/dev/null' && sudo sed -i 's/'#WaylandEnable'/'WaylandEnable'/g' '/etc/gdm/custom.conf' && cat '/etc/gdm/custom.conf' | grep 'WaylandEnable'+=== Undo ===
  
-  sudo -e '/etc/gdm/custom.conf' +****
- +
-==== Root GUI Apps in Wayland ==== +
- +
-  Run this before running GUI applications requiring root +
-  This needs re-ran after session restart +
-  TODO: Is this even needed anymore?+
  
-  xhost +LOCAL:+  sudo rm ~gdm/'.config/monitors.xml' && sync
  
 ==== Settings ==== ==== Settings ====
Line 385: Line 316:
 === All-in-one === === All-in-one ===
  
-  * Last updated: 2019/10/24+  * Last updated: 2024/04/01
  
-  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.software' 'download-updates' 'false' && gsettings set 'org.gnome.desktop.interface' 'clock-show-weekday' 'true'+  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 === === Individual ===
  
-  * Last updated: 2019/10/24+  gsettings reset 'org.gnome.shell' 'app-picker-layout'
  
   gsettings set 'org.gnome.desktop.interface' 'enable-animations' 'false'   gsettings set 'org.gnome.desktop.interface' 'enable-animations' 'false'
Line 410: Line 341:
  
   gsettings set 'org.gnome.desktop.interface' 'clock-show-date' 'true'   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.software' 'download-updates' 'false'
  
   gsettings set 'org.gnome.desktop.interface' 'clock-show-weekday' 'true'   gsettings set 'org.gnome.desktop.interface' 'clock-show-weekday' 'true'
 +
 +==== Weather ====
 +
 +=== Location Fork ===
 +
 +  * https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885
 +
 +  * Last tested: 2024/03/31
 +
 +  wget -O ~/'Downloads/add-location-to-gnome-weather.sh' 'https://gitlab.com/Espionage724/scripts/-/raw/main/add-location-to-gnome-weather.sh?ref_type=heads' && chmod +x ~/'Downloads/add-location-to-gnome-weather.sh' && sh ~/'Downloads/add-location-to-gnome-weather.sh'
  
 ===== Hostname ===== ===== Hostname =====
Line 426: Line 369:
  
   * General -> [ ] Load previous databases on startup   * General -> [ ] Load previous databases on startup
 +  * Security -> [x] Use DuckDuckGo service to download website icons
  
 ==== Add Database Password to GNOME Keyring ==== ==== Add Database Password to GNOME Keyring ====
Line 433: Line 377:
   secret-tool store --label='KeePass' 'keepass' 'default'   secret-tool store --label='KeePass' 'keepass' 'default'
  
-===== mpv =====+===== Keybase =====
  
-  https://wiki.archlinux.org/index.php/mpv#High_quality_configurations+****
  
-  mkdir -p ~/'.config/mpv' && echo -e "profile=gpu-hq\nscale=ewa_lanczossharp\ncscale=ewa_lanczossharp\nvideo-sync=display-resample\ninterpolation\ntscale=oversample" | tee ~/'.config/mpv/mpv.conf' > '/dev/null' && cat ~/'.config/mpv/mpv.conf'+<code>run_keybase && sudo rm -'/etc/yum.repos.d/prerelease.keybase.io_rpm_basearch.repo'</code>
  
-===== NetworkManager =====+===== lm_sensors =====
  
-  * ''wifi.powersave'' can be ''2'' for disabled, or ''3'' for enabled +  sudo sensors-detect --auto
-  * :!: ''ethernet.cloned-mac-address=random'' breaks USB Tethering with iOS/iPhones+
  
-  sudo -e '/etc/NetworkManager/conf.d/99-custom.conf'+  sudo -e '/etc/sysconfig/lm_sensors'
  
-<code> +===== mpv =====
-[device-mac-randomization] +
-wifi.scan-rand-mac-address=yes+
  
-[connection-mac-randomization] +  mkdir -p ~/'.config/mpv' && nano ~/'.config/mpv/mpv.conf'
-ethernet.cloned-mac-address=random +
-wifi.cloned-mac-address=random+
  
-[connection] +<code> 
-wifi.powersave=2</code> +save-position-on-quit 
- +sub-auto=fuzzy 
-==== Broadcom ===+force-window=yes 
- +profile=gpu-hq 
-  * https://fedoraproject.org/wiki/Common_F30_bugs#broadcom-wl-mesh +scale=ewa_lanczossharp 
-  * https://bugzilla.redhat.com/show_bug.cgi?id=1703745#c56 +cscale=ewa_lanczossharp 
-  * Requires ''broadcom-wl'' to be installed +video-sync=display-resample 
- +interpolation 
-  sudo -e '/etc/NetworkManager/conf.d/99-custom.conf'+tscale=oversample</code>
  
 <code> <code>
-[device] +hwdec=vaapi 
-match-device=driver:wl +hwdec-codecs=all 
-wifi.scan-rand-mac-address=no +vo=dmabuf-wayland</code>
- +
-[connection] +
-wifi.powersave=2</code> +
- +
-=== Driver Reload === +
- +
-  * :!: ''wl'' is particularly picky on Fedora and usually when connecting to new APs, the driver needs outright reloaded +
- +
-  sudo modprobe -r 'wl' && sudo modprobe -i 'wl' && sync +
- +
-===== Laptop Power Management ===== +
- +
-  * See [[notes:laptop_power_management|Laptop Power Management]]+
  
 ===== Secure Shell ===== ===== Secure Shell =====
  
-  * See [[Clients:Secure Shell|Secure Shell]]+  * See [[clients:secure_shell|Client]] notes to generate/restore public key
  
-===== Solo Key =====+===== Drive Maintenance =====
  
-==== Information ====+==== XFS Scrub ====
  
-  * https://solokeys.com/ +  * [[https://wiki.archlinux.org/title/XFS#Online_metadata_checking_(scrub)|XFS - ArchWiki]]
-  * Usable as authentication for GDM and ''sudo''+
  
-==== PAM ====+  sudo dnf install 'xfsprogs-xfs_scrub' -y && sync
  
-=== Dependencies ===+  sudo systemctl enable 'xfs_scrub_all.timer' --now && sudo systemctl start 'xfs_scrub_all' && sync && sudo systemctl status 'xfs_scrub_all' -l
  
-**** +==== Trim ====
- +
-  sudo dnf install pamu2fcfg pam-u2f +
- +
-=== Centralized Key ===+
  
 **** ****
  
-  pamu2fcfg > ~/'u2f_keys' && sudo mv ~/'u2f_keys' '/etc/u2f_mappings'+  sudo systemctl enable 'fstrim.timer--now && sudo systemctl start 'fstrim&& sync && sudo systemctl status 'fstrim-l
  
-=== GDM ===+===== UTC =====
  
-  * Add to line 2, under the ''pam_selinux_permit.so'' entry+  * [[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 -e '/etc/pam.d/gdm-password'+  sudo timedatectl set-local-rtc '0'
  
-  auth sufficient pam_u2f.so authfile=/etc/u2f_mappings cue +==== Verify ====
- +
-=== sudo === +
- +
-  * Add to line 2, under the ''#%PAM-1.0'' line +
- +
-  sudo -e '/etc/pam.d/sudo' +
- +
-  auth sufficient pam_u2f.so authfile=/etc/u2f_mappings cue +
- +
-===== TRIM ===== +
- +
-==== Swap ==== +
- +
-  * Add ''discard'' after ''defaults'' for the ''swap'' mountpoint ((defaults,discard)) +
-  * According to the ''swapon'' man page, setting this in ''fstab'' is acceptable +
- +
-  sudo -e '/etc/fstab' +
- +
-  ,discard +
- +
-==== Service ====+
  
 **** ****
  
-  sudo systemctl enable 'fstrim.timer' --now && sudo systemctl start 'fstrim' && sync && sudo systemctl status 'fstrim' -l+  timedatectl | grep local
  
 ===== Wine ===== ===== Wine =====
Line 545: Line 448:
   * See [[notes:wine|Wine]]   * See [[notes:wine|Wine]]
  
-====== Computer-specific ======+===== Xorg/Wayland =====
  
-===== Nightwane =====+==== Display Settings ====
  
-==== Volume ====+  * This sets Full RGB and other options for a connected display (HDMI) 
 +  * See [[notes:proptest_full_rgb]] for more ports and examples 
 +  * This works on Wayland as well as GNOME on Xorg even with Wayland globally-disabled from ''custom.conf'' 
 +  * :!: The numbers ''103'' and after the ''connector'' change depending on the hardware and need checked from ''proptest'' on a Wayland session ((the current values are specific to a Dell Latitude 5591 and its onboard HDMI port))
  
-  * TODOChange where this is; no longer have this computer+  * Last updated2024/04/29
  
-  alsamixer +  sudo dnf install 'drm-utils' -y && sudo -'/etc/gdm/PostLogin/Default&& sudo restorecon ---'/etc/gdm/PostLogin/Default&& sudo chmod +'/etc/gdm/PostLogin/Default&& sync
- +
-==== Fan Control ==== +
- +
-  * TODO: Change where this is; it's not specific to this computer nor fan control +
- +
-  sudo dnf install 'lm_sensors' -y && sudo sensors-detect --auto +
- +
-==== Custom Resolution ==== +
- +
-=== Generate Modeline === +
- +
-  * 4k@60Hz CVT-RB +
-  * Fixes unstable HDMI at 4K@60Hz, and overly-bright colors on DisplayPort +
-  * :!: The ''grep'' here confirms the expected Modeline ((if grep reports nothing, use whatever is reported instead)) +
-  * :!: This cannot be used on Wayland currently +
-  * :!: This expects ''amdgpu'' DDX driver to be used ((''modesetting'' has a 4K RB resolution without any settings on Xorg)) +
- +
-  cvt --verbose --reduced '3840'2160' '60' | grep 'Modeline "3840x2160R"  533.00  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync' +
- +
-=== xorg.conf Snippet === +
- +
-  * :!: ''HDMI-A-0'' is used for the ''Identifier'' with the HDMI port on ''amdgpu'' +
- +
-  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'+
  
 <code> <code>
-Section "Monitor" +#!/bin/bash
-    Identifier      "HDMI-A-0" +
-    Modeline "3840x2160R"  533.00  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync +
-    Option          "PreferredMode" "3840x2160R" +
-EndSection</code>+
  
-===== Spinesnap =====+# Broadcast RGB (99) to Full (1) 
 +proptest -M 'i915' -D '/dev/dri/card'* '103' 'connector' '99' '1'
  
-  * :!: Using an AMD eGPU with a display attached doesn't seem to work reliably if the ''intel'' driver is being used ((for a very specific scenario, the Intel iGPU has to be active, manually set to use the ''intel'' Xorg DDX driver, an AMD GPU plugged into a Thunderbolt eGPU using the ''amdgpu'' Xorg DDX driver, with a 4K display plugged into it via HDMI)+# content type (107) to Game (4
-  * TODO: If ''intel'' offers no obvious benefit, remove the ''OutputClass'' section for it and let it default to ''modesetting''+proptest -M 'i915-D '/dev/dri/card''103' 'connector' '107' '4'
  
-  sudo dnf install xorg-x11-drv-intel xorg-x11-drv-amdgpu -y && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'+# Colorspace (106) to opRGB (7) 
 +proptest -M 'i915' -'/dev/dri/card'* '103' 'connector' '106' '7'
  
-<code> +# max bpc (108) to 8 
-Section "Monitor" +proptest -M 'i915' -D '/dev/dri/card'* '103' 'connector' '108' '8'
-    Identifier      "HDMI-A-0" +
-    Modeline "3840x2160R"  533.00  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync +
-    Option          "PreferredMode" "3840x2160R" +
-EndSection+
  
-Section "OutputClass" +# End</code>
-    Identifier  "Intel Graphics" +
-    MatchDriver "i915" +
-    Driver      "intel" +
-    Option      "DRI"       "3" +
-    Option      "TearFree"  "0" +
-EndSection+
  
-Section "OutputClass" +====== Firefox ======
-    Identifier  "AMD Graphics" +
-    MatchDriver "amdgpu" +
-    Driver      "amdgpu" +
-    Option      "DRI"       "3" +
-    Option      "TearFree"  "0" +
-EndSection</code>+
  
-===== Deep Color =====+  * See [[notes:firefox|Firefox]] if old configuration is needed, otherwise use Firefox Sync 
 +  * https://wiki.archlinux.org/title/Firefox/Privacy
  
-  * The lack-of quotes around ''30'' is intentional and required syntax +===== about:config =====
-  * :!: This may cause minor issues with programs not expecting 30-bit color ((GpuTest's fur ring doesn't render right, RS's NXT client's splash screen is gray)) +
-  * :!: This can cause games in Wine to not start under some circumstances ((FFXIV crashes on start-up due to a DirectX error)) +
-  * There is no known benefit to enabling this as of 2019/10/22+
  
-  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'+  * See [[notes:firefox#aboutconfig|about:config]] for more info 
 +  * :!: ''layout.frame_rate'' ideally needs set if using Wayland and above 60Hz ((check ''Target Frame Rate'' in ''about:support''))
  
-<code> +  layout.frame_rate
-Section "Screen" +
-    Identifier      "Deep Color Screen" +
-    DefaultDepth    30 +
-EndSection</code>+
  
-===== Graphics xorg.conf =====+  extensions.screenshots.disabled
  
-==== intel ====+  extensions.pocket.enabled
  
-  sudo dnf install 'xorg-x11-drv-intel' -y && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'+===== Test =====
  
-<code> +  * :!: 2024/05/01: ''gfx.x11-egl.force-disabled'' sounds ideal on Xorg sessions, but EGL is likely required for Wayland
-Section "OutputClass" +
-    Identifier  "Intel Graphics" +
-    MatchDriver "i915" +
-    Driver      "intel" +
-    Option      "DRI"       "3" +
-    Option      "TearFree"  "0" +
-EndSection</code>+
  
-==== amdgpu ==== +  gfx.x11-egl.force-disabled
- +
-  * :!: ''ShadowPrimary'' set to ''on'' caused GNOME not to log-in +
- +
-  sudo dnf install 'xorg-x11-drv-amdgpu' -y && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' +
- +
-<code> +
-Section "OutputClass" +
-    Identifier  "AMD Graphics" +
-    MatchDriver "amdgpu" +
-    Driver      "amdgpu" +
-    Option      "DRI"       "3" +
-    Option      "TearFree"  "0" +
-EndSection</code> +
- +
-==== radeon ==== +
- +
-  * Expects pre-SI GPUs ((HD6000 series and lower, and non-SI HD7000 series)) +
-  * For SI, CIK, and newer GPUs, use ''amdgpu'', along with enabling ''si_support'' and ''cik_support'' respectively for the ''amdgpu'' kernel module ((see ''modinfo -p amdgpu'')) +
-  * :!: This was changed to a new syntax and untested as of 2019/08/23 +
- +
-  sudo dnf install 'xorg-x11-drv-ati' -y && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' +
- +
-<code> +
-Section "OutputClass" +
-    Identifier  "AMD Graphics" +
-    MatchDriver "radeon" +
-    Driver      "radeon" +
-    Option      "DRI"               "3" +
-    Option      "SwapbuffersWait"   "0" +
-    Option      "TearFree"          "0" +
-    Option      "AccelMethod"       "EXA" +
-EndSection</code> +
- +
-====== Mozilla Firefox ====== +
- +
-===== Settings ===== +
- +
-==== Environment Variables ==== +
- +
-  * Enables hardware acceleration, use of WebRenderer, and smooth-scrolling +
-  * :!: WebRenderer requires the previous ''MOZ_ACCELERATED'' variable as well +
- +
-  echo -e 'export MOZ_ACCELERATED=1\nexport MOZ_WEBRENDER=1\nexport MOZ_USE_XINPUT2=1' | sudo tee '/etc/profile.d/firefox-hwaccel.sh' > '/dev/null' && cat '/etc/profile.d/firefox-hwaccel.sh' +
- +
-  sudo -e '/etc/profile.d/firefox-hwaccel.sh' +
- +
-==== Default Profile ==== +
- +
-  rm -fv '/tmp/profiles.ini' && nano '/tmp/profiles.ini' && sed -i 's/'CHANGEME'/'$USER'/g' '/tmp/profiles.ini' +
- +
-<code> +
-[General] +
-StartWithLastProfile=1 +
- +
-[Profile0] +
-Name=default +
-IsRelative=1 +
-Path=CHANGEME +
-Default=1</code> +
- +
-==== user.js ==== +
- +
-  * Last updated: 2019/10/22 +
- +
-  rm -fv '/tmp/user.js' && nano '/tmp/user.js' +
- +
-<code> +
-/*********** +
- * General * +
- ***********/ +
- +
-user_pref("extensions.screenshots.disabled", true); +
-user_pref("reader.parse-on-load.enabled", false); +
- +
-user_pref("media.mediasource.experimental.enabled", true); +
-user_pref("media.mediasource.ignore_codecs", true); +
-user_pref("media.autoplay.enabled", false); +
- +
-user_pref("webgl.disabled", true); +
-user_pref("webgl.enable-webgl2", false); +
-user_pref("accessibility.force_disabled", 1); +
-user_pref("mousewheel.min_line_scroll_amount", 40); +
-user_pref("browser.tabs.drawInTitlebar", true); +
-user_pref("network.standard-url.escape-utf8", false); +
- +
-/*********** +
- * Privacy * +
- ***********/ +
- +
-user_pref("security.tls.version.min", 2); +
-user_pref("security.ssl.require_safe_negotiation", true); +
-user_pref("security.ssl.treat_unsafe_negotiation_as_broken", true); +
-user_pref("security.OCSP.require", true); +
-user_pref("security.cert_pinning.enforcement_level", 2); +
-user_pref("security.ssl3.rsa_des_ede3_sha", false); +
-user_pref("security.ssl.enable_false_start", false); +
- +
-/******* +
- * U2F * +
- *******/ +
- +
-user_pref("security.webauth.u2f", true); +
- +
-/******* +
- * END * +
- *******/</code> +
- +
-=== VPN === +
- +
-  * :!: Add if using a VPN in order to prevent local IP address leaking +
-  * :!: IPv6 is disabled in order to prevent WebRTC from grabbing an IPv6 address even though NetworkManager has it disabled... +
-  * :!: ''media.peerconnection.enabled'' disables WebRTC +
- +
-<code> +
-/*********** +
- * Privacy * +
- ***********/ +
- +
-user_pref("network.dns.disableIPv6", true); +
-user_pref("media.peerconnection.enabled", false);</code> +
- +
-==== Apply Settings ==== +
- +
-  * ''Path'' should report the current user's username, and the text ''Custom Stuff'' should be visible +
-  * :!: If Firefox doesn't open automatically, ''firefox -p default'' must be ran the first time Firefox is started after this command +
- +
-  ls '/tmp/profiles.ini' '/tmp/user.js' && pkill 'firefox' && rm -Rfv ~/'.mozilla' && sync && mkdir -p ~/'.mozilla/firefox/'$USER && mv '/tmp/profiles.ini' ~/'.mozilla/firefox/profiles.ini' && mv '/tmp/user.js' ~/'.mozilla/firefox/'$USER'/user.js' && sync && cat ~/'.mozilla/firefox/profiles.ini' | grep $USER && cat ~/'.mozilla/firefox/'$USER'/user.js' | grep 'Custom Stuff' && sleep '1' && sync || firefox -p 'default'+
  
 ===== Extensions ===== ===== Extensions =====
  
-==== Download ==== +  [[https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/|uBlock Origin]] 
- +  * [[https://addons.mozilla.org/en-US/firefox/addon/decentraleyes/|Decentraleyes]] 
-  Decentraleyes +  * [[https://addons.mozilla.org/en-US/firefox/addon/privacy-badger17/|Privacy Badger]]
-  * HTTPS Everywhere +
-  * Privacy Possum +
-  * Cookie AutoDelete +
-  * uBlock Origin +
- +
-  gio open 'https://addons.mozilla.org/en-US/firefox/addon/decentraleyes/versions' && gio open 'https://www.eff.org/https-everywhere' && gio open 'https://addons.mozilla.org/en-US/firefox/addon/privacy-possum/versions' && gio open 'https://addons.mozilla.org/en-US/firefox/addon/cookie-autodelete/versions' && gio open 'https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/versions' +
- +
-==== Cookie AutoDelete ==== +
- +
-  * [xEnable Automatic Cleaning? Delay Before Cleaning +
-  * [x] Enable Cleanup on Domain Change +
-  * [ ] Enable Cleanup Log and Counter +
-  * [ ] Show Notification After Cookie Cleanup +
-  * [x] Clean Cookies from Open Tabs on Startup +
-  * [xLocalstorage Cleanup (Firefox 58+)+
  
 ==== uBlock Origin ==== ==== uBlock Origin ====
  
-=== Settings ===+==== Filters list ====
  
-  [x] Prevent WebRTC from leaking local IP addresses +****
- +
-=== Filter lists === +
- +
-  [ ] Ads -> EasyList ((uncheck; included in ''Fanboy Ultimate List'')) +
-  [ ] Privacy -> EasyPrivacy ((uncheck; included in ''Fanboy Ultimate List'')) +
- +
-  Multipurpose -> [x] Dan Pollock's hosts file +
-  * Multipurpose -> [x] hpHost's Ad and tracking servers +
-  * Multipurpose -> [x] MVPS HOSTS +
- +
-  * Custom -> [x] Import +
- +
-=== Custom 3rd-party filters === +
- +
-  * Last updated: 2018/11/23+
  
 <code> <code>
 https://www.fanboy.co.nz/fanboy-problematic-sites.txt https://www.fanboy.co.nz/fanboy-problematic-sites.txt
 https://www.fanboy.co.nz/r/fanboy-ultimate.txt https://www.fanboy.co.nz/r/fanboy-ultimate.txt
-https://www.fanboy.co.nz/fanboy-antifacebook.txt +https://www.fanboy.co.nz/fanboy-cookiemonster_ubo.txt 
-https://www.fanboy.co.nz/fanboy-antifonts.txt +https://www.fanboy.co.nz/enhancedstats.txt</code>
-https://www.fanboy.co.nz/fanboy-cookiemonster.txt +
-https://raw.githubusercontent.com/ryanbr/fanboy-adblock/master/popads-domains-list.txt +
-https://raw.githubusercontent.com/ryanbr/fanboy-adblock/master/fake-news.txt</code>+
  
-===== Testing Sites ===== +==== My filters ====
- +
-  * https://www.youtube.com/html5 +
-  * https://ipx.ac +
-  * https://decentraleyes.org/test/ +
-  * https://panopticlick.eff.org/ +
-  * https://browserleaks.com/ +
-  * https://speedof.me/ +
- +
-====== Notable Folders and Commands ====== +
- +
-===== Extract ISO ===== +
- +
-  * ''D'' is the destination you want the extracted files to go +
-  * ''x'' is the ISO you want to extract files from +
-  * No space after the ''-o'' flag is intentional +
-  * This is primarily useful for copying Windows ISO images to a FAT32 flash drive +
- +
-  7z x -o'D' -y x +
- +
-  7z x -o'/run/media/espionage724/LTSC 2019' -y '/home/espionage724/Downloads/en_windows_10_enterprise_ltsc_2019_x64_dvd_be3c8ffb.iso' && sync && sync +
- +
-===== youtube-dl ===== +
- +
-  * https://ytdl-org.github.io/youtube-dl/index.html +
- +
-==== Download ====+
  
 **** ****
  
-  rm -f '/tmp/youtube-dl' && wget -O '/tmp/youtube-dl' 'https://yt-dl.org/downloads/latest/youtube-dl' && chmod +x '/tmp/youtube-dl'+<code> 
 +! 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
  
-==== Show Formats ====+! End</code>
  
-  * Change ''x'' to a URL+===== DNS over HTTPS =====
  
-  '/tmp/youtube-dl' --list-formats x+  * [[notes:dns_servers#quad9|Quad9]], see [[notes:dns_servers]] for other addresses
  
-==== Download Media ====+<code>https://dns.quad9.net/dns-query</code>
  
-  * Change ''x'' to a URL +====== Server ======
-  * ''bestaudio'' can be changed to ''bestvideo'' for just video, or ''best'' for best video with audio+
  
-  '/tmp/youtube-dl' --extract-audio --format 'bestaudio' x+  * For workstations that run servers as a secondary directive 
 +  * For headless servers, see [[distros:fedora_server|Fedora Server]]
  
-=== M4A Audio === +===== Enable SSH =====
- +
-  * Ideally for if iOS devices will be involved +
- +
-  '/tmp/youtube-dl' --extract-audio --format 'bestaudio' --audio-format 'm4a'+
- +
-=== MP3 Audio ===+
  
 **** ****
  
-  '/tmp/youtube-dl' --extract-audio --format 'bestaudio' --audio-format 'mp3x+  sudo systemctl enable --now 'sshd'
  
-===== Shortcuts =====+===== Automatic Updates =====
  
-  /usr/share/applications+==== Service ====
  
-  ~/.local/share/applications+  sudo -e '/etc/systemd/system/fedora-up.service'
  
-===== Icons =====+<code> 
 +[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</code>
  
-  /usr/share/icons/hicolor+===== Timer =====
  
-  ~/.local/share/icons/hicolor+  * 03:00 Oak
  
-===== Anaconda Module Blacklists ===== +  sudo -e '/etc/systemd/system/fedora-up.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'fedora-up.timer' --now
- +
-**** +
- +
-  sudo -e '/etc/modprobe.d/anaconda-blacklist.conf' +
- +
-===== YUM/DNF Repos ===== +
- +
-**** +
- +
-  gio open '/etc/yum.repos.d' +
- +
-===== DNF History ===== +
- +
-==== Transaction IDs ==== +
- +
-**** +
- +
-  sudo dnf history +
- +
-==== Undo ==== +
- +
-  * Change ''x'' to a transaction ID found above +
- +
-  sudo dnf history undo x +
- +
-===== GPG Keys ===== +
- +
-==== Check Keys ==== +
- +
-**** +
- +
-  rpm -q gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n' +
- +
-==== Remove Keys ==== +
- +
-**** +
- +
-  sudo rpm -e x +
- +
-===== Re-generate Thumbnails ===== +
- +
-**** +
- +
-  rm -Rf ~/'.cache/thumbnails' +
- +
-===== List GNOME gsettings ===== +
- +
-  * Change ''x'' to schema or omit it to show all settings +
- +
-  gsettings list-recursively 'x' +
- +
-===== GNOME Software Maintenance ===== +
- +
-**** +
- +
-  pkcon -c '1' refresh && pkcon update +
- +
-===== fstrim ===== +
- +
-**** +
- +
-  sudo fstrim --verbose --all +
- +
-===== SELinux Re-label ===== +
- +
-**** +
- +
-  sudo touch '/.autorelabel' +
- +
-===== GNOME Monitors Reset ===== +
- +
-**** +
- +
-  rm -f ~/'.config/monitors.xml' ~/'.config/monitors.xml~' +
- +
-===== PulseAudio Reset ===== +
- +
-**** +
- +
-  rm -f ~/'.config/pulse/'+
- +
-===== Xorg Debug ===== +
- +
-  journalctl -e _COMM='gdm-x-session' +
- +
-  gio open ~/'.local/share/xorg/Xorg.1.log' +
- +
-===== Verify DRI3 ===== +
- +
-**** +
- +
-  LIBGL_DEBUG='verbose' glxinfo | grep 'libgl' +
- +
-===== GpuTest ===== +
- +
-  * https://www.geeks3d.com/gputest/ +
- +
-==== Execute ==== +
- +
-=== HDTV === +
- +
-  * 1280x720 +
- +
-  wget -O '/tmp/GpuTest_Linux_x64.zip' 'http://www.ozone3d.net/gputest/dl/GpuTest_Linux_x64_0.7.0.zip' && unzip '/tmp/GpuTest_Linux_x64.zip' -d '/tmp' && cd '/tmp/GpuTest_Linux_x64_'* && ./GpuTest /test='fur' /width='1280' /height='720' +
- +
-  cd '/tmp/GpuTest_Linux_x64_'* && ./GpuTest /test='fur' /width='1280' /height='720' +
- +
-  /fullscreen /benchmark /benchmark_duration_ms='15000' +
- +
-=== FHD === +
- +
-  * 1920x1080 +
- +
-  wget -O '/tmp/GpuTest_Linux_x64.zip' 'http://www.ozone3d.net/gputest/dl/GpuTest_Linux_x64_0.7.0.zip' && unzip '/tmp/GpuTest_Linux_x64.zip' -d '/tmp' && cd '/tmp/GpuTest_Linux_x64_'* && ./GpuTest /test='fur' /width='1920' /height='1080' +
- +
-  cd '/tmp/GpuTest_Linux_x64_'* && ./GpuTest /test='fur' /width='1920' /height='1080' +
- +
-  /fullscreen /benchmark /benchmark_duration_ms='15000' +
- +
-=== UHDTV1 === +
- +
-  * 3840x2160 +
- +
-  wget -O '/tmp/GpuTest_Linux_x64.zip' 'http://www.ozone3d.net/gputest/dl/GpuTest_Linux_x64_0.7.0.zip' && unzip '/tmp/GpuTest_Linux_x64.zip' -d '/tmp' && cd '/tmp/GpuTest_Linux_x64_'* && ./GpuTest /test='fur' /width='3840' /height='2160' +
- +
-  cd '/tmp/GpuTest_Linux_x64_'* && ./GpuTest /test='fur' /width='3840' /height='2160' +
- +
-  /fullscreen /benchmark /benchmark_duration_ms='15000' +
- +
-==== Cleanup ==== +
- +
-**** +
- +
-  rm -Rf '/tmp/GpuTest_Linux_'* && cd ~ && sync +
- +
-===== Show Sensors ===== +
- +
-**** +
- +
-  sudo apt install 'lm-sensors' -y && sudo sensors-detect --auto && sudo watch -n0.1 sensors +
- +
-===== Show CPU Frequency ===== +
- +
-  grep 'MHz' '/proc/cpuinfo' +
- +
-  watch -n 0.1 grep \'cpu MHz\' '/proc/cpuinfo' +
- +
-===== OpenSSL Supported Ciphers ===== +
- +
-**** +
- +
-  openssl ciphers -v | awk '{print $2}' | sort | uniq +
- +
-===== Partition Information ===== +
- +
-  * Both commands do the same things +
- +
-  df -hT +
- +
-  df --human-readable --print-type +
- +
-===== Encryption Information ===== +
- +
-**** +
- +
-  sudo cryptsetup -v status '/dev/dm-0' +
- +
-===== ATA Secure Erase ===== +
- +
-  * :!: All ''hdparm'' commands below assume actions to be performed on ''/dev/sda'' +
- +
-==== Preparation ==== +
- +
-  sudo dnf install 'hdparm' && sync +
- +
-  sudo hdparm -I '/dev/sda' +
- +
-  systemctl suspend +
- +
-==== ATA Secure Erase ==== +
- +
-  sudo blkdiscard --verbose '/dev/sda' +
- +
-  sudo hdparm --user-master u --security-set-pass 'x' '/dev/sda' && sudo hdparm --user-master u --security-erase-enhanced 'x' '/dev/sda' && sync +
- +
-  sudo hdparm --user-master u --security-set-pass 'x' '/dev/sda' && sudo hdparm --user-master u --security-erase 'x' '/dev/sda' && sync +
- +
-===== NVMe Erase ===== +
- +
-  * NVMe Erase from the start page lands here and I usually use a Ubuntu LiveUSB to do this, hence the ''apt'' command +
- +
-  sudo apt install 'nvme-cli' -y && sync +
- +
-  sudo dnf install 'nvme-cli' -y && sync +
- +
-  sudo nvme format '/dev/nvme0' --reset --ses='1' --pil='0' --pi='0' --ms='0' && sync +
- +
-===== Clean EFI Variables ===== +
- +
-  * :!: Could potentially cause a firmware brick or other issues with improper EFI implementations, use at own risk ((personally tested fine on several Acer and Dell computers)) +
-  * Safer way is to use ''efibootmgr'' to remove boot entries individually +
- +
-  sudo rm -f '/sys/firmware/efi/efivars/'* || sync && sudo efibootmgr -v +
- +
-===== RAID ===== +
- +
-==== Controller Details ==== +
- +
-**** +
- +
-  sudo mdadm --detail-platform +
- +
-==== Create Software RAID ==== +
- +
-  * :?: Came from old notes; I **assume** this worked at some point, but in any case, the syntax looks nice :p +
- +
-  sudo mdadm --create '/dev/md0' --name='RAID' --level='0' --raid-devices='3' '/dev/sda' '/dev/sdb' '/dev/sdc' --verbose +
- +
-===== VGA Switcheroo Power States ===== +
- +
-  * https://nouveau.freedesktop.org/wiki/Optimus +
- +
-  sudo cat '/sys/kernel/debug/vgaswitcheroo/switch' +
- +
-===== ACPI Tables ===== +
- +
-  * In ''dsdt.dsl'', look for ''_OSI'' values, along with ''Windows'' and ''Linux'' +
- +
-  sudo dnf install 'acpica-tools' +
- +
-  sudo cp --force '/sys/firmware/acpi/tables/DSDT' ~/'dsdt.dat' +
- +
-  cd ~ && iasl -d ~/'dsdt.dat' +
- +
-  gio open ~/'dsdt.dsl' +
- +
-  sudo dnf remove 'acpica-tools' && sync +
- +
-===== Display EDID Info ===== +
- +
-  * https://unix.stackexchange.com/a/114398 +
- +
-  sudo dnf install 'monitor-edid' +
- +
-  monitor-edid +
- +
-===== Custom Resolutions ===== +
- +
-==== Generate Modeline ==== +
- +
-  * Use ''--reduced'' only for LCD/Non-CRT displays, and only as-needed ((useful for reducing amount of bandwidth over cables, particularly in-case of unstable 4k@60Hz set-ups)) +
-  * Syntax is ''horizontal'' (width), ''vertical'' (height) and ''refresh rate'' +
- +
-  cvt '3840' '2160' '60' +
- +
-  cvt --reduced '3840' '2160' '60' +
- +
-<code>--reduced</code> +
- +
-==== Temporarily Apply ==== +
- +
-  * Changes are lost after reboot +
-  * Values after ''--newmode'' are from the above generate command, and is everything after ''Modeline'' +
- +
-  xrandr --newmode "3840x2160R"  533.00  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync +
- +
-  xrandr --addmode 'HDMI-A-0' '3840x2160R' +
- +
-  xrandr --output 'HDMI-A-0' --mode '3840x2160R' +
- +
-=== Verify === +
- +
-**** +
- +
-  xrandr --verbose | grep *current +
- +
-==== Permanently Apply ==== +
- +
-  * ''Identifier'' is the name of the port on the GPU the display is connected to +
-  * ''Modeline'' is from the above generate command, including the text ''Modeline'' +
-  * ''PreferredMode'' is the custom resolution name generated+
  
 <code> <code>
-Section "Monitor" +[Unit] 
-    Identifier  "HDMI-A-0" +Description=Software Package Maintenance and Updater 
-    Modeline x +After=network-online.target 
-    Option      "PreferredMode" "3840x2160R" +Wants=network-online.target
-EndSection</code>+
  
-===== Backlight =====+[Timer] 
 +OnCalendar=*-*-* 03:00:00 
 +Persistent=true
  
-==== Notes ====+[Install] 
 +WantedBy=timers.target</code>
  
-  * The following commands with an asterisk expect only one backlight controller at ''/sys/class/backlight'' +====== Notable Folders and Commands ======
-  * This was only tested on one laptop with ''intel_backlight'' +
-  * See [[#power_management|Power Management notes]] on how to add backlight changes to a udev script +
-  * See [[https://wiki.archlinux.org/index.php/backlight|backlight]] for more details +
- +
-==== Controller Name ===+
- +
-**** +
- +
-  ls '/sys/class/backlight' +
- +
-==== Query Current Brightness ==== +
- +
-**** +
- +
-  cat '/sys/class/backlight/'*'/brightness' +
- +
-==== Query Max Brightness ==== +
- +
-**** +
- +
-  cat '/sys/class/backlight/'*'/max_brightness' +
- +
-==== Set Custom Brightness ==== +
- +
-  * Change ''376'' to desired brightness +
-  * Desired brightness **must** be under ''max_brightness'' value +
- +
-  echo "376" | sudo tee '/sys/class/backlight/'*'/brightness' > '/dev/null' +
- +
-==== Set Max Brightness ==== +
- +
-**** +
- +
-  echo "$(cat '/sys/class/backlight/'*'/max_brightness')" | sudo tee '/sys/class/backlight/'*'/brightness' > '/dev/null' +
- +
-===== Intel GuC Firmware ===== +
- +
-  sudo cat '/sys/kernel/debug/dri/0/i915_guc_info' +
- +
-  sudo cat '/sys/kernel/debug/dri/0/i915_guc_load_status' +
- +
-===== Hyper-threading Information ===== +
- +
-**** +
- +
-  grep -e "processor" -e "core id" -e "^$" /proc/cpuinfo +
- +
-===== Optimal GCC compiler flags ===== +
- +
-**** +
- +
-  gcc -v -E -x c -march=native -mtune=native - < /dev/null 2>&1 | grep cc1 | perl -pe 's/ -mno-\S+//g; s/^.* - //g;' +
- +
-====== Privacy ====== +
- +
-===== Clear Terminal History ===== +
- +
-**** +
- +
-  history -cw +
- +
-===== Create 7z Password Archive ===== +
- +
-  * Change ''7ZIPNAME'' in ''7ZIPNAME.7z'' to the desired archive name +
-  * Change ''PASS'' in ''-pPASS'' to the desired password +
-  * Change ''x'' to the file or folder to add to the archive +
- +
-  7za a '7ZIPNAME.7z' -p'PASS' 'x' +
- +
-  7za a 'x.7z' -p'x' 'x' +
- +
-===== oathtool ===== +
- +
-  * ''x'' is a secret without ''&digits=6'' +
- +
-  sudo dnf install 'oathtool' +
- +
-  oathtool --totp -b 'x' +
- +
-===== Remove EXIF data =====+
  
-  sudo dnf install 'perl-Image-ExifTool'+  * See [[notes:misc_linux]]
  
-  exiftool -all= *.* -overwrite_original 
/var/www/wiki/data/pages/distros/fedora_workstation_gnome.txt · Last modified: 2024/05/02 03:13 by Sean Rhone