MobaXterm and plugins

MobaXterm is a pretty great terminal environment for Windows users, I haven’t even really scratched the surface of all it can do, but just having a real shell with real UNIX commands available without having to reboot takes away about 90% of the suck of using Windows. It comes with quite a few basic UNIX commands built in, and there are plugins available for a number of others. You get them from this page, although you really only have to grab the cUrl plugin, restart and then run the following one liner:

for i in $( curl|grep '\<li\>'| awk -F\/ '{ print $2 }'| awk -F\" '{ print $1 }' | awk '{ printf "http\:\/\/mobaxterm\.mobatek\.net\/"; print }' ); do curl -O $i ; done


to grab all of them. It’s free software, and the source code is available from their website (support->licenses), although they seem to be running on a free/paid version system of binaries, with more features and support available for the paid version. If you’re not keen on compiling a bunch of UNIX software under Windows, it’s probably worth the 49 Eur. to get the paid version.

Leave a Comment

Filed under Uncategorized

Enabling the CD-Rom eject button on the MSI GE620

The MSI-GE620 laptop is a pretty good laptop albeit with a few small annoyances. One of them is a row of buttons above the normal keyboard used for certain laptop functions, such as ejecting the CD-Rom or automatically switching monitor modes. Unfortunately Linux doesn’t recognize these keys out of the box, MSI doesn’t provide any support or linux drivers for this keypanel, and to make matters worse, there is no hardware eject button on the optical drive. After a few hours of some googling I managed to come up with a pretty nice workaround in KDE.


  • files might need to go somewhere else depending on your distribution (I’m currently running Archlinux current 2013.05.01)
  • only the eject button and the media (film) button are working. No idea what it will take to get the other buttons working.
  • afaik this does not work in the console at all, I’m not sure how hard it is to set up on other desktop environments, but it does work pretty good in KDE
  • I am not responsible for what you do to your system. Please read up on the commands/files I am using if you are not completely familiar with them. I’ll give some links to the docs I used to figure all this out at the end of the post.

I made a file called /lib/udev/keymaps/msi-ge620 containing the following:

[code]0xc2 ejectcd # The CD-Rom Key
0xb9 wordprocessor # The star-in-a-circle key. Does not work currently
0xbb media # The film key[/code]

and a file called /etc/udev/rules.d/10-msi-sbar.rules containing the following:

[code]SUBSYSTEM=="input", ATTRS{name}=="MSI GE-620 S-BAR keyboard", RUN+="/lib/udev/keymap input/$name /lib/udev/keymaps/msi-ge620"[/code]

and then, to immediately test the changes I made issued the following command:

[code]/lib/udev/keymap input/event1 /lib/udev/keymaps/msi-ge620[/code]

In KDE I opened up the “custom shortcuts”, then clicked ‘edit’ and ‘New>Global Shortcut>Command/URL’ and then set up a custom shortcut to the eject command, pressing the now-mapped eject key for the keyboard shortcut.

Custom Shortcuts

I managed to get started detecting what the actual keys did by reading this:
(For my model of laptop I had to skip straight to section 1.4 regarding scancodes.)

And then setting up a udev rule to deal with actually converting the buttons into something that could be used in Xorg:

And finally setting up a custom shortcut in KDE:

Leave a Comment

Filed under hardware, Linux Configuration

Hourly updates on bills

So at work I use a lot of bash scripting to allow myself time to do things like catch my breath and occasionally play some video games now and then. Basically I discovered a bunch of command line tools that allow me to get a webpage, and then look for some shit that’s on that webpage, and either return a yea or a nay depending on whether it’s found it. Optionally it’s possible to grab some data from that website and return that instead of just telling me whether or not the webpage is returning the text that it should. This is called “screen scraping”, and I found out how useful it can be a few months ago when my father passed away. Continue reading

Leave a Comment

Filed under Linux/Bash Scripting