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/12/25 05:58] (current) Sean Rhone
Line 3: Line 3:
   * Miscellaneous commands, paths, info, and syntax for Linux   * Miscellaneous commands, paths, info, and syntax for Linux
   * Most of this was previously under the "Notable Folders and Commands" section at the bottom of distro notes   * Most of this was previously under the "Notable Folders and Commands" section at the bottom of distro notes
- 
-====== 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 for UEFI (see [[linux:notes:woeusb|WoeUSB]] for Legacy/CSM) 
- 
-  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 
  
 ====== Shortcuts ====== ====== Shortcuts ======
Line 34: Line 23:
  
 ====== Fedora ====== ====== Fedora ======
 +
 +===== Keyboard Shortcuts =====
 +
 +  * [[linux;distros;fedora_workstation_gnome#keyboard_shortcuts]]
 +
 +===== 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 90:
  
   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 125:
  
 ===== Zypper ===== ===== Zypper =====
 +
 +==== Show Locked Packages ====
 +
 +****
 +
 +  zypper locks
  
 ==== Find Orphans ==== ==== Find Orphans ====
Line 122: Line 161:
  
   zypper repos --priority   zypper repos --priority
 +
 +==== Repo Packages ====
 +
 +  * http://download.opensuse.org/tumbleweed/repo/
  
 ====== PipeWire ====== ====== PipeWire ======
Line 177: Line 220:
   rm -Rf ~/'.cache/thumbnails'   rm -Rf ~/'.cache/thumbnails'
  
-====== List GNOME gsettings ======+====== GNOME ====== 
 + 
 +===== List gsettings =====
  
   * Change ''x'' to schema or omit it to show all settings   * Change ''x'' to schema or omit it to show all settings
Line 183: Line 228:
   gsettings list-recursively 'x'   gsettings list-recursively 'x'
  
-====== GNOME App Grid Reset ======+===== App Grid Reset =====
  
 **** ****
Line 189: Line 234:
   gsettings reset 'org.gnome.shell' 'app-picker-layout'   gsettings reset 'org.gnome.shell' 'app-picker-layout'
  
-====== GNOME Software Maintenance ======+===== Reset Last Settings Pane ===== 
 + 
 +  * 2025/07/13: Mouse settings caused crash possibly related to ''gl'' vs ''vulkan'' 
 + 
 +  gsettings reset 'org.gnome.Settings' 'last-panel' 
 + 
 +===== GNOME Software Maintenance =====
  
 **** ****
Line 201: Line 252:
   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 -Rf ~/'.cache/mesa_shader_cache'*'/'*
  
 ====== GNOME Monitors Reset ====== ====== GNOME Monitors Reset ======
Line 211: Line 277:
 **** ****
  
-  rm -~/'.config/monitors.xml' ~/'.config/monitors.xml~'+  sudo rm -fv ~/'.config/monitors.xml' '/etc/xdg/monitors.xml'
  
 ====== PulseAudio Reset ====== ====== PulseAudio Reset ======
Line 217: Line 283:
 **** ****
  
-  rm -~/'.config/pulse/'*+  rm -fv ~/'.config/pulse/'*
  
 ====== Xorg Debug ====== ====== Xorg Debug ======
Line 288: Line 354:
  
   rm -Rf '/tmp/GpuTest_Linux_'* && cd ~ && sync   rm -Rf '/tmp/GpuTest_Linux_'* && cd ~ && sync
 +
 +====== Network Link Speed ======
 +
 +****
 +
 +  cat '/sys/class/net/'*'/speed'
  
 ====== Show Sensors ====== ====== Show Sensors ======
Line 296: Line 368:
  
 ====== Show CPU Frequency ====== ====== Show CPU Frequency ======
 +
 +  * [[linux;notes;x86_energy_perf_policy]]
  
   grep 'MHz' '/proc/cpuinfo'   grep 'MHz' '/proc/cpuinfo'
Line 306: Line 380:
  
   openssl ciphers -v | awk '{print $2}' | sort | uniq   openssl ciphers -v | awk '{print $2}' | sort | uniq
 +
 +====== 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 563:
  
   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
 +
 +  * :?: TODO: Might need a VK dev package?
 +
 +  MESA_LOADER_DRIVER_OVERRIDE='zink' VK_INSTANCE_LAYERS='VK_LAYER_MESA_overlay' VK_LAYER_MESA_OVERLAY_CONFIG='fps,gpu_timing' glxgears
 +
 +====== 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 632:
 ===== 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

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki