Large screenshots

In order to create a screenshot of a program with a virtually larger resolution change the resolution with xrandr as follows

# set large screen 2560 is width and 10000 is the height
xrandr --output HDMI-1 --rate 60 --mode 2560x1440 --panning 2560x10000
# make screenshot and
# set back to normal
xrandr --output HDMI-1 --rate 60 --mode 2560x1440 --panning 2560x1440

Update Kernel

Quick guide on how to update a kernel on Gentoo Linux manually.

First copy the .config to the directory with the new kernel sources.

Next update the config. The oldconfig script will ask the user how to configure the additional options of the new kernel.

make oldconfig

Finally build the kernel and its modules, install the kernel and the modules and update grub.

make modules_prepare && make all -j9 && make modules_install && make install && grub-mkconfig -o /boot/grub/grub.cfg && emerge --ask @module-rebuild

Nikola Snippets

Nikola is a great static website generator. It converts restructured text to html pages. My favourite snippets are:

Headline level 2

Headline level 3

  1. Often we need strong text and italic formatting, or named external links such as TroLUG.

  2. Internal links to the title Nikola Snippets or Impressum

  3. literal commands are written like this @{}//.


A warning.

All about danger.

echo "Hello World."

Silent DVD Drive

DVD drives can be very noisy while watching a movie on DVD. hdparm can reduce the maximum speed of the DVD drive.

# we assume /dev/sdx is the DVD drive
# hdparm -E 9 /dev/sdx