Compiling Sendmail on Debian7

Problem: after compiling sendmail on Debian7 with “./Build” sendmail does not recognize hash .db files. You see the following error message: readcf: map access: class hash not available Discussion: ./Build should detect the berkley DB automatically. When devtools/bin/configure.sh finds libdb.so it adds -DNEWDB as compile option. On Debian7 the libdb.so file moved to /usr/lib/x86_64-linux-gnu/ and configure.sh fails to …

Continue reading ‘Compiling Sendmail on Debian7’ »

Generate CSR using openssl

Browsers started to warn users about certificates with Sha1 signature. Sha256 is needed now a days. So it’s time to renew certificates from Thawte, Godaddy, etc You can generate a new Certificate Signing Request with openssl with this command: openssl req -nodes -newkey rsa:2048 -keyout servername.key -out servername.csr -sha256 “servername.csr” is an ascii file you can send …

Continue reading ‘Generate CSR using openssl’ »

Debian 8 Uses only One Core of a Multi Core CPU

Problem: A fresh installed Debian 8 (Jessie) 32bit 686 uses only one core of a 6 core Xeon CPU. amd64 kernels don’t have this problem. Solution: The HP Proliant DL360 Gen9 has a BIOS option called “Processor x2APIC Support”. When you set this option to “Disabled” the Linux kernel uses all 6 cores. x2APIC is a …

Continue reading ‘Debian 8 Uses only One Core of a Multi Core CPU’ »

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’ »