|
Home > Archive > Linux Debian support > March 2006 > X-Server auth problems
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
X-Server auth problems
|
|
| Mark Walter 2006-03-27, 7:53 am |
| I am having a problem setting up/running a program, and I suspect it is a
simple problem related to Xserver authorization.
I am running Kanotix (Debian), with Kdm as the x-windows manager. I am
trying to run a x-windows application, but get errors that seem to indicate
that the application can't find the local server
Program/application is Spice (electronics simulation program)The run script
is
<<<<
# Where the spice3 executable resides
SPICE_EXEC_DIR=$SPICE_INSTALL_PREFIX/bin
export SPICE_EXEC_DIR
# Where spice3 support files reside
SPICE_LIB_DIR=$SPICE_INSTALL_PREFIX/lib/spice/lib
export SPICE_LIB_DIR
# For "rspice", the server name
# SPICE_HOST=localhost
# export SPICE_HOST
<<<<
If I run as a normal user I don't see the error messages, but if I run as
root user I get
<<<<
root@Napoleon:/usr/local/bin# spice3
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
spice3.bin: cannot connect to X server :0.0
<<<<
seems that the application can't find the x server or has in-sufficient
privileges to connect to it. Which is strange (to me at least). The x
server must be working: I have a full KDE set-up that is working fine
I suspect I have to go into a config file for the x-server (Kdm) and modify
some parameter to allow this application to run. Where is it, and what to I
have to modify
Tks
| |
| Paulo da Silva 2006-03-27, 7:53 am |
| Mark Walter wrote:
>...
> If I run as a normal user I don't see the error messages, but if I run as
> root user I get
>
> <<<<
> root@Napoleon:/usr/local/bin# spice3
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
>
As a turn around, look at the home dir of the "normal" user
for a file named .Xauthority.
Enter a konsole as root and type
xauth merge /home/<normal_user>/.Xauthority
xhost +local may help also.
As I said, this is a turn around. Waiting for a better solution ...
Regards.
| |
|
|
| s. keeling 2006-03-31, 12:13 am |
| Mark Walter <MarkRWalter@SBCGlobal.net>:
> I am having a problem setting up/running a program, and I suspect it is a
> simple problem related to Xserver authorization.
>
> I am running Kanotix (Debian), with Kdm as the x-windows manager. I am
> trying to run a x-windows application, but get errors that seem to indicate
> that the application can't find the local server
>
> Program/application is Spice (electronics simulation program)The run script
> is
>
> <<<<
> # Where the spice3 executable resides
> SPICE_EXEC_DIR=$SPICE_INSTALL_PREFIX/bin
> export SPICE_EXEC_DIR
>
> # Where spice3 support files reside
> SPICE_LIB_DIR=$SPICE_INSTALL_PREFIX/lib/spice/lib
> export SPICE_LIB_DIR
>
> # For "rspice", the server name
> # SPICE_HOST=localhost
> # export SPICE_HOST
>
> <<<<
> If I run as a normal user I don't see the error messages, but if I run as
> root user I get
>
> <<<<
> root@Napoleon:/usr/local/bin# spice3
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
>
> spice3.bin: cannot connect to X server :0.0
> <<<<
"su" to root:
$ su # <-- no "-"
Password: ........ # <-- root's password
# app &
# exit
$
This uses the original user's Xauthority (echo $XAUTHORITY) which has
authority to access the running Xserver.
--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://www.spots.ab.ca/~keeling Linux Counter #80292
- - Spammers! http://www.spots.ab.ca/~keeling/emails.html
http://www.ietf.org/rfc/rfc1855.txt
| |
| Paulo da Silva 2006-03-31, 12:13 am |
| s. keeling wrote:
....
>
> "su" to root:
>
> $ su # <-- no "-"
> Password: ........ # <-- root's password
> # app &
> # exit
> $
>
> This uses the original user's Xauthority (echo $XAUTHORITY) which has
> authority to access the running Xserver.
>
>
GOOD! Sometimes we tend to be one these "one finger no head" guys
and just use the mouse to call a root konsole :-)
Yes! It's simpler to type su than to choose a root konsole on a menu.
And in this case with much better results ... No DISPLAY and no xauth.
Thanks.
|
|
|
|
|