Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-24-2009, 08:54 AM   #1
LQ Newbie
Registered: Nov 2009
Posts: 26

Rep: Reputation: 15
Setting the DISPLAY variable in linux


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.

Old 12-24-2009, 09:04 AM   #2
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,038

Rep: Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408
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?



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 01:46 PM
setting a variable variable in a script... this works, but could it be more elegant? pwc101 Programming 3 08-18-2006 11:23 AM
setting environment variable DISPLAY jpan Debian 4 10-15-2004 06:09 PM
Setting DISPLAY Variable for software texmansru47 Slackware 1 08-02-2004 11:23 AM
About setting DISPLAY variable Rex_chaos Linux - General 4 09-29-2003 01:24 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:11 AM.

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