View previous topic :: View next topic |
Author |
Message |
Randar Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 15 Nov 2003 Posts: 95
|
Posted: Sun May 16, 2004 9:58 am Post subject: [X11] Root kann keine Programme starten |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
amne Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/117771253447ad6e0ae3631.gif)
Joined: 17 Nov 2002 Posts: 6378 Location: Graz / EU
|
Posted: Sun May 16, 2004 10:17 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
spitzwegerich l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/31625127406d83f9ca5ef.gif)
Joined: 04 Mar 2003 Posts: 697 Location: Lower Bavaria, Central Europe
|
Posted: Sun May 16, 2004 10:28 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Stormkings Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_farnsworth_2.gif)
Joined: 27 Sep 2002 Posts: 352 Location: Europe
|
Posted: Sun May 16, 2004 10:31 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Lore Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 16 Feb 2004 Posts: 152 Location: Karlsruhe
|
Posted: Sun May 16, 2004 12:38 pm Post subject: |
|
|
Eine "quick & dirty" Lösung ist folgende:
(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 |
|
![](templates/gentoo/images/spacer.gif) |
amne Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/117771253447ad6e0ae3631.gif)
Joined: 17 Nov 2002 Posts: 6378 Location: Graz / EU
|
Posted: Sun May 16, 2004 5:39 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
stahlsau Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/37031845140a0dd8bc21fc.jpg)
Joined: 09 Jan 2004 Posts: 584 Location: WildWestwoods
|
Posted: Sun May 16, 2004 5:48 pm Post subject: |
|
|
und ich versteh nicht was ihr da macht...wenn ich root-zugriff brauche, mach ich "su" und fertig ![Wink ;-)](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xraver Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/1467305991472500473de50.gif)
Joined: 20 Aug 2003 Posts: 1083 Location: Halberstadt
|
Posted: Sun May 16, 2004 6:01 pm Post subject: |
|
|
Unter KDE kannst du kdesu verwenden.
Code: |
kdesu -c <programm>
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pablo_supertux Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/gallery/Mario/Mario_-_Yoshi2.gif)
Joined: 25 Jan 2004 Posts: 2953 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Thu Aug 19, 2004 10:30 pm Post subject: |
|
|
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
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 |
|
![](templates/gentoo/images/spacer.gif) |
chrib Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 27 Sep 2003 Posts: 558 Location: Berlin, Germany
|
Posted: Fri Aug 20, 2004 4:59 am Post subject: |
|
|
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
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 |
|
![](templates/gentoo/images/spacer.gif) |
pablo_supertux Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/gallery/Mario/Mario_-_Yoshi2.gif)
Joined: 25 Jan 2004 Posts: 2953 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Fri Aug 20, 2004 11:38 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Anarcho Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1030393113423afb9086043.jpg)
Joined: 06 Jun 2004 Posts: 2970 Location: Germany
|
Posted: Fri Aug 20, 2004 12:29 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
chrib Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 27 Sep 2003 Posts: 558 Location: Berlin, Germany
|
Posted: Fri Aug 20, 2004 12:37 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
pablo_supertux Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/gallery/Mario/Mario_-_Yoshi2.gif)
Joined: 25 Jan 2004 Posts: 2953 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Fri Aug 20, 2004 1:08 pm Post subject: |
|
|
"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 ![Embarassed :oops:](images/smiles/icon_redface.gif) _________________ A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|