Sunday, February 20, 2011

Transform Linux to Mac OS X

Before I proceed, let me first state that i LOVE the simplicity of my Linux desktop (Gnome to be precise). I am writing this post just to demonstrate that how easy it is to make your Linux desktop look like a Mac ☺

The two things that are characteristic of Mac are :
1. It's Dock at the bottom.
2. Global menu bar at the top.

There are many projects (like cairo dock, avant window navigator etc) out there that provide Mac like Dock for Linux. But the one that i find more useful and easy to configure is Docky. To find a list of dock applications go to http://en.wikipedia.org/wiki/List_of_dock_applications.

Since i am using Fedora, the details will be specific to it, but it would be somewhat similar in other distros as well.
Before we start, lets see how the default desktop looks like in fedora 14.

Default Desktop in Fedora 14

























Let's get started

1. Installing the Dock
Fedora uses yum as the package manager. So to install docky, open a terminal and execute
$ yum install docky

2. Installing Global Menu
Open up a terminal and execute
$ yum install gnome-applet-globalmenu

Post Install configuration
Delete bottom panel
At this point there will be no visible changes, because our installed programs are not running. We need to get rid of the bottom panel. To do this right click on empty space on the bottom panel to bring the context menu and click on "Delete This Panel". Similarly delete the custom menu bar in the top left corner.





Add to Panel
The next step is to add the main GNOME menu. This is similar to custom menu bar but does not have "Application", "Place" and "System" as shown in the custom menu bar. To do this right click on empty space on the top panel and click on "Add to Panel".








Add Global Menu to Top Panel
Similarly add Global menu to the top panel. If you cannot find this item, try logging out and login back.














Enable Docky from StartUp applications list.

The next step is to enable Docky from startup applications list. To do that execute $ gnome-session-properties from a terminal and select Docky from the list.










Change the wallpaper if you like. I have also installed gnome-color-icon theme. It provides different colored icon themes; i have selected purple one. To install, open a terminal and execute $ yum install gnome-colors-icon-theme

Log-off and login again. Here is the final desktop look.

Pseudo Mac
























----- Insanity is hereditary, you get it from your kids :) -----

Thursday, February 17, 2011

Password free login to SSH using public keys

Many of us at some point in time have faced this situation of working remotely on a Unix/Linux box. The most preferred way is through SSH. But every time you login to a machine remotely you have to provide your password. How about logging in without password; using public keys ???☺

To demonstrate this method, I will be using 2 Linux machines.
1. Caffeine: This will act as ssh server.
2. Coffee: This machine will act as client.

Server Side Settings (Caffeine)
On the server we need to start the ssh daemon.  $ sudo /etc/init.d/sshd start

Start the SSH server
That's all we need to do on the server side !!

Client Side Settings (Coffee)
In order to login without password, first you need to create public-private key pairs.
In order to do this on linux (fedora or ubuntu ) execute   $ ssh-keygen

Create public-private key pair
Just hit and accept the default file name. Enter the pass-phrase or hit enter for none.
This step would have created 2 files as shown below in your  ~/.ssh folder.

Public/Private key files
Of the two files, id_rsa contains the private key and id_rsa.pub contains the public key.
After we have the public and private key files, we need to add these keys to the authenticating agent. Its the authentication agent who performs the authentication on our behalf. To add the keys execute $ ssh-add
If you have provided the password in the above step, it will ask for a password

ssh-add, keys with password
else it will not

ssh-add, keys without password
The next step is to copy and paste the public key from id_rsa.pub into Server's (Caffeine)   ~/.ssh/authorized_keys file on a new line. This step needs to be done once, either manually or by executing    $ ssh-copy-id user@machine. You will be prompted for your password.

** Important: The file permission for   ~/.ssh/authorized_keys must be 400, else it will not work. **

ssh-copy-id
Testing !!
That's all that is needed. You can now try to login to the server without passwords.
To login just type  $ ssh user@machine or like most of the cases if the user-name is same on both machines then just $ ssh machine

Login with user and machine names


If the username is same, just use machine name
----- I tried so hard and got so far, but in the end it doesn't even matter -----

Wednesday, February 16, 2011

Some Shots at Photography

Last week I went to seattle downtown and here are some of the clicks that somehow turned nice. I must say that I am not at all a photographer, but I like to click :)

Space Needle at Dusk

Seattle Downtown Skyline

Seattle Downtown

From a child's viewpoint

Monday, June 28, 2010

Funny and Witty

While walking in a nearby park, this bench caught my attention. I really like what it said:

Friday, March 5, 2010

Sometimes......

Sometimes, I search for someone; when I feel alone inside.

Sometimes, I like to walk alone; with no one beside.

Sometimes, I forget about people; with whom I live everyday.

Sometimes, I remember strangers; whom I met one fine day.


I find myself alone in crowd;

I find myself amidst noise loud;

Still i pretend to be calm and clown.

Even when everyone around is trying to bring me down;

I don't know, whether it's right or wrong;

But I'm sure, life is not a fairly tale song.


Sometimes I don't care what the future brings,

But I do wish to hear someone, when my cellphone rings.

I'm not the one, who can be your best friend ever,

But if you trust me, I''ll let you down never.


I wish life always give me the best,

I am not greedy; I'll give you the rest.