Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[X11] Root kann keine Programme starten
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Randar
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2003
Posts: 95

PostPosted: Sun May 16, 2004 9:58 am    Post subject: [X11] Root kann keine Programme starten Reply with quote

Hi,

root kann bei mir keine Programme starten, welche unter X laufen sollen. Folgender fehler erscheint.

Quote:

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


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


Woran kann das liegen?
Back to top
View user's profile Send private message
amne
Bodhisattva
Bodhisattva


Joined: 17 Nov 2002
Posts: 6378
Location: Graz / EU

PostPosted: Sun May 16, 2004 10:17 am    Post subject: Reply with quote

Wie bist du denn root geworden? Versuchs mal mit
Code:
emerge x11-misc/sux
sux -

_________________
Dinosaur week! (Ok, this thread is so last week)
Back to top
View user's profile Send private message
spitzwegerich
l33t
l33t


Joined: 04 Mar 2003
Posts: 697
Location: Lower Bavaria, Central Europe

PostPosted: Sun May 16, 2004 10:28 am    Post subject: Reply with quote

root ist nicht der Herr über das Display. Aber du könntest ihn mit xhost hereinlassen.
_________________
"Work is the curse of the drinking classes."
-Oskar Wilde
Back to top
View user's profile Send private message
Stormkings
Guru
Guru


Joined: 27 Sep 2002
Posts: 352
Location: Europe

PostPosted: Sun May 16, 2004 10:31 am    Post subject: Reply with quote

hallo,
nun das liegt vermutlich daran, dass die umgebungsvariable für das display nicht gesetzt ist.
probier mal als user in dessen home ein:
Code:
david@dyas david $ xauth extract schluesselname $DISPLAY

und anschließend als root:
Code:
dyas root $ xauth merge /home/username/schluesselname
dyas root $ export DISPLAY=:0

wobei der username durch deinen user zu ersetzen ist.
hier ist außerdem noch etwas info, falls das nicht klappt. bei mir geht es ohne ein "export XAUTHORITY=~/.Xauthority" zu machen.
https://forums.gentoo.org/viewtopic.php?t=100978&highlight=xauth
grüße, david
Back to top
View user's profile Send private message
Lore
Apprentice
Apprentice


Joined: 16 Feb 2004
Posts: 152
Location: Karlsruhe

PostPosted: Sun May 16, 2004 12:38 pm    Post subject: Reply with quote

Eine "quick & dirty" Lösung ist folgende:

Code:

xhost +


(Eingeben bevor man root wird)

Allerdings werden da die Display-Kontrollmechanismen ausgeschaltet. Ist also keine Lösung für die paranoiden Gentoo-User.
Back to top
View user's profile Send private message
amne
Bodhisattva
Bodhisattva


Joined: 17 Nov 2002
Posts: 6378
Location: Graz / EU

PostPosted: Sun May 16, 2004 5:39 pm    Post subject: Reply with quote

Ich versteh wirklich nicht ganz, wieso sich das xhost so permanent am Leben hält. sux ist ein wunderschönes Wrapperskript für su und den ganzen xauth-Kram und mit 3 Buchstaben sogar kürzer zu Tippen als xhost (5 Buchstaben).
_________________
Dinosaur week! (Ok, this thread is so last week)
Back to top
View user's profile Send private message
stahlsau
Guru
Guru


Joined: 09 Jan 2004
Posts: 584
Location: WildWestwoods

PostPosted: Sun May 16, 2004 5:48 pm    Post subject: Reply with quote

und ich versteh nicht was ihr da macht...wenn ich root-zugriff brauche, mach ich "su" und fertig ;-)
Back to top
View user's profile Send private message
xraver
Veteran
Veteran


Joined: 20 Aug 2003
Posts: 1083
Location: Halberstadt

PostPosted: Sun May 16, 2004 6:01 pm    Post subject: Reply with quote

Unter KDE kannst du kdesu verwenden.
Code:

kdesu -c <programm>
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2937
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Thu Aug 19, 2004 10:30 pm    Post subject: Reply with quote

Ich weiß nicht, wie ich das gemacht habe, aber bei mir funktioniert nur mit su. Mit ssh -X geht das nicht. Ich hab kein xsu, trotzdem kann ich X Programme starten. Das komische ist, wenn ich

Code:

$ xhost +

eingebe, bekomme ich "access control disabled, clients can connect from any host"
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
chrib
Guru
Guru


Joined: 27 Sep 2003
Posts: 558
Location: Berlin, Germany

PostPosted: Fri Aug 20, 2004 4:59 am    Post subject: Reply with quote

pablo_supertux wrote:
Ich weiß nicht, wie ich das gemacht habe, aber bei mir funktioniert nur mit su. Mit ssh -X geht das nicht. Ich hab kein xsu, trotzdem kann ich X Programme starten. Das komische ist, wenn ich

Code:

$ xhost +

eingebe, bekomme ich "access control disabled, clients can connect from any host"


Wieso ist das komisch? Immerhin hat Du doch deinen X-Server so eingestellt, das jeder beliebige Client drauf connecten kann.

Gruß
Christian
_________________
Der Mensch kämpft um zu überleben, und nicht, um zu Grunde zu gehen. - Paulo Coelho
It is the end of all hope. To lose the child, the faith. To end all the innocence. To be someone like me. - Nightwish - End of all hope
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2937
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Fri Aug 20, 2004 11:38 am    Post subject: Reply with quote

eben nicht. Ich habe nichts desgleichen konfiguriert. Als ich suse hatte, konnte ich mit ssh -X rex@localhost auch X Programme starten. Heute mit Gentoo geht das nicht mehr.

Als ich SuSE hatte, konnten die per su eingeloggte Benutzer keine X Programme starten, mein Gentoo kann das. Ich habe aber nie Xauthorities oder so eingestellt. Ich wieß nicht, wieso bei mir nur per su geht, bei den meisten nur per ssh -X.
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
Anarcho
Advocate
Advocate


Joined: 06 Jun 2004
Posts: 2970
Location: Germany

PostPosted: Fri Aug 20, 2004 12:29 pm    Post subject: Reply with quote

Das bei dir ssh -X nicht funktioniert wird wohl an der einstellung des SSHD liegen.

Per standard ist x-forwarding nämlich nicht aktiv.

Du musst vor

X11Forwarding yes

das # wegmachen in der datei /etc/ssh/sshd_config
dann sshd neustarten
Back to top
View user's profile Send private message
chrib
Guru
Guru


Joined: 27 Sep 2003
Posts: 558
Location: Berlin, Germany

PostPosted: Fri Aug 20, 2004 12:37 pm    Post subject: Reply with quote

Du hast 'xhost +' eingegeben, daraufhin hat Dir der X-Server gemeldet, "access control disabled, clients can connect from any host". Mit dem Befehl hast Du ihn halt für alle freigeschaltet, und der X-Server bestätigt Dir das auch noch mal explizit.
Aber xhost will man eh nicht nutzen, wenn dann nimmt man xauth.

Gruß
Christian
_________________
Der Mensch kämpft um zu überleben, und nicht, um zu Grunde zu gehen. - Paulo Coelho
It is the end of all hope. To lose the child, the faith. To end all the innocence. To be someone like me. - Nightwish - End of all hope
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2937
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Fri Aug 20, 2004 1:08 pm    Post subject: Reply with quote

"access control disabled, clients can connect from any host"

ach shit, du hast Recht, ich hab's falsch gelesen und als "client cannot connect" interpretiert, deshalb fand ich das komisch :oops:
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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