Recommend: Yakuake, a cool terminal Emulator for KDE

February 1, 2007

In KDE, I use Konsole all the time, until I met Yakuake. I add this small tool to my long-term using applications immediately. The reason is simple. It’s pretty convenient, fast, and cool.

KDE lets me define a shortcut (I set it to Win+Ctrl+T, whilst Win+T to start it) to activate my Konsole no matter what desktop it is, or it is minimised or not. This is quite handy as whenever I want to switch to an opened Konsole instead of opening a new one, I just press the hotkey. However, it is annoy that after this I have to minimise it manually, otherwise it will be the current active window in my every 9 desktop!!

By using Yakuake, this wouldn’t be an issue anymore. I add it to my autostart applications. So instead of start a terminal and switch it every time and minimise after using it, I just press a hotkey (I set it to Alt+X as it is very handy for my left hand), a console will slide from my top screen edge, then I can type and command I want, or add more tabs. To inactivate it, just click outside this console it will slide back as nothing happens, or press the hotkey again. This applies to all my desktops. Besides, the interface is really cool, I set it to use Konsole’s settings, others default. Here is a screenshot:


To install is quite simple: in terminal “sudo apt-get install yakuake” , then say goodbye to your old terminal emulators.

My note on GIMP to edit digital photos

January 30, 2007

Before struggling with Canon EOS 400D or 30D, or … making money first…, I figured out that before I have money to buy a DSLR, I’d play around with digital photo editing softwares in Linux first. I then searched for a good photo editing software for sometime. But a voice told me in my head: “Hey, dude, don’t you know GIMP was in your Ubuntu from the very beginning.” Yeah, I am stupid, how can I ignore such a powerful tool that comes with Ubuntu (in fact, I think most distributions would have it). Then I started to learn it. Here are some notes in case I forget them:


  • Remove red eye. Comes from here. Quick steps:
  1. In the picture window, zoom to the pupils, press “Z”.
  2. Play around the threshold to select red areas.
  3. Filters/Colors/Channel Mixer. Choose around “Red 10%, Green 60% and Blue 30%” , done.
  • Blur background, focus object. Comes from here. Doing this can make my picture more like taken from DSLR. The link shows a wee complicated way, my lazy way is:
  1. Always select object area first. Either use quick mask (Shift+Q, then use white brush to brush areas to select, and black brush to brush unwanted areas, then Shift+Q again to see the selection area), or use keyboard “I” to select.
  2. Use Filters/Enhance/Unsharp Mask to sharp the object a bit.
  3. Ctrl+I. Use Filters/Blur/Gaussan Blur to blur background. (radius around 20 would be OK)
  • Make colors better. This comes from a lot of links.
  1. First of all. Tools/Color Tools/Levels/Auto would be a good automatic way to better color.
  2. If I feel some colors are too thick in the picture (say blue), change chanel in the Levels dialogue from value to that chanel, say blue. and drag the righ triangle to left. Need to play around.
  3. Also /Tools/Color Tools/Curves is worthy playing around. I haven’t figured out the principles of these tools, but they are good…
  4. /Tools/Color Tools/Brightness-Contrast is self-explained.
  5. Tools in /Layer/Color/Auto can also do some automatic jobs to make colors better.
  • Heal picture. This is so amazing. With this Clone tool, I can remove dust in the picture. It can achieve some amazing effect far more than dust removing. Just play around it once, you’ll get the idea.
  1. In the picture window, zoom to the dust I don’t want. keep some good area around it, because clone tool needs place to clone. Press “C” key.
  2. Ctrl+Click the spot you think that is very similar to the dust area that you want to heal. This is the original area to clone.
  3. Click on the dust to heal it with the clone area. Choose proper brush size. Sometimes I find a big fuzzy brush can do better job than small ones.
  4. Notice that if you click hold and drag the brush around the dust area, the original clone area are moving too. This can avoid making picture too fake (all copy from the same spot). There is an option of Alighnment to select, try it, you’ll get the idea.

These are the notes I learned so far. Anyway, GIMP is an amazing free software, I’ll keep learning it:). The picture below is my practice, with my normal Kodak digital camera without flashlight (along with the original picture). First I used Levels and Curves to deal with the color. Then I used unsharp mask to sharpen nemo, then Gaussian blur to blur the background.

Nemo Nemo origin

HOWTO: quick search terminal history commands

January 20, 2007

I like the MATLAB way of input command — it has the same tab-complete feature; in addition, it has a up-arrow-auto-complete-history-command feature. For example, if I have typed a command “x=39;y=23;” before, now I can just type “x” and then type the up arrow button, then this command would auto-complete. It can also switch between all the history commands that has the same starting letters.

Vert unfortunately, I haven’t found any similar feature in the Linux terminal, or say bash. There is a command called “history” that can list all the history commands. I can type “history | grep xxx” to search the command I want to find. The same example, I can type “history | grep x=” try to find that command. There would come up something like “201 x=39;y=23;“. The number in the beginning is the index of in the history. Then I can type “!201” to repeat this command. But I find this quite time-consuming.

Then I came across a shortcut of bash “Ctrl + R“, it can “search through previously used commands”. Say in the terminal I type “Ctrl + R”, then “(reverse-i-search):” came up, then I can type keyword of my previous command, say “x=” then the most related command would come up. After the right command comes up, then type enter, finish. Although not as convinient as the MATLAB mode, this is way better than using “history” command, in my view.

Tomboy icon on the KDE tray, finally

January 5, 2007

Tomboy is a nice note taking application that I am using it everyday. But it is really annoying that no icon is there on the KDE tray. But it is really there, like a transparent icon. These problem seems a bug in the 0.4 release, because I saw someone else got the same question in some forums. But now with the 0.5.1 release, the tomboy icon finally can be displayed on the KDE tray. Of course there are other new features, please check here.

Tomboy icon on the KDE tray

Superswitcher — A nice Alt+Tab alternative

January 5, 2007

Today I came across a nice small application called “Superswitcher” from LinuxTOY. It is quite handy to use Win+direction keys to switch from desktops and applications in one desktop.

“SuperSwitcher is a (more feature-ful) replacement for the Alt-Tab window
switching behavior and Ctrl-Alt-Left/Right/Up/Down workspace switching behavior
that is currently provided by Metacity.”

Don’t worry about the homepage of Superswitcher is inside the Gnomefile, because I found it works perfectly in my KDE desktop environment. It also has some other features like move windows, find particular windows by key combinations. The only problem I found so far (after trying 2 min only…) is that it conflicts with my KDE shortcut. I have Win+ KEY to open applications, and Win+Ctrl+KEY to switch to that window. Now I can’t use them if I have Superswitcher on. I’ll try to find a way to overcome this…

A screenshot here:

HOWTO: backup my Ubuntu

January 1, 2007

This is a short guide to my backup scheme. I use this nice guide from the ubuntu forum. First of all, I found it will take ages to extract some certain file from the huge tar file of the whole system backup. So I backup separately. The idea is to backup the home folder into 3 files, and other system files into one. Here they are:

  • tar cvpzf /media/SEA_DISK/Backup/Linux/Wei/personal_111206.tgz /home/wei/personal This backup all the personal files include my pictures and application files (say KmyMoney file).
  • tar cvpzf /media/SEA_DISK/Backup/Linux/Wei/samba_111206.tgz /home/wei/samba
    This backup the samba folder, which is used to share with my Windows XP via VMWARE. Yeah, I am still usingWindows XP, unber VMWARE. I have to use windows to do some study. This folder is shared between Ubuntu and Windows XP so that I can save the data file in Windows and edit my paper in Ubuntu with just “Ctrl+Alt” to switch out VMWARE.
  • tar cvpzf /media/SEA_DISK/Backup/Linux/Wei/wei_others_111206.tgz –exclude=/home/wei/personal –exclude=/home/wei/samba –exclude=/home/wei/songs –exclude=/home/wei/vmware /home/wei
    This backup all the other files in my home folder except the”song” folder, which stores temporary mp3 files I copy from my external hard disk occasionally.
  • tar cvpzf /media/SEA_DISK/Backup/Linux/system/system_edgy_kde_111206.tgz –exclude=/proc –exclude=/lost+found –exclude=/mnt –exclude=/media –exclude=/home / This backup all other system files.
  • One very IMPORTANT hint: don’t add the last “/” symbol in the exclude parameter. For example, write “–exclude=/home”, but NOT “–exclude=/home/”. Maybe this is a tar bug. /media/SEA_DISK/ is the mount folder of my external hard disk. 

Just these simple steps to backup my Ubuntu, with no need to boot by a CD using Ghost. This is done in running Ubuntu. Amazing, isn’t it? I haven’t restored my Ubuntu yet, but it is just unpack this tar files, again, in the running Ubuntu. In fact, I doubt there wouldn’t be a chance that I have to restore it, Ubuntu seems so stable and easy-repair.

Update Opera using non-free repository

December 31, 2006

Opera has updated to 9.10. I can’t remember how I installed opera, but I can’t update it using “sudo apt-get dist-upgrade”. This post has exactly the same problem as mine. So, I changed my old stable repository into this “#deb etch non-free”, and use this in the terminal to add public key:


sudo gpg –keyserver –recv-key 6A423791
sudo gpg –fingerprint 6A423791
sudo gpg –armor –export 6A423791| sudo apt-key add –


and then “sudo apt-get update”, “sudo apt-get dist-upgrade”.


December 31, 2006

I have a Canon PIXMA ip1500 printer which I usually print in the Windows environment. I came across a software called Turboprint one day. My printer model is supported. I downloaded it and installed. Everything seemed perfect (except the GTK1 interface). But it turned out that every paper I print has its logo on, even I try the lowest resolution. And I have to pay $34 to register to use it with full function. It seems ridiculous that I have to pay almost equvalent money as my printer to drive it in my Linux! Uninstall it immediately…

I searched Ubuntu Forum with “ip1500” , there are lots of posts. I read some of them, looked quite complex… so I didn’t try then. But today I am quite free so I decided to drive my ip1500 in my Ubuntu. Fortunately, the first post I read from my search result is a perfect one. Here it is. I’ll just add a link where the official driver for Linux can be downloaded.

As the post said, despite the official site said the OS is SUSE, it works perfect on my Ubuntu Edgy with KDE. Just install the printer from KDE control center instead of “gnome-cups-manager”.

My software list in Ubuntu+KDE

December 29, 2006

Having been trying different software these months (hope the English grammar is right…), I’ll list my favorite Linux software here, just remind myself. Everything can be installed by simply typing “sudo apt-get install XXX (its name)” in the terminal. Except, opera needs to add a commercial repository, which can be found here.

File management:


  • Opera, Firefox, Swiftfox, browers I use forth and back
  • Amule — similar to emule in windows
  • Ktorrent — BT client
  • Kontact — very exciting program which includes all the PIM stuff I need: calendar, todo list, note, Email (Kmail), RSS news reader (akregator)…
  • Gaim — MSN, QQ, Gtalk, ICQ… client
  • vpnc — much better and easier application than the Cisco one
  • qsopcast — online TV, it’s a p2p software


  • Openoffice
  • gwenview — smart KDE picture viewer
  • KPhotoAlbum — Help me sort all my images in my computer. Its tag-every-image feature makes finding a single picture from thousands much easier.


Useful Utilities:

  • Tomboy — note-taking application
  • Stardict — dictionary
  • gvim+latex suite — latex editor (also Kile)
  • vmware — virtual machine which let me run Windows XP under my ubuntu to do some must-in-windows stuff, say MATLAB… Using samba service could make a folder to be share by both the host and guest machine to share data.
  • KMymoney2 — This is a prety cool software that help me record my cost and income. I found it easier than others like Gnucash. At least, I want to avoid using GTK stuff in the KDE environment.
  • qtparted, gparted — partition utilities in KDE and Gnome.
  • k3b, gnomebaker — CD/DVD burning utilites in KDE and Gnome.
  • fcitx — Chinese input server. 小企鹅输入法, Linux下的中文输入法.
  • tpfan — An automated control script to solve the fan always-on problem in my IBM T43 laptop. There is also a small utility for Windows use here.
  • tpb — TPB is a little program that enables you to use the IBM ThinkPad(tm) special keys.
  • xvkbd, xbindkeys — Help me define button functions of my Logitech® Optical Cordless TrackMan. A nice howto article can be found here.
  • gmrun — one of the few GTK programs I used in KDE. It’s a Gnome completion-run utility which is very handy. In Windows there is a similar free program called Runfast. The “Run Command” (Alt+F2) in KDE is useless for me, because it has no auto-completion ability. I haven’t found any program in KDE that can replace gmrun yet.

My (K)Ubuntu desktop arrangement

December 28, 2006

Ubuntu + KDE screenshot

I can’t call my operation system exactly Ubuntu, because I am using KDE environment now. I can’t call it Kubuntu either, as I installed Ubuntu and then “sudo apt-get install kde” instead of “sudo apt-get install kubuntu-desktop”. In the latter case, all the Kubuntu stuff would be installed, as I read from some posts about how to reverse GDM back. Anyway, I don’t think there would be much difference, it is definitely Ubuntu.

As you can see, I like make the taskbar (panel) vertical on the left, and make it autohide. I found this way could save my screen space and time to move the mouse to the bottom of the screen to switch different windows, like the default panel. Although this panel is seldom used, as I have set up 9 desktops. Most of the programs I opened were set to be opened in specific desktop no matter what is the current desktop. This can be set by “KDE control center – Desktop – Window-Specific Settings – Geometry”. I also set couple of hotkeys for certain applications. Say “Win+Ctrl+G” will swich to Gvim wherever it is, “Win+Ctrl+T” will swich to Terminal. There are also large number of hotkey settings in KDE which can make operation much convenient. They are all in the KDE control center.

Bottom right is a very small Xwindow application called “oclock”, it is made above all other applications so that I can know the time without go to the hiden panel.