Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Suse

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-22-2008, 11:19 PM
anonuserca@yahoo.com
 
Posts: n/a
question about DISPLAY environment variable

When I installed this certain software on OpenSUSE 11, I got the
following error:

Application initialization failed: no display name and no $DISPLAY
environment variable

And when I run the "env" command, I get the following value for
DISPLAY:

DISPLAY=:0.0

My default shell is set as /bin/csh


What do I need to do to make my display environment value to be
something like this:

DISPLAY=linux-u4f0.site:0.0


Thanks.
Reply With Quote
  #2 (permalink)  
Old 07-22-2008, 11:24 PM
anonuserca@yahoo.com
 
Posts: n/a
Re: question about DISPLAY environment variable

Sorry, please disregard the last post. It's incorrect. Here's the
correct post:



When I installed this certain software on OpenSUSE 11, I got the
following error:

Application initialization failed: no display name and no $DISPLAY
environment variable

My default shell is set as /bin/csh


What caused this problem, and how can I fix it? Thanks.
Reply With Quote
  #3 (permalink)  
Old 07-22-2008, 11:28 PM
Nikos Chantziaras
 
Posts: n/a
Re: question about DISPLAY environment variable

anonuserca@yahoo.com wrote:
> When I installed this certain software on OpenSUSE 11, I got the
> following error:
>
> Application initialization failed: no display name and no $DISPLAY
> environment variable
>
> And when I run the "env" command, I get the following value for
> DISPLAY:
>
> DISPLAY=:0.0
>
> My default shell is set as /bin/csh
>
>
> What do I need to do to make my display environment value to be
> something like this:
>
> DISPLAY=linux-u4f0.site:0.0


You should be a bit more specific of what you're trying to achieve. If
you aren't trying to run an X application remotely (from another PC),
then your current DISPLAY var is just fine. If you're trying to run a
graphical program as root from the terminal (let's call the program
"foo"), then try:

kdesu foo

or if that doesn't work:

sudo foo

But we need more details to know what's going on.
Reply With Quote
  #4 (permalink)  
Old 07-22-2008, 11:35 PM
anonuserca@yahoo.com
 
Posts: n/a
Re: question about DISPLAY environment variable

On Jul 22, 4:28*pm, Nikos Chantziaras <rea...@arcor.de> wrote:
> anonuse...@yahoo.com wrote:
> > When I installed this certain software on OpenSUSE 11, I got the
> > following error:

>
> > Application initialization failed: no display name and no $DISPLAY
> > environment variable

>
> > And when I run the "env" command, I get the following value for
> > DISPLAY:

>
> > DISPLAY=:0.0

>
> > My default shell is set as /bin/csh

>
> > What do I need to do to make my display environment value to be
> > something like this:

>
> > DISPLAY=linux-u4f0.site:0.0

>
> You should be a bit more specific of what you're trying to achieve. *If
> you aren't trying to run an X application remotely (from another PC),
> then your current DISPLAY var is just fine. *If you're trying to run a
> graphical program as root from the terminal (let's call the program
> "foo"), then try:
>
> * *kdesu foo
>
> or if that doesn't work:
>
> * *sudo foo
>
> But we need more details to know what's going on.



Yes, I'm installing a CAD software, and whenever I have superuser
privileges, I keep getting this error:

Application initialization failed: no display name and no $DISPLAY
environment variable


And if I don't have superuser privileges, then, the software runs, but
later on, it tells me I don't have superuser privileges, and it stops.
Reply With Quote
  #5 (permalink)  
Old 07-22-2008, 11:37 PM
anonuserca@yahoo.com
 
Posts: n/a
Re: question about DISPLAY environment variable

Yes, I'm trying to run a graphical program as root from the terminal.
Reply With Quote
  #6 (permalink)  
Old 07-22-2008, 11:37 PM
houghi
 
Posts: n/a
Re: question about DISPLAY environment variable

anonuserca@yahoo.com wrote:
> When I installed this certain software on OpenSUSE 11, I got the
> following error:
>
> Application initialization failed: no display name and no $DISPLAY
> environment variable
>
> My default shell is set as /bin/csh
>
>
> What caused this problem, and how can I fix it? Thanks.



The problem is a certain thing that goes wrong. The obvious way is to
correct certain things.

houghi
--
All opinions are not equal. Some are a very great deal more robust,
sophisticated and well supported in logic and argument than others.
Reply With Quote
  #7 (permalink)  
Old 07-23-2008, 07:24 AM
taco
 
Posts: n/a
Re: question about DISPLAY environment variable

houghi wrote:

> anonuserca@yahoo.com wrote:
>> When I installed this certain software on OpenSUSE 11, I got the
>> following error:
>>
>> Application initialization failed: no display name and no $DISPLAY
>> environment variable
>>
>> My default shell is set as /bin/csh
>>
>>
>> What caused this problem, and how can I fix it? Thanks.

>
>
> The problem is a certain thing that goes wrong. The obvious way is to
> correct certain things.
>
> houghi


Well, not a very helpful comment. Perhaps the following helps:
1. (already mentioned in the first reply) try to run your CAD software as
sudo / kdesu
2. type
xhost +localhost and try again. Depending on some configuration settings
this sometimes still doesn't work and you'll see again the errors like 'no
display name' etc. try xhost local:root. su as root and start your program.
Taco

Reply With Quote
  #8 (permalink)  
Old 07-23-2008, 08:33 AM
Canned
 
Posts: n/a
Re: question about DISPLAY environment variable

anonuserca@yahoo.com schreef:
> Yes, I'm trying to run a graphical program as root from the terminal.


Try merging Xauthority file first:
> /usr/bin/sudo /usr/bin/xauth -f /root/.Xauthority merge .Xauthority


Now you can run gui as root
> sudo gui

Reply With Quote
  #9 (permalink)  
Old 07-23-2008, 08:50 AM
houghi
 
Posts: n/a
Re: question about DISPLAY environment variable

taco wrote:
>> anonuserca@yahoo.com wrote:
>>> When I installed this certain software on OpenSUSE 11, I got the
>>> following error:
>>>
>>> Application initialization failed: no display name and no $DISPLAY
>>> environment variable
>>>
>>> My default shell is set as /bin/csh
>>>
>>>
>>> What caused this problem, and how can I fix it? Thanks.

>>
>>
>> The problem is a certain thing that goes wrong. The obvious way is to
>> correct certain things.
>>
>> houghi

>
> Well, not a very helpful comment.


It wasn't intended as one. The GP does not give very much information
and when it is given, the information is spread all over the place.

He tells us "When I installed this certain software" and then _I_ have
to search for what he installed? I don't think so.

If he doesn't clean up his act, I will plonk him, although he probably
doesn't care.

houghi
--
All opinions are not equal. Some are a very great deal more robust,
sophisticated and well supported in logic and argument than others.
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Suse


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:18 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109