User Tools

Site Tools


distros:opensuse_tumbleweed_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
Next revisionBoth sides next revision
distros:opensuse_tumbleweed_gnome [2022/05/27 14:19] – [Xorg] Sean Rhonedistros:opensuse_tumbleweed_gnome [2024/04/15 23:14] – GNOME Terminal -> kgx (Console) Sean Rhone
Line 3: Line 3:
   * openSUSE ((https://www.opensuse.org))   * openSUSE ((https://www.opensuse.org))
   * Tumbleweed ((https://en.opensuse.org/Portal:Tumbleweed))   * Tumbleweed ((https://en.opensuse.org/Portal:Tumbleweed))
-  * GNOME ((https://www.gnome.org/)) ((these notes mostly work with Xfce also))+  * GNOME ((https://www.gnome.org/))
  
 ====== Download ====== ====== Download ======
Line 11: Line 11:
 ===== DVD + Xfce Live ===== ===== DVD + Xfce Live =====
  
-  * Downloads the latest DVD and Xfce Live images+  * Downloads the latest DVD 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-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
Line 31: Line 31:
 ====== Installation Notes ====== ====== Installation Notes ======
  
-  * ''EFI/opensuse/grubx64.efi'' ((EFI file to boot and in the case of Acer laptops, add to SecureBoot trust; doesn't matter if SecureBoot is enabled or not))+  * ''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 =====
Line 37: Line 37:
   - XFS   - XFS
   - No separate ''/home''   - No separate ''/home''
-  - Separate ''swap'' +  - No separate ''swap''
- +
-====== HOSTS ====== +
- +
-  * https://github.com/StevenBlack/hosts/ +
-  * Using ''Unified hosts + fakenews + gambling'' +
- +
-  wget -O '/tmp/hosts-tmp' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts' && sudo cp '/etc/hosts' '/etc/hosts-bak' && sudo mv '/tmp/hosts-tmp' '/etc/hosts' && sync +
- +
-  cat '/etc/hosts' | grep 'Date:' +
- +
-  sudo -e '/etc/hosts' +
- +
-===== Restore ===== +
- +
-**** +
- +
-  sudo cp '/etc/hosts-bak' '/etc/hosts' && sync+
  
 ====== PackageKit ====== ====== PackageKit ======
Line 60: Line 43:
   * 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 2022/05/13+  * :!: This was //still// necessary as of 2024/04/15
  
   sudo systemctl stop 'packagekit' && sudo zypper remove 'PackageKit' && sync   sudo systemctl stop 'packagekit' && sudo zypper remove 'PackageKit' && sync
Line 67: Line 50:
  
 ====== Repositories ====== ====== Repositories ======
- 
-===== PackMan Essentials ===== 
- 
-  * http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/Essentials 
- 
-  * Repository Priority: 98 
-  * Provides extended multimedia support 
- 
-  sudo rpm --import 'http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/Essentials/repodata/repomd.xml.key' && sudo zypper addrepo --check --gpgcheck-strict --refresh --priority '98' --name 'Packman Essentials repository (openSUSE_Tumbleweed)' 'http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/Essentials/' 'packman-essentials' 
  
 ===== Keybase ===== ===== Keybase =====
Line 87: Line 61:
  
   sudo rpm --import 'https://keybase.io/docs/server_security/code_signing_key.asc' && sudo zypper addrepo --check --refresh --priority '98' --no-gpgcheck 'http://prerelease.keybase.io/rpm/$basearch' 'Keybase'   sudo rpm --import 'https://keybase.io/docs/server_security/code_signing_key.asc' && sudo zypper addrepo --check --refresh --priority '98' --no-gpgcheck 'http://prerelease.keybase.io/rpm/$basearch' 'Keybase'
- 
-===== ROCm ===== 
- 
-  * https://repo.radeon.com/rocm/zyp/zypper/ 
-  * https://docs.amd.com/ 
- 
-  * Repository Priority: 98 
-  * Provides ROCm, notably OpenCL libraries 
- 
-  sudo rpm --import 'https://repo.radeon.com/rocm/rocm.gpg.key' && sudo zypper addrepo --gpgcheck-strict --check --refresh --priority '98' 'https://repo.radeon.com/rocm/zyp/zypper/' 'ROCm' 
  
 ====== Software ====== ====== Software ======
Line 142: Line 106:
 **** ****
  
-  sudo zypper install evolution filezilla gimp keepassxc transmission-gtk rhythmbox aria2 flashrom hdparm htop nano p7zip-full secret-tool sensors unar wget xfsprogs-scrub +  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 
  
-==== Multimedia ====+===== Intel =====
  
 **** ****
  
-  ffmpeg-4 mpv youtube-dl +  ucode-intel intel-media-driver
- +
-===== ckb-next ===== +
- +
-  * https://github.com/ckb-next/ckb-next +
- +
-  ckb-next+
  
 ===== Keybase ===== ===== Keybase =====
Line 161: Line 119:
   * :!: Make sure to run ''run_keybase'' in a Terminal after installation   * :!: Make sure to run ''run_keybase'' in a Terminal after installation
  
-  keybase +<code>keybase</code>
- +
-===== ROCm ===== +
- +
-  * :!: Run ''sudo ldconfig'' if OpenCL isn't found +
- +
-  rocm-opencl rocm-smi-lib+
  
 ===== Wine ===== ===== Wine =====
Line 173: Line 125:
   * ''winetricks'' is included within the ''wine'' package and isn't a separate install   * ''winetricks'' is included within the ''wine'' package and isn't a separate install
  
-  wine-staging libpulse0-32bit libvulkan_radeon libvulkan_radeon-32bit +  wine-staging libpulse0-32bit gstreamer-plugins-bad-32bit gstreamer-plugins-bad-fluidsynth-32bit gstreamer-plugins-base-32bit gstreamer-plugins-good-32bit gstreamer-plugins-libav-32bit gstreamer-plugins-ugly-32bit libvulkan_intel libvulkan_intel-32bit
- +
-==== Nine ==== +
- +
-  * ''Mesa-libd3d'' requires Gallium Nine either standalone or patched-Wine, and Gallium-based open-source graphics drivers ((currently not NVIDIA proprietary drivers; maybe Intel in the future)) +
-  * :!: Presumably this is only needed if there is no GPU Vulkan support ((eg: R600/Radeon HD 6000 Series)) +
- +
-  wine-nine-standalone Mesa-libd3d Mesa-libd3d-32bit libpulse0-32bit+
  
 ===== Tor Browser ===== ===== Tor Browser =====
Line 187: Line 132:
  
   torbrowser-launcher   torbrowser-launcher
- 
-===== Google Chrome ===== 
- 
-**** 
- 
-  sudo rpm --import 'https://dl-ssl.google.com/linux/linux_signing_key.pub' && sudo zypper install 'https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm' 
  
 ====== Settings ====== ====== Settings ======
Line 198: Line 137:
 ===== Keyboard Shortcuts ===== ===== Keyboard Shortcuts =====
  
-  * See [[mining:nsfminer]] for the  ''Game.sh'' and ''Miner.sh'' scripts +  kgx
- +
-  gnome-terminal+
  
   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 && 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''" +  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'"
- +
-  gnome-terminal -- sh -c ~/'.local/bin/nsfminer/Nightwane/ROCm/Game.sh' +
- +
-  gnome-terminal -- sh -c ~/'.local/bin/nsfminer/Nightwane/ROCm/Miner.sh' +
- +
-==== Xfce ==== +
- +
-  * Uses ''xfce4-terminal'' instead and doesn't include ''flatpak'' +
- +
-  xfce4-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 && 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''"+
  
 ==== Keys ==== ==== Keys ====
Line 222: Line 149:
   * Ctrl + Alt + T   * Ctrl + Alt + T
   * Ctrl + Alt + Z   * Ctrl + Alt + Z
-  * Pause or Launch1 +  * Pause, Menu, F6, or Launch1
-  * F6 +
-  * F8+
  
 ===== Printer ===== ===== Printer =====
Line 231: Line 156:
  
   * :!: Log-in as ''root''   * :!: Log-in as ''root''
-  * Internet Printing Protocol (ipps) -> HP -> IPP Everywhere ™+  * Internet Printing Protocol (ipp) -> HP -> IPP Everywhere ™
   * Color Mode: Device Gray   * Color Mode: Device Gray
   * Administration -> Set As Server Default   * Administration -> Set As Server Default
  
-  ipps://192.168.1.164/ipp/print+  ipp://192.168.1.164/ipp/print
  
-===== gedit =====+===== Network =====
  
-  * 4 Tab width +==== DNS ====
-  * Insert Spaces for Tab mode+
  
-===== Network =====+  * [[notes:dns_servers#quad9|Quad9]], see [[notes:dns_servers]] for other addresses
  
-==== Quad9 DNS ==== +<code>9.9.9.9,149.112.112.112</code>
- +
-  * https://quad9.net +
-  * See [[notes:dns_servers|DNS servers]] for other DNS servers+
  
 <code>2620:fe::fe,2620:fe::9</code> <code>2620:fe::fe,2620:fe::9</code>
- 
-<code>9.9.9.9,149.112.112.112</code> 
  
 ===== Nautilus ===== ===== Nautilus =====
Line 261: Line 180:
   * See [[Information:Internet Radio|Internet Radio]]   * See [[Information:Internet Radio|Internet Radio]]
  
-===== ckb-next =====+===== Dell Fan Profile =====
  
-  * :!: May have to disable automatic firmware update check from ckb-next settings in order to prevent it from crashing on profile switch+  * https://www.dell.com/support/kbdoc/en-us/000177768/guide-to-dell-power-manager
  
-  sudo systemctl enable 'ckb-next-daemon' --now+  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 ===== ===== GRUB =====
  
-==== AMD Memory Encryption ====+==== Config ====
  
-  * https://access.redhat.com/articles/4255251 +  * :![[notes:kernel_parameters|More Kernel Parameters]]
-  * https://www.kernel.org/doc/Documentation/x86/amd-memory-encryption.txt +
-  * :!Either enable it here through the kernel, or enable TSME from the firmware (**not** both)+
  
-  mem_encrypt=on+  sudo yast2 'bootloader'
  
-  dmesg | grep 'SME'+==== Spinesnap ====
  
-==== amdgpu ====+  * Last updated: 2024/04/15
  
-=== Power ===+<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>
  
-  * Allows use of Overdrive options for overclocking and increasing the Power Limit+===== GNOME =====
  
-  amdgpu.ppfeaturemask=0xffffffff+==== Extensions ====
  
-  cat '/sys/module/amdgpu/parameters/ppfeaturemask' | grep '0xffffffff'+  * https://extensions.gnome.org/extension/545/hide-top-bar/ 
 +  * https://extensions.gnome.org/extension/1873/disable-unredirect-fullscreen-windows/ ((for preventing Tearing on Xorg sessions in some situations))
  
-=== Other ===+==== External Monitor Settings ====
  
-  * https://dri.freedesktop.org/docs/drm/gpu/amdgpu.html +  * This copies the configured monitor settings from the current user to ''gdm'' and also applies it to the log-in screen 
-  * :!: ''amdgpu.mes=1'' caused Linux not to boot+  * Notably useful for setting a laptop's built-in screen as disabled for the log-in screen while used in a dock configuration
  
-  amdgpu.mes=1+  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'
  
-  amdgpu.mcbp=1+=== Undo ===
  
-  amdgpu.deep_color=1 +****
- +
-  amdgpu.exp_hw_support=1 +
- +
-==== Intel Optimization ==== +
- +
-  This enables Framebuffer compression, Panel self-refresh, and i915 Fastboot +
- +
-  i915.enable_fbc=1 i915.enable_psr=1 i915.fastboot=1 +
- +
-==== Coreboot ==== +
- +
-  This is needed to relax permissions for Coreboot firmware to be flashed internally +
-  :!: This should be removed after flashing +
- +
-  iomem=relaxed +
- +
-==== NVIDIA GSP ==== +
- +
-  http://us.download.nvidia.com/XFree86/Linux-x86_64/510.54/README/gsp.html +
-  * Allows loading of GSP firmware +
-  * :!: As of 2022/02/24 with a RTX 3060 and the 510.54 proprietary driver, this causes the mouse cursor to not update visibly from the top-left corner on GNOME 41/Fedora 35 +
-  * :!: This has not been tested with https://github.com/NVIDIA/open-gpu-kernel-modules +
- +
-  nvidia.NVreg_EnableGpuFirmware=1 +
- +
-===== GNOME ===== +
- +
-==== Hide Top Bar ==== +
- +
-  * https://extensions.gnome.org/extension/545/hide-top-bar/ +
- +
-==== Disable Wayland ==== +
- +
-  * :!: ckb-next auto light shutoff requires Xorg +
-  * :!: GPU scaling for resolution requires Xorg +
-  * :!: Setting ''i915'' to use Full RGB with HDMI requires Xorg +
- +
-  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'+
  
-  sudo -e '/etc/gdm/custom.conf'+  sudo rm ~gdm/'.config/monitors.xml&& sync
  
 ==== Settings ==== ==== Settings ====
Line 344: Line 224:
 === All-in-one === === All-in-one ===
  
-  * Last updated: 2022/05/14+  * Last updated: 2024/04/15
  
-  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.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: 2022/05/14+  * 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' 'enable-animations' 'true'+  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' 'send-events' 'disabled-on-external-mouse'
Line 371: Line 251:
  
   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'
Line 376: Line 258:
   gsettings set 'org.gnome.desktop.interface' 'clock-show-weekday' 'true'   gsettings set 'org.gnome.desktop.interface' 'clock-show-weekday' 'true'
  
-===== Hostname =====+==== Weather ====
  
-  * Change ''x'' to computer name+=== Location Fork ===
  
-  sudo hostnamectl set-hostname 'x'+  * https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885
  
-===== Keybase =====+  * Last tested: 2024/04/15
  
-  * :!: Run after initial install+  sudo zypper install 'bc'
  
-  run_keybase+  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'
  
 ===== KeePassXC ===== ===== KeePassXC =====
Line 400: Line 282:
  
   secret-tool store --label='KeePass' 'keepass' 'default'   secret-tool store --label='KeePass' 'keepass' 'default'
 +
 +===== Keybase =====
 +
 +  * :!: Run after initial install
 +
 +  run_keybase
  
 ===== lm_sensors ===== ===== lm_sensors =====
  
-****+  sudo sensors-detect --auto
  
-  sudo sensors-detect --auto+  sudo -e '/etc/sysconfig/lm_sensors'
  
 ===== mpv ===== ===== mpv =====
Line 414: Line 302:
  
 <code> <code>
 +save-position-on-quit
 +sub-auto=fuzzy
 +force-window=yes
 profile=gpu-hq profile=gpu-hq
 scale=ewa_lanczossharp scale=ewa_lanczossharp
Line 419: Line 310:
 video-sync=display-resample video-sync=display-resample
 interpolation interpolation
-tscale=oversample</code> +tscale=oversample 
- +hwdec=vaapi 
-===== Laptop Power Management ===== +hwdec-codecs=all 
- +vo=dmabuf-wayland</code>
-  * See [[notes:laptop_power_management|Laptop Power Management]]+
  
 ===== Secure Shell ===== ===== Secure Shell =====
Line 431: Line 321:
 ===== Drive Maintenance ===== ===== Drive Maintenance =====
  
-==== Trim ====+==== Swap ====
  
-  * :!: Enable only if a SSD is being used for Linux+  * Add ''discard'' after ''defaults'' for the ''swap'' mountpoint ((defaults,discard)) 
 +  * 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 -'/etc/fstab'
  
-==== XFS Scrub ====+  ,discard=once
  
-  * [[https://wiki.archlinux.org/title/XFS#Online_Metadata_Checking_(scrub)|XFS - ArchWiki]] +==== Trim ====
-  * :!: Enable in all cases since it's likely both ''/'' and ''/boot'' are XFS+
  
-  sudo systemctl enable 'xfs_scrub_all.timer' --now && sudo systemctl start 'xfs_scrub_all' && sync && sudo systemctl status 'xfs_scrub_all' -l+**** 
 + 
 +  sudo systemctl enable 'fstrim.timer' --now && sudo systemctl start 'fstrim' && sync && sudo systemctl status 'fstrim' -l
  
 ===== UTC ===== ===== UTC =====
Line 463: Line 355:
   * See [[notes:wine|Wine]]   * See [[notes:wine|Wine]]
  
-  sudo -e '/etc/profile.d/wine-tweaks.sh'+===== Xorg/Wayland ===== 
 + 
 +==== Full RGB HDMI ==== 
 + 
 +  * See [[notes:proptest_full_rgb]] for more ports 
 +  * 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)) 
 + 
 +  sudo zypper install -y 'libdrm-tools' && sudo -e '/etc/gdm/PostLogin/Default' && sudo chmod +x '/etc/gdm/PostLogin/Default&& sync
  
 <code> <code>
-# Large Address Aware +proptest -M 'i915' -D '/dev/dri/card'* '103' 'connector' '99' '1' 
-export WINE_LARGE_ADDRESS_AWARE='1' +proptest -M 'i915' -D '/dev/dri/card'* '103' 'connector' '107' '4'</code>
-export PROTON_FORCE_LARGE_ADDRESS_AWARE='1'+
  
-# Esync and Fsync +====== Firefox ======
-export WINEFSYNC='1' +
-export WINEESYNC='1'+
  
-# Mesa +  * See [[notes:firefox|Firefox]] if old configuration is needed, otherwise use Firefox Sync 
-export VAAPI_MPEG4_ENABLED='1'+  * https://wiki.archlinux.org/title/Firefox/Privacy
  
-# DXVK +===== about:config =====
-export DXVK_ASYNC='1'+
  
-VKD3D +  * See [[notes:firefox#aboutconfig|about:config]] for more info 
-export VKD3D_CONFIG='dxr,dxr11'+  * :!: ''layout.frame_rate'' ideally needs set if using Wayland and above 60Hz
  
-# Logging +  layout.frame_rate
-export DXVK_LOG_LEVEL='none' +
-export WINEDEBUG='-all'</code>+
  
-====== Xorg ======+  extensions.screenshots.disabled
  
-  * See [[notes:xorg.conf_snippets|xorg.conf Snippets]] +  extensions.pocket.enabled
-  * :!: GNOME for several versions now including 42 makes the screen color too warm; the fix is to disable color calibration for screens in GNOME settings+
  
-====== Zypper ======+===== Extensions =====
  
-  sudo -e '/etc/zypp/zypp.conf'+  * [[https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/|uBlock Origin]] 
 +  * [[https://addons.mozilla.org/en-US/firefox/addon/decentraleyes/|Decentraleyes]] 
 +  * [[https://addons.mozilla.org/en-US/firefox/addon/privacy-badger17/|Privacy Badger]] 
 + 
 +==== uBlock Origin ==== 
 + 
 +==== Filters list ==== 
 + 
 +****
  
 <code> <code>
-[main] +https://www.fanboy.co.nz/fanboy-problematic-sites.txt 
-techpreview.ZYPP_SINGLE_RPMTRANS=1 +https://www.fanboy.co.nz/r/fanboy-ultimate.txt 
-techpreview.ZYPP_MEDIANETWORK=1</code>+https://www.fanboy.co.nz/fanboy-cookiemonster_ubo.txt 
 +https://www.fanboy.co.nz/enhancedstats.txt</code>
  
-====== Mozilla Firefox ======+==== My filters ====
  
-  See [[notes:firefox|Firefox]] if old configuration is needed, otherwise use Firefox Sync+**** 
 + 
 +<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 =====
  
-  * [[https://quad9.net/|Quad9]]+  * [[notes:dns_servers#quad9|Quad9]], see [[notes:dns_servers]] for other addresses
  
-  https://dns.quad9.net/dns-query+<code>https://dns.quad9.net/dns-query</code>
  
 ====== Server ====== ====== Server ======
Line 552: Line 464:
 ====== Notable Folders and Commands ====== ====== Notable Folders and Commands ======
  
-===== Extract ISO ===== +  * See [[notes:misc_linux#opensuse|misc_linux]]
- +
-  * ''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' +
- +
-==== Show Formats ==== +
- +
-  * Change ''x'' to a URL +
- +
-  '/tmp/youtube-dl' --list-formats x +
- +
-==== Download Media ==== +
- +
-  * Change ''x'' to a URL +
-  * ''bestaudio'' can be changed to ''bestvideo'' for just video, or ''best'' for best video with audio +
- +
-  '/tmp/youtube-dl' --extract-audio --format 'bestaudio'+
- +
-=== M4A Audio === +
- +
-  * 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 'mp3'+
- +
-===== Shortcuts ===== +
- +
-  /usr/share/applications +
- +
-  ~/.local/share/applications +
- +
-===== Icons ===== +
- +
-  /usr/share/icons/hicolor +
- +
-  ~/.local/share/icons/hicolor +
- +
-===== Zypper ===== +
- +
-==== Find Orphans ==== +
- +
-**** +
- +
-  zypper packages --orphaned +
- +
-==== Remove Package and Deps ==== +
- +
-**** +
- +
-  sudo zypper remove --clean-deps 'x' +
- +
-==== Show Installed Patterns ==== +
- +
-**** +
- +
-  sudo zypper patterns --installed-only +
- +
-==== Folder ==== +
- +
-**** +
- +
-  ls '/etc/zypp/repos.d' +
- +
-==== List ==== +
- +
-**** +
- +
-  zypper repos --priority +
- +
-===== 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 +
- +
-===== 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' +
- +
-== NVIDIA Optimus == +
- +
-**** +
- +
-  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_'* && __NV_PRIME_RENDER_OFFLOAD='1' __GLX_VENDOR_LIBRARY_NAME='nvidia' ./GpuTest /test='fur' /width='1280' /height='720' +
- +
-=== 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 zypper install -y 'sensors' && 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 present the same information +
- +
-  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 zypper install 'hdparm' && sync +
- +
-  sudo hdparm -I '/dev/sda' +
- +
-  sync && systemctl suspend +
- +
-==== ATA Secure Erase ==== +
- +
-<code>sudo blkdiscard --verbose '/dev/sda'</code> +
- +
-<code>sudo hdparm --user-master u --security-set-pass 'x' '/dev/sda' && sudo hdparm --user-master u --security-erase-enhanced 'x' '/dev/sda' && sync</code> +
- +
-<code>sudo hdparm --user-master u --security-set-pass 'x' '/dev/sda' && sudo hdparm --user-master u --security-erase 'x' '/dev/sda' && sync</code> +
- +
-===== 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 zypper 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 ==== +
- +
-  * This can be used to get the Oprom version for Intel RST +
- +
-  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 zypper install 'acpica' +
- +
-  sudo cp --force '/sys/firmware/acpi/tables/DSDT' ~/'dsdt.dat' +
- +
-  cd ~ && iasl -d ~/'dsdt.dat' +
- +
-  gio open ~/'dsdt.dsl' +
- +
-  sudo zypper remove 'acpica' && sync +
- +
-===== 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> +
-Section "Monitor" +
-    Identifier  "HDMI-A-0" +
-    Modeline x +
-    Option      "PreferredMode" "3840x2160R" +
-EndSection</code> +
- +
-===== Backlight ===== +
- +
-==== Notes ==== +
- +
-  * The following commands with an asterisk expect only one backlight controller at ''/sys/class/backlight'' +
-  * 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' +
- +
-===== HT/SMT 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 zypper install 'oath-toolkit' +
- +
-  oathtool --totp -b 'x' +
- +
-==== Remove EXIF data ==== +
- +
-  sudo zypper install 'exiftool'+
  
-  exiftool -all= *.* -overwrite_original 
/var/www/wiki/data/pages/distros/opensuse_tumbleweed_gnome.txt · Last modified: 2024/05/14 18:34 by Sean Rhone