PDA

View Full Version : Linux user rights vs. graphical interface



Katrin
07-06-2004, 08:05 AM
Hello,

perhaps someone had the same problem earlier...

I build an installation for windows and linux. It worked well with windows, But I have some problems with linux (of course).

If I execute the installation as "root" I get the error message:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
...
and the description says, that I cannot use the graphical interface and should use the option "-console" or "-silent"

If I execute the installation as normal user the graphical interface works but I have not the appropriate rights for the installation folders.

What can I do now? Change the rights for all installation folders? Or do I have to pass on the graphical user interface?

francoist
07-06-2004, 02:04 PM
Just to said you need to export DISPLAY variable with your IP address for it to work.

export DISPLAY=192.168.10.1:0

Katrin
07-07-2004, 09:48 AM
Originally posted by francoist
Just to said you need to export DISPLAY variable with your IP address for it to work.

export DISPLAY=192.168.10.1:0

At first this seems to be a good idea, because the beginning of the error message disappeared.

But the rest remained, saying something like "The installation program cannot be executed with a graphical user interface. Execute the program with the flag -console or -silent."

What can I do now?

ahindam
07-07-2004, 01:38 PM
I think it is problem of X windows access control.

Use command "xhost" such as:

# xhost +

Katrin
07-08-2004, 12:57 AM
Originally posted by ahindam
I think it is problem of X windows access control.

Use command "xhost" such as:

# xhost +

Now we come closer to the problem:
I called
# export "DISPLAY=..."
and then
# xhost +

This produces the error message:
xhost: unable to open display "..."

What could be wrong?

Katrin
07-08-2004, 06:17 AM
Thanks for your help.

I solved the problem with the following steps:
1. As a normal user do a xhost + to allow anyone to connect to the local display.
2. become root using su -
3. Do an export DISPLAY=:0.0
4. Run the installation