On Friday 21 May 2004 12:09, Andreas Loesch wrote:
Dr. Thorsten Brandau wrote:
als root das Programm zu starten, dann lauten die Meldungen Xlib: connection to 0.0 refused by server Xlib: no protocol specified
na dann probier mal in einer BENUTZER shell xhost +localhost (oder wie auch immer der rechner heisst auf dem es laeuft) und dann aus der ROOT shell ein xcalc zum test. wenn das hochkommt, laeuft auch mupad...
Warum kommt das immer wieder?
xhost +XXX ist nicht der Weisheit letzter schluss ;) gängige Verfahren werden in "Alle Macht dem User" [http://www.dcoul.de/infos/user2root.html] beschrieben, ansonsten reicht ein "sux" vollkommen um root in den Genuss von X zu bringen ohne mit xhost rumzufummeln...
Andreas
Tja, das ging bei mir früher auch. Aber jetzt: akyek@linux:~> xauth extract xxx $DISPLAY akyek@linux:~> sux - Password: linux:~ # echo $DISPLAY :0.0 linux:~ # nedit Xlib: connection to ":0.0" refused by server Xlib: Protocol not supported by server NEdit: Can't open display linux:~ # xauth merge ~akyek/.Xauthority linux:~ # nedit Xlib: connection to ":0.0" refused by server Xlib: Protocol not supported by server NEdit: Can't open display linux:~ # xauth merge ~akyek/xxx linux:~ # nedit Xlib: connection to ":0.0" refused by server Xlib: Protocol not supported by server NEdit: Can't open display pc121353:~ # export XAUTHORITY=/home/akyek/.Xauthority pc121353:~ # nedit Das geht dann. _Alle_ anderen Methoden (via xauth) scheitern bei mir. Warum? Keine Ahnung. ach ja: "xhost localhost" als User reicht auch, damit root darf. Warum funktionieren sux und die xauth Methode hier nicht? Wo muss ich evtl. suchen? Andreas PS: System SuSE 9.0 mit XFree86 4.3.0.1; KDE 3.2.2