View Full Version : Setting DISPLAY variable.

January 23rd, 2013, 09:30 AM
Dear All,

I am very new to ubuntu but not to the UNIX world.

Here is my problem: I use to connect to my HP-UX server's CDE via Reflection X. Now I want to do the same via ubuntu. Can I do this using native xterm? or I should use another software in ubuntu to do the same?

Here is what I have tried so far:
Xterm in UBUNTU:

yroot@Y-HP-Compaq:~$ echo $DISPLAY

rlogin root@myserver
password: xxxxx
# echo $DISPLAY
sh: DISPLAY: Parameter not set.
# export DISPLAY=
# xclock
export DISPLAY= Can't open display:
Error: Couldn't find per display information
# export DISPLAY=
# xclock
Error: Can't open display:
Error: Couldn't find per display information

Please help me in setting the DISPLAY variable correctly. or there is something else that I am missing here?

PS: let me know if this is not the right forum for this question.



January 23rd, 2013, 09:41 AM
BTW, I am using 12.1

The Cog
January 23rd, 2013, 09:45 AM
You probably have to tell your Ubuntu PC to allow incoming X connections before you make the connection to the HP box. Try using this command before doing the remote login:

xhost +

If you used SSH rather than rlogin, then you could get all the X setup done automatically for you with just the one command, but this of course requires the HP box to be running an SSH server:

ssh -X root@myserver

January 23rd, 2013, 09:59 AM
Thanks a lot. my issue is resolved.