Sebastian Helms wrote:
* Nader Yasseri schrieb am 09 Jan 2003:
Wenn ich mit meine useraccount eingeloggt bin und unter X eine Konsole für Root öffne und mplayer so starten will, beginnt es von DVD zu lesen und bricht dann ab, weil es die Videotreiber nicht initiallisieren kann.
Bevor du die Rootkonsole öffnest, tippe
xhost +localhost
Von der Verwendung dieses Befehls raet die Debian Dokumentation vom X Window System ab. /usr/share/doc/xfree86-common/FAQ.gz (Debian Woody) "Finally, you should NEVER, EVER use the xhost command to manage X server access control unless you know exactly what you are doing (even then, there's hardly ever a good reason short of seeing just how many ways the security of your system can be compromised). Use the xauth command instead; the EXAMPLES section of its manual page is instructive for the most common tasks. " Wie gesagt, als root loest ein ln -s /home/user/.Xauthority /root/.Xauthority viel Handarbeit ab, falls nur ein Benutzer X benutzt. Bei einer SuSE gibt's das nette Skript "sux" was anstelle von su in einer User X Session benutzt werden sollte. Wer alles manuell machen will, macht nach su halt ein "export XAUTHORITY=/home/user/.Xauthority" (Anpassung bei nicht bash kompatiblen Environment Handling erforderlich)
und in der Rootkonsole export DISPLAY=localhost:0
Da is nix gegen zu sagen. Bitte Leute, gewoehnt euch das xhost ab. Peter