Have git use gpg2 for signing

1 minute read Published:

If you are using gpg2 instead of gpg then git will eventually throw an error about not being able to find your key or even the gpg binary. Just do a git config --global gpg.program gpg2 and add the following to your gitconfig [gpg] program = gpg2

Ubuntu 17.10 – gpg/ssh with USB token (yubikey)

1 minute read Published:

A shell script to properly configure GNOME to play nice with a Yubikey. This script allows you to use your Yubikey for GPG and SSH while leaving passwords and PK11 for GNOME keyring (Ubuntu 15.04-17.10) Copied from hyper3xpl0iter@github I just modified the deb source locations since the country mirrors of archive.ubuntu.org do not contain vivid anymore. Download it here CAVE: The removal of the new versions of gpg and so on also removes gnome-control-center so a sudo apt-get -y install gnome-control-center has to be done afterwards.

Ubuntu 17.10 – keepass auto-type

1 minute read Published:

Start by installing the xdotool package On Debian/Ubuntu/etc simply run: sudo apt-get install xdotool keepass2 Next find out where the keepass2 executable is installed on your system The easiest way to do this is to run: which keepass2 On my system this returns /usr/bin/keepass2 This file is actually not the program itself but a script that bootstraps the program. So to find out where the real executable run:

Ubuntu 17.10 – reboot hangs on blank screen

1 minute read Published:

There are lots of reports that Ubuntu 17.10 hangs with a black screen if reboot is issued. Some users report they need to press Alt+F7 to go further, some users report it only takes a looong time to go through the reboot sequence. I could confirm both issues, luckily there is help! Edit /etc/default/grub and remove quiet and splash from GRUB_CMDLINE_LINUX_DEFAULT. Issue a sudo update-grub and reboot.

Good bye linux – hello (again) windows!

1 minute read Published:

After a recent apt-get update && apt-get dist-upgrade which also updated gpg-agent my smart cards (and therefore ssh auth for my servers) stopped to work. A ps aux|grep gpg-agent revealed that it´s now started with --supervised instead of the options given by me. Even a pkill gpg-agent and eval $(gpg-agent --options) didn´t help. A quick search in google found out that developers changed the start up but I did not want to dig any deeper and edit scripts or whatsoever again…