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 15:45] – [Misc Ressources] 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: | ||
| + | |||
| + | ====== System & Diagnostics ====== | ||
| + | |||
| + | ===== Logs ===== | ||
| + | |||
| + | Common system logs: | ||
| + | |||
| + | < | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | View recent entries: | ||
| + | |||
| + | <code bash> | ||
| + | tail -f / | ||
| + | journalctl -f # systemd journal (Fedora, Debian 12+) | ||
| + | </ | ||
| + | |||
| + | List recently modified log files: | ||
| + | |||
| + | <code bash> | ||
| + | ls -lt /var/log | ||
| + | </ | ||
| + | |||
| + | <WRAP info> | ||
| + | **Notes:** | ||
| + | |||
| + | * '' | ||
| + | * On systemd systems, '' | ||
| + | </ | ||
| + | |||
| + | ===== System information ===== | ||
| + | |||
| + | === General overview === | ||
| + | |||
| + | <code bash> | ||
| + | inxi -F | ||
| + | </ | ||
| + | |||
| + | === Distribution === | ||
| + | |||
| + | <code bash> | ||
| + | lsb_release -d | ||
| + | </ | ||
| + | |||
| + | === Kernel === | ||
| + | |||
| + | <code bash> | ||
| + | uname -snrm | ||
| + | </ | ||
| + | |||
| + | Flags: | ||
| + | |||
| + | *'' | ||
| + | *'' | ||
| + | *'' | ||
| + | *'' | ||
| + | |||
| + | |||
| + | === CPU === | ||
| + | |||
| + | <code bash> | ||
| + | lscpu | ||
| + | cat / | ||
| + | </ | ||
| + | |||
| + | === Memory === | ||
| + | |||
| + | <code bash> | ||
| + | free -h | ||
| + | </ | ||
| + | |||
| + | === Mounted filesystems === | ||
| + | |||
| + | <code bash> | ||
| + | df -h | ||
| + | </ | ||
| + | |||
| + | === Kernel modules === | ||
| + | |||
| + | <code bash> | ||
| + | lsmod | ||
| + | </ | ||
| + | |||
| + | === Bash history === | ||
| + | |||
| + | <code bash> | ||
| + | history | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== Diagnostics ===== | ||
| + | |||
| + | <code bash> | ||
| + | uptime | ||
| + | dmesg -T | tail # recent kernel messages | ||
| + | vmstat 1 # system performance | ||
| + | mpstat -P ALL 1 # CPU usage per core (package: sysstat) | ||
| + | pidstat | ||
| + | free -h # memory usage | ||
| + | </ | ||
| + | |||
| + | |||
| + | ====== Storage & Filesystems ====== | ||
| + | |||
| + | ===== Mounting ===== | ||
| + | |||
| + | === List mounts === | ||
| + | |||
| + | <code bash> | ||
| + | findmnt | ||
| + | </ | ||
| + | |||
| + | === List disks === | ||
| + | |||
| + | <code bash> | ||
| + | lsblk | ||
| + | </ | ||
| + | |||
| + | === Mount === | ||
| + | |||
| + | <code bash> | ||
| + | sudo mkdir -p / | ||
| + | sudo mount /dev/sdX# / | ||
| + | </ | ||
| + | |||
| + | === Unmount === | ||
| + | |||
| + | <code bash> | ||
| + | sudo umount / | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== Samba ===== | ||
| + | |||
| + | ==== Manage service ==== | ||
| + | |||
| + | <code bash> | ||
| + | sudo systemctl start smbd | ||
| + | sudo systemctl stop 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 | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== Mount/ | ||
| + | |||
| + | If an NTFS volume mounts as read-only, it is usually due to an unclean shutdown or filesystem inconsistency. | ||
| + | |||
| + | Attempt repair: | ||
| + | |||
| + | <code bash> | ||
| + | sudo ntfsfix /dev/sdX# | ||
| + | </ | ||
| + | |||
| + | Create mount point if needed: | ||
| + | |||
| + | <code bash> | ||
| + | sudo mkdir -p /mnt/ntfs | ||
| + | </ | ||
| + | |||
| + | Then remount: | ||
| + | |||
| + | <code bash> | ||
| + | sudo mount -t ntfs3 /dev/sdX# /mnt/ntfs | ||
| + | </ | ||
| + | |||
| + | <WRAP info> | ||
| + | **Notes:** | ||
| + | |||
| + | * '' | ||
| + | * Full repair should be done from Windows using '' | ||
| + | * If the issue persists, ensure Windows Fast Startup is disabled | ||
| + | </ | ||
| + | |||
| + | ===== Repair FAT32 filesystem errors ===== | ||
| + | |||
| + | If a FAT32 filesystem mounts as read-only, it is often due to detected corruption. | ||
| + | |||
| + | Check kernel logs: | ||
| + | |||
| + | <code bash> | ||
| + | dmesg | ||
| + | </ | ||
| + | |||
| + | Typical errors: | ||
| + | |||
| + | <code bash> | ||
| + | FAT-fs (sdb1): error, corrupted directory (invalid entries) | ||
| + | FAT-fs (sdb1): Filesystem has been set read-only | ||
| + | FAT-fs (sdb1): error, invalid access to FAT | ||
| + | </ | ||
| + | |||
| + | Repair the filesystem: | ||
| + | |||
| + | <code bash> | ||
| + | sudo umount /dev/sdX# | ||
| + | sudo fsck.vfat -a -w /dev/sdX# | ||
| + | </ | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | Note: Ensure the correct device is targeted before running '' | ||
| + | |||
| + | |||
| + | ====== File & Data Operations ====== | ||
| + | |||
| + | ===== Shell toolbox ===== | ||
| + | |||
| + | ==== File operations ==== | ||
| + | |||
| + | === Mass renaming === | ||
| + | |||
| + | __**Changing an extension: | ||
| + | |||
| + | <code bash> | ||
| + | for i in *.JPG; do mv " | ||
| + | </ | ||
| + | |||
| + | __**Changing a prefix:**__ | ||
| + | |||
| + | <code bash> | ||
| + | for i in " | ||
| + | mv -n -- " | ||
| + | done | ||
| + | </ | ||
| + | |||
| + | * ''" | ||
| + | * '' | ||
| + | * In Bash parameter expansion, the ''#'' | ||
| + | * '' | ||
| + | * '' | ||
| + | * ''" | ||
| + | |||
| + | __**Alternative (rename tool):**__ | ||
| + | |||
| + | <code bash> | ||
| + | rename ' | ||
| + | </ | ||
| + | |||
| + | * Use the '' | ||
| + | * Use '' | ||
| + | * On Linux Mint / Ubuntu, '' | ||
| + | * On Ubuntu / Mint the Perl-style '' | ||
| + | * The '' | ||
| + | * For safety, preview first with '' | ||
| + | |||
| + | ---- | ||
| + | |||
| + | === Empty a file === | ||
| + | |||
| + | <code bash> | ||
| + | : > / | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Text processing ==== | ||
| + | |||
| + | === cut === | ||
| + | |||
| + | Extract part of a string: | ||
| + | |||
| + | <code bash> | ||
| + | date | cut -c17-24 | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Archives ==== | ||
| + | |||
| + | === tar === | ||
| + | |||
| + | <code bash> | ||
| + | # Extract | ||
| + | tar -xvf file.tar | ||
| + | tar -xvzf file.tar.gz | ||
| + | |||
| + | # Create | ||
| + | tar -cvf file.tar / | ||
| + | tar -cvzf file.tar.gz / | ||
| + | </ | ||
| + | |||
| + | Flags: | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ====== User Environment ====== | ||
| ===== PATH ===== | ===== PATH ===== | ||
| Line 41: | Line 387: | ||
| </ | </ | ||
| - | [[http:// | + | [[https:// |
| === Add to PATH === | === Add to PATH === | ||
| Line 143: | Line 489: | ||
| < | < | ||
| GRUB_BACKGROUND=/ | GRUB_BACKGROUND=/ | ||
| + | </ | ||
| + | |||
| + | Apply the change: | ||
| + | |||
| + | <code bash> | ||
| + | # Ubuntu / Mint | ||
| + | sudo update-grub | ||
| + | |||
| + | # Fedora | ||
| + | sudo grub2-mkconfig -o / | ||
| </ | </ | ||
| Line 175: | Line 531: | ||
| <code bash> | <code bash> | ||
| - | $ sudo fc-cache -f -v | + | fc-cache -f -v |
| </ | </ | ||
| Line 212: | Line 568: | ||
| 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. | ||
| - | </ | ||
| - | |||
| - | ===== Repair FAT32 filesystem errors ===== | ||
| - | |||
| - | If a FAT32 filesystem mounts as read-only, it is often due to detected corruption. | ||
| - | |||
| - | Check kernel logs: | ||
| - | |||
| - | <code bash> | ||
| - | dmesg | ||
| - | </ | ||
| - | |||
| - | Typical errors: | ||
| - | |||
| - | <code bash> | ||
| - | FAT-fs (sdb1): error, corrupted directory (invalid entries) | ||
| - | FAT-fs (sdb1): Filesystem has been set read-only | ||
| - | FAT-fs (sdb1): error, invalid access to FAT | ||
| - | </ | ||
| - | |||
| - | Repair the filesystem: | ||
| - | |||
| - | <code bash> | ||
| - | sudo umount /dev/sdX# | ||
| - | sudo fsck.vfat -a -w /dev/sdX# | ||
| - | </ | ||
| - | |||
| - | * '' | ||
| - | * '' | ||
| - | |||
| - | Note: Ensure the correct device is targeted before running '' | ||
| - | |||
| - | |||
| - | ===== 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. | ||
| - | |||
| - | ===== Mount/ | ||
| - | |||
| - | If an NTFS volume mounts as read-only, it is usually due to an unclean shutdown or filesystem inconsistency. | ||
| - | |||
| - | Attempt repair: | ||
| - | |||
| - | <code bash> | ||
| - | sudo ntfsfix /dev/sdX# | ||
| - | </ | ||
| - | |||
| - | Then remount: | ||
| - | |||
| - | <code bash> | ||
| - | sudo mount -t ntfs3 /dev/sdX# /mnt/ntfs | ||
| - | </ | ||
| - | |||
| - | Create mount point if needed: | ||
| - | |||
| - | <code bash> | ||
| - | sudo mkdir -p /mnt/ntfs | ||
| - | </ | ||
| - | |||
| - | <WRAP info> | ||
| - | **Notes:** | ||
| - | |||
| - | * '' | ||
| - | * Full repair should be done from Windows using '' | ||
| - | * If the issue persists, ensure Windows Fast Startup is disabled | ||
| </ | </ | ||
| Line 361: | Line 620: | ||
| osdlevel=0 | osdlevel=0 | ||
| </ | </ | ||
| - | |||
| - | ===== Using Apple USB SuperDrive ===== | ||
| - | |||
| - | The Apple USB SuperDrive requires a vendor-specific command to activate on non-Apple systems. | ||
| - | |||
| - | === Required package === | ||
| - | |||
| - | <code bash> | ||
| - | sudo apt install sg3-utils | ||
| - | </ | ||
| - | |||
| - | === Identify device === | ||
| - | |||
| - | Usually appears as ''/ | ||
| - | |||
| - | <code bash> | ||
| - | lsblk | ||
| - | </ | ||
| - | |||
| - | === Send activation command === | ||
| - | |||
| - | <code bash> | ||
| - | sudo sg_raw /dev/sr0 EA 00 00 00 00 00 01 | ||
| - | </ | ||
| - | |||
| - | The drive should become usable immediately after. | ||
| - | |||
| - | <WRAP info> | ||
| - | **Note:** This command must be reissued after reconnecting the drive. | ||
| - | </ | ||
| - | |||
| - | ===== QCAD (plugin location) ===== | ||
| - | |||
| - | <WRAP center round alert 60%> | ||
| - | NOTE : MOVE TO BOTTOM ' | ||
| - | </ | ||
| - | |||
| - | |||
| - | 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. | ||
| - | |||
| - | <WRAP info> | ||
| - | **Note:** Useful for locating and removing plugins related to trial limitations. | ||
| - | </ | ||
| - | |||
| - | ===== Screen recording ===== | ||
| - | |||
| - | ==== Recommended ==== | ||
| - | |||
| - | * **OBS Studio** → full-featured, | ||
| - | |||
| - | ==== Lightweight alternatives ==== | ||
| - | |||
| - | * simplescreenrecorder → lightweight, | ||
| - | * vokoscreenNG → simple GUI, good for quick recordings | ||
| - | |||
| - | ==== 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 | ||
| - | |||
| - | ===== Samba ===== | ||
| - | |||
| - | ==== List available shares ==== | ||
| - | |||
| - | <code bash> | ||
| - | smbclient -L //host -U username | ||
| - | </ | ||
| - | |||
| - | * '' | ||
| - | * prompts for password | ||
| - | |||
| - | ---- | ||
| - | |||
| - | ==== Access a share (temporary mount) ==== | ||
| - | |||
| - | <code bash> | ||
| - | sudo mount -t cifs // | ||
| - | </ | ||
| - | |||
| - | Create mount point if needed: | ||
| - | |||
| - | <code bash> | ||
| - | sudo mkdir -p /mnt/share | ||
| - | </ | ||
| - | |||
| - | ---- | ||
| - | |||
| - | ==== 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 | ||
| - | </ | ||
| ===== Alias ===== | ===== Alias ===== | ||
| Line 520: | Line 667: | ||
| </ | </ | ||
| - | ===== Mouse button mapping | + | ===== Package management |
| - | ==== X11 method (xbindkeys) | + | ==== Fix broken packages |
| - | Install tools: | + | __**Ubuntu / Mint (apt):**__ |
| <code bash> | <code bash> | ||
| - | sudo apt install | + | sudo dpkg --configure -a |
| + | sudo apt --fix-broken | ||
| </ | </ | ||
| - | Identify button codes: | + | __**Fedora (dnf):**__ |
| <code bash> | <code bash> | ||
| - | xev | grep button | + | sudo dnf distro-sync |
| + | sudo rpm --rebuilddb | ||
| </ | </ | ||
| - | Create configuration: | + | * '' |
| + | * '' | ||
| - | <code bash> | ||
| - | touch ~/ | ||
| - | </ | ||
| - | Example: | + | ====== Specialized & Recovery ====== |
| - | < | + | ===== Data recovery ===== |
| - | # Send Enter on mouse button 8 | + | |
| - | "xvkbd -text ' | + | |
| - | b:8 | + | |
| - | </ | + | |
| - | Start xbindkeys: | + | Use **TestDisk** / **PhotoRec** as a first recovery tool. |
| - | <code bash> | + | * **TestDisk** attempts partition repair and file undelete when filesystem metadata is still usable. |
| - | xbindkeys | + | * **PhotoRec** performs file carving by signature. It can recover files from damaged filesystems, |
| - | </ | + | |
| - | ---- | + | Do not write recovered files to the source disk. |
| - | <WRAP info> | + | ==== PhotoRec: recovered MOV files ==== |
| - | **Notes:** | + | |
| - | * Works on X11 sessions only | + | For some recovered |
| - | * Wayland sessions generally do not support this method | + | |
| - | * '' | + | |
| - | </ | + | |
| - | ===== Shell toolbox ===== | + | In PhotoRec '' |
| - | ==== File operations ==== | + | < |
| - | + | [X] mov/mdat Recover mdat atom as a separate file | |
| - | === Mass renaming === | + | |
| - | + | ||
| - | Uppercase .JPG to lowercase .jpg | + | |
| - | + | ||
| - | < | + | |
| - | for i in *.JPG; do mv " | + | |
| </ | </ | ||
| - | Alternative (rename tool): | + | Sort recovered files by name, then try concatenating matching parts: |
| <code bash> | <code bash> | ||
| - | rename 's/\.JPG$/.jpg/' *.JPG | + | 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. |
| - | === Empty a file === | + | Sometimes the header/ |
| <code bash> | <code bash> | ||
| - | : > / | + | cat f54114560.mp4 f51781632_mdat.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. |
| - | ==== Text processing ==== | ||
| - | === cut === | ||
| - | Extract part of a string: | + | ===== Using Apple USB SuperDrive ===== |
| - | <code bash> | + | The Apple USB SuperDrive requires a vendor-specific command to activate on non-Apple systems. |
| - | date | cut -c17-24 | + | |
| - | </ | + | |
| - | ---- | + | === Required package |
| - | + | ||
| - | ==== Archives ==== | + | |
| - | + | ||
| - | === tar === | + | |
| <code bash> | <code bash> | ||
| - | # Extract | + | sudo apt install sg3-utils |
| - | tar -xvf file.tar | + | |
| - | tar -xvzf file.tar.gz | + | |
| - | + | ||
| - | # Create | + | |
| - | tar -cvf file.tar / | + | |
| - | tar -cvzf file.tar.gz / | + | |
| </ | </ | ||
| - | Flags: | + | === Identify device === |
| - | * '' | + | Usually appears as '' |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | + | ||
| - | ---- | + | |
| - | + | ||
| - | ==== Mounting ==== | + | |
| - | + | ||
| - | === List mounts: === | + | |
| - | + | ||
| - | <code bash> | + | |
| - | findmnt | + | |
| - | </ | + | |
| - | + | ||
| - | === List disks: === | + | |
| <code bash> | <code bash> | ||
| Line 644: | Line 747: | ||
| </ | </ | ||
| - | === Mount: | + | === Send activation command |
| <code bash> | <code bash> | ||
| - | sudo mkdir -p / | + | sudo sg_raw |
| - | sudo mount /dev/sdX# / | + | |
| </ | </ | ||
| - | === Unmount: === | + | The drive should become usable immediately after. |
| - | <code bash> | + | <WRAP info> |
| - | sudo umount / | + | **Note:** This command must be reissued after reconnecting the drive. |
| - | </code> | + | </WRAP> |
| - | ---- | + | ===== Additional Resources ===== |
| - | ==== Samba ==== | + | * [[https:// |
| + | * [[https:// | ||
| - | Manage service: | ||
| - | <code bash> | + | ====== Misc / Desktop ====== |
| - | sudo systemctl start smbd | + | |
| - | sudo systemctl stop smbd | + | |
| - | sudo systemctl restart smbd | + | |
| - | </code> | + | |
| - | ---- | + | ===== Screen recording ===== |
| - | ==== Package management | + | ==== Recommended |
| - | === Fix broken packages === | + | * **OBS Studio** → full-featured, |
| - | <code bash> | + | ==== Lightweight alternatives ==== |
| - | sudo dpkg --configure -a | + | |
| - | sudo apt --fix-broken install | + | |
| - | </ | + | |
| - | ---- | + | * 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 | ||
| - | ==== System information | + | ==== Notes ==== |
| - | === General overview: === | + | * 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 | ||
| - | <code bash> | + | ===== Mouse button mapping ===== |
| - | inxi -F | + | |
| - | </ | + | |
| - | === Distribution: | + | ==== X11 method (xbindkeys) ==== |
| - | <code bash> | + | Install tools: |
| - | lsb_release -d | + | |
| - | </ | + | |
| - | + | ||
| - | === Kernel: === | + | |
| <code bash> | <code bash> | ||
| - | uname -snrm | + | sudo apt install xbindkeys xvkbd |
| </ | </ | ||
| - | Flags: | + | Identify button codes: |
| - | + | ||
| - | *'' | + | |
| - | *'' | + | |
| - | *'' | + | |
| - | *'' | + | |
| - | + | ||
| - | + | ||
| - | === CPU: === | + | |
| <code bash> | <code bash> | ||
| - | lscpu | + | xev | grep button |
| - | cat / | + | |
| </ | </ | ||
| - | === Memory: === | + | Create configuration: |
| <code bash> | <code bash> | ||
| - | free -h | + | touch ~/ |
| </ | </ | ||
| - | === Mounted filesystems: === | + | Example: |
| - | < | + | < |
| - | df -h | + | # Send Enter on mouse button 8 |
| + | " | ||
| + | b:8 | ||
| </ | </ | ||
| - | === Kernel modules: === | + | Start xbindkeys: |
| <code bash> | <code bash> | ||
| - | lsmod | + | xbindkeys |
| - | </ | + | |
| - | + | ||
| - | === Bash history: === | + | |
| - | + | ||
| - | <code bash> | + | |
| - | history | + | |
| </ | </ | ||
| ---- | ---- | ||
| - | |||
| - | ==== Diagnostics ==== | ||
| - | |||
| - | <code bash> | ||
| - | uptime | ||
| - | dmesg -T | tail # recent kernel messages | ||
| - | vmstat 1 # system performance | ||
| - | mpstat -P ALL 1 # CPU usage per core | ||
| - | pidstat | ||
| - | free -h # memory usage | ||
| - | </ | ||
| - | |||
| - | ===== Logs ===== | ||
| - | |||
| - | Common system logs: | ||
| - | |||
| - | < | ||
| - | / | ||
| - | </ | ||
| - | |||
| - | View recent entries: | ||
| - | |||
| - | <code bash> | ||
| - | tail -f / | ||
| - | </ | ||
| - | |||
| - | List recently modified log files: | ||
| - | |||
| - | <code bash> | ||
| - | ls -lt /var/log | ||
| - | </ | ||
| <WRAP info> | <WRAP info> | ||
| **Notes:** | **Notes:** | ||
| - | * '' | + | * Works on X11 sessions only |
| - | * On systemd systems, | + | * Wayland sessions generally do not support this method |
| + | * '' | ||
| </ | </ | ||
| + | ===== 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. | ||
| - | + | <WRAP info> | |
| - | + | **Note:** Useful | |
| - | + | </WRAP> | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | ===== Additional Ressources ===== | + | |
| - | + | ||
| - | | + | |
| - | + | ||
| - | ***[[https:// | + | |
| - | + | ||
| - | ***[[https:// | + | |