Shell commands for Shutdown/Restart/Logout

I would like to share with you, the linux shell commmands for shutdown, restart and logout. You may find these commands handy if your GUI is inaccesible, due to some particular reason, or if you’re a die-hard terminal/TUI fan.
So, the commands are-

  • Shutdown
  •           saji@saji-laptop:~$ sudo shutdown -h now
  • Restart
  •           saji@saji-laptop:~$ sudo shutdown -r now
  • Logout
  •          saji@saji-laptop:~$ gnome-session-save --gui --logout

N.B: The logout command is for Gnome only.

Automatic startup of IBus daemon on ubuntu startup

Hi guys, you might have found it difficult to run I-Bus everytime you want to type in your local language. I for one, use it to type in my mother tongue Malayalam. Also being the admin of the team carrying out Malayalam translations of Ubuntu and related software at Launchpad, I use Malayalam a lot. Also I use Malayalam every now and then, while chatting, simply to surprise my friends, mostly Windows users, and even Ubuntu users who didn’t know that such an option existed. all the more, in Ubuntu 10.04 IBus had the Malayalam input methods in it by default, one just had to enable it by selecting the method of his/her choice. So, it’s very useful for me to get IBus enabled at the start of Ubuntu OS. What triggered the idea for this post was a simple doubt asked by one of my friends, Vijay Narayankutty(who blogs at, who like many of us is an opensource software lover. Well, he asked me how we can do this automatic startup, then I thought why not post about it, and make it available to everyone who wants to do the same. Ok then, let’s move on to the stuff. 🙂

Steps to be taken-

  1. Go to System > Preferences > Startup Applications.
  2. Click the Add button
  3. In the resulting window(Add startup program), enter anything for the name(e.g.IBus Daemon) and comment section(e.g.IBus Daemon for language input methods), its for your understanding.
    In command box, enter the following-

    /usr/bin/ibus-daemon -d
  4. Click Add to confirm.

You’re geared up now, next time Ubuntu starts up, the IBus daemon is automatically started, hence you can now switch to the language of your choice and start typing with no further delay.

How to post syntax highlighted code or program snippet on your blog

I had been on the lookout for a solution to post highlighted program code on my blog. Finally I found a good solution, which might have been there for a long time, but since I found it only, I have decided to share it with you all. 🙂
To post highlighted code in a blog, use the

Your code goes here.

The TYPE specifies which language your code is in, the languages now supported by blogs are(just replace the TYPE with the name of the language as shown in the list below)-

  • actionscript3
  • bash
  • coldfusion
  • cpp
  • csharp
  • css
  • delphi
  • erlang
  • fsharp
  • diff
  • groovy
  • javascript
  • java
  • javafx
  • matlab (keywords only)
  • objc
  • perl
  • php
  • text
  • powershell
  • python
  • ruby
  • scala
  • sql
  • vb
  • xml

For displaying a PHP page, which contains both html and PHP entities, we have to set to the PHP language with “htmlscript” configuration parameter set to “true”.
An Example

What we have to type –

Your code goes here.

The Output:
I have put some code in the “Your code goes here” section and tada, you get a cool syntax-highlighted code section.

<title>PHP Test</title>
 This is an HTML line
echo “This is a PHP line”;

Many other configuration parameters are also available, please visit the following post to read more about it-
Courtesy: The above link ^

Pacman as Google Doodle

Google Doodle turned into Pacman game on its 30th anniversary. Famous video game Pacman turned 30 on Saturday. Pacman’s 30th anniversary has been celebrated by the search engine giant Google.
The Google doodle is the first interactive Pacman game, which users can directly enjoy from Google home page. When you go to Google’s main page you will notice that the logo has been replaced with a game of Pacman. All you do is hit “Insert Coin” and play away. Enjoy yourselves….
What I find interesting is that the game doesn’t seem to be coded using Flash. It definitely seems to be created using HTML5, CSS and Javascript. i hope to see more of such interactive doodles on Google. Maybe its just a start.

Pacman as Google Doodle

PACMAN as Google Doodle

From Google Blog:

PAC-MAN seems like a natural fit for the Google homepage. They’re both deceptively straightforward, carefully hiding their complexity under the hood. There’s a light-hearted, human touch to both of them. And we can only hope you find using Google at least a quarter as enjoyable as eating dots and chasing ghosts. You know, without actually needing any quarters.


Hello WordPress!

This is actually my first post in this blog. I just moved into wordpress from blogger. WordPress seems to be more interesting and flexible than blogger. I have also imported the posts from my previous blog( This’ll now be my official blog. Here you can find my latest discoveries, experimentations, experiences, etc.. mostly relating to Opensource stuff. I’ll soon be into active blogging.

A Fresh New Look for Ubuntu

Ubuntu is making a switchover from its ‘Human‘ theme which defined the looks of Ubuntu for the previous 6 years, starting from the time Ubuntu was born. The new style of Ubuntu will be driven by the theme ‘Light‘.
    A comprehensive set of guidelines has been devised so as to reflect this change at every place related to the Ubuntu project. The new theme takes effect from the Ubuntu 10.04 LTS, which is slated for its release in April 2010. This new theme will define the looks of Ubuntu in all future releases.
    The new style of Ubuntu is inspired by idea of ‘Light’. and Ubuntu aims to be ‘Light’ in all senses. It denotes warmth, clarity, efficiency, lightness on resources, etc..

A display of the changes-

1)New Logo– Aims at reflecting the precision & engineering, that sits at the heart of Ubuntu, but not at the expense of the immediately recognisable circle of friends.

2)Community Logos-New logos have been made for the community sites related to Ubuntu.

3)New GTK Themes– I think this is the most important and a timely change for Ubuntu, that will go a long way in enhancing its popularity among the masses.

The Dark Theme

The Light Theme

4)New Bootspash– The theme change is complete with a new Boot Splash, that is absolutely eye-pleasing.

5)New website design– You can see a major change to the looks of the Ubuntu website-

6)New CD cover– The cd cover of Ubuntu 10.04 (onwards) will sport a new look.

Source: and

NB:One thing which I disliked about this new theme is the placement of the Window control(Minimize, Maximize and Close buttons) at the left side of a Window’s title-bar.

How to make Windows the default/first entry in your GRUB2 menu

I hadn’t tried to understand the working of the GRUB2. One, day when my friend asked me how to make Windows the default entry in his GRUB menu, I didn’t have an answer. I went to the Ubuntu wiki page on GRUB2. Its very comprehensive. Most of the general aspects of the working of GRUB2 is explained in it, including the changes, how to configure the grub.cfg file, etc..
Though not explicitly stated in it, the method to make Windows the default entry was pretty clear from it. Here is how you do it- /etc/grub.d

2.sudo mv 30_os-prober 10_0s-prober

3.sudo mv 10_linux 20_linux

4.sudo mv 20_memtest86+ 30_memtest86+

5.sudo update-grub

Artha- The Best offline Dictionary for Ubuntu

I had done a lot of googling in the past to find out a dictionary that I could use in Ubuntu when I’m not connected to the internet. It yielded nothing, atleast not anything that is ready-packaged for Ubuntu.. Few days ago I was just going through the ‘Ubuntu Software center’ to find out any random software that may interest me. Well, I found something that interested me; ‘Artha’.

Artha is a pretty decent dictionary which works with Wordnet 3.0 as its backend which is very comprehensive(atleast for common use, if not more). It has many features like ‘relatives’ of the word, which includes “Synonyms, Antonyms, Derivatives, Similar, Domains, Causes, Kinds(Hyponyms)”. In my experience I found it very good and indeed comprehensive.

The best feature that I liked in it is its HotKey which is Ctrl+Alt+w. This is a very handy feature, you can just select a word in any software and press the Hotkey combination to invoke Artha, its notification/window will then come up with the meaning, as per your settings selection.(I like the Notifiaction feature)

The version of Artha found in Ubuntu 9.10(Karmic) repository is 0.8.0. But, Artha is available in version 1.0.1 for Ubuntu and many other Linux distributions(Update-30/10/2011: and now for Windows too). It has regular expression based search.You can find the download details for the new version for Ubuntu and other Linux distributions, at the following link:
Download Artha 1.0.2


Update-30/10/2011: The latest version is Artha 1.0.2.  This version sports the first ever Windows release of Artha dictionary. I had tried using it in Windows too, it works just as fine in Windows as well. So, Windows users cheer up..

I’m using BloGTK Editor 2.0 for blogging

As the GNOME-blog applet was faulty in showing the blog post titles, I searched for an alternative tool.. And this search ended up in the BloGTK 2.0 editor.. The official Ubuntu repositories, still have the BloGTK version 1.2, which I couldn’t setup for my account, i thensearched for its newer version. The 2.0 version can autodetect the settings for your blog once you enter the URL of your blog, and the service(blogger, livejournal,etc..) used. Hence, the account setup was a cakewalk…
Added to that BloGTK has the feature to show your old blog posts, edit it, re post it,etc… All this from your desktop itself… Isn’t it cool?

You can get the BloGTK 2.0 in your Ubuntu OS, by adding its PPA from-
BloGTK PPA in Launchpad

Please make sure that you’re choosing the correct version of your Ubuntu……..

I’m now using the gnome-blog applet to post in this blog

I just found out the Gnome applet called “gnome-blog 0.9.1”. Its the GNOME web-blogging applet.. It has a very simple interface… The drawback is that the only other options we get are “Bold”, “Italic” text stylizing and adding links…. Anyways I feel that posting to your blog directly from the desktop is quite an useful feature, as we can avoid a hell lot many mouse-clicks, and page visits….

It can intearct with the popular blogging sites such as,,etc…

Adding the title feature does not seem to work.. The title is found along with the blog content…. We just have to put up the title manually… Still you may find this tool useful…