Wednesday, February 2, 2011

How to set Environment Variables in Linux

Hi Guys, This is one of main issue behind problem in installing a software package in Linux.Suppose you want to install a package in your system,but the installer could not resolved the dependencies because it is unable to find the required package in your system, but you have already installed the required libraries or the required package.It is very frustating.

Take an example,I was installing Hadoop on Fedora,I have installed the jdk1.6u23.But when I tried to install Hadoop,It is showing that Hadoop needs jdk1.6 or higher version.

The reason is that I had not set the environment variable $JAVA_HOME.

To solve this error I set the environment variable:

$ export JAVA_HOME=/path/to/jdk/installation/directory
$ export PATH=${PATH}:${JAVA_HOME}/bin

Friday, January 28, 2011

/usr/libexec/gconf-sanity-check-2 exited with status 256

Hi All, Today while I was working on hadoop, I have changed many file permissions to make it work,For some purpose I had to restart my 64bit Fedora 14.I found that my system got hanged and a pop was showing with this error : "/usr/libexec/gconf-sanity-check-2 exited with status 256"  and I could not able to log into my account.

I got the solution it is due to file permission in /tmp directory.So,I changed the file permission of /tmp directory to 777 and now it is working properly. 

Wednesday, October 27, 2010

BARCAMP in Guwahati(Assam), India

BarCamp Guwahati

"Hello OSGi" presented by Me and Nabamita
BarCamp for the first time in North-East of India was organized by Zaloni Inc. in their Guwahati Development Centre on 23rd Oct' 2010.


What is a BarCamp? From the origins in Palo Alto, BarCamp is an unconference, meant for knowledge sharing and learning.

Looks Cool !!
In details, A BarCamp is an ad-hoc gathering born from the desire for people to share and learn in an open environment. It is an intense event with discussions, demos, and interaction from participants. The name BarCamp was inspired as a complement to FooCamp, a private tech gathering run by Tim OReilly.

The first ever BarCamp was held in Palo Alto, California, from August 19-21, 2005 in the offices of Socialtext. It was organized in less than one week from concept to event, with 200 attendees. Since then, BarCamps have been held in over 350 cities around the world in North America, South America, Africa, Europe, the MIddle East, Australasia and Asia.

Hadoop Session by Ben Sharma,Founder of Zaloni Inc.
The focus of BarCamp Guwahati was emerging open source technologies.Barcamp Guwahati invited technologists, programmers, developers, designers, and Geeks to a day long of unadulterated geeky Barcamp fun.


The number of attendies was good.There was good response from the attendies and those who were unable to attend the BarCamp Guwahati.The Session was started from 10:30 am IST sharp.It was a huge success.


Having Fun with my colleagues
The details you can get from the official website of the Barcamp Guwahati.
I have given one session on OSGi titled "Hello OSGi" along with Nabamita who is also a Software Engineer.

Two of the attendies praised us for the session and they told me that they had heard about OSGi for the first time.They really appreciated Zaloni Inc. for organizing the BarCamp in Guwahati.Hope to see more BarCamps here in North-East of India.

Some of the pictures taken on the day of BarCamp.


Presenting Zaloni Star of the Month - Mintu Bora (VP at Zaloni) .
Chamok will kill me :)


Trying to smile temporarily

Two times Dairy Milk winner in the Open House Computer Quiz !!

Open House Computer Quiz hosted by Bimolendu and Mridul

Three Idiots
Question Time is the main tension time of any Presentation

Time Sheet of BarCamp Guwahati

Monday, September 20, 2010

Network + Battery + Sound Icon missing from Top Panel in Fedora.

I was frustrated that my Network , Battery , Sound Icon was missed from many days in my Fedora 12 , I had tried many ways to bring it back but I failed . I did tried accessing all the options in system > preferences and system > admin.

I have tried by Right clicking on the Panel , A pop up comes up like Add to panel , There I didn't find anything related to my problem.

But the solution was there only But I had missed one option "Notification Area".

I got the solution : Click on the top panel > add to panel> notification area.

Just try it once !!!

Friday, July 16, 2010

Connection refused to host : 127.0.0.1

If you are getting an error when accessing JMX from another machine (linux) like ::

java.rmi.ConnectException: Connection refused to host: ; nested exception is:
java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
at java.net.Socket.(Socket.java:273)
at java.net.Socket.(Socket.java:100)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:25)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:120)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:499)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:190)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:318)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Naming.java:84)
...(rest is my code)


You should run your service like whatever you want to see through JMX .

-Djava.rmi.server.hostname=your-ip-address

It will run successfully...

Long Live Open Source !!!

Wednesday, July 14, 2010

Exception in thread “main” java.lang.OutOfMemoryError: Java heap space

When this exception occurs, it means java runs out of memory.

You can increase memory(heap size) by run java including these parameters:

-Xms[initial heap size] -Xmx[maximum heap size]

For example, set initial heap size to 128m and maximum to 256m.

java -Xms128m -Xmx256m

In NetBeans, simply goes to Project Properties –> Run.
Then you can add these parameters in VM Options.

Monday, July 12, 2010

Please take it seriously and honestly !!

Today I am going to share some facts that are very much important for this young generation .

1. Respect your parents.
2. Never betray them.
3. Think twice before talking to them in a loud voice.
4. They are always correct even if they are false.
5. Try to spend more time with them.
6. They have sacrificed their whole life for you , think that !!
7. Always try to make them happy by hook or by crook.
8. Do not try to divide them .
9. Always try to make them proud of you.
10. Don't try to cheat them.
11. They are your best friends,Do not loose them.
12. Always try to listen them.
13. Try to support them whenever they need you.
14. Never make them feel lonely.
15. Feel their pain.

If you want to get into heaven the password is through them only my friends !!!!

Think about it !!!