Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| linux:start [2026/04/26 22:16] – [Archives] mh | linux:start [2026/10/31 22:34] (current) – [claude] align eGPU link label with page title (Core X) claude | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| -**[[linux: | -**[[linux: | ||
| -**[[linux: | -**[[linux: | ||
| - | -**[[linux: | + | -**[[linux: |
| -**[[linux: | -**[[linux: | ||
| Line 19: | Line 19: | ||
| <code bash> | <code bash> | ||
| - | tail -f / | + | tail -f / |
| + | journalctl -f # systemd journal (Fedora, Debian 12+) | ||
| </ | </ | ||
| Line 37: | Line 38: | ||
| ===== System information ===== | ===== System information ===== | ||
| - | === General overview: === | + | === General overview === |
| <code bash> | <code bash> | ||
| Line 43: | Line 44: | ||
| </ | </ | ||
| - | === Distribution: === | + | === Distribution === |
| <code bash> | <code bash> | ||
| Line 49: | Line 50: | ||
| </ | </ | ||
| - | === Kernel: === | + | === Kernel === |
| <code bash> | <code bash> | ||
| Line 59: | Line 60: | ||
| *'' | *'' | ||
| *'' | *'' | ||
| - | *'' | + | *'' |
| *'' | *'' | ||
| - | === CPU: === | + | === CPU === |
| <code bash> | <code bash> | ||
| Line 70: | Line 71: | ||
| </ | </ | ||
| - | === Memory: === | + | === Memory === |
| <code bash> | <code bash> | ||
| Line 76: | Line 77: | ||
| </ | </ | ||
| - | === Mounted filesystems: === | + | === Mounted filesystems === |
| <code bash> | <code bash> | ||
| Line 82: | Line 83: | ||
| </ | </ | ||
| - | === Kernel modules: === | + | === Kernel modules === |
| <code bash> | <code bash> | ||
| Line 88: | Line 89: | ||
| </ | </ | ||
| - | === Bash history: === | + | === Bash history === |
| <code bash> | <code bash> | ||
| Line 102: | Line 103: | ||
| dmesg -T | tail # recent kernel messages | dmesg -T | tail # recent kernel messages | ||
| vmstat 1 # system performance | vmstat 1 # system performance | ||
| - | mpstat -P ALL 1 # CPU usage per core | + | mpstat -P ALL 1 # CPU usage per core (package: sysstat) |
| - | pidstat | + | pidstat |
| free -h # memory usage | free -h # memory usage | ||
| </ | </ | ||
| Line 112: | Line 113: | ||
| ===== Mounting ===== | ===== Mounting ===== | ||
| - | === List mounts: === | + | === List mounts === |
| <code bash> | <code bash> | ||
| Line 118: | Line 119: | ||
| </ | </ | ||
| - | === List disks: === | + | === List disks === |
| <code bash> | <code bash> | ||
| Line 124: | Line 125: | ||
| </ | </ | ||
| - | === Mount: === | + | === Mount === |
| <code bash> | <code bash> | ||
| Line 131: | Line 132: | ||
| </ | </ | ||
| - | === Unmount: === | + | === Unmount === |
| <code bash> | <code bash> | ||
| Line 139: | Line 140: | ||
| ---- | ---- | ||
| - | ==== Samba ==== | + | ===== Samba ===== |
| - | Manage service: | + | ==== Manage service |
| <code bash> | <code bash> | ||
| Line 148: | Line 149: | ||
| sudo systemctl restart smbd | sudo systemctl restart smbd | ||
| </ | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== List available shares ==== | ||
| + | |||
| + | <code bash> | ||
| + | smbclient -L //host -U username | ||
| + | </ | ||
| + | |||
| + | * '' | ||
| + | * prompts for password | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Access a share (temporary mount) ==== | ||
| + | |||
| + | Create mount point if needed: | ||
| + | |||
| + | <code bash> | ||
| + | sudo mkdir -p /mnt/share | ||
| + | </ | ||
| + | |||
| + | Then mount: | ||
| + | |||
| + | <code bash> | ||
| + | sudo mount -t cifs // | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== GUI mounts (file manager) ==== | ||
| + | |||
| + | When mounting via a file manager (Nautilus, Nemo, etc.), shares are typically mounted under: | ||
| + | |||
| + | < | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Notes ==== | ||
| + | |||
| + | <WRAP info> | ||
| + | **Notes:** | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * SMB1 is deprecated and may be disabled on modern systems | ||
| + | </ | ||
| ---- | ---- | ||
| Line 161: | Line 211: | ||
| </ | </ | ||
| - | Then remount: | + | Create mount point if needed: |
| <code bash> | <code bash> | ||
| - | sudo mount -t ntfs3 / | + | sudo mkdir -p /mnt/ntfs |
| </ | </ | ||
| - | Create mount point if needed: | + | Then remount: |
| <code bash> | <code bash> | ||
| - | sudo mkdir -p /mnt/ntfs | + | sudo mount -t ntfs3 / |
| </ | </ | ||
| Line 220: | Line 270: | ||
| === Mass renaming === | === Mass renaming === | ||
| - | Uppercase .JPG to lowercase .jpg | + | __**Changing an extension: |
| <code bash> | <code bash> | ||
| Line 226: | Line 276: | ||
| </ | </ | ||
| - | Alternative (rename tool): | + | __**Changing a prefix: |
| + | |||
| + | <code bash> | ||
| + | for i in " | ||
| + | mv -n -- " | ||
| + | done | ||
| + | </ | ||
| + | |||
| + | * ''" | ||
| + | * '' | ||
| + | * In Bash parameter expansion, the ''#'' | ||
| + | * '' | ||
| + | * '' | ||
| + | * ''" | ||
| + | |||
| + | __**Alternative (rename tool):**__ | ||
| <code bash> | <code bash> | ||
| rename ' | rename ' | ||
| </ | </ | ||
| + | |||
| + | * Use the '' | ||
| + | * Use '' | ||
| + | * On Linux Mint / Ubuntu, '' | ||
| + | * On Ubuntu / Mint the Perl-style '' | ||
| + | * The '' | ||
| + | * For safety, preview first with '' | ||
| ---- | ---- | ||
| Line 315: | Line 387: | ||
| </ | </ | ||
| - | [[http:// | + | [[https:// |
| === Add to PATH === | === Add to PATH === | ||
| Line 417: | Line 489: | ||
| < | < | ||
| GRUB_BACKGROUND=/ | GRUB_BACKGROUND=/ | ||
| + | </ | ||
| + | |||
| + | Apply the change: | ||
| + | |||
| + | <code bash> | ||
| + | # Ubuntu / Mint | ||
| + | sudo update-grub | ||
| + | |||
| + | # Fedora | ||
| + | sudo grub2-mkconfig -o / | ||
| </ | </ | ||
| Line 449: | Line 531: | ||
| <code bash> | <code bash> | ||
| - | $ sudo fc-cache -f -v | + | fc-cache -f -v |
| </ | </ | ||
| Line 487: | Line 569: | ||
| It often reduces file size, especially with image-heavy PDFs, but this is not guaranteed. | It often reduces file size, especially with image-heavy PDFs, but this is not guaranteed. | ||
| </ | </ | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | ===== Data recovery ===== | ||
| - | |||
| - | Use **TestDisk** / **PhotoRec** as a first recovery tool. | ||
| - | |||
| - | * **TestDisk** attempts partition repair and file undelete when filesystem metadata is still usable. | ||
| - | * **PhotoRec** performs file carving by signature. It can recover files from damaged filesystems, | ||
| - | |||
| - | Do not write recovered files to the source disk. | ||
| - | |||
| - | ==== PhotoRec: recovered MOV files ==== | ||
| - | |||
| - | For some recovered '' | ||
| - | |||
| - | In PhotoRec '' | ||
| - | |||
| - | < | ||
| - | [X] mov/mdat Recover mdat atom as a separate file | ||
| - | </ | ||
| - | |||
| - | Sort recovered files by name, then try concatenating matching parts: | ||
| - | |||
| - | <code bash> | ||
| - | cat f123_ftyp.mov f456_mdat.mov > recovered_1.mov | ||
| - | cat f456_mdat.mov f123_ftyp.mov > recovered_2.mov | ||
| - | </ | ||
| - | |||
| - | One order may produce a usable file. | ||
| - | |||
| - | Sometimes the header/ | ||
| - | |||
| - | <code bash> | ||
| - | cat f54114560.mp4 f51781632_mdat.mov > recovered.mov | ||
| - | </ | ||
| - | |||
| - | Note: This is a recovery attempt, not a guaranteed repair method. For valuable data, stop using the disk immediately and clone/image it before experimenting. | ||
| - | |||
| ===== Video playback (minimal UI) ===== | ===== Video playback (minimal UI) ===== | ||
| Line 579: | Line 621: | ||
| </ | </ | ||
| - | ===== Using Apple USB SuperDrive | + | ===== Alias ===== |
| - | The Apple USB SuperDrive requires a vendor-specific command to activate on non-Apple systems. | + | Create an alias: |
| - | === Required package === | + | <code bash> |
| + | alias name=' | ||
| + | </ | ||
| + | |||
| + | Example: | ||
| <code bash> | <code bash> | ||
| - | sudo apt install sg3-utils | + | alias ll=' |
| </ | </ | ||
| - | === Identify device === | + | Aliases are active for the current session only. |
| - | Usually appears as ''/ | + | To make them persistent, add them to: |
| - | < | + | < |
| - | lsblk | + | ~/.bashrc |
| </ | </ | ||
| - | === Send activation command === | + | Reload configuration: |
| <code bash> | <code bash> | ||
| - | sudo sg_raw | + | source ~/.bashrc |
| + | # or | ||
| + | . ~/.bashrc | ||
| </ | </ | ||
| - | The drive should become usable immediately after. | + | ---- |
| - | <WRAP info> | + | ==== Manage aliases ==== |
| - | **Note:** This command must be reissued after reconnecting the drive. | + | |
| - | </ | + | |
| - | ===== QCAD (plugin location) ===== | + | List aliases: |
| - | <WRAP center round alert 60%> | + | <code bash> |
| - | NOTE : MOVE TO BOTTOM ' | + | alias |
| - | </WRAP> | + | </code> |
| + | Remove an alias: | ||
| - | To locate the QCAD plugin directory: | + | <code bash> |
| + | unalias name | ||
| + | </ | ||
| - | Go to: | + | ===== Package management ===== |
| - | * Help > About > Plugins (Linux / Windows) | + | |
| - | * QCAD > About > Plugins (macOS) | + | |
| - | Click on any plugin name to reveal its file location. | + | ==== Fix broken packages ==== |
| - | <WRAP info> | + | __**Ubuntu / Mint (apt):**__ |
| - | **Note:** Useful for locating and removing plugins related to trial limitations. | + | |
| - | </ | + | |
| - | ===== Screen recording ===== | + | <code bash> |
| + | sudo dpkg --configure -a | ||
| + | sudo apt --fix-broken install | ||
| + | </ | ||
| - | ==== Recommended ==== | + | __**Fedora (dnf):**__ |
| - | * **OBS Studio** → full-featured, actively maintained, works for both simple and advanced recording | + | <code bash> |
| + | sudo dnf distro-sync | ||
| + | sudo rpm --rebuilddb | ||
| + | </ | ||
| - | ==== Lightweight alternatives ==== | + | * '' |
| + | * '' | ||
| - | * simplescreenrecorder → lightweight, | ||
| - | * vokoscreenNG → simple GUI, good for quick recordings | ||
| - | ==== Notes ==== | + | ====== Specialized & Recovery ====== |
| - | * Older tools such as Kazam or gtk-recordmydesktop are largely unmaintained and may not work reliably on modern systems | + | ===== Data recovery ===== |
| - | * Wayland sessions may require OBS or desktop-native recording tools | + | |
| - | ===== Samba ===== | + | Use **TestDisk** / **PhotoRec** as a first recovery tool. |
| - | ==== List available shares ==== | + | * **TestDisk** attempts partition repair and file undelete when filesystem metadata is still usable. |
| + | * **PhotoRec** performs file carving by signature. It can recover files from damaged filesystems, | ||
| - | <code bash> | + | Do not write recovered files to the source disk. |
| - | smbclient -L //host -U username | + | |
| - | </ | + | |
| - | * '' | + | ==== PhotoRec: recovered MOV files ==== |
| - | * prompts for password | + | |
| - | ---- | + | For some recovered '' |
| - | ==== Access a share (temporary mount) ==== | + | In PhotoRec '' |
| - | < | + | < |
| - | sudo mount -t cifs //host/share /mnt/share -o username=user | + | [X] mov/mdat Recover mdat atom as a separate file |
| </ | </ | ||
| - | Create mount point if needed: | + | Sort recovered files by name, then try concatenating matching parts: |
| <code bash> | <code bash> | ||
| - | sudo mkdir -p /mnt/share | + | cat f123_ftyp.mov f456_mdat.mov > recovered_1.mov |
| + | cat f456_mdat.mov f123_ftyp.mov > recovered_2.mov | ||
| </ | </ | ||
| - | ---- | + | One order may produce a usable file. |
| - | ==== GUI mounts (file manager) ==== | + | Sometimes the header/ |
| - | When mounting via a file manager (Nautilus, Nemo, etc.), shares are typically mounted under: | + | < |
| - | + | cat f54114560.mp4 f51781632_mdat.mov > recovered.mov | |
| - | < | + | |
| - | / | + | |
| </ | </ | ||
| - | ---- | + | Note: This is a recovery attempt, not a guaranteed repair method. For valuable data, stop using the disk immediately and clone/image it before experimenting. |
| - | ==== Notes ==== | ||
| - | <WRAP info> | ||
| - | **Notes:** | ||
| - | * '' | + | ===== Using Apple USB SuperDrive ===== |
| - | * '' | + | |
| - | * SMB1 is deprecated and may be disabled on modern systems | + | |
| - | </ | + | |
| - | ===== Alias ===== | + | The Apple USB SuperDrive requires a vendor-specific command to activate on non-Apple systems. |
| - | Create an alias: | + | === Required package === |
| <code bash> | <code bash> | ||
| - | alias name=' | + | sudo apt install sg3-utils |
| </ | </ | ||
| - | Example: | + | === Identify device === |
| + | |||
| + | Usually appears as ''/ | ||
| <code bash> | <code bash> | ||
| - | alias ll='ls -lah' | + | lsblk |
| </ | </ | ||
| - | Aliases are active for the current session only. | + | === Send activation command === |
| - | To make them persistent, add them to: | + | < |
| - | + | sudo sg_raw /dev/sr0 EA 00 00 00 00 00 01 | |
| - | < | + | |
| - | ~/.bashrc | + | |
| </ | </ | ||
| - | Reload configuration: | + | The drive should become usable immediately after. |
| - | <code bash> | + | <WRAP info> |
| - | source ~/.bashrc | + | **Note:** This command must be reissued after reconnecting the drive. |
| - | # or | + | </WRAP> |
| - | . ~/.bashrc | + | |
| - | </code> | + | |
| - | ---- | + | ===== Additional Resources ===== |
| - | ==== Manage aliases ==== | + | * [[https:// |
| + | * [[https:// | ||
| - | List aliases: | ||
| - | <code bash> | + | ====== Misc / Desktop ====== |
| - | alias | + | |
| - | </code> | + | |
| - | Remove an alias: | + | ===== Screen recording ===== |
| - | <code bash> | + | ==== Recommended ==== |
| - | unalias name | + | |
| - | </ | + | * **OBS Studio** → full-featured, |
| + | |||
| + | ==== Lightweight alternatives ==== | ||
| + | |||
| + | * simplescreenrecorder → lightweight, | ||
| + | * vokoscreenNG → simple GUI, good for quick recordings | ||
| + | * Spectacle → on Fedora (KDE Plasma), the native screenshot tool can also record video; nothing to install | ||
| + | |||
| + | ==== Notes ==== | ||
| + | |||
| + | * Older tools such as Kazam or gtk-recordmydesktop are largely unmaintained and may not work reliably on modern systems | ||
| + | * Wayland sessions may require OBS or desktop-native recording tools | ||
| ===== Mouse button mapping ===== | ===== Mouse button mapping ===== | ||
| Line 783: | Line 830: | ||
| </ | </ | ||
| + | ===== QCAD (plugin location) ===== | ||
| + | To locate the QCAD plugin directory: | ||
| + | Go to: | ||
| + | * Help > About > Plugins (Linux / Windows) | ||
| + | * QCAD > About > Plugins (macOS) | ||
| + | Click on any plugin name to reveal its file location. | ||
| - | ==== Package management ==== | + | <WRAP info> |
| - | + | **Note:** Useful | |
| - | === Fix broken packages === | + | </WRAP> |
| - | + | ||
| - | <code bash> | + | |
| - | sudo dpkg --configure -a | + | |
| - | sudo apt --fix-broken install | + | |
| - | </ | + | |
| - | + | ||
| - | ---- | + | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | ===== Additional Ressources ===== | + | |
| - | + | ||
| - | | + | |
| - | + | ||
| - | ***[[https:// | + | |
| - | + | ||
| - | ***[[https:// | + | |