Openbox goes weird with R.A.T.5 Mad Catz

Problem: when you connect the Mad Catz R.A.T.5 mouse to a Linux box running openbox window manager, the window handling stops working. Sometimes mouse follow focus does not work, sometimes even  clicking a window cannot activate it. Sometimes clicking window borders does not work, sometimes clicking into windows is ignored. Solution: This mouse has a mode button, which is …

Continue reading ‘Openbox goes weird with R.A.T.5 Mad Catz’ »

USB SCSI Disconnects when Idle

Problem: An external USB harddrive disconnects and immediately reconnects with different device name. You find log entries like these: Jan 17 00:46:52 workstation kernel: [212306.086568] sd 33:0:0:0: [sdj] Attached SCSI disk Jan 17 01:51:14 workstation kernel: [216168.064075] usb 2-4: USB disconnect, device number 11 Jan 17 01:51:15 workstation kernel: [216168.596514] usb 2-4: new SuperSpeed USB device …

Continue reading ‘USB SCSI Disconnects when Idle’ »

Howto generate an SSL key and self signed cert with openssl

For SSH, HTTPS, TLS SMTP,POPS, IMAPS you need a RSA key pair. Most Linux package installers produce this pairs automatically, but if you like, you can generate them yourself. The quickest method I found is: openssl req -x509 -nodes -newkey rsa:2048 -keyout servername.key -out servername.crt -days 1024 This command asks you some questions. The most …

Continue reading ‘Howto generate an SSL key and self signed cert with openssl’ »

Unix/Linux date command fails when calculating “yesterday”

Problem: A shell-script running every day short after midnight doesn’t work properly once per year after daylight-saving time adjustment. e.g. an expected logfile is missing (“somefile.YYYYMMDD.log”) Discussion: The Unix date command calculates the wrong date when used with “–date yesterday” on the day after daylight-saving time adjustment. # date Mon Mar 31 00:15:03 CEST 2014 # date …

Continue reading ‘Unix/Linux date command fails when calculating “yesterday”’ »

Copy’n’Paste from Xterm to Chrome

Problem: X11 has a classical copy/paste mechanism which is: select text – press middle mouse button in the target field. And there is a second copy/paste which was adopted from Mac and Windows which is: select text – Ctrl-C – click into tagert field – Ctrl-V. I prefer the classical approch, but in some web applications …

Continue reading ‘Copy’n’Paste from Xterm to Chrome’ »