Setup woes

Nils Kassube kassube at gmx.net
Sun Nov 25 12:52:46 UTC 2007


Bill Vance wrote:
> Some of the programs work ok when accessed through the kde menu system,
> but not when typed in with the shell.  Here's a typical example of the
> latter.
>
> xhost +
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
> xhost: unable to open display ":0.0"

You are logged in as a different user (probably root) than the owner of 
the display ":0.0". Only the owner of the display can grant access to it. 
E.g. if you log in as bill and then start Konsole and enter the command 
sudo su to have a root shell you can't start the xhost command you 
mentioned above. And you shouldn't use / need it anyway because it is 
dangerous if your machine is accessible via network.  Use kdesu instead 
to start a command with access to your display.


Nils




More information about the kubuntu-users mailing list