Re: after 'su -', 'Can't open display'
You need to set your DISPLAY=host:0.0 env var. You may also have to use
xhost to allow permisions to open the display.
On Wed, 21 Feb 2001, James Sinnamon wrote:
> Dear Debian user's,
>
> My apologies for a question that should have been answered over and over
> again on this
> list (I have searced but not been able to find an answer), or if I am
> on the wrong list.
>
> When I start X Windows, using the KDE window manager, I change to root
> (with su - )
> for administrative tasks. However I seem unable to run X window
> applications.
>
> Whatever X application I try to run, I inevitably get a message similar
> to "... unable to open display".
>
> Previously on other distributions of Linux, I have used, as root :
>
> export DISPLAY=localhost:0.0
>
> and, prior to that, as the normal user that started the X window
> session:
>
> xhost localhost
>
> This somehow doesn;t work on Debian Linux (unstable distribution).
>
> Would anybody be able to tell me why, and how to go about diagnosing the
> problem,
> or better still, what to do about it.
>
> TIA,
>
> James
>
> --
> James Sinnamon sinnamon@usq.edu.au
>
> ph +61 7 46311490, +61 412 319669
> PO Box 517 Darling Heights QLD 4350
>
>
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
Reply to: