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
Last revisionBoth sides next revision
linux:start [2021/05/19 14:52] – [List info] mhlinux:start [2022/05/30 22:29] – [Useful shell] mh
Line 322: Line 322:
 //Note to self : Added "mii" module to the list, the fix didn't seem to hold after reboot. Mii seems to be using r8169 and is network-monitoring-related// //Note to self : Added "mii" module to the list, the fix didn't seem to hold after reboot. Mii seems to be using r8169 and is network-monitoring-related//
  
 +==== Fixing python on youtube-dl ====
 +
 +If following error occurs while using ''youtube-dl'' :
 +
 +<code bash>
 +/usr/bin/env: ‘python’: No such file or directory
 +</code>
 +
 +=== If python3 is not installed ===
 +
 +<code bash>
 +$sudo apt install python3
 +</code>
 +
 +
 +=== If python3 is  installed ===
 +
 +<code bash>
 +$whereis python3
 +$sudo ln -s /usr/bin/python3 /usr/bin/python
 +</code>
 +
 +Change first argument according to where python3 is installed.
 ===== Linux Screencast tools ===== ===== Linux Screencast tools =====
  
Line 479: Line 502:
  
 <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 /path/folder #Pack folder into file.tar archive +$ tar -cvf file.tar /path/folder #Pack folder into file.tar archive (-c : create) 
-$ tar -cvzf file.tar /path/folder #Same as above with compression (gzip)+$ tar -cvzf file.tar /path/folder #Same as above with compression (gzip) (-z : filter through gzip)
 </code> </code>
  
Line 489: Line 512:
 ---- ----
  
 +=== Samba ===
 +
 +<code bash>
 +sudo service smbd start/stop/restart
 +</code>
 +
 +----
 +
 +===== 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
 +</code>
  
  
Line 517: Line 558:
 On Macs : On Macs :
 <code bash> <code bash>
-sysctl -n machdep.cpu.brand_string+sysctl -n machdep.cpu.brand_string
 </code> </code>
  
  • linux/start.txt
  • Last modified: 2022/09/06 12:59
  • by mh