Q: easy su
binary_y2k2 at blueyonder.co.uk
Mon Aug 28 20:16:20 BST 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.
> [H:.beagle] xhost localhost
> localhost being added to access control list
> [H:.beagle] su
> 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
> root at homebrew:/home/n7dr/.beagle#
Rather then "xhost localhost" do "xhost LOCAL:"
it works for me with su and chroot
More information about the kubuntu-users