xhost + question

Alan Coopersmith Alan.Coopersmith at Sun.COM
Wed Jan 30 22:32:18 PST 2008


Gene Heskett wrote:
> Greetings;
> 
> I would like to have a kubuntu box out in my workshop automatically added to 
> the xhost list when X starts since I've found the command is invalid when X 
> isn't running.
> 
> I have this directory structure on an Fedora 8 system:
> [root at coyote xinitrc.d]# pwd
> /etc/X11/xinit/xinitrc.d
> 
> with these files in it:
> -rwxr-xr-x 1 root root 543 2007-10-12 15:22 localuser.sh
> -rwxr-xr-x 1 root root 537 2007-03-02 09:31 xdg-user-dirs.sh
> 
> Do I need to setup another file exactly like those in terms of perms, with the 
> single line in it "xhost +192.168.xx.xx", or can I simply add it to the 
> bottom of localuser.sh?

Why not just put the address in /etc/X0.hosts ?   (Change 0 to whatever
display number you're using.)


-- 
     -Alan Coopersmith-           alan.coopersmith at sun.com
      Sun Microsystems, Inc. - X Window System Engineering



More information about the xorg mailing list