fix mouse pointer speed in Gnome 3.16

When upgrading to Gnome 3.16 you might find yourself in the situtation that your mouse pointer speed has changed. To revert this run the following command: /usr/bin/xset m default

July 3, 2015 · 1 min

Apache 2: [authz_core:error] client denied by server configuration

When upgrading Apache to version 2.4 some of your config files need to be changed. Allow from all needs to be changed to Require all granted Otherwise your virtualhost config is not correct and Apache won’t work correctly.

May 23, 2015 · 1 min

Dovecot: login problems with Outlook

When all mail clients are working fine with dovecot – Outlook won’t. The first thing you might want to check resides in the following file: /etc/dovecot/conf.d/10-auth.conf The default value for disable_plaintext_auth is “yes” – change it to “no”: disable_plaintext_auth = no

May 22, 2015 · 1 min

Skype on Debian 8: missing libGL.so.1

After upgrading to Debian 8.0 (jessie) Skype stopped working with the following error message: skype: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory There is a really simple fix available: sudo ln -s /usr/lib/mesa-diverted/i386-linux-gnu/libGL.so.1 /usr/lib/i386-linux-gnu/ Done.

May 22, 2015 · 1 min

PHP: Disable Xdebug for CLI

In most scenarios you won’t need Xdebug on your CLI. Also it is recommended to disable it if you use Composer . sudo php5dismod -s cli xdebug

February 10, 2015 · 1 min

shred a hard drive

If you want to destroy all data on a device use the following command. shred is part of the coreutils package. /usr/bin/shred -v -f /dev/sda Data destroyed by shred can’t be restored unless you invest a lot of time and use special equipment. Use with caution. The option -n can be used to increase the amount of iterations (default: 3).

October 7, 2014 · 1 min

Debian: waiting for root filesystem fails (using software raid)

If your system does not boot up und you’re dropped to an initramfs shell after “waiting for root filesystem” fails – check your mdadm config /etc/mdadm/mdadm.conf Make sure it contains the correct definitions which are available with mdadm --detail --scan Adjust your config and run update-initramfs -u -k all to make the system bootable again.

September 29, 2014 · 1 min

Debian: get around maintenance shell asking for root password

Once in a while it might happen to you that you attempt to boot some Debian machine and some fsck errors occur. Debian will then present you a maintenance shell and ask for your root password. There are two options at this point: Enter your root password or hit CTRL-D to continue. Continuing will not resolve the problem as the fsck error needs to be fixed manually. If you don’t know your root password or you’re just to lazy to type in a 30 character string the following might help....

August 11, 2014 · 1 min

fail2ban: unban IP from iptables

In case an IP gets banned by fail2ban and you want to remove it: The following command gives you an overview of all chains and the banned IPs along with their corresponding number. iptables -L -n --line-numbers To unban an IP use this command with the correct chain and number: iptables -D fail2ban-ssh 2 Another method is the usage of fail2ban-client: fail2ban-client set sasl unbanip IP

April 11, 2014 · 1 min

generate a new self-signed SSL certificate for Virtualmin/Webmin

Virtualmin/Webmin ships with a self-signed SSL certificate. In case you want to generate a new one, here’s how: openssl rsa -in webmin.key -out webmin.pem openssl req -new -key webmin.key -out webmin.csr openssl x509 -req -days 1095 -in webmin.csr -signkey webmin.key -out webmin.crt cat webmin.crt >> webmin.pem cd /etc/webmin/ cp miniserv.pem miniserv.pem.bak cp /root/ssl/webmin.pem miniserv.pem service webmin restart

April 9, 2014 · 1 min