LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-21-2003, 12:13 PM   #1
blas
Member
 
Registered: Apr 2003
Distribution: fc5, ubuntu, rhel
Posts: 59

Rep: Reputation: 15
Display Variable Problem


Hello,

Im 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 doent 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
 
Old 11-21-2003, 12:17 PM   #2
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
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.
 
Old 11-21-2003, 12:58 PM   #3
blas
Member
 
Registered: Apr 2003
Distribution: fc5, ubuntu, rhel
Posts: 59

Original Poster
Rep: Reputation: 15
Thank you for your reply.

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

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what's the usage of variable DISPLAY? hongxing Linux - Software 3 12-03-2005 12:31 AM
Problem withChanging DISPLAY environment variable to display on someone else's screen wantsri Linux - Networking 1 10-25-2005 12:14 PM
Tcl Error no display name and no DISPLAY environment variable thinkgeek Programming 5 07-06-2005 11:24 PM
About setting DISPLAY variable Rex_chaos Linux - General 4 09-29-2003 02:24 AM
set DISPLAY variable problem karcoms Linux - Software 6 07-31-2003 09:07 PM


All times are GMT -5. The time now is 08:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration