How to fix broken keyboard after leaving vmware windows guests

geschrieben von Obnox | 13 Feb, 2009

Sometimes - I can not really tell when - <ctrl>, <alt> and <shift> keys do not work any more for me after releasing the focus from a vmware guest. Then running the following command will revive my keyboard:

setxkbmap de nodeadkeys

(or whetever your keyboard setting is). Note that I usually have an xterm open (or I can open one since I have a laucher available in the panel). In order to reduce typing, I put this into the $PATH into a little shell script ~/bin/kbdfix .



abcde - A Better CD Encoder

geschrieben von Obnox | 13 Feb, 2009

I just found this really cool Linux command line tool for ripping cd's into ogg vorbis files (or mp3, or ...): abcde (A Better CD Encode).

It does all you need for ripping cds: grep info from cddb, rip tracks into .wav files, normalize the volume of the individual files (if you want it), encode the wav files into the format you specify (given external commandline encoders), appropriately comment or tag (ID3/ID3v2) the file, calculates replaygain.

abcde can be configured via a ~/.abcde.conf file. Here you can configure where the created files should be stored and many other things. The manual page has the details.

Here is my ~/.abcde.conf file. I have configured the naming scheme for my .ogg files and given a custom name translation function that maps the names to lower case and does not (like the default) translate spaces to underscores:

# ~/.abcde.conf

OUTPUTTYPE='ogg'
OUTPUTFORMAT='${ARTISTFILE}/${ALBUMFILE}/${TRACKNUM} - ${TRACKFILE}'

mungefilename() { 
        echo "$1" | tr "[:upper:]" "[:lower:]" | tr -d "[:']"
}

That's all. Here is the Homepage: http://lly.org/~rcw/abcde/page/.


How to fix AltGr in vmware guests

geschrieben von Obnox | 3 Feb, 2009

When AltGr or other special keys are not working in your vmare (windoze) clients, try adding this to your ~/.vmware/preferences or /etc/vmware/config:

  
xkeymap.keycode.108 = 0x138 # Alt_R
xkeymap.keycode.106 = 0x135 # KP_Divide
xkeymap.keycode.104 = 0x11c # KP_Enter
xkeymap.keycode.111 = 0x148 # Up
xkeymap.keycode.116 = 0x150 # Down
xkeymap.keycode.113 = 0x14b # Left
xkeymap.keycode.114 = 0x14d # Right
xkeymap.keycode.105 = 0x11d # Control_R
xkeymap.keycode.118 = 0x152 # Insert
xkeymap.keycode.119 = 0x153 # Delete
xkeymap.keycode.110 = 0x147 # Home
xkeymap.keycode.115 = 0x14f # End
xkeymap.keycode.112 = 0x149 # Prior
xkeymap.keycode.117 = 0x151 # Next
xkeymap.keycode.78 = 0x46 # Scroll_Lock
xkeymap.keycode.127 = 0x100 # Pause
xkeymap.keycode.133 = 0x15b # Meta_L
xkeymap.keycode.134 = 0x15c # Meta_R
xkeymap.keycode.135 = 0x15d # Menu

Thanks to gladiac for the hint! He also told me that the problem only occurs when you use evdev as your keyboard driver.


Rad-und-Lauf-Statistik 2008

geschrieben von Obnox | 5 Jan, 2009

Von meinen bei http://trainingsverwaltung.mtb-news.de/ erfassten Trainingseinheiten:

  • knapp 5200 km Radfahren davon
    • ca 1000 km Rennrad und
    • 4200 km MTB, davon
      • 2750 mit dem alten MTB (Januar bis August) und
      • 1450 mit dem neuen MTB (September bis Dezember)
  • 300 km Laufen (Mai bis Dezember) :-)

Hmmm, gut 1100km weniger geradelt als 2007, da habe ich bestimmt einige Einheiten vergessen aufzuschreiben. Aber ok, ich bin auch deutlich häufiger beruflich unterwegs gewesen.... ;-)


Frustkiller 2

geschrieben von Obnox | 1 Sep, 2008

Leider nur ein Handy-Foto. Aber immerhin ein erstes. Die Laufräder werden auch noch getauscht...


Hi hi history

geschrieben von Obnox | 20 Aug, 2008

obnox@nirvana:~> history|awk '{a[$2]++} END{for(i in a){printf "%5dt%sn",a[i],i}}'|sort -rn | head -n11
  414   git
  123   vi
   80   ls
   58   make
   34   less
   24   socksify
   22   man
   20   cd
   18   ./configure
   15   buildsamba-clustered
   13   svn

Idea taken from Deryck.


Shake it, baby!

geschrieben von Obnox | 22 Mai, 2008

Diskriminierung!

geschrieben von Obnox | 24 Aug, 2007

Des Obnox' neue Kleider (Teil 2)

geschrieben von Obnox | 23 Aug, 2007

Crash-Kurs für Schilderaufsteller

geschrieben von Obnox | 21 Aug, 2007

Liebe Schilder-Aufsteller, es ist doch gar nicht soo schwer:

Alles klar? ;-)