Pages

Wednesday, June 29, 2011

Display Variable Setting in Linux

I am not able to install Oracle Identity Manager in sudo user. I am getting the following error while running installer or configuring the Oracle Identity Manager. They are.

Error 1

    >>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set.    Failed <<<<

Some requirement checks failed. You must fulfill these requirements before

continuing with the installation,

Continue? (y/n) [n]

Error2

/usr/bin/xdpyinfo:  unable to open display "Client-hostname:0.0"

Solution

I have resolved the above issues using the following procedure.

1) Open the terminal window and run the following command. ssh -X user@remote-host-name.

Run the xauth list command and it will list the following output.

/unix:10 MIT-MAGIC-COOKIE-1 eada4d536b9ac502616b07983e9c9be8

Login as a sudo user

sudo su oracle

Run the following command to setup the display variable.

xauth add <Host Name>/nix:10 MIT-MAGIC-COOKIE-1 eada4d536b9ac502616b07983e9c9be8

After running the above command and it will set the display variable.


Mine it works well. I have tested this procedure in Red Hat 5 & 6. 

No comments:

Post a Comment