User Tools

Site Tools


linux:scribble

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:scribble [2021/11/01 08:59] – add ffmpeg styblalinux:scribble [2025/05/09 08:38] (current) – add X11 reset brightness stybla
Line 111: Line 111:
 </code> </code>
  
-===== Exercises ======+==== Exercises =====
  
 [[https://www.codingunit.com/category/programming-algorithms|Programming algorithms at CodingUnit]]. [[https://www.codingunit.com/category/programming-algorithms|Programming algorithms at CodingUnit]].
  
 +===== Change keyboard layout in console =====
 +
 +''loadkeys /usr/share/keymaps/i386/qwerty/us.kmap.gz''
 +
 +Don't forget about ''setfont''
  
 ===== Cisco IOS notes ===== ===== Cisco IOS notes =====
Line 331: Line 336:
  
 ===== loop-AES ===== ===== loop-AES =====
 +
 +==== Decrypt loopAES encrypted partition =====
 +
 +<code>
 +gpg --decrypt private.gpg | \
 +  cryptsetup loopaesOpen \
 +  /dev/mapper/xxx \
 +  newvolumename \
 +  --key-file=- \
 +  --key-size 128 \
 +  --hash sha256
 +</code>
 +
 +Note that this isn't for ''/etc/fstab''.
  
 ==== Resize encrypted LVM backed partition ===== ==== Resize encrypted LVM backed partition =====
Line 818: Line 837:
 tar -cf out.tar.xz --use-compress-program=xz file-or-dir tar -cf out.tar.xz --use-compress-program=xz file-or-dir
 </code> </code>
 +
 +===== X11/xorg =====
 +
 +==== Reset brightness ==== 
 +
 +''xgamma -rgamma 0.8 -ggamma 0.8 -bgamma 0.8''
  
  
linux/scribble.1635775190.txt.gz · Last modified: 2021/11/01 08:59 by stybla