![]() |
|
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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. |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|