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 [2025/03/31 11:43] Sean Rhonelinux:notes:misc [2026/08/02 21:16] (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 30: Line 19:
  
   cat '/etc/os-release'   cat '/etc/os-release'
 +
 +  cat '/usr/lib/os-release'
  
   cat '/etc/os-release' | grep 'PRETTY_NAME'   cat '/etc/os-release' | grep 'PRETTY_NAME'
 +
 +===== openSUSE Tumbleweed =====
 +
 +  cat '/etc/os-release' | grep '#CPE_NAME='
 +
 +  uname -a
  
 ====== Fedora ====== ====== Fedora ======
Line 38: Line 35:
  
   * [[linux;distros;fedora_workstation_gnome#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 ===== ===== Adoptium Java =====
Line 146: Line 133:
  
 ===== Zypper ===== ===== Zypper =====
 +
 +==== Show Locked Packages ====
 +
 +****
 +
 +  zypper locks
  
 ==== Find Orphans ==== ==== Find Orphans ====
Line 176: Line 169:
  
   zypper repos --priority   zypper repos --priority
 +
 +==== Repo Packages ====
 +
 +  * http://download.opensuse.org/tumbleweed/repo/
  
 ====== PipeWire ====== ====== PipeWire ======
  
-===== Set Default Rate =====+===== Set Default Rates ===== 
 + 
 +  * [[https://wiki.archlinux.org/title/PipeWire#Changing_the_allowed_sample_rate(s)|Source]] 
 + 
 +  grep -E 'Codec|Audio Output|rates' /proc/asound/card*/codec#*
  
   mkdir -p ~/'.config/pipewire/pipewire.conf.d' && nano ~/'.config/pipewire/pipewire.conf.d/99-custom.conf'   mkdir -p ~/'.config/pipewire/pipewire.conf.d' && nano ~/'.config/pipewire/pipewire.conf.d/99-custom.conf'
Line 185: Line 186:
 <code> <code>
 context.properties = { context.properties = {
-    default.clock.rate          = 192000 +    default.clock.allowed-rates = [ 44100 48000 96000 192000 ] 
-    default.clock.allowed-rates = [ 44100 48000 88200 96000 192000 ] +} 
-}</code>+ 
 +# End</code>
  
 ===== User Config ===== ===== User Config =====
Line 231: Line 233:
   rm -Rf ~/'.cache/thumbnails'   rm -Rf ~/'.cache/thumbnails'
  
-====== List GNOME gsettings ======+====== GNOME ======
  
-  * Change ''x'' to schema or omit it to show all settings+  * [[linux:notes:gsettings]]
  
-  gsettings list-recursively 'x' +===== GNOME Software Maintenance =====
- +
-====== GNOME App Grid Reset ====== +
- +
-**** +
- +
-  gsettings reset 'org.gnome.shell' 'app-picker-layout' +
- +
-====== GNOME Software Maintenance ======+
  
 **** ****
Line 255: Line 249:
   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'
  
-<code>tracker3 reset --filesystem --rss</code>+  sudo journalctl --verify
  
 ====== Mesa Shader Cache Clear ====== ====== Mesa Shader Cache Clear ======
Line 265: Line 268:
 **** ****
  
-  rm -Rfv ~/'.cache/mesa_shader_cache'*'/'*+  rm -Rf ~/'.cache/mesa_shader_cache'*'/'*
  
 ====== GNOME Monitors Reset ====== ====== GNOME Monitors Reset ======
Line 271: Line 274:
 **** ****
  
-  rm -fv ~/'.config/monitors.xml' ~/'.config/monitors.xml~'+  sudo rm -fv ~/'.config/monitors.xml' '/etc/xdg/monitors.xml'
  
 ====== PulseAudio Reset ====== ====== PulseAudio Reset ======
Line 348: Line 351:
  
   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 358: Line 367:
  
   * [[linux;notes;x86_energy_perf_policy]]   * [[linux;notes;x86_energy_perf_policy]]
 +
 +  watch --interval '0.5' grep \'cpu MHz\' '/proc/cpuinfo'
  
   grep 'MHz' '/proc/cpuinfo'   grep 'MHz' '/proc/cpuinfo'
  
-  watch --interval '0.5' grep \'cpu MHz\' '/proc/cpuinfo'+  cat '/sys/devices/system/cpu/cpu'*'/cpufreq/scaling_cur_freq' 
 + 
 +  cpupower frequency-info
  
 ====== OpenSSL Supported Ciphers ====== ====== OpenSSL Supported Ciphers ======
Line 368: Line 381:
  
   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 558: Line 587:
 ===== HUD ===== ===== HUD =====
  
-  GALLIUM_HUD='cpu0+cpu1+cpu2+cpu3;cpu4+cpu5+cpu6+cpu7;fps'+  * TODO: Scaling sizes
  
-  GALLIUM_HUD='cpu0+cpu1+cpu2+cpu3;cpu4+cpu5+cpu6+cpu7;API-thread-offloaded-slots+API-thread-direct-slots+API-thread-num-syncs;fps'+  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'   DXVK_HUD='full'
Line 567: Line 598:
  
   VK_INSTANCE_LAYERS='VK_LAYER_MESA_overlay' VK_LAYER_MESA_OVERLAY_CONFIG='help' vkcube   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 Envs ======
Line 581: Line 616:
  
   OSU_SDL3='1'   OSU_SDL3='1'
 +
 +====== sysctl Checks ======
 +
 +===== All Overrides =====
 +
 +  cat '/etc/sysctl.d/'*
 +
 +  ls '/etc/sysctl.d/'*
 +
 +===== BPF Disable =====
 +
 +  * ''kernel.unprivileged_bpf_disabled = 0''
 +
 +  '/usr/sbin/sysctl' 'kernel.unprivileged_bpf_disabled'
 +
 +===== Legacy MMap =====
 +
 +  * ''vm.legacy_va_layout = 1''
 +
 +  '/usr/sbin/sysctl' 'vm.legacy_va_layout'
 +
 +===== Perf Counters =====
 +
 +  * ''kernel.perf_event_paranoid = -1''
 +
 +  '/usr/sbin/sysctl' 'kernel.perf_event_paranoid'
 +
 +===== Intel Perf Counters =====
 +
 +  * ''dev.i915.perf_stream_paranoid = 0''
 +
 +  '/usr/sbin/sysctl' 'dev.i915.perf_stream_paranoid'
 +
 +===== Magic SysRq key =====
 +
 +  * ''kernel.sysrq = 1''
 +
 +  '/usr/sbin/sysctl' 'kernel.sysrq'
 +
 +===== Memory Map Count =====
 +
 +  * ''vm.max_map_count = 2147483642''
 +
 +  '/usr/sbin/sysctl' 'vm.max_map_count'
 +
 +===== Swappiness =====
 +
 +  * ''vm.swappiness = 0''
 +
 +  '/usr/sbin/sysctl' 'vm.swappiness'
  
 ====== Wine Envs ====== ====== Wine Envs ======
/usr/local/www/wiki/data/attic/linux/notes/misc.1743435824.txt.gz · Last modified: by Sean Rhone