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 12-24-2009, 09:54 AM   #1
wmasry
LQ Newbie
 
Registered: Nov 2009
Posts: 26

Rep: Reputation: 15
Setting the DISPLAY variable in linux


Dears,

while trying to open system-config-bind from the shell on a server running on runlevel 3 , i got the below error message.

ERROR: Unable to initialize graphical environment.
Most likely cause of failure is that the tool was not run using a graphical environment.
Please either start your graphical user interface or set your DISPLAY variable.


Does any one have details steps of how to configure the the DISPLAY variable,as i will not be able to bring the server to runlevel 5, thanks.

Wael
 
Old 12-24-2009, 10:04 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Are you saying that you are trying to run an X application on the console of a machine that is not running X? If so, that won't work.

You either need to start X or perhaps instead of doing this on the console, ssh from a machine that has X running.

Also you are making references to runlevels 3 and 5, are we to assume from this that you are running a redhat based distro and the 3 is single user mode and 5 is multiuser with X?

Evo2.
 
  


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
SSH not setting Display variable lapope Linux - General 5 09-01-2008 02:46 PM
setting a variable variable in a script... this works, but could it be more elegant? pwc101 Programming 3 08-18-2006 12:23 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
About setting DISPLAY variable Rex_chaos Linux - General 4 09-29-2003 02:24 AM

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

All times are GMT -5. The time now is 09:01 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