Both sides previous revisionPrevious revisionNext revision | Previous revision |
distros:opensuse_tumbleweed_gnome [2024/04/15 23:03] – Remove XFS Scrub Sean Rhone | distros:opensuse_tumbleweed_gnome [2024/06/11 07:37] (current) – Sean Rhone |
---|
===== DVD + Xfce Live ===== | ===== DVD + Xfce Live ===== |
| |
* Downloads the latest DVD and Xfce Live images with ''aria2c'' | * Downloads the latest DVD (with SHA256 compare) and Xfce Live images with ''aria2c'' |
| |
cd ~/'Downloads' && aria2c 'https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-XFCE-Live-x86_64-Current.iso' && aria2c 'http://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso' && aria2c 'https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso.sha256' && sha256sum ~/'Downloads/openSUSE-Tumbleweed-DVD-x86_64-'*'-Media.iso' && cat ~/'Downloads/openSUSE-Tumbleweed-DVD-x86_64-'*'-Media.iso.sha256' && sync | cd ~/'Downloads' && aria2c 'https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso.sha256' && aria2c 'http://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso' && aria2c 'https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-XFCE-Live-x86_64-Current.iso' && sha256sum ~/'Downloads/openSUSE-Tumbleweed-DVD-x86_64-'*'-Media.iso' && cat ~/'Downloads/openSUSE-Tumbleweed-DVD-x86_64-'*'-Media.iso.sha256' && sync |
| |
===== DVD ===== | ===== DVD ===== |
====== Installation Notes ====== | ====== Installation Notes ====== |
| |
* ''EFI/opensuse/grubx64.efi'' ((EFI file to boot and in the case of some Acer laptops, add to SecureBoot trust; doesn't matter if SecureBoot is enabled or not)) | * :?: 2016: ''EFI/opensuse/grubx64.efi'' ((EFI file to boot and in the case of some Acer laptops, add to SecureBoot trust; doesn't matter if SecureBoot is enabled or not)) |
| |
===== Partitioning ===== | ===== Partitioning ===== |
| |
- XFS | - :!: ext4 or ext2 ''/'' ((XFS doesn't support ''nobarrier'')) |
- No separate ''/home'' | - No separate ''/home'' |
- No separate ''swap'' | - :!: Separate ''swap'' with suspend resize |
| |
| ===== Boot Loader ===== |
| |
| * :!: 2024/05/18: systemd-boot doesn't delete old ''initrd''s automatically, doesn't handle typewriter apostrophes, doesn't support ''dracut.conf'' settings, and doesn't seem faster than GRUB |
| |
====== PackageKit ====== | ====== PackageKit ====== |
* PackageKit is an long-standing, consistent annoyance when using ''zypper'' at random times | * PackageKit is an long-standing, consistent annoyance when using ''zypper'' at random times |
* This uninstalls it, and prevents it from being automatically re-installed | * This uninstalls it, and prevents it from being automatically re-installed |
* :!: This was //still// necessary as of 2024/04/15 | * :!: This was //still// necessary as of 2024/05/06 |
| |
sudo systemctl stop 'packagekit' && sudo zypper remove 'PackageKit' && sync | sudo systemctl stop 'packagekit' && sudo zypper remove 'PackageKit' && sync |
**** | **** |
| |
sudo zypper install evolution filezilla foliate gbrainy gimp google-noto-*-fonts gnome-extensions gstreamer-plugin-openh264 keepassxc libreoffice mpv transmission-gtk rhythmbox android-tools aria2 binutils flashrom hdparm htop icoutils nano openssl-1_1 p7zip-full secret-tool sensors unar wget xrandr yt-dlp | sudo zypper install evolution filezilla foliate gbrainy gimp google-noto-*-fonts gnome-extensions gstreamer-plugin-openh264 keepassxc libreoffice mpv transmission-gtk rhythmbox android-tools aria2 binutils chrony flashrom hdparm htop icoutils libnotify-tools nano openssl-1_1 7zip secret-tool sensors unar wget xrandr yt-dlp |
| |
===== Intel ===== | ===== Intel ===== |
| |
**** | * AMD CPUs have ''ucode-amd'' |
| |
ucode-intel intel-media-driver | ucode-intel intel-media-driver intel-gpu-tools |
| |
===== Keybase ===== | ===== Keybase ===== |
===== Keyboard Shortcuts ===== | ===== Keyboard Shortcuts ===== |
| |
gnome-terminal | kgx |
| |
bash -c "secret-tool lookup 'keepass' 'default' | keepassxc --pw-stdin ~/'Documents/keepass.kdbx'" | bash -c "secret-tool lookup 'keepass' 'default' | keepassxc --pw-stdin ~/'Documents/keepass.kdbx'" |
| |
gnome-terminal --command "sudo sh -c 'zypper clean --all && zypper refresh --force --services && zypper dist-upgrade --details --allow-downgrade --allow-name-change --allow-arch-change --allow-vendor-change && sync && flatpak update && sync && fstrim --all --verbose && sync && read -n '1' -s -r -p 'Done' && sleep '2''" | kgx --command="sudo sh -c 'zypper clean --all && zypper refresh --force --services && zypper dist-upgrade --details --allow-downgrade --allow-name-change --allow-arch-change --allow-vendor-change && sync && flatpak update && sync && fstrim --all --verbose && sync && read -n '1' -s -r -p 'Done''" |
| |
==== Keys ==== | ==== Keys ==== |
| |
* See [[Information:Internet Radio|Internet Radio]] | * See [[Information:Internet Radio|Internet Radio]] |
| |
===== Terminal ===== | |
| |
* Colors -> Built-in schemes: GNOME dark | |
| |
===== Dell Fan Profile ===== | ===== Dell Fan Profile ===== |
sudo zypper install -y 'python3-smbios-utils' && sudo smbios-thermal-ctl --set-thermal-mode='performance' && sudo zypper remove --clean-deps -y 'python3-smbios-utils' | sudo zypper install -y 'python3-smbios-utils' && sudo smbios-thermal-ctl --set-thermal-mode='performance' && sudo zypper remove --clean-deps -y 'python3-smbios-utils' |
| |
===== GRUB ===== | ===== Kernel Options ===== |
| |
| ==== Intel Perf Counters ==== |
| |
| * https://wiki.archlinux.org/title/intel_graphics#Enable_performance_support |
| * ''dev.i915.perf_stream_paranoid = 0'' |
| |
| 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' | grep 'dev.i915.perf_stream_paranoid = 0' |
| |
| ==== Magic SysRq key ==== |
| |
| * https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html |
| * ''kernel.sysrq = 1'' |
| |
| echo 'kernel.sysrq = 1' | sudo tee '/etc/sysctl.d/99-sysrq.conf' > '/dev/null' && cat '/etc/sysctl.d/99-sysrq.conf' |
| |
| sudo sysctl 'kernel.sysrq' |
| |
| ==== Swappiness ==== |
| |
| * ''vm.swappiness = 0'' |
| |
| echo 'vm.swappiness = 0' | sudo tee '/etc/sysctl.d/99-swappiness.conf' > '/dev/null' && cat '/etc/sysctl.d/99-swappiness.conf' |
| |
| sudo sysctl 'vm.swappiness' | grep 'vm.swappiness = 0' |
| |
| ===== 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 |
| |
| <code> |
| compress="cat" |
| do_strip="yes" |
| aggressive_strip="yes" |
| hostonly="yes" |
| hostonly_mode="strict" |
| fileloglvl="0" |
| sysloglvl="0" |
| stdloglvl="0"</code> |
| |
| ==== Undo ==== |
| |
| **** |
| |
| sudo rm -f '/etc/dracut.conf.d/99-custom.conf' && sudo dracut --force --regenerate-all && sync |
| |
| ===== Boot Loader ===== |
| |
==== Config ==== | ==== Config ==== |
==== Spinesnap ==== | ==== Spinesnap ==== |
| |
* Last updated: 2024/04/15 | * Last updated: 2024/05/18 with GRUB |
| |
<code>threadirqs nohz='off' acpi_osi='Linux' pci='pcie_bus_perf,realloc,pcie_scan_all,big_root_window' video='HDMI-A-1:1920x1080@74' i915.enable_guc='3' reboot='pci'</code> | <code>preempt='none' nohz='off' acpi_osi='Linux' i915.enable_dc='0' i915.enable_fbc='0' i915.enable_psr='0' i915.enable_hangcheck='0' i915.panel_use_ssc='0' i915.nuclear_pageflip='1' i915.request_timeout_ms='200000' i915.enable_guc='3' pcie_ports='native' pci='pcie_bus_perf,realloc,pcie_scan_all,big_root_window' pcie_aspm='off' video='HDMI-A-1:1920x1080MR@75' reboot='pci' idle='halt' usbhid.quirks='0x1b1c:0x1b75:0x20000408' usbcore.quirks='1b1c:1b75:gn'</code> |
| |
| === Dock Ethernet === |
| |
| * https://forum.proxmox.com/threads/problem-with-usb-network-card-asix-ax88179_178a-driver-usb-2-2-usb-disconnect.126741/ |
| * https://forums.lenovo.com/t5/Other-Linux-Discussions/USB-C-to-ethernet-adaptors-disconnect-on-irregular-interval/m-p/5106995 |
| * :!: 2024/06/01: AX88179 on Windows 10 is an absolute unstable nightmare regardless of all driver-exposed power-saving and offloading settings disabled |
| |
| usbcore.autosuspend=-1 |
| |
| usbcore.quirks=0bda:8156:k |
| |
| usbcore.quirks=17ef:720c:k |
| |
| USB\VID_0B95&PID_1790&REV_0200 |
| |
===== GNOME ===== | ===== GNOME ===== |
| |
| ==== Disable Wayland ==== |
| |
| * :!: 2023/07/23: It's been the cause of **far** too many issues and solving nothing while doing it |
| |
| * Last tested: 2024/05/17 |
| |
| <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> |
| |
| <code>sudo -e '/etc/gdm/custom.conf'</code> |
| |
| ==== Force evdev ==== |
| |
| * See [[notes:xorg.conf_snippets#evdev|evdev]] |
| * Last tested: 2024/05/17 |
| |
==== Extensions ==== | ==== Extensions ==== |
* Notably useful for setting a laptop's built-in screen as disabled for the log-in screen while used in a dock configuration | * 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' | sudo cp --remove-destination ~/'.config/monitors.xml' ~gdm/'.config/monitors.xml' && sudo chown 'gdm':'gdm' ~gdm/'.config/monitors.xml' |
| |
=== Undo === | === Undo === |
=== All-in-one === | === All-in-one === |
| |
* Last updated: 2024/04/15 | * Last updated: 2024/05/06 |
| |
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' | 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: 2024/04/15 | |
| |
gsettings reset 'org.gnome.shell' 'app-picker-layout' | gsettings reset 'org.gnome.shell' 'app-picker-layout' |
gsettings set 'org.gnome.desktop.interface' 'clock-show-weekday' 'true' | gsettings set 'org.gnome.desktop.interface' 'clock-show-weekday' 'true' |
| |
==== Weather ==== | ==== Remove Weather ==== |
| |
=== Location Fork === | |
| |
* https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885 | |
| |
* Last tested: 2024/04/15 | |
| |
sudo zypper install 'bc' | * https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247 |
| |
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' | sudo zypper rm --clean-deps 'gnome-weather' |
| |
===== KeePassXC ===== | ===== KeePassXC ===== |
| |
secret-tool store --label='KeePass' 'keepass' 'default' | secret-tool store --label='KeePass' 'keepass' 'default' |
| |
| ===== Laptop Power ===== |
| |
| * See [[notes:laptop_power_management|Laptop Power Management]] |
| * Last tested: 2024/05/17 |
| |
| watch --interval '0.5' grep \'cpu MHz\' '/proc/cpuinfo' |
| |
===== Keybase ===== | ===== Keybase ===== |
tscale=oversample | tscale=oversample |
hwdec=vaapi | hwdec=vaapi |
hwdec-codecs=all | hwdec-codecs=all</code> |
vo=dmabuf-wayland</code> | |
| <code>vo=dmabuf-wayland</code> |
| |
===== Secure Shell ===== | ===== Secure Shell ===== |
* See [[clients:secure_shell|Client]] notes to generate/restore public key | * See [[clients:secure_shell|Client]] notes to generate/restore public key |
| |
===== Drive Maintenance ===== | ===== Disk Drives ===== |
| |
| ==== Disable barriers ==== |
| |
| * Add '',barrier=0'' after ''defaults'' for the ''/'' mountpoint ((defaults,barrier=0)) |
| * Expects ''ext4'' |
| |
| sudo -e '/etc/fstab' |
| |
| ,barrier=0 |
| |
==== Swap ==== | ==== Swap ==== |
| |
* Add ''discard'' after ''defaults'' for the ''swap'' mountpoint ((defaults,discard)) | * Add '',discard=once'' after ''defaults'' for the ''swap'' mountpoint ((defaults,discard)) |
* According to the ''swapon'' man page, setting this in ''fstab'' is acceptable | * According to the ''swapon'' man page, setting this in ''fstab'' is acceptable |
| |
sudo systemctl enable 'fstrim.timer' --now && sudo systemctl start 'fstrim' && sync && sudo systemctl status 'fstrim' -l | sudo systemctl enable 'fstrim.timer' --now && sudo systemctl start 'fstrim' && sync && sudo systemctl status 'fstrim' -l |
| |
===== UTC ===== | ===== Time ===== |
| |
| * :!: 2024/05/06: Even though ''chrony'' does NTP sync, it doesn't seem to write it to the hardware clock which is usually wrong after a CMOS reset ((starting Firefox quickly after rebooting has a wrong system clock certificate failure error)) |
| * This sets the hardware clock to the current system/OS clock |
| * TODO: Figure out ''chrony'' command to do NTP sync |
| |
| sudo hwclock --systohc |
| |
| ==== UTC ==== |
| |
* [[https://wiki.archlinux.org/index.php/System_time#Time_standard|System time - ArchWiki]] | * [[https://wiki.archlinux.org/index.php/System_time#Time_standard|System time - ArchWiki]] |
* :!: Needed if Windows is installed first | * :!: Needed if Windows is installed first |
* :!: Windows should also be set to UTC | * :!: Windows should also be set to UTC |
| * :!: TODO: Should this be ran on openSUSE that's using ''chrony'' instead? |
| |
sudo timedatectl set-local-rtc '0' | sudo timedatectl set-local-rtc '0' |
===== Xorg/Wayland ===== | ===== Xorg/Wayland ===== |
| |
==== Full RGB HDMI ==== | ==== Display Settings ==== |
| |
* See [[notes:proptest_full_rgb]] for more ports | * 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'' | * 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)) | * :!: 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)) |
| |
| * Last tested: 2024/05/18 on GNOME 46 on Xorg |
| |
sudo zypper install -y 'libdrm-tools' && sudo -e '/etc/gdm/PostLogin/Default' && sudo chmod +x '/etc/gdm/PostLogin/Default' && sync | sudo zypper install -y 'libdrm-tools' && sudo -e '/etc/gdm/PostLogin/Default' && sudo chmod +x '/etc/gdm/PostLogin/Default' && sync |
| |
<code> | <code> |
| # Broadcast RGB (99) to Full (1) |
proptest -M 'i915' -D '/dev/dri/card'* '103' 'connector' '99' '1' | proptest -M 'i915' -D '/dev/dri/card'* '103' 'connector' '99' '1' |
proptest -M 'i915' -D '/dev/dri/card'* '103' 'connector' '107' '4'</code> | |
| # content type (107) to Game (4) |
| proptest -M 'i915' -D '/dev/dri/card'* '103' 'connector' '107' '4' |
| |
| # Colorspace (106) to opRGB (7) |
| proptest -M 'i915' -D '/dev/dri/card'* '103' 'connector' '106' '7' |
| |
| # max bpc (108) to 8 |
| proptest -M 'i915' -D '/dev/dri/card'* '103' 'connector' '108' '8' |
| |
| # End</code> |
| |
====== Firefox ====== | ====== Firefox ====== |
| |
extensions.pocket.enabled | extensions.pocket.enabled |
| |
| security.tls.enable_kyber |
| |
===== Extensions ===== | ===== Extensions ===== |
https://www.fanboy.co.nz/fanboy-cookiemonster_ubo.txt | https://www.fanboy.co.nz/fanboy-cookiemonster_ubo.txt |
https://www.fanboy.co.nz/enhancedstats.txt</code> | https://www.fanboy.co.nz/enhancedstats.txt</code> |
| |
==== My filters ==== | |
| |
**** | |
| |
<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 | |
| |
! End</code> | |
| |
===== DNS over HTTPS ===== | ===== DNS over HTTPS ===== |