Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[APPLIS GRAPHIQUES] pb en root
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
outreal
Tux's lil' helper
Tux's lil' helper


Joined: 21 Oct 2003
Posts: 77

PostPosted: Sat Jan 17, 2004 1:21 pm    Post subject: [APPLIS GRAPHIQUES] pb en root Reply with quote

Salut !
Je m'explique : disons que je me logge avec un utilisateur normal dans Gnome et que j'ouvre un terminal et que jasse un su dessus. Alors là, impossible de lancer une appli graphique, comme Gnucash ou kedit par exemple !
Gnucash :
Quote:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


Gtk-WARNING **: cannot open display: :0.0


kedit :
Quote:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kedit: cannot connect to X server :0.0

Si je ne suis plus en root ça marche sans pb...

Des idées ?

Merci,

OutReal
Back to top
View user's profile Send private message
Bastux
Guru
Guru


Joined: 15 Dec 2002
Posts: 369
Location: France - Paris

PostPosted: Sat Jan 17, 2004 2:32 pm    Post subject: Re: [APPLIS GRAPHIQUES] pb en root Reply with quote

outreal wrote:
Salut !
Je m'explique : disons que je me logge avec un utilisateur normal dans Gnome et que j'ouvre un terminal et que jasse un su dessus. Alors là, impossible de lancer une appli graphique, comme Gnucash ou kedit par exemple !
Gnucash :
Quote:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


Gtk-WARNING **: cannot open display: :0.0


kedit :
Quote:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kedit: cannot connect to X server :0.0

Si je ne suis plus en root ça marche sans pb...

Des idées ?

Merci,

OutReal


ça te fait ça tout le temps?
Moi parfois ça m'arrive, je redémarre X et j'ai plus le pb.
Autre chose : ton X est bien sur 0:0?
Back to top
View user's profile Send private message
Leander256
l33t
l33t


Joined: 05 Jul 2003
Posts: 910
Location: Singapour

PostPosted: Sat Jan 17, 2004 2:39 pm    Post subject: Reply with quote

Il te faut taper la commande:
Code:
xhost +localhost

soit en utilisateur normal, soit en root, je ne sais plus (peut-être les deux?).

Ensuite si tu fais un "su -", il te faut taper:
Code:
export DISPLAY=:0.0
export XAUTHORITY=/home/prog/.Xauthority

(ici prog c'est mon utilisateur, faut remplacer par le tien).

Et normalement ça devrait marcher.
Back to top
View user's profile Send private message
guilc
Bodhisattva
Bodhisattva


Joined: 15 Nov 2003
Posts: 3326
Location: Paris - France

PostPosted: Sat Jan 17, 2004 4:03 pm    Post subject: Reply with quote

il suffit de taper "xhost +localhost" en utilisateur avant de faire le "su".
le export DISPLAY et XAUTHORITY ne sont pas utiles
_________________
Merci de respecter les règles du forum.

Mon site perso : https://www.xwing.info
Mon PORTDIR_OVERLAY : https://gentoo.xwing.info ou layman -a xwing
Back to top
View user's profile Send private message
outreal
Tux's lil' helper
Tux's lil' helper


Joined: 21 Oct 2003
Posts: 77

PostPosted: Sat Jan 17, 2004 5:46 pm    Post subject: Reply with quote

Bon, j'ai changé le login manager (c'était kdm, je l'ai passé à gdm) et maintenant ça marche !

Va savoir...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum