linux

GPG doesn't show password dialog via SSH

GPG doesn't show password dialog via SSH

Sven Bachmann
If logged in into a SSH server with a running desktop, the GPG tool doesn’t show any password dialog when trying to decrypt a file in an SSH session. It just stalls at gpg: AES encrypted data. User grawity shows a solution on superuser.com where the PIN-Entry tool of the GPG agent can be set manually. My adaption now looks like this and works like a charm: File: ~/.gnupg/gpg-agent.conf pinentry-program /usr/bin/pinentry-curses Reload the GPG agent configuration with the following command and you’re done:
Intel SS4200 LED Driver Oops on newer Kernels

Intel SS4200 LED Driver Oops on newer Kernels

Sven Bachmann
I recently installed Ubuntu 18.04 on my nearly 10 years old NAS Intel SS4200. After upgrading from Ubuntu 11.04 the harddisk LEDs stopped working and the boot log just showed an Oops when the leds_ss4200 driver was loaded.After some investigation which involved compiling the module by myself and adding a lot of debug I found out that the pci_register_driver didn’t run the drivers install function but the later code assumed that a global pointer was filled and ready to be used.
ThinkPad W510 Brightness Keys and Ubuntu 15.04

ThinkPad W510 Brightness Keys and Ubuntu 15.04

Sven Bachmann
The best graphical experience with Ubuntu 15.04 and the ThinkPad W510 is currently only possible with the Nvidia binary graphics driver. On my ThinkPad I’ve installed the Nvidia binary driver - version 340.96 from nvidia-340 (proprietary, tested). However with the default settings my brightness keys stopped working. To get them working again, create the following file: /etc/X11/xorg.conf.d/10-nvidia-brightness.conf Section "Device" Identifier "Configured Video Device" Driver "nvidia" Option "RegistryDwords" "EnableBrightnessControl=1" EndSection After restarting the X server or the W510 you can adjust brightness by the normal function key combination.

Lenovo SSD MMCRE28G5MXP TRIM Update

Sven Bachmann
I bought an used Lenovo W510 laptop which had an Samsung MMCRE28G5MXP-0VBH1 SSD installed. After some time it got slower and slower when I created, copied or extracted files. After reading some forum entries I came to the conclusion that the missing TRIM feature was the problem - and that Lenovo doesn’t provide a firmware update even if the drive is able to TRIM. Luckily, some guys already found a way to update the drive with the original Samsung firmware.

Raspberry PI with HD44780 LCD and I2C Interface Board

Sven Bachmann
After buying an HD44780 compatible LCD together with an I2C interface board (which has an PCF8574T soldered on it) I tried to output some text in C on it but the display just stayed black - or after changing some GPIOs, it stayed blue. I measured every pin of the PCF8574T and got the following scheme: PCF8574T <-> HD44780 P0 -- RS P1 -- R/W P2 -- EN P4 -- DB4 P5 -- DB5 P6 -- DB6 P7 -- DB7 R/W should be mapped to GND if the HD44780 should not talk back to the CPU.

TU Chemnitz CAN Email wird beendet - IMAP Backup

Sven Bachmann
Die TU-Chemnitz wird leider aufgrund von “verschiedenen juristischen und technischen Gründen” die E-Mail Adressen des Chemnitzer Absolventennetz (CAN) nicht mehr weiter anbieten. Lediglich eine Weiterleitungsadresse kann im POST-TUC-Service hinterlegt werden, welche jedoch vom Absender erst erfragt werden muss - es stellt also keinen automatischen Forward-Service dar. Aus historischen Gründen gibt es sicher den ein oder anderen (wie mich), der seine Mails behalten möchte. Für diesen Zweck gibt es das praktische Python Programm IMAP Backup Tool.

Add bitmap to md-raid which is under recovery

Sven Bachmann
When you try to add a bitmap to a Linux md-raid which is currently under recovery, you’ll get an error that says mdadm: Cannot add bitmap while array is resyncing or reshaping etc. failed to set internal bitmap. Here is a solution that should be applied in the early resync process, as you will loose the current progress. First, you’ll need to mark the drive/partition that is resynced as bad.

UDP and netcat are no friends

Sven Bachmann
After a long debugging session with an UDP logger I had to find out, that netcat is incapable to receive more than 1024 bytes via UDP at once. Seems this problem is at least known since 2010-02-16 but I wasn’t able to find a solution for this (the trick with sysctl as suggested in the answer to the linked question won’t work with linux). So for now I implemented a solution which divides the UDP output into 1024 byte chunks which seems to work fine.

Invisible text lines with DokuWiki dw2pdf Plugin

Sven Bachmann
If you encounter empty text lines in PDFs exported from DokuWikis PDF Plugin dw2pdf, here is something that helped me workaround it. With only Google Chrome showing the PDFs content correct, I tried Evince and Acrobat under Windows. Under Windows I got the feedback, that the font dejavusanscondensed was not found. So as a workaround, I can currently tell you, that the following worked: dokuwiki/lib/plugins/dw2pdf/mpdf/config_fonts.php: $this->sans_fonts = array('dejavusanscondensed','dejavusans','freesans',...); There you have to put helvetica in front of this list, so it is used before dejavusanscondensed.

Bastelprojekt Katzenkamera

Sven Bachmann
Christian und ich haben mal wieder gebastelt. Was dabei rauskam? Eine Katzenkamera die auch im Dunkeln sieht und “Social” ist. Die eigentliche Kamera selbst ist eine Logitech Quickcam die per USB angeschlossen ist. Für die Übertragung des Bildes und das Erstellen von Schnappschüssen hat sich das Tool motion als brauchbar erwiesen. Um die Katze auch im Dunkeln beobachten zu können brauchten wir noch Licht. Da normales Licht die Katze gestört hätte, fiel die Wahl auf Infrarot.