What's going on in Mesiols work day

Saturday, February 28, 2009

Mapping windows key to Linux key of choice


i wanted to map the windows key on a Dell Inspirion to a useful Linux key on my son's notebook. This can be done the following way:

Use xev command to capture the key code. Left windows button should be key code 115.

Than you can do the following:

xmodmap "keycode 115 = F20"

This maps left windows button to function key 20.

To have the Windows key-mappings enabled automatically every time you start X either put the xmodmap commands in your ~/.xinitrc file or, preferably, create a file ~/.xmodmaprc and include the xmodmap options, one per line, then add the following line to your ~/.xinitrc:

xmodmap $HOME/.xmodmaprc

After that you can map the F20 inside your window manager to the function you like to use.

Thursday, February 26, 2009

rewrite all http to https in Apache


i had to do some web server configuration. Requirement was, that all http traffic should be redirected to https on the server.

I used mod_rewrite to do the job with the following configuration statement

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Don't forget to configure SSL on the server :)

Wednesday, February 25, 2009

I deal with various storage management systems for years, but last week i found a tool completely new to me.

I had to manage a Linux cluster with several storages and the customer had installed a tool called EVMS, the opensource Enterprise Volume Management System. It provides nearly the same functionality as Veritas Enterprise Administrator and VxVM specific for Linux.

You'll get a intuitive GTK GUI, a ncurses based textmode UI and a commandline interface.

You'll try it? Take a look at EVMS Sourceforge Page.

new year and a lot of work to do.

Today i have found that after deleting a Linux software RAID partition there is always information stored about the RAID configuration on the disk.

To delete this information, i used

mdadm --manage --stop /dev/md0
mdadm --misc --zero-superblock /dev/sdb1

This solved my problem.