Linux

Ubuntu/Debian

See /Packaging in Debian

Tweaks

Keyboard & layouts

My preferences:

  • Caps as Ctrl
  • LCtrl enables English layout
  • RCtrl enables Russian layout
  • RAlt switches to other layout when pressed

How to

  1. # /etc/default/keyboard
    XKBMODEL="pc105"
    XKBLAYOUT="us,ru"
    XKBVARIANT=","
    XKBOPTIONS="ctrl:nocaps,grp:lctrl_rctrl_switch,grp:switch"
  2. sudo dpkg-reconfigure keyboard-configuration

Discrete GPU

$ glxinfo | grep "OpenGL renderer"
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics ...
$ # hmm
$ DRI_PRIME=1 glxinfo | grep OpenGL renderer
OpenGL renderer string: AMD HAINAN ...
$ # a-ha!
$ DRI_PRIME=1 ./game