notes:misc_linux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:misc_linux [2023/03/12 20:12] – [Read Main Config] Sean Rhone | notes:misc_linux [2024/03/29 18:49] (current) – Sean Rhone | ||
---|---|---|---|
Line 15: | Line 15: | ||
7z x -o'/ | 7z x -o'/ | ||
- | ====== | + | ====== |
- | * https://ytdl-org.github.io/youtube-dl/index.html | + | * https:// |
===== Download ===== | ===== Download ===== | ||
Line 23: | Line 23: | ||
**** | **** | ||
- | rm -f '/tmp/youtube-dl' && wget -O '/tmp/youtube-dl' ' | + | rm -f '/tmp/yt-dlp' && wget -O '/tmp/yt-dlp' ' |
===== Show Formats ===== | ===== Show Formats ===== | ||
Line 29: | Line 29: | ||
* Change '' | * Change '' | ||
- | '/tmp/youtube-dl' --list-formats x | + | '/tmp/yt-dlp' --list-formats x |
===== Download Media ===== | ===== Download Media ===== | ||
Line 36: | Line 36: | ||
* '' | * '' | ||
- | '/tmp/youtube-dl' --extract-audio --format ' | + | '/tmp/yt-dlp' --extract-audio --format ' |
==== M4A Audio ==== | ==== M4A Audio ==== | ||
Line 42: | Line 42: | ||
* Ideally for if iOS devices will be involved | * Ideally for if iOS devices will be involved | ||
- | '/tmp/youtube-dl' --extract-audio --format ' | + | '/tmp/yt-dlp' --extract-audio --format ' |
==== MP3 Audio ==== | ==== MP3 Audio ==== | ||
Line 48: | Line 48: | ||
**** | **** | ||
- | '/tmp/youtube-dl' --extract-audio --format ' | + | '/tmp/yt-dlp' --extract-audio --format ' |
====== Shortcuts ====== | ====== Shortcuts ====== | ||
Line 98: | Line 98: | ||
sudo dnf remove *5.3.7* && sync | sudo dnf remove *5.3.7* && sync | ||
+ | |||
+ | ====== openSUSE ====== | ||
+ | |||
+ | ===== Zypper ===== | ||
+ | |||
+ | ==== Find Orphans ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | zypper packages --orphaned | ||
+ | |||
+ | ==== Remove Package and Deps ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo zypper remove --clean-deps ' | ||
+ | |||
+ | ==== Show Installed Patterns ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo zypper patterns --installed-only | ||
+ | |||
+ | ==== Folder ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | ls '/ | ||
+ | |||
+ | ==== List ==== | ||
+ | |||
+ | **** | ||
+ | |||
+ | zypper repos --priority | ||
+ | |||
+ | ====== Firewalld ====== | ||
+ | |||
+ | ===== List Active Rules ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo firewall-cmd --list-all | ||
+ | |||
+ | ===== List Available Services ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo firewall-cmd --get-services | ||
+ | |||
+ | ===== Show Service Info ===== | ||
+ | |||
+ | * Change '' | ||
+ | * This shows what ports and protocols a service covers | ||
+ | |||
+ | sudo firewall-cmd --info-service=x | ||
+ | |||
+ | ===== Reload ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo firewall-cmd --reload | ||
+ | |||
+ | ===== Add/Remove Service ===== | ||
+ | |||
+ | * Add '' | ||
+ | |||
+ | sudo firewall-cmd --add-service=x | ||
+ | |||
+ | sudo firewall-cmd --remove-service=x | ||
+ | |||
+ | ===== Add/Remove Port ===== | ||
+ | |||
+ | * Add '' | ||
+ | * Change '' | ||
+ | |||
+ | sudo firewall-cmd --add-port=x/ | ||
+ | |||
+ | sudo firewall-cmd --remove-port=x/ | ||
====== PipeWire ====== | ====== PipeWire ====== | ||
- | ===== Copy Main Config ===== | + | ===== Set Default Rate ===== |
+ | |||
+ | mkdir -p ~/' | ||
+ | |||
+ | < | ||
+ | context.properties = { | ||
+ | default.clock.rate | ||
+ | default.clock.allowed-rates = [ 44100 48000 88200 96000 192000 ] | ||
+ | }</ | ||
+ | |||
+ | ===== User Config ===== | ||
* Copy main config to user folder | * Copy main config to user folder | ||
- | mkdir -p ~/' | + | mkdir -p ~/' |
- | | + | |
===== Read Main Config ===== | ===== Read Main Config ===== | ||
Line 117: | Line 205: | ||
nano '/ | nano '/ | ||
- | ===== Edit User Config | + | ===== WirePlumber Settings Reset ===== |
- | | + | |
- | | + | |
====== GPG Keys ====== | ====== GPG Keys ====== | ||
Line 172: | Line 260: | ||
sudo touch '/ | sudo touch '/ | ||
+ | |||
+ | ====== tracker3 Reset ====== | ||
+ | |||
+ | **** | ||
+ | |||
+ | < | ||
====== GNOME Monitors Reset ====== | ====== GNOME Monitors Reset ====== | ||
Line 189: | Line 283: | ||
journalctl -e _COMM=' | journalctl -e _COMM=' | ||
- | gio open ~/' | + | gio open ~/' |
+ | |||
+ | mousepad '/ | ||
====== Verify DRI3 ====== | ====== Verify DRI3 ====== | ||
Line 291: | Line 387: | ||
===== Create Software RAID ===== | ===== Create Software RAID ===== | ||
- | | + | ==== Fedora Anaconda ==== |
+ | |||
+ | | ||
+ | * Compared to old notes, the RAID device needs to be under ''/ | ||
+ | | ||
+ | |||
+ | sudo mdadm --create '/ | ||
+ | |||
+ | ==== Old ==== | ||
+ | |||
+ | * :?: Came from old notes; this used to work for an Acer Predator laptop that had 3 SSDs | ||
sudo mdadm --create '/ | sudo mdadm --create '/ | ||
+ | |||
+ | ====== Fix MacBook Battery CPU Throttling ====== | ||
+ | |||
+ | * 2023/07/17: This solves a MacBook Pro Mid-2010 with Intel C2D from being stuck at 1.5GHz CPU due to a missing internal battery, by unlocking full-performance | ||
+ | |||
+ | sudo dnf install ' | ||
+ | |||
+ | sudo wrmsr --all ' | ||
+ | |||
+ | ===== Verify ===== | ||
+ | |||
+ | * '' | ||
+ | |||
+ | sudo rdmsr --all ' | ||
====== VGA Switcheroo Power States ====== | ====== VGA Switcheroo Power States ====== | ||
Line 303: | Line 423: | ||
====== ACPI Tables ====== | ====== ACPI Tables ====== | ||
+ | **** | ||
+ | |||
+ | sudo strings '/ | ||
+ | |||
+ | ===== Old Method ===== | ||
+ | |||
+ | * Provides more information as to what certain '' | ||
* In '' | * In '' | ||
Line 369: | Line 496: | ||
* See [[notes: | * See [[notes: | ||
- | |||
- | ====== Intel GuC Firmware ====== | ||
- | |||
- | sudo cat '/ | ||
- | |||
- | sudo cat '/ | ||
====== HT/SMT Information ====== | ====== HT/SMT Information ====== | ||
Line 389: | Line 510: | ||
====== Privacy ====== | ====== Privacy ====== | ||
- | |||
===== Clear Terminal History ===== | ===== Clear Terminal History ===== | ||
Line 410: | Line 530: | ||
* '' | * '' | ||
+ | |||
+ | sudo apt install ' | ||
sudo dnf install ' | sudo dnf install ' | ||
Line 416: | Line 538: | ||
===== Remove EXIF data ===== | ===== Remove EXIF data ===== | ||
+ | |||
+ | sudo apt install ' | ||
sudo dnf install ' | sudo dnf install ' | ||
+ | |||
exiftool -all= *.* -overwrite_original | exiftool -all= *.* -overwrite_original | ||
/var/www/wiki/data/attic/notes/misc_linux.1678666363.txt.gz · Last modified: 2023/03/12 20:12 by Sean Rhone