Q: easy su
Tez
binary_y2k2 at blueyonder.co.uk
Mon Aug 28 19:16:20 UTC 2006
D. R. Evans wrote:
> On 28/08/06, LHartung <list at ioscan.de> wrote:
>
>
>> this has nothing to do with su, you have to allow the root user to
>> connect to your X-Server.
>> The X-Server is running under your normal user.
>>
>>
>> First you should allow localhost to connect to your x-server. Under your
>> normal user use
>>
>> xhost localhost
>>
>> to allow connections.
>>
>> Now use su to switch to root user
>> You should then set your DISPLAY variable:
>>
>> export DISPLAY=:0.0
>>
>> if its not set.
>>
>> Now emacs should work.
>>
>>
>
> Nope...
>
> -----
> [H:.beagle] xhost localhost
> localhost being added to access control list
> [H:.beagle] su
> Password:
> root at homebrew:/home/n7dr/.beagle# emacs
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
>
> emacs: Cannot connect to X server :0.0.
> Check the DISPLAY environment variable or use `-d'.
> Also use the `xhost' program to verify that it is set to permit
> connections from your machine.
>
> root at homebrew:/home/n7dr/.beagle# echo $DISPLAY
> :0.0
> root at homebrew:/home/n7dr/.beagle#
>
> ----
Rather then "xhost localhost" do "xhost LOCAL:"
it works for me with su and chroot
Tez
More information about the kubuntu-users
mailing list