LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 11:13 AM   #1
blas
Member
 
Registered: Apr 2003
Distribution: fc5, ubuntu, rhel
Posts: 59

Rep: Reputation: 15
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
 
Old 11-21-2003, 11:17 AM   #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, 11:58 AM   #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-02-2005 11:31 PM
Problem withChanging DISPLAY environment variable to display on someone else's screen wantsri Linux - Networking 1 10-25-2005 11:14 AM
Tcl Error no display name and no DISPLAY environment variable thinkgeek Programming 5 07-06-2005 10:24 PM
About setting DISPLAY variable Rex_chaos Linux - General 4 09-29-2003 01:24 AM
set DISPLAY variable problem karcoms Linux - Software 6 07-31-2003 08:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:42 AM.

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
Open Source Consulting | Domain Registration