LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Display Variable Problem (https://www.linuxquestions.org/questions/linux-newbie-8/display-variable-problem-118541/)

blas 11-21-2003 11:13 AM

Display Variable Problem
 
Hello,

I´m trying to execute "xclock" utility in order to check if DISPLAY variable is set correctly for using with Oracle.

I set the DISPLAY variable to <hostmane>:0.0 and also to "machine_ip":0.0 and then tried to execute xclock but doen´t work.

If I type startx, the X starts correctly.

How can I know which value for the DISPLAY variable is using startx?

Thanks in advance
Regards

RolledOat 11-21-2003 11:17 AM

A display doesn't exist until X is running. So if you are in the command line BEFORE you enter startx, there is no display for xclock to connect to. Once X is running, xclock would be able to connect to it. I believe that on the console, entering startx will always start 0.0 by default. VNC always starts at 1.0.

R.O.

blas 11-21-2003 11:58 AM

Thank you for your reply.

I executed it when X is running and the problem is solved.

Regards


All times are GMT -5. The time now is 11:19 PM.