[Solved] Heroku- permission denied (publickey)


While trying to clone a git repository from the heroku I got the problem as shown in the screenshot below::
which mentions

Permission denied (publickey).
fatal: The remote end hung up unexpectedly

[Solved] Heroku- permission denied (publickey)
After few googling, Then I found that I had to re-upload my public keys to heroku using the command listed below. I had to re-upload because I recently made few changes to my username/password.

$ heroku keys:add ~/.ssh/id_rsa.pub

id_rsa.pub is the public key generated using the command.

$ ssh-keygen -t rsa -C "your_email@domain.com"

After adding the keys to heroku. I was able to clone the heroku repositories as before. I hope this helps someone.

Unblock disabled wireless card in Ubuntu


I have got broadcom wireless card installed in my Ubuntu Box and it works fine. But lately I found a very strange problem. All of a sudden, It stopped working. I mean I couldn’t turn it on anyway, It always appeared as disabled. I tried uninstalling the driver and re-install of the driver, it seemed to work fine as long as I re-installed the driver but after I restart the Laptop. The problem re-appear. Then After few hours of google and digging through forums I found a solution. The simplest solution I have found is to use “rfkill” program and unblock the wifi card.

If you want to have quick look on the commands used, they are here in the screenshot.
Unblock disabled wireless card in Ubuntu

At first install the rfkill program

$ sudo apt-get install rfkill

Then at first list your wifi driver, with the command

$ sudo rfkill list

The above command will list your available wifi cards with their status
0: brcmwl-0: Wireless LAN
Soft blocked: no
Hard blocked: yes
1: hp-wifi: Wireless LAN
Soft blocked: no
Hard blocked: no

Look for line Hard blocked: yes, in above case its “0: brcmwl-0: Wireless LAN”, brcmwl is the broadcom wireless driver. We are interested in the Index that is 0 (zero).

Now, use the below command to unblock the wifi, we use 0 (zero) index and supply as parameter to unblock.

$ sudo rfkill unblock 0

Now, to confirm that our wifi actually has been unblocked, we can again use the previous “sudo rfkill list” command.

$ sudo rfkill list

This time output should be something like
0: brcmwl-0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: hp-wifi: Wireless LAN
Soft blocked: no
Hard blocked: no

See, there is no “Hard blocked: yes” line. This means the wifi has been unblocked and can be used as regular.

I have found that the index keeps changing and doesn’t remain the same, so next time you get the problem, you will need to repeat the steps from the “$ sudo rfkill list”.

If this doesn’t solve your problem, then you might want to follow other solutions given in the link below.
1. http://askubuntu.com/questions/9816/wireless-shows-up-as-disabled-how-can-i-get-it-working
2. http://pkadetiloye.blogspot.com/2010/11/ubuntu-wireless-disabled-siocsifflags.html

Install Instantbird in ubuntu11.10 with unity/docky launcher


I have been longtime user of Pidgin and liked it very much. But recenlty I was having problem with it. It was frequently breaking up the connections and dropping my messages. So, I had to look for alternatives and found instantbird and gave it try. It multimessenger client so you can be online in multiple platform (facebook, twitter, yahoo, gmail, msn etc). So here is basic guide on how to get it install it and get a launcher for it.

My instantbird launcher Sticked to Docky, looks like :
My Instantbird Launcher pinned to docky

This article requires that you are little bit familiar with Ubuntu Terminals.
– To start Terminal
* you goto dashboard and then type “Terminal” and hit enter or
* Hit Super key and then type “Terminal” and hit enter.

Step 1.
Download the instant bird from http://instantbird.com/, click in “Get Instantbird – Free”

Step 2.
From Terminal Goto the folder where you downloaded it and then extract it to /opt/ folder. I have downloaded it in my “/home/samundra/Downloads/torrent sources”, so I use the following commands. Using sudo requires you to type your password.

$ cd ~/Downloads/torrent\ sources/
$ sudo tar instantbird-1.2.en-US.linux-i686.tar.bz2 xvfj -C /opt

see screenshot below:
Extract Instantbird to /opt

Step 3.
After the extractation is complete. From Terminal. Goto the /opt/instantbird/ folder then type “./instantbird” without quotes.

Execute instantbird

This is the basic installation of instantbird. After running instantbird, if you are using docky you might notice that it doesn’t have a default icon in docky. Also it can’t be pinned to docky and unity. So, to stick instantbird to unity and docky we’ll have to create our own launcher, which is very easy.

Create Launcher for Instantbird in Unity and Docky
At first create a file instantbird.desktop in desktop. I generally use terminal for these kind of tasks.

From terminal.

CD to the desktop

$ cd ~/Desktop

Create instantbird.desktop file

$ touch instantbird.desktop

Open instantbird.desktop file to edit.

$ gedit instantbird.desktop &

When instantbird.desktop file is opened in gedit, copy and paste the following contents

[Desktop Entry]
Name=Instant Bird
Comment=Instant Bird IM Client

And then save it. Quit from gedit. File > Quit.

Now, Again from terminal, we will copy this file to “/usr/share/applications/” this is the location which globally provides the icons and desktop launcher settings for most applications installed. In our case instantbird.

use this command, to copy instantbird.desktop to /usr/share/applications/

$ sudo cp ~/Desktop/instantbird.desktop /usr/share/applications/instantbird.desktop

Then give executable permission to both files one in desktop and then another in /usr/share/applications

$ chmod u+x ~/Desktop/instantbird.desktop

Any changes in /usr/share/applications requires super user privileges, so need to put sudo before the command and then supply your root password.

$ sudo chmod u+x /usr/share/applications/instantbird.desktop

Now we are ready to run the instantbird with desktop launcher. Run instantbird from launcher, Now instantbird should show up in unity and docky and you are able to stick it to docky and unity launcher.

I have tried to become as more clear as possible. Still if you find anything confusing please ask them in comments.

For references on unity desktop launchers, you can follow this good article https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles

Have funs.