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/05/19 14:51] – [List info] mh | linux:start [2026/01/01 10:23] (current) – [Useful shell] mh | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Linux ====== | ====== Linux ====== | ||
| - | -[[linux: | + | -**[[linux: |
| - | -[[linux: | + | -**[[linux: |
| - | -[[linux: | + | -**[[linux: |
| - | -[[linux: | + | -**[[linux: |
| - | -[[linux: | + | -**[[linux: |
| ===== PATH ===== | ===== PATH ===== | ||
| Line 92: | Line 92: | ||
| Extract the content of an AppImage : | Extract the content of an AppImage : | ||
| + | <code bash> | ||
| ./ | ./ | ||
| + | #And copy to somewhere sensible | ||
| + | sudo cp squashfs-root/ | ||
| + | </ | ||
| This is useful if you want to get the Icon. | This is useful if you want to get the Icon. | ||
| [[https:// | [[https:// | ||
| + | |||
| + | To run an AppImage just make it executable : | ||
| + | |||
| + | <code bash> | ||
| + | $ chmod +x / | ||
| + | $ ./ | ||
| + | </ | ||
| + | |||
| + | Some AppImages support: | ||
| + | |||
| + | <code bash> | ||
| + | ./ | ||
| + | </ | ||
| + | |||
| + | This automatically: | ||
| + | * Creates a .desktop file | ||
| + | * Extracts the icon | ||
| + | * Registers everything correctly | ||
| + | |||
| + | If it works, this is the cleanest solution. If not, manual extraction remains the most reliable path. | ||
| + | |||
| ---- | ---- | ||
| Line 322: | Line 347: | ||
| //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 479: | Line 527: | ||
| <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 489: | Line 537: | ||
| ---- | ---- | ||
| + | === Samba === | ||
| + | |||
| + | <code bash> | ||
| + | sudo service smbd start/ | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | === Empty a file === | ||
| + | |||
| + | <code bash> | ||
| + | : > ~/ | ||
| + | </ | ||
| + | |||
| + | * : is the shell’s no-op builtin | ||
| + | * Redirection truncates the file to zero bytes | ||
| + | * File permissions and ownership are preserved | ||
| + | |||
| + | ===== 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 516: | Line 592: | ||
| On Macs : | On Macs : | ||
| - | < | + | < |
| - | sysctl -n machdep.cpu.brand_string | + | $ sysctl -n machdep.cpu.brand_string |
| </ | </ | ||
| Line 586: | Line 662: | ||
| *[[https:// | *[[https:// | ||
| + | |||
| *[[https:// | *[[https:// | ||
| + | |||
| + | *[[https:// | ||