Stuff to remember

Old prompt ✔

 if [ "$color_prompt" = yes ]; then
  # PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\n\$ '
 PS1="${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\] `if [[ \$? = "0" ]]; then echo ':)'; else echo ':(' ; fi`  \[\033[01;34m\]\w\[\033[00m\]\n\$ "
  # Same as above but with a smiley to indicate if the last command was successfull
  # PS1="`if [[ \$? = "0" ]]; then echo ':)'; else echo ':(' ; fi`${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ "
  PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '

keyboard fix ✔

and to set backlight:

Stuff needed for the laptop ✔ (not tested)

GNUPG issue?

HTTP-proxy support seems to be broken in gnupg-2.1.4-1? the client will claim –honor-http-proxy as obsolete. More interestingly the helper all dirmngr is trying to access /etc/gnupg/ldapservers.conf and fails to bind socket in /usr/var/run/gnupg/S.dirmngr. But such directories do not exist. The manual for dirmngr ( explicitly state that the following are used as default:

 --homedir dir
 Set the name of the home directory to dir. This option is only effective when
 used on the command line. The default depends on the running mode:
    --daemon given on the commandline
      the directory named ‘/etc/dirmngr’ for configuration files,
      ‘/var/lib/dirmngr/’ for extra data and ‘/var/cache/dirmngr’
      for cached CRLs.
 Without --daemon given on the commandline
 the directory named ‘.gnupg’ directly below the home directory of
 the user unless the environment variable GNUPGHOME has been set in
 which case its value will be used. All kind of data is stored below
 this directory.

Handy tools

Getting Arch Linux KDE look nice in VirtualBox

  • sudo pacman -R xf86-video-vesa
  • sudo mv /etc/X11/xorg.conf.d/ /etc/X11/xorg.conf.d.old
  • sudo pacman -S virtualbox-guest-utils
  • sudo modprobe -a vboxguest vboxsf vboxvideo
  • sudo vim /etc/modules-load.d/virtualbox.conf
    • vboxguest
    • vboxsf
    • vboxvideo
  • sudo pacman -Syu
  • vim ~/.xinitrc
    • VBoxClient-all & (before exec)
    • xrandr -s 1920×1080
  • sudo reboot
  • login, startx
  • select seamless mode in virtualbox, select full screen in virtualbox


Audio woes

  • All else plays loud enough but Chrome is too quiet?
    • Open pavucontrol
    • start chromium, start a video etc.
    • adjust the chrome volume tab to be inline with the other volume controls.

Mutt and HTML-messages

Most MUAs these days send multipart/alternative messages, so even though most recipients see the fancy HTML version, the message also has a text/plain version that mutt will default to showing and you won't even notice it had an HTML part. For those rare HTML-only mails, just install lynx and add this to ~/.mailcap:

 text/html; lynx -dump -localhost -force_html -width 80 %s; copiousoutput

This will make mutt pipe the html content to lynx, which will render it and spit back a plaintext version with all the embedded links at the bottom. You'll be able to easily scroll through the message in mutt as though it were plaintext. reply

For all those who prefer w3m:

 text/html; /usr/bin/w3m -I %{charset} -T text/html -o display_link_number=1 -dump; copiousoutput
Last modified: le 2016/04/05 09:28