linux:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:start [2026/10/23 10:27] – [claude] merge Samba sections, move Package management and Alias under User Environment, add Misc / Desktop section, reorder NTFS mount point step claudelinux:start [2026/10/31 22:34] (current) – [claude] align eGPU link label with page title (Core X) claude
Line 3: Line 3:
   -**[[linux:bash|Bash]]**   -**[[linux:bash|Bash]]**
   -**[[linux:git|Git basics]]**   -**[[linux:git|Git basics]]**
-  -**[[linux:eGPU|Razer Core eGPU]]**+  -**[[linux:eGPU|Razer Core X eGPU]]**
   -**[[linux:RBS|Razer Blade Stealth in Linux]]**   -**[[linux:RBS|Razer Blade Stealth in Linux]]**
  
Line 19: Line 19:
  
 <code bash> <code bash>
-tail -f /var/log/syslog+tail -f /var/log/syslog   # if rsyslog is installed 
 +journalctl -f             # systemd journal (Fedora, Debian 12+)
 </code> </code>
  
Line 37: Line 38:
 ===== System information ===== ===== System information =====
  
-=== General overview: ===+=== General overview ===
  
 <code bash> <code bash>
Line 43: Line 44:
 </code> </code>
  
-=== Distribution: ===+=== Distribution ===
  
 <code bash> <code bash>
Line 49: Line 50:
 </code> </code>
  
-=== Kernel: ===+=== Kernel ===
  
 <code bash> <code bash>
Line 59: Line 60:
   *''s'': kernel name   *''s'': kernel name
   *''n'': network node hostname   *''n'': network node hostname
-  *''r'': kernel relase number+  *''r'': kernel release number
   *''m'': machine hardware name   *''m'': machine hardware name
  
  
-=== CPU: ===+=== CPU ===
  
 <code bash> <code bash>
Line 70: Line 71:
 </code> </code>
  
-=== Memory: ===+=== Memory ===
  
 <code bash> <code bash>
Line 76: Line 77:
 </code> </code>
  
-=== Mounted filesystems: ===+=== Mounted filesystems ===
  
 <code bash> <code bash>
Line 82: Line 83:
 </code> </code>
  
-=== Kernel modules: ===+=== Kernel modules ===
  
 <code bash> <code bash>
Line 88: Line 89:
 </code> </code>
  
-=== 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             # process statistics+pidstat             # process statistics (package: sysstat)
 free -h             # memory usage free -h             # memory usage
 </code> </code>
Line 112: Line 113:
 ===== Mounting ===== ===== Mounting =====
  
-=== List mounts: ===+=== List mounts ===
  
 <code bash> <code bash>
Line 118: Line 119:
 </code> </code>
  
-=== List disks: ===+=== List disks ===
  
 <code bash> <code bash>
Line 124: Line 125:
 </code> </code>
  
-=== Mount: ===+=== Mount ===
  
 <code bash> <code bash>
Line 131: Line 132:
 </code> </code>
  
-=== Unmount: ===+=== Unmount ===
  
 <code bash> <code bash>
Line 163: Line 164:
  
 ==== Access a share (temporary mount) ==== ==== Access a share (temporary mount) ====
 +
 +Create mount point if needed:
  
 <code bash> <code bash>
-sudo mount -t cifs //host/share /mnt/share -o username=user+sudo mkdir -p /mnt/share
 </code> </code>
  
-Create mount point if needed:+Then mount:
  
 <code bash> <code bash>
-sudo mkdir -p /mnt/share+sudo mount -t cifs //host/share /mnt/share -o username=user
 </code> </code>
  
Line 297: Line 300:
   * Use ''rename'' for concise regex-based changes, especially extension changes such as ''.JPG'' to ''.jpg''.   * Use ''rename'' for concise regex-based changes, especially extension changes such as ''.JPG'' to ''.jpg''.
   * On Linux Mint / Ubuntu, ''rename 's/\.JPG$/.jpg/' *.JPG'' usually works because the available ''rename'' is the Perl-style tool.   * On Linux Mint / Ubuntu, ''rename 's/\.JPG$/.jpg/' *.JPG'' usually works because the available ''rename'' is the Perl-style tool.
 +  * On Ubuntu / Mint the Perl-style ''rename'' is a separate package and is not always preinstalled: ''sudo apt install rename''.
   * The ''rename'' command is not fully portable across all Linux distributions, because different systems may ship different versions with different syntax.   * The ''rename'' command is not fully portable across all Linux distributions, because different systems may ship different versions with different syntax.
   * For safety, preview first with ''rename -n 's/\.JPG$/.jpg/' *.JPG''.   * For safety, preview first with ''rename -n 's/\.JPG$/.jpg/' *.JPG''.
Line 383: Line 387:
 </code> </code>
  
-[[http://refspecs.linuxfoundation.org/fhs.shtml|FHS Reference]]+[[https://refspecs.linuxfoundation.org/fhs.shtml|FHS Reference]]
  
 === Add to PATH === === Add to PATH ===
Line 485: Line 489:
 <code> <code>
 GRUB_BACKGROUND=/path/to/image.jpg GRUB_BACKGROUND=/path/to/image.jpg
 +</code>
 +
 +Apply the change:
 +
 +<code bash>
 +# Ubuntu / Mint
 +sudo update-grub
 +
 +# Fedora
 +sudo grub2-mkconfig -o /boot/grub2/grub.cfg
 </code> </code>
  
Line 517: Line 531:
  
 <code bash> <code bash>
-$ sudo fc-cache -f -v+fc-cache -f -v
 </code> </code>
  
Line 656: Line 670:
  
 ==== Fix broken packages ==== ==== Fix broken packages ====
 +
 +__**Ubuntu / Mint (apt):**__
  
 <code bash> <code bash>
Line 661: Line 677:
 sudo apt --fix-broken install sudo apt --fix-broken install
 </code> </code>
 +
 +__**Fedora (dnf):**__
 +
 +<code bash>
 +sudo dnf distro-sync
 +sudo rpm --rebuilddb
 +</code>
 +
 +  * ''dnf distro-sync'' realigns installed packages with the repositories and resolves inconsistent dependencies
 +  * ''rpm --rebuilddb'' rebuilds the RPM database if it is damaged
  
  
Line 733: Line 759:
 </WRAP> </WRAP>
  
-===== Additional Ressources ===== +===== Additional Resources =====
- +
-  ***[[https://en.wikipedia.org/wiki/Magic_SysRq_key#Configuration|SysRq Keys]]** -- Best combo is ''Alt + SysRq + R E I S U B'' +
- +
-  ***[[https://www.guruadvisor.net/en/software-saas/465-advanced-linux-troubleshooting-methods-and-tools-for-diagnostics-and-problem-identification|Advanced Linux Troubleshooting]]**+
  
-  ***[[https://wiki.networksecuritytoolkit.org/nstwiki/index.php?title=HowTo_Create_A_GPT_Disk_With_EFI_System_And_exFAT_Partitions_Using_Parted|Creating GPT/exFAT partitions using CLI]]**+  * [[https://en.wikipedia.org/wiki/Magic_SysRq_key#Configuration|SysRq Keys]] -- Best combo is ''Alt + SysRq + R E I S U B'' 
 +  * [[https://wiki.networksecuritytoolkit.org/nstwiki/index.php?title=HowTo_Create_A_GPT_Disk_With_EFI_System_And_exFAT_Partitions_Using_Parted|Creating GPT/exFAT partitions using CLI]]
  
  
Line 754: Line 777:
   * simplescreenrecorder → lightweight, reliable on X11   * simplescreenrecorder → lightweight, reliable on X11
   * vokoscreenNG → simple GUI, good for quick recordings   * vokoscreenNG → simple GUI, good for quick recordings
 +  * Spectacle → on Fedora (KDE Plasma), the native screenshot tool can also record video; nothing to install
  
 ==== Notes ==== ==== Notes ====
  • linux/start.1792744040.txt.gz
  • Last modified: 2026/10/23 10:27
  • by claude