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 [2021/02/15 12:44] – [Programming Mouse Buttons] mhlinux:start [2022/09/06 12:59] (current) – [Misc Ressources] mh
Line 161: Line 161:
  
 <code bash> <code bash>
-gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf+gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
 </code> </code>
  
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 439: Line 462:
  
 === Mount === === Mount ===
 +List mounts
 +<code bash>
 +$ findmnt
 +</code>
 Target disk Target disk
 <code bash> <code bash>
Line 475: 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 485: 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 509: 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>
  
Line 577: Line 627:
  
   *[[https://en.wikipedia.org/wiki/Magic_SysRq_key#Configuration|SysRq Keys]] -- Best combo is ''Alt + SysRq + R E I S U B''   *[[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://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]]
  • linux/start.1613389455.txt.gz
  • Last modified: 2021/02/15 12:44
  • by mh