[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: xhost +



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Frederic Bothamy wrote:
| Cela dit, je ne vois pas pourquoi "xhost +" ne fonctionnerait pas si tu
| a bien ta variable DISPLAY à la bonne valeur.

- ------------
=--( beny@nutopia )-=-( mar jui 13 )-=-( 16:07:07 )-=-( ~ )--=
beny $ echo $DISPLAY
:0.0
=--( beny@nutopia )-=-( mar jui 13 )-=-( 16:07:10 )-=-( ~ )--=
beny $ su -
Password:
nutopia:~# echo $DISPLAY

nutopia:~# xterm
Warning: This program is an suid-root program or is being run by the
root user.
The full text of the error or warning message cannot be safely formatted
in this environment. You may get a more descriptive message by running the
program as a non-root user or by removing the suid bit on the executable.
xterm Xt error: Can't open display: %s
nutopia:~# export DISPLAY=:0.0
nutopia:~# xterm
nutopia:~# logout
=--( beny@nutopia )-=-( mar jui 13 )-=-( 16:07:41 )-=-( ~ )--=
beny $ su -c "xterm"
Password:
=--( beny@nutopia )-=-( mar jui 13 )-=-( 16:07:50 )-=-( ~ )--=
beny $
- ------------

J'utilise toujours 'su -c' ou sinon peut être mettre un export
DISPLAY=:0.0 dans ton .bashrc de root mais ca me semble un peu bourrin :/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFA8+1bla+QzEobuyARArgJAKDZpkH/TzPp8cfYcpOL52/QlOvoVQCgmyLU
9T9OmC9+nHw3CUMjHDaXZhY=
=d1bO
-----END PGP SIGNATURE-----



Reply to: