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
distros:opensuse_tumbleweed_gnome [2019/05/30 11:11] Sean Rhonedistros:opensuse_tumbleweed_gnome [2024/04/15 23:14] (current) – GNOME Terminal -> kgx (Console) Sean Rhone
Line 9: Line 9:
   * http://download.opensuse.org/tumbleweed/iso/   * http://download.opensuse.org/tumbleweed/iso/
  
-===== DVD-x86_64-Current.iso =====+===== DVD + Xfce Live =====
  
-  * http://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso+  * Downloads the latest DVD and Xfce Live images with ''aria2c''
  
-  http://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso+  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
  
-===== Hashes =====+===== DVD =====
  
-  * http://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso.mirrorlist+  * ISO and SHA256 hash
  
-====== Installation Notes ======+  http://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso
  
-  * ''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)) +  https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso.sha256
-  * XFS, no separate ''/home'', separate ''swap'' partition enlarged to RAM for suspend+
  
-====== HOSTS ======+===== Xfce =====
  
-  * https://github.com/StevenBlack/hosts/ +  * For LiveUSB
-  * Using ''Unified hosts + fakenews + gambling''+
  
-  sudo wget -O '/etc/hosts' 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts' && sync+  https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-XFCE-Live-x86_64-Current.iso
  
-  cat '/etc/hosts' | grep 'Date:'+====== Installation Notes ======
  
-  sudo -e '/etc/hosts'+  ''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))
  
-===== RoE LAN =====+===== Partitioning =====
  
-  * This adds RoE sites to HOSTS file and allows resources to be grabbed over LAN +  - XFS 
-  * Useful for doing large configurations with sites on local LAN+  - No separate ''/home'' 
 +  - No separate ''swap''
  
-  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'+====== PackageKit ======
  
-====== Repositories ======+  * 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 was //still// necessary as of 2024/04/15
  
-===== PackMan Essentials =====+  sudo systemctl stop 'packagekit' && sudo zypper remove 'PackageKit' && sync
  
-  * http://packman.inode.at/suse/openSUSE_Tumbleweed/Essentials/+  sudo zypper addlock 'PackageKit'
  
-  * Repository Priority: 98 +====== Repositories ======
-  * Provides extended multimedia support +
- +
-  sudo rpm --import 'http://packman.inode.at/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 60: Line 58:
   * Provides the Keybase GUI client   * Provides the Keybase GUI client
  
-  sudo rpm --import 'https://keybase.io/docs/server_security/code_signing_key.asc&& sudo zypper addrepo --gpgcheck --refresh 'http://prerelease.keybase.io/rpm/$basearch' 'Keybase&& sudo zypper mr -p 98 'Keybase' +  :!: The repo itself isn't signed, but the packages are ((the imported key gets referenced once the ''keybase'' package downloads through ''zypper'', before its installation))
- +
-===== Mesa ===== +
- +
-  * http://download.opensuse.org/repositories/home:/khnazile:/video-llvm-next/openSUSE_Tumbleweed +
- +
-  * Repository Priority: 97 +
-  * Provides updated open-source graphics stack (Mesa + LLVM)+
  
-  sudo rpm --import 'http://download.opensuse.org/repositories/home:/khnazile:/video-llvm-next/openSUSE_Tumbleweed/repodata/repomd.xml.key' && sudo zypper addrepo --check --gpgcheck-strict --refresh --priority '97' --name 'Branch project for package llvm (openSUSE_Tumbleweed)' 'http://download.opensuse.org/repositories/home:/khnazile:/video-llvm-next/openSUSE_Tumbleweed' 'home_khnazile_video-llvm-next'+  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'
  
 ====== Software ====== ====== Software ======
Line 95: Line 86:
 **** ****
  
-  sudo fwupdmgr refresh && sudo fwupdmgr update --verbose+  sudo fwupdmgr refresh --force && sudo fwupdmgr update --verbose 
 + 
 +==== Flatpaks ==== 
 + 
 +**** 
 + 
 +  flatpak update && sudo flatpak update
  
 ===== GNU nano ===== ===== GNU nano =====
Line 109: Line 106:
 **** ****
  
-  sudo zypper install filezilla keepassxc p7zip-full unar aria2 gimp hdparm nano htop wget irqbalance rhythmbox libsecret-tools mpv youtube-dl gstreamer-plugins-vaapi hplip-hpijs flashrom+  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 
  
-===== numactl =====+===== Intel =====
  
 **** ****
  
-  numactl +  ucode-intel intel-media-driver
- +
-==== VA-API ==== +
- +
-**** +
- +
-  intel-vaapi-driver +
- +
-===== ckb-next ===== +
- +
-  * https://github.com/ckb-next/ckb-next +
-  * :!: Animations don't work, see https://bugzilla.opensuse.org/show_bug.cgi?id=1135528 +
- +
-  ckb-next+
  
 ===== Keybase ===== ===== Keybase =====
Line 135: 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>
  
 ===== Wine ===== ===== Wine =====
  
   * ''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
-  * ''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)) 
  
-  wine-staging libpulse0-32bit 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
- +
-  Mesa-libd3d Mesa-libd3d-32bit libpulse0-32bit+
  
 ===== Tor Browser ===== ===== Tor Browser =====
Line 151: 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 162: Line 137:
 ===== Keyboard Shortcuts ===== ===== Keyboard Shortcuts =====
  
-  * ''gnome-shell --replace'' doesn't work on Wayland session +  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 && 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''"+  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 ====
Line 176: Line 149:
   * Ctrl + Alt + T   * Ctrl + Alt + T
   * Ctrl + Alt + Z   * Ctrl + Alt + Z
-  * Pause or F7+  * Pause, Menu, F6, or Launch1
  
 ===== Printer ===== ===== Printer =====
Line 183: Line 156:
  
   * :!: Log-in as ''root''   * :!: Log-in as ''root''
-  * Output Mode: Black Only Grayscale +  * Internet Printing Protocol (ipp) -> HP -> IPP Everywhere ™ 
-  * Print QualityHigh-Resolution Photo+  * Color ModeDevice Gray
   * Administration -> Set As Server Default   * Administration -> Set As Server Default
  
-  socket://192.168.1.164:9100 +  ipp://192.168.1.164/ipp/print
- +
-===== gedit ===== +
- +
-  * 4 Tab width +
-  * Insert Spaces for Tab mode+
  
 ===== Network ===== ===== Network =====
Line 198: Line 166:
 ==== DNS ==== ==== DNS ====
  
-=== UncensoredDNS ===+  * [[notes:dns_servers#quad9|Quad9]], see [[notes:dns_servers]] for other addresses
  
-  * https://blog.uncensoreddns.org/+<code>9.9.9.9,149.112.112.112</code>
  
-  89.233.43.71,91.239.100.100 +<code>2620:fe::fe,2620:fe::9</code>
- +
-  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 +
- +
-==== VPN.AC ==== +
- +
-  * See [[information:vpn.ac|VPN.AC]] +
-  * :!: If using this VPN, disable IPv6 from NetworkManager+
  
 ===== Nautilus ===== ===== Nautilus =====
  
   * Sort folders before files   * Sort folders before files
-  * 4096 MB File Previews 
  
 ===== Rhythmbox ===== ===== Rhythmbox =====
  
-  * See [[Information:Internet Radio]]+  * See [[Information:Internet Radio|Internet Radio]]
  
-===== ckb-next =====+===== Dell Fan Profile =====
  
-**** +  https://www.dell.com/support/kbdoc/en-us/000177768/guide-to-dell-power-manager
- +
-  sudo systemctl enable 'ckb-next-daemon' --now +
- +
-==== Animations Fix ==== +
- +
-  * TODO: Bug report link+
  
-  sudo mkdir -'/usr/usr/lib' && sudo ln -s '/usr/lib/ckb-next-animations' '/usr/usr/lib'+  sudo zypper install -'python3-smbios-utils' && sudo smbios-thermal-ctl --set-thermal-mode='performance&& sudo zypper remove --clean-deps -y 'python3-smbios-utils'
  
 ===== GRUB ===== ===== GRUB =====
  
-==== Other Parameters ====+==== Config ====
  
-  * See [[notes:kernel_parameters|Kernel Parameters]] for other options+  * :!: [[notes:kernel_parameters|More Kernel Parameters]]
  
-==== AIO ====+  sudo yast2 'bootloader'
  
-=== Nightwane ===+==== Spinesnap ====
  
-  * Last updated: 2019/05/26+  * Last updated: 2024/04/15
  
-  scsi_mod.use_blk_mq=y dm_mod.use_blk_mq=y reboot=pci pcie_aspm=force nohz=on modprobe.blacklist=iTCO_wdt,sp5100_tco nowatchdog+<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>
  
-=== Spinesnap ===+===== GNOME =====
  
-  * Last updated: 2019/05/26+==== Extensions ====
  
-  scsi_mod.use_blk_mq=y dm_mod.use_blk_mq=y reboot=pci pcie_aspm=force i915.enable_fbc=1 i915.fastboot=1 modprobe.blacklist=iTCO_wdt,sp5100_tco nowatchdog+  * 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))
  
-==== blk_mq ====+==== External Monitor Settings ====
  
-****+  This copies the configured monitor settings from the current user to ''gdm'' and also applies it to the log-in screen 
 +  Notably useful for setting a laptop's built-in screen as disabled for the log-in screen while used in a dock configuration
  
-  scsi_mod.use_blk_mq=y dm_mod.use_blk_mq=y+  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'
  
-==== Reboot ==== +=== Undo ===
- +
-  * ''efi'' is for UEFI systems +
-  * ''pci'' is for Legacy systems and Coreboot with SeaBIOS payload +
-  * There are other values possible should either of those not work +
- +
-  reboot=pci +
- +
-  reboot=efi +
- +
-==== PCIe ASPM ====+
  
 **** ****
  
-  pcie_aspm=force +  sudo rm ~gdm/'.config/monitors.xml' && sync
- +
-==== dyntick-idle Disable ==== +
- +
-  * KGPE-D16's [[https://www.coreboot.org/Board:asus/kgpe-d16#Installation_Notes|Coreboot installation notes]] mention needing this for better power saving +
-  * Specific to Nightwane +
- +
-  nohz=on +
- +
-==== i915 ==== +
- +
-  * Applicable on a Lenovo T500 ((Spinesnap)) +
- +
-  i915.enable_fbc=1 i915.fastboot=1 +
- +
-==== amdgpu ==== +
- +
-  * Allows use of Overdrive options for overclocking +
- +
-  amdgpu.ppfeaturemask=0xffffffff +
- +
-  cat '/sys/module/amdgpu/parameters/ppfeaturemask' | grep '4294967295' +
- +
-==== Blacklist Watchdogs ==== +
- +
-  * ''iTCO_wdt'' controls watchdog on some Intel platforms +
-  * ''sp5100_tco'' controls watchdog on some AMD platforms +
-  * ''nowatchdog'' disables both soft and hard generic watchdogs +
-  * Apparently this reduces power usage slightly +
- +
-  modprobe.blacklist=iTCO_wdt,sp5100_tco nowatchdog +
- +
-===== GNOME ===== +
- +
-==== Disable Wayland ==== +
- +
-  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' +
- +
-==== Root GUI Apps in Wayland ==== +
- +
-  * Run this before running GUI applications requiring root +
-  * This needs re-ran after session restart +
- +
-  xhost +LOCAL:+
  
 ==== Settings ==== ==== Settings ====
Line 331: Line 224:
 === All-in-one === === All-in-one ===
  
-  * Last updated: 2019/01/07+  * Last updated: 2024/04/15
  
-  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 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/01/07+  * Last updated: 2024/04/15 
 + 
 +  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 356: 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'
  
-===== Hostname =====+  gsettings set 'org.gnome.desktop.interface' 'clock-show-weekday' 'true'
  
-  * Change ''x'' to computer name+==== Weather ====
  
-  sudo hostnamectl set-hostname 'x'+=== Location Fork ===
  
-===== Keybase =====+  * https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885
  
-  * :!: Run after initial install+  * Last tested2024/04/15
  
-  run_keybase+  sudo zypper install 'bc' 
 + 
 +  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 376: Line 275:
  
   * 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 383: Line 283:
   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+  * :!: Run after initial install
  
-  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'+  run_keybase
  
-===== 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 mkdir -p '/etc/NetworkManager/conf.d' && 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] +  * [[https://wiki.archlinux.org/index.php/mpv#High_quality_configurations|ArchWiki mpv High quality configurations]]
-ethernet.cloned-mac-address=random +
-wifi.cloned-mac-address=random+
  
-[connection] +  mkdir -p ~/'.config/mpv' && nano ~/'.config/mpv/mpv.conf'
-wifi.powersave=2</code>+
  
-===== Laptop Power Management ===== +<code> 
- +save-position-on-quit 
-  * See [[notes:laptop_power_management|Laptop Power Management]]+sub-auto=fuzzy 
 +force-window=yes 
 +profile=gpu-hq 
 +scale=ewa_lanczossharp 
 +cscale=ewa_lanczossharp 
 +video-sync=display-resample 
 +interpolation 
 +tscale=oversample 
 +hwdec=vaapi 
 +hwdec-codecs=all 
 +vo=dmabuf-wayland</code>
  
 ===== Secure Shell ===== ===== Secure Shell =====
  
-  * See [[Clients:Secure Shell]] +  * See [[clients:secure_shell|Client]] notes to generate/restore public key
- +
-===== Solo Key ===== +
- +
-==== Information ==== +
- +
-  * https://solokeys.com/ +
-  * Usable as optional authentication for GDM and ''sudo'' +
- +
-==== PAM ==== +
- +
-=== Dependencies === +
- +
-**** +
- +
-  sudo zypper install 'pam_u2f' +
- +
-=== udev Rule === +
- +
-  * https://raw.githubusercontent.com/solokeys/solo/master/udev/70-solokeys-access.rules +
- +
-  sudo -e '/etc/udev/rules.d/70-solokeys-access.rules' && sudo udevadm control --reload-rules && sudo udevadm trigger +
- +
-===== Swappiness ===== +
- +
-  echo "vm.swappiness=10" | sudo tee '/etc/sysctl.d/99-swappiness.conf' > '/dev/null' && cat '/etc/sysctl.d/99-swappiness.conf' +
- +
-  cat '/sys/fs/cgroup/memory/memory.swappiness' +
- +
-===== systemd ===== +
- +
-  * Log data is stored in volatile storage +
-  * Max log file sizes of ''50MB'' +
- +
-  sudo mkdir -p '/etc/systemd/journald.conf.d' && echo -e "[Journal]\nStorage=volatile\nSystemMaxUse=50M\nRuntimeMaxUse=50M" | sudo tee '/etc/systemd/journald.conf.d/logging.conf' > '/dev/null' && cat '/etc/systemd/journald.conf.d/logging.conf'+
  
-===== TRIM =====+===== Drive Maintenance =====
  
 ==== Swap ==== ==== Swap ====
Line 458: Line 328:
   sudo -e '/etc/fstab'   sudo -e '/etc/fstab'
  
-  ,discard+  ,discard=once
  
-==== Service ====+==== Trim ====
  
 **** ****
Line 466: Line 336:
   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
  
-===== Wine =====+===== UTC =====
  
-  * See [[notes:wine|Wine]]+  * [[https://wiki.archlinux.org/index.php/System_time#Time_standard|System time - ArchWiki]] 
 +  * Set RTC to UTC 
 +  * :!: Needed if Windows is installed first 
 +  * :!: Windows should also be set to UTC
  
-====== Computer-specific ======+  sudo timedatectl set-local-rtc '0'
  
-===== Nightwane ===== +==== Verify ====
- +
-==== Volume ====+
  
 **** ****
  
-  alsamixer && sudo alsactl store+  timedatectl | grep local
  
-==== Fan Control ====+===== Wine =====
  
-  * Expects an ASUS KCMA-D8 motherboard +  * See [[notes:wine|Wine]]
-  * If OpenBMC is figured out, this may be superseded +
-  * :!: Answer ''yes'' to all ''sensors-detect'' prompts and reboot for ''fancontrol'' to run+
  
-  sudo zypper install 'sensors' && sudo sensors-detect && sudo -e '/etc/fancontrol' && sudo systemctl enable 'fancontrol'+===== Xorg/Wayland =====
  
-<code> +==== Full RGB HDMI ====
-INTERVAL=10 +
-DEVNAME=/sys/class/hwmon/hwmon6=w83795g+
  
-FCTEMPS=/sys/class/hwmon/hwmon6/device/pwm2=/sys/class/hwmon/hwmon6/device/temp8_input +  * See [[notes:proptest_full_rgb]] for more ports 
-FCFANS=/sys/class/hwmon/hwmon6/device/fan1_input+/sys/class/hwmon/hwmon6/device/fan2_input+  * 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))
  
-MINTEMP=/sys/class/hwmon/hwmon6/device/pwm2=50 +  sudo zypper install -'libdrm-tools&& sudo -e '/etc/gdm/PostLogin/Default' && sudo chmod +x '/etc/gdm/PostLogin/Default&& sync
-MAXTEMP=/sys/class/hwmon/hwmon6/device/pwm2=60 +
- +
-MINSTART=/sys/class/hwmon/hwmon6/device/pwm2=4000 +
-MINSTOP=/sys/class/hwmon/hwmon6/device/pwm2=0</code> +
- +
-==== 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 for my usual display ((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 === +
- +
-  * :!: Change as-needed +
- +
-  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf'+
  
 <code> <code>
-Section "Monitor" +proptest -'i915' -'/dev/dri/card'* '103' 'connector' '99' '1
-    Identifier  "HDMI-A-0" +proptest -'i915' -'/dev/dri/card''103' 'connector' '107' '4'</code>
-    Modeline "3840x2160R"  533.00  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync +
-    Option      "PreferredMode" "3840x2160R" +
-EndSection</code> +
- +
-===== Spinesnap ===== +
- +
-  sudo zypper install xf86-video-intel xf86-video-amdgpu && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' +
- +
-<code> +
-Section "Device" +
-    Identifier      "Intel GPU" +
-    Driver          "intel" +
-    BusID           "PCI:0:2:0" +
-    Option          "DRI"               "3" +
-    Option          "TearFree"          "disabled" +
-EndSection +
- +
-Section "Device" +
-    Identifier      "AMD GPU" +
-    Driver          "amdgpu" +
-    BusID           "PCI:4:0:0" +
-    Option          "DRI"               "3" +
-    Option          "TearFree"          "off" +
-EndSection</code> +
- +
-===== Deep Color ===== +
- +
-==== xorg.conf Snippet ==== +
- +
-  * The lack-of quotes around ''30'' is intentional and required syntax +
-  * :!: This may cause minor rendering 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)) +
- +
-  sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' +
- +
-<code> +
-Section "Screen" +
-    Identifier      "Deep Color Screen" +
-    DefaultDepth    30 +
-EndSection</code> +
- +
-==== Display Manager ==== +
- +
-  * Necessary to allow mouse clicks to work in GDM, and apparently Compton, and maybe others +
- +
-  cat '/etc/environment' | grep 'allow_rgb10_configs=false' || echo 'allow_rgb10_configs=false' | sudo tee --append '/etc/environment''/dev/null' && cat '/etc/environment' +
- +
-===== Graphics xorg.conf ===== +
- +
-==== intel ==== +
- +
-  sudo zypper install 'xf86-video-intel' && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' +
- +
-<code> +
-Section "Device" +
-    Identifier      "Intel GPU" +
-    Driver          "intel" +
-    Option          "TearFree"      "disabled" +
-EndSection</code> +
- +
-==== amdgpu ==== +
- +
-  :!: ''ShadowPrimary'' set to ''on'' caused GNOME not to log-in +
- +
-  sudo zypper install 'xf86-video-amdgpu' && sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' +
- +
-<code> +
-Section "Device" +
-    Identifier      "AMD GPU" +
-    Driver          "amdgpu" +
-    Option          "TearFree"      "off" +
-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'')) +
- +
-  sudo zypper install 'xf86-video-ati&& sudo -e '/etc/X11/xorg.conf.d/99-graphics.conf' +
- +
-<code> +
-Section "Device" +
-    Identifier      "AMD GPU" +
-    Driver          "radeon" +
-    Option          "DRI"               "3" +
-    Option          "SwapbuffersWait"   "0" +
-    Option          "TearFree"          "off" +
-    Option          "AccelMethod"       "EXA" +
-EndSection</code> +
- +
-==== Other ==== +
- +
-  * If using Optimus or some other multi-GPU set-up, add the ''BusID'' option +
- +
-<code>    BusID      "PCI:0:2:0"</code> +
- +
-====== Mozilla Firefox ====== +
- +
-===== Settings ===== +
- +
-==== Environment Variables ==== +
- +
-  * Enables hardware acceleration and use of WebRenderer +
-  * :!: WebRenderer requires the previous ''MOZ_ACCELERATED'' variable as well +
- +
-  echo -e 'export MOZ_ACCELERATED=1\nexport MOZ_WEBRENDER=1' | sudo tee '/etc/profile.d/firefox-hwaccel.sh''/dev/null' && cat '/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/04/05 +
-  * :!: IPv6 is disabled in order to prevent WebRTC from grabbing a IPv6 address even though NetworkManager has it disabled... +
-  * :!: ''media.peerconnection.enabled'' disables WebRTC +
- +
-  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); +
- +
-/******* +
- * U2F * +
- *******/+
  
-user_pref("security.webauth.u2f", true);+====== Firefox ======
  
-/**********+  See [[notes:firefox|Firefox]] if old configuration is needed, otherwise use Firefox Sync 
- * Privacy +  https://wiki.archlinux.org/title/Firefox/Privacy
- ***********/+
  
-user_pref("network.dns.disableIPv6", true); +===== about:config =====
-user_pref("media.peerconnection.enabled", false);+
  
-/******+  See [[notes:firefox#aboutconfig|about:config]] for more info 
- END * +  :!: ''layout.frame_rate'' ideally needs set if using Wayland and above 60Hz
- *******/</code>+
  
-==== Apply Settings ====+  layout.frame_rate
  
-  * ''Path'' should report the current user's username, and the text ''Custom Stuff'' should be visible+  extensions.screenshots.disabled
  
-  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+  extensions.pocket.enabled
  
 ===== Extensions ===== ===== Extensions =====
  
-==== Startpage.com ==== +  [[https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/|uBlock Origin]] 
- +  * [[https://addons.mozilla.org/en-US/firefox/addon/decentraleyes/|Decentraleyes]] 
-  https://www.startpage.com/ +  * [[https://addons.mozilla.org/en-US/firefox/addon/privacy-badger17/|Privacy Badger]]
- +
-==== Download ==== +
- +
-  * Decentraleyes +
-  * 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/ +
- +
-====== 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 ===== +
- +
-==== Show Formats ==== +
- +
-  * Change ''x'' to a URL +
- +
-  youtube-dl --list-formats x +
- +
-==== Download ==== +
- +
-  * Change ''x'' to a URL +
-  * ''bestaudio'' can be changed to ''bestvideo'' for just video, or ''best'' for best video with audio +
- +
-  youtube-dl --extract-audio --format 'bestaudio'+
- +
-===== Shortcuts ===== +
- +
-  /usr/share/applications +
- +
-  ~/.local/share/applications +
- +
-===== Icons ===== +
- +
-  /usr/share/icons/hicolor +
- +
-  ~/.local/share/icons/hicolor +
- +
-===== Zypper ===== +
- +
-==== Find Orphans ====+
  
 **** ****
  
-  zypper packages --orphaned+<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
  
-==== Remove Package and Deps ====+! End</code>
  
-****+===== DNS over HTTPS =====
  
-  sudo zypper remove --clean-deps 'x'+  * [[notes:dns_servers#quad9|Quad9]], see [[notes:dns_servers]] for other addresses
  
-==== Show Installed Patterns ====+<code>https://dns.quad9.net/dns-query</code>
  
-****+====== Server ======
  
-  sudo zypper patterns --installed-only+  * For workstations that run servers as a secondary directive 
 +  * For headless servers, use [[distros:opensuse_tumbleweed_server|openSUSE TW (Server)]]
  
-==== Folder ====+===== Automatic Updates =====
  
-****+==== Service ====
  
-  ls '/etc/zypp/repos.d'+  sudo -e '/etc/systemd/system/suse-up.service'
  
-==== List ====+<code> 
 +[Service] 
 +Type=oneshot 
 +ExecStartPre='/usr/bin/zypper' clean --all 
 +ExecStart='/usr/bin/zypper' --non-interactive refresh --force --services 
 +ExecStart='/usr/bin/zypper' --non-interactive dist-upgrade --auto-agree-with-licenses --allow-downgrade --allow-name-change --allow-arch-change --allow-vendor-change 
 +ExecStartPost='/usr/bin/sync' 
 +ExecStartPost='/usr/bin/systemctl' reboot</code>
  
-**** +==== Timer ====
- +
-  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 -v --all +
- +
-===== GNOME Monitors Reset ===== +
- +
-**** +
- +
-  rm -f ~/'.config/monitors.xml' ~/'.config/monitors.xml~' +
- +
-===== 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 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 zypper install 'hdparm' && sync +
- +
-  sudo hdparm -I '/dev/sda' +
- +
-  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 ==== +
- +
-**** +
- +
-  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 +
- +
-===== Display EDID Info ===== +
- +
-  * https://unix.stackexchange.com/a/114398 +
-  * TODO: openSUSE +
- +
-  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 ====+  * 06:00 Oak
  
-  ''Identifier'' is the name of the port on the GPU the display is connected to +  sudo -e '/etc/systemd/system/suse-up.timer&& sudo systemctl daemon-reload && sudo systemctl enable 'suse-up.timer--now
-  * ''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=*-*-* 06: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;' +
- +
-===== FirewallD ===== +
- +
-==== List Active Rules ==== +
- +
-**** +
- +
-  sudo firewall-cmd --list-all +
- +
-==== List Available Services ==== +
- +
-**** +
- +
-  sudo firewall-cmd --get-service +
- +
-==== Reload ==== +
- +
-**** +
- +
-  sudo firewall-cmd --reload +
- +
-==== Add/Remove Service ==== +
- +
-  * Add ''--permanent'' as-needed to allow the rule to persist +
- +
-  sudo firewall-cmd --add-service=x +
- +
-  sudo firewall-cmd --remove-service=x +
- +
-==== Add/Remove Port ==== +
- +
-  * Add ''--permanent'' as-needed to allow the rule to persist +
-  * Change ''tcp'' to ''udp'' as-needed +
- +
-  sudo firewall-cmd --add-port=x/tcp +
- +
-  sudo firewall-cmd --remove-port=x/tcp +
- +
-===== 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' +
- +
-==== Remove EXIF data ====+
  
-  sudo zypper install 'exiftool'+  * See [[notes:misc_linux#opensuse|misc_linux]]
  
-  exiftool -all= *.* -overwrite_original 
/var/www/wiki/data/attic/distros/opensuse_tumbleweed_gnome.1559229087.txt.gz · Last modified: 2019/05/30 11:11 by Sean Rhone