Open KDE Menu with the windows/meta key

This used to be quite a difficult one to achieve but it is very easy now.

Install the package Ksuperkey from the AUR if using Arch, start the application by opening the Alt+F2 menu and typing ksuperkey. Now right click on the Kickstarter menu and open “Application Launcher Settings”,  change the shortcut to Alt+F1 as this is the key ksuperkey uses to open the menu. The application works by activating the key on release so the key is still available as a modifier if pressed with another key.

This needs to be added to the AutoStart list otherwise the application will have to be manually started upon reboot.

Resources:

http://blog.hanschen.org/2012/10/17/open-application-launcher-with-super-key/

Please share 🙂

Scanner Server Ubuntu 14.04

I recently decided to attach my scanner to my server so all machines could use the scanner without having to fiddle with cables etc. The scanner is a small Canon Lide 35 which is powered by the USB cable. The scanner also works perfectly with Linux.

First install sane-utils and xinetd.

Read more…

Please share 🙂

Fail2ban Horde Webmail

This will show you how to setup horde to log failed logins and use fail2ban to detect these. A useful tool to check if any fail2ban filters are working as expected is the fail2ban-regex tool, more details here Fail2ban-regex help.

Login to horde webmail using an admin account. Navigate to the configuration page -> horde -> logging tab. You should see something similar to this.

Horde Logging Configuration Page
Horde Logging Configuration Page

Read more…

Please share 🙂

Caesar Cipher Decryption Tool in Java

One of my university modules tasked me with developing a Caesar cipher decryption tool. The tool had to be able to decrypt any encrypted text without knowing the offset used to encrypt the text. The code is surprisingly short and I am not aware of any other Java examples.  The code was originally developed with a command line interface however I have ported it to run on a tomcat server.

To tool is available here: CCDT and the text file mentioned below is from Practical Cryptography

Read more…

Please share 🙂