Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux:start [2021/02/10 12:49] – [Debug & Logs] mh | linux:start [2025/05/09 16:27] (current) – [Linux] mh | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Linux ====== | ====== Linux ====== | ||
- | -[[linux: | + | -**[[linux: |
- | -[[linux: | + | -**[[linux: |
- | -[[linux: | + | -**[[linux: |
- | -[[linux: | + | -**[[linux: |
- | -[[linux: | + | -**[[linux: |
===== PATH ===== | ===== PATH ===== | ||
Line 97: | Line 97: | ||
[[https:// | [[https:// | ||
+ | |||
+ | To run an AppImage just make it executable : | ||
+ | |||
+ | <code bash> | ||
+ | $ chmod +x / | ||
+ | $ ./ | ||
+ | </ | ||
+ | |||
---- | ---- | ||
Line 161: | Line 169: | ||
<code bash> | <code bash> | ||
- | gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ | + | gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ |
</ | </ | ||
Line 167: | Line 175: | ||
*''/ | *''/ | ||
- | *''/ | + | *''/ |
*''/ | *''/ | ||
*''/ | *''/ | ||
Line 322: | Line 330: | ||
//Note to self : Added " | //Note to self : Added " | ||
+ | ==== Fixing python on youtube-dl ==== | ||
+ | |||
+ | If following error occurs while using '' | ||
+ | |||
+ | <code bash> | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | === If python3 is not installed === | ||
+ | |||
+ | <code bash> | ||
+ | $sudo apt install python3 | ||
+ | </ | ||
+ | |||
+ | |||
+ | === If python3 is installed === | ||
+ | |||
+ | <code bash> | ||
+ | $whereis python3 | ||
+ | $sudo ln -s / | ||
+ | </ | ||
+ | |||
+ | Change first argument according to where python3 is installed. | ||
===== Linux Screencast tools ===== | ===== Linux Screencast tools ===== | ||
Line 391: | Line 422: | ||
$ . ~/.bashrc | $ . ~/.bashrc | ||
</ | </ | ||
+ | |||
+ | ===== Programming Mouse Buttons ===== | ||
+ | |||
+ | <code bash> | ||
+ | $ sudo apt install xbindkeys xvkbd | ||
+ | $ xev | grep ', button' | ||
+ | $ touch ~/ | ||
+ | $ nano ~/ | ||
+ | </ | ||
+ | |||
+ | // Sample File :// | ||
+ | |||
+ | < | ||
+ | # Send enter on thumb mouse button | ||
+ | "xvkbd -text ' | ||
+ | b:8 | ||
+ | </ | ||
+ | |||
+ | // Ccheck xvkbd for more syntax // | ||
+ | |||
===== Useful shell ===== | ===== Useful shell ===== | ||
Line 419: | Line 470: | ||
=== Mount === | === Mount === | ||
+ | List mounts | ||
+ | <code bash> | ||
+ | $ findmnt | ||
+ | </ | ||
Target disk | Target disk | ||
<code bash> | <code bash> | ||
Line 455: | Line 510: | ||
<code bash> | <code bash> | ||
- | #All the following commands are verbose (-v) | + | #All the following commands are verbose (-v) and target a file archive (-f) |
- | $ tar -xvf file.tar #Unpack tar | + | $ tar -xvf file.tar #Unpack tar (-x : extract) |
- | $ tar -xvzf file.tar.gz #Unpack compressed (gzip) tar | + | $ tar -xvzf file.tar.gz #Unpack compressed (gzip) tar (-z : filter through gzip) |
- | $ tar -cvf file.tar / | + | $ tar -cvf file.tar / |
- | $ tar -cvzf file.tar / | + | $ tar -cvzf file.tar / |
</ | </ | ||
Line 465: | Line 520: | ||
---- | ---- | ||
+ | === Samba === | ||
+ | |||
+ | <code bash> | ||
+ | sudo service smbd start/ | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== apt and dpkg ===== | ||
+ | |||
+ | ==== Fixing apt dependency problems ==== | ||
+ | |||
+ | This can fix some states in which apt is broken and refuses to update because some libraries fail : | ||
+ | |||
+ | <code bash> | ||
+ | $ dpkg --configure -a | ||
+ | $ apt --fix-broken install | ||
+ | </ | ||
Line 489: | Line 562: | ||
<code bash> | <code bash> | ||
$ cat / | $ cat / | ||
+ | </ | ||
+ | |||
+ | On Macs : | ||
+ | <code bash> | ||
+ | $ sysctl -n machdep.cpu.brand_string | ||
</ | </ | ||
Line 557: | Line 635: | ||
*[[https:// | *[[https:// | ||
+ | |||
*[[https:// | *[[https:// | ||
+ | |||
+ | *[[https:// |