User Tools

Site Tools


linux:notes:misc

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
linux:notes:misc [2024/10/29 22:14] – [Extract ISO] Sean Rhonelinux:notes:misc [2025/05/16 21:39] (current) – external edit 127.0.0.1
Line 34: Line 34:
  
 ====== Fedora ====== ====== Fedora ======
 +
 +===== Keyboard Shortcuts =====
 +
 +  * [[linux;distros;fedora_workstation_gnome#keyboard_shortcuts]]
 +
 +==== GNOME Terminal ====
 +
 +  * F41: ''ptyxis'' copies/pastes inconsistently ([[https://discussion.fedoraproject.org/t/port-forward-not-working-in-fedora-41-no-route-to-host/143442/33|post]])
 +
 +  sudo dnf install gnome-terminal
 +
 +<code>gnome-terminal</code>
 +
 +<code>gnome-terminal --title='Fedora Updater' -- bash -c "sudo dnf clean 'all' && sudo dnf update -y && sync && sudo flatpak update && flatpak update && sync && sudo restorecon -F -I -R ~ && sudo fstrim --all --verbose && sync && read -n '1' -s -r -p 'Done. Press any key to exit.'"</code>
 +
 +===== Adoptium Java =====
 +
 +  * https://fedoraproject.org/wiki/Changes/ThirdPartyLegacyJdks
 +  * Potentially useful for F42
 +
 +==== Repo ====
 +
 +  sudo dnf install 'adoptium-temurin-java-repository'
 +
 +  sudo dnf config-manager 'setopt' 'adoptium-temurin-java-repository'.'enabled'='1'
 +
 +==== Install ====
 +
 +  sudo dnf install 'temurin-11-jdk'
 +
 +  JAVA_HOME='/usr/lib/jvm/temurin-11-jdk'
 +
 +=== Non-Temurin/Fedora ===
 +
 +****
 +
 +  sudo dnf install 'java-openjdk' --setopt='adoptium-temurin-java-repository.enabled=0' --exclude='temurin*'
  
 ===== Anaconda Module Blacklists ===== ===== Anaconda Module Blacklists =====
Line 74: Line 111:
  
   sudo dnf config-manager 'setopt' 'rpmfusion-'*'-updates-testing'.'enabled'='1'   sudo dnf config-manager 'setopt' 'rpmfusion-'*'-updates-testing'.'enabled'='1'
 +
 +==== Add Repo ====
 +
 +  sudo dnf config-manager addrepo --from-repofile='x'
 +
 +  sudo dnf config-manager addrepo --from-repofile='https://dl.winehq.org/wine-builds/fedora/40/winehq.repo'
 +
 +==== Tor Socks ====
 +
 +  * https://discussion.fedoraproject.org/t/openh264-update-issue/117380/12
 +  * :?: Looks useful for using ''dnf'' on restrictive networks
 +
 +  sudo dnf install tor
 +
 +  sudo systemctl enable tor.service --now
 +
 +  sudo torsocks dnf upgrade --refresh
  
 ==== Autoremove Fix ==== ==== Autoremove Fix ====
Line 92: Line 146:
  
 ===== Zypper ===== ===== Zypper =====
 +
 +==== Show Locked Packages ====
 +
 +****
 +
 +  zypper locks
  
 ==== Find Orphans ==== ==== Find Orphans ====
Line 122: Line 182:
  
   zypper repos --priority   zypper repos --priority
 +
 +==== Repo Packages ====
 +
 +  * http://download.opensuse.org/tumbleweed/repo/
  
 ====== PipeWire ====== ====== PipeWire ======
Line 201: Line 265:
   sudo fstrim --verbose --all   sudo fstrim --verbose --all
  
-====== tracker3 Reset ======+====== Tracker ====== 
 + 
 +  * https://tracker.gnome.org/ 
 +  * Aka ''localsearch'' and ''tinysparql'' 
 + 
 +  localsearch reset --filesystem 
 + 
 +  tracker3 reset --filesystem --rss 
 + 
 +====== journalctl ====== 
 + 
 +  sudo journalctl --sync --flush --rotate --update-catalog --vacuum-time='1d' 
 + 
 +  sudo journalctl --verify 
 + 
 +====== Mesa Shader Cache Clear ======
  
 **** ****
  
-<code>tracker3 reset --filesystem --rss</code>+  rm -Rfv ~/'.cache/mesa_shader_cache'*'/'*
  
 ====== GNOME Monitors Reset ====== ====== GNOME Monitors Reset ======
Line 211: Line 290:
 **** ****
  
-  rm -~/'.config/monitors.xml' ~/'.config/monitors.xml~'+  rm -fv ~/'.config/monitors.xml' ~/'.config/monitors.xml~'
  
 ====== PulseAudio Reset ====== ====== PulseAudio Reset ======
Line 217: Line 296:
 **** ****
  
-  rm -~/'.config/pulse/'*+  rm -fv ~/'.config/pulse/'*
  
 ====== Xorg Debug ====== ====== Xorg Debug ======
Line 296: Line 375:
  
 ====== Show CPU Frequency ====== ====== Show CPU Frequency ======
 +
 +  * [[linux;notes;x86_energy_perf_policy]]
  
   grep 'MHz' '/proc/cpuinfo'   grep 'MHz' '/proc/cpuinfo'
Line 306: Line 387:
  
   openssl ciphers -v | awk '{print $2}' | sort | uniq   openssl ciphers -v | awk '{print $2}' | sort | uniq
 +
 +====== FIPS ======
 +
 +  * oS TW has 140-3! (TODO: try install-time option)
 +  * 2025/04/22: ''kgx'' crashed on-start
 +  * openSUSE had gnutls errors about missing hmac post-install with ''patterns'' install
 +  * Looks like an OpenSSL 1.1 hmac package existed for Leap/non-TW implying it's not actively supported on TW?
 +  * hmac files look able to be generated wtih ''fipshmac''
 +  * 2025/04/22: ''update-crypto-policies'' at ''FUTURE'' prevented a ''wget'' on a [[games;linux;dota_2_steamcmd#install1|GitLab url]]
 +
 +  * 2025/04: F42 Xfce prerelease had ''xfce4-terminal'' crash on maximize
 +
 +===== Random Commands =====
 +
 +  * [[linux;distros;opensuse_tumbleweed_gnome]]
 +
 +  GNUTLS_DEBUG_LEVEL=666 OPENSSL_FIPS=1 kgx
 +
 +  sudo fips-mode-setup
 +
 +  openssl md5 'todo suse.txt'
 +
 +  sudo update-crypto-policies --show
 +
 +  sudo sysctl -a | grep fips
 +
 +  sudo fips-mode-setup --enable
 +
 +  sudo zypper in patterns-base-fips
 +
 +  fipshmac --help
 +
 +  sudo update-crypto-policies --set 'FUTURE'
 +
 +  sudo update-crypto-policies --set 'DEFAULT'
 +
 +====== Firmware Update ======
 +
 +===== fwupdmgr =====
 +
 +****
 +
 +  sudo fwupdmgr refresh --force && sudo fwupdmgr update --verbose
 +
 +====== Flatpak ======
 +
 +===== Update =====
 +
 +****
 +
 +  flatpak update && sudo flatpak update
  
 ====== Partition Information ====== ====== Partition Information ======
Line 473: Line 605:
  
   gcc -v -E -x c -march=native -mtune=native - < /dev/null 2>&1 | grep cc1 | perl -pe 's/ -mno-\S+//g; s/^.* - //g;'   gcc -v -E -x c -march=native -mtune=native - < /dev/null 2>&1 | grep cc1 | perl -pe 's/ -mno-\S+//g; s/^.* - //g;'
 +
 +====== Generate QR ======
 +
 +  sudo dnf install 'qrencode'
 +
 +  qrencode -o ~/'x.png' 'x'
 +
 +  qrencode -o ~/'x.png' -s '6' 'https://wiki.realmofespionage.xyz/linux;notes;misc'
 +
 +====== Mesa Envs ======
 +
 +  mesa_glthread='true'
 +
 +  vblank_mode='0'
 +
 +  vblank_mode='3'
 +
 +  MESA_LOADER_DRIVER_OVERRIDE='zink'
 +
 +  MESA_VK_WSI_PRESENT_MODE='immediate'
 +
 +===== HUD =====
 +
 +  * TODO: Scaling sizes
 +
 +  mesa_glthread='false' GALLIUM_HUD='cpu0+cpu1+cpu2+cpu3;cpu4+cpu5+cpu6+cpu7;fps'
 +
 +  mesa_glthread='true' GALLIUM_HUD='cpu0+cpu1+cpu2+cpu3;cpu4+cpu5+cpu6+cpu7;API-thread-offloaded-slots+API-thread-direct-slots+API-thread-num-syncs;fps'
 +
 +  DXVK_HUD='full'
 +
 +  VK_INSTANCE_LAYERS='VK_LAYER_MESA_overlay' VK_LAYER_MESA_OVERLAY_CONFIG='fps,gpu_timing'
 +
 +  VK_INSTANCE_LAYERS='VK_LAYER_MESA_overlay' VK_LAYER_MESA_OVERLAY_CONFIG='help' vkcube
 +
 +====== SDL Envs ======
 +
 +  * :?: SDL Enable/Disable are about the system cursor being shown with the app's cursor
 +
 +  SDL_VIDEO_DRIVER='x11'
 +
 +  SDL_VIDEO_DRIVER='wayland'
 +
 +  SDL_ENABLE='1'
 +
 +  SDL_DISABLE='1'
 +
 +  OSU_SDL3='1'
 +
 +====== Wine Envs ======
 +
 +  * :?: ''DISPLAY='' might not be required on newer Wine for Wayland
 +
 +  WINEDLLOVERRIDES='dsound=n'
 +
 +  WINEDLLOVERRIDES='winemenubuilder.exe=d'
 +
 +  DISPLAY=
 +
 +  WINEDEBUG=''
  
 ====== Privacy ====== ====== Privacy ======
Line 478: Line 670:
 ===== Clear Terminal History ===== ===== Clear Terminal History =====
  
-  TODO: ''-w'' and ''-a'' differences+****
  
   history -cw   history -cw
- 
-  history -ca 
  
 ===== Create 7z Password Archive ===== ===== Create 7z Password Archive =====
C:/www/wiki/data/attic/linux/notes/misc.1730254487.txt.gz · Last modified: by Sean Rhone