Friday, February 3, 2012

Fix missing flag xfce4-xkb-plugin

When I use this plugin to change the keyboard layout to arabic. Text "ara" is appear instead of arabic flag.

I see arabic flag in /usr/share/xfce4/xkb/flags/ which has name sa.svg. To display flag in panel, simply copy or make link to ara.svg from that file.
$ cd /usr/share/xfce4/xkb/flags/
$ sudo ln -s sa.svg ara.svg


Wednesday, February 1, 2012

Hatteland 3M Microtouch Driver on Linux

The original driver work well if using default serial port, but it doesn't work for USB to Serial converter. If you have this problem, you can use open source mtouch driver in linux.

1. Detect your usb device
$ dmesg | grep usb
Usually /dev/ttyUSB0

2. Install mtouch driver
$ sudo apt-get install xserver-xorg-input-mutouch

3. Install inputattach to make the device using mtouch driver
$ sudo apt-get install inputattach
In other distro, it packaged as xinput-utils.

4. Connect the device
$ sudo inputattach -mtouch /dev/ttyUSB0

5. You can calibrate it by using xinput_calibrator
$ sudo apt-get install xinput-calibrator

Thursday, January 5, 2012

Oblivion theme for Netbeans

I found Oblivion theme for netbeans in this blog but there many differences compare to the original one (gedit) in Java code. I made some little modification of it. Here is the result:

You can download it here.

Wednesday, February 2, 2011

Bugs and Annoying Things on Solaris 11 Express

1. Delete button produce "~" character in gnome-terminal
Problem: Delete button always produce tilde(~) character on terminal. we cannot delete character in front of current cursor
Solution: https://defect.opensolaris.org/bz/show_bug.cgi?id=3090

2. System error bell set to true by default
Problem: Motherboard speaker always ringing loudly when we did something wrong. such as unavailable command in terminal, press right arrow button on the end of line in editor, etc.
Solution: http://www.cyberciti.biz/faq/how-to-linux-disable-or-turn-off-beep-sound-for-terminal/

Thursday, October 14, 2010

Copying text from mcedit to system clipboard

Just press Shift key while blocking the text in mcedit, or copy item in popup menu will remain inactive on right click. :P
Without pressing Shift key:

With pressing Shift key:

Fixing mcedit transparent problem in mc 4.7.0.x series

In previous release of mc, we just need to add following code to make it transparent in [Colors] section:
base_color=normal=editnormal=,default:
But since version 4.7.0.x (using in Ubuntu 10.04 and later) it doesn't work. Especially while using mcedit, it looks ugly. it still using normal background color for empty space, see this bug.

To make it works again, replace code above with this:

Tuesday, October 12, 2010

Nautilus Script: Extract to Folder

Use this script if you want to extract compressed file into a folder in nautilus.
Make text file named "Extract to Folder" in ~/.gnome2/nautilus-scripts/ then just put the following code into it.

make it executable using $chmod +x ~/gnome2/nautilus-scripts/Extract\ to\ Folder
and now you can use it in nautilus by simply right click > Scripts > Extract to Folder.