LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 09-26-2003, 01:24 AM   #1
Rex_chaos
Member
 
Registered: Aug 2001
Location: GD, GZ, China
Posts: 240

Rep: Reputation: 30
About setting DISPLAY variable


hi all,
I have booted my RH7.2 in text mode. It fails to run a graphic-mode program in text mode and reports that I need to set the DISPLAY variable. How to set it?
 
Old 09-26-2003, 06:41 AM   #2
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 31
You cannot run a graphics mode player in text mode. You have to have the Xserver running for you to enable running graphical programs. When you start XServer, the DISPLAY variable is automatically set.
 
Old 09-27-2003, 06:37 AM   #3
linux_pioneer
Member
 
Registered: May 2003
Distribution: Solaris 10, Solaris 8.0, Fedora Core 3
Posts: 203

Rep: Reputation: 30
Try startx to start running x server.
 
Old 09-27-2003, 06:42 AM   #4
Rex_chaos
Member
 
Registered: Aug 2001
Location: GD, GZ, China
Posts: 240

Original Poster
Rep: Reputation: 30
Yes. I am running X now. However, it stills demand me to set DISPLAY. It's really weird.
 
Old 09-29-2003, 02:24 AM   #5
linux_pioneer
Member
 
Registered: May 2003
Distribution: Solaris 10, Solaris 8.0, Fedora Core 3
Posts: 203

Rep: Reputation: 30
You can set the display variable $DISPLAY in your .profile file in your home directory. The name may differ depending what shell your using. I use bash so for me its .bash_profile.
Try adding this:
export DISPLAY="$IP:0.0"
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
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
setting environment variable DISPLAY jpan Debian 4 10-15-2004 07:09 PM
Setting DISPLAY Variable for software texmansru47 Slackware 1 08-02-2004 12:23 PM
set DISPLAY variable W1pEout[64] Linux - Software 4 01-07-2004 10:41 AM


All times are GMT -5. The time now is 03:46 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration