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/03/16 22:33] – [Reducing PDF size] mhlinux:start [2022/05/30 22:29] – [Useful shell] mh
Line 167: Line 167:
  
   *''/screen'' lower quality, smaller size. (72 dpi)   *''/screen'' lower quality, smaller size. (72 dpi)
-  *''/ebook'' for better quality, but slightly larger pdfs. (150 dpi)+  *''/ebook'' for better quality, but slightly larger pdfs. (150 dpi) - __This one gives quite a good ratio of quality-loss/size-reduction__
   *''/prepress'' output similar to Acrobat Distiller "Prepress Optimized" setting (300 dpi)   *''/prepress'' output similar to Acrobat Distiller "Prepress Optimized" setting (300 dpi)
   *''/printer'' selects output similar to the Acrobat Distiller "Print Optimized" setting (300 dpi)   *''/printer'' selects output similar to the Acrobat Distiller "Print Optimized" setting (300 dpi)
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 513: Line 554:
 <code bash> <code bash>
 $ cat /proc/cpuinfo $ cat /proc/cpuinfo
 +</code>
 +
 +On Macs :
 +<code bash>
 +$ sysctl -n machdep.cpu.brand_string
 </code> </code>
  
  • linux/start.txt
  • Last modified: 2022/09/06 12:59
  • by mh