[ltp] R51 - OSD not working
Ingo van Lil
linux-thinkpad@linux-thinkpad.org
Sat, 9 Apr 2005 01:51:05 +0200
On 08 Apr 2005, Matt Graham wrote:
> > Do you run tpb as the user who owns the X server or as root? If you
> > want to access the X server as root you have to allow it first
> > (xhost +local:root) and set the DISPLAY environment variable
>
> Er. In a lot of distros these days, X is started with "-nolisten tcp"
> by default. This makes it impossible to do the old "xhost +localhost ;
> export DISPLAY=localhost:0" thing, since X is not listening for TCP at
> all.
So? I didn't mention localhost, did I? :-)
"xhost +local:" doesn't have anything to do with "xhost +localhost", the
colon makes it a family rather than a host name. After "xhost +local:"
any local user is granted access to the X server by setting
"DISPLAY=:0.0", no TCP required.
I was under the impression that you could even restrict access to particular
users, but I was apparently wrong in that point.
Cheers,
Ingo