Showing posts with label Solution to Linux Problem. Show all posts
Showing posts with label Solution to Linux Problem. Show all posts

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. 

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 !!!

Monday, July 5, 2010

Forgot your root password ???

If you have forgotten the root password of your machine then no need to worry.

You can reset forgotten root password under Linux by booting system into single user mode or emergency mode (also known as rescue mode).

Just follow the Instructions to boot Linux Grub Boot Loader into single user mode::

1. At grub boot screen (after restart) , Select the Kernel.
2. Press the e key to edit the entry .
3. Select second line (the line starting with the word kernel).
4. Append the letter S (or word Single) to the end of the (kernel) line.
5. Press ENTER key.
6. Now press the b key to boot the Linux kernel into single user mode.
7. you will be promted a root shell.
8. type passwd root to change the root password.

Long live Open Source !!!

Saturday, July 3, 2010

Unable to install pidgin,totem player,real player on fedora??

Hi All, From today onwards I will post some good blogs about the Fedora Linux and problem related to it with some suggestions and solutions.

If you are getting errors like ::

file /usr/lib/gstreamer-0.10/libgstvalve.so from install of gstreamer-plugins-bad-free-0.10.19-1.fc12.i686 conflicts with file from package gstreamer-plugins-good-0.10.16-7.fc12.i686

when installing pidgin ,Totem player , real player on fedora .

I have the solution

1. Just Login as su (root)
2. type yum install gstreamer-plugins-good
3. then type yum install pidgin or totem or realplay.

Long live opensource !!!