where to put xhosts commands

Michael Zoet Michael.Zoet at michaelzoet.de
Thu Nov 8 07:43:50 UTC 2007


Paul Lemmons schrieb:
> Paul Lemmons wrote:
>   
>> I need to allow several machines to use the x server on my machine. I 
>> have altered kdm.conf and now if I run "xhost +" I can run x 
>> applications from another server. I would like to be a little more 
>> granular that "xhost +" and I don't want to have to type in the commands 
>> every time. On my Fedora box I set up a script in xinit.d. No such 
>> directory exists on Kubuntu. Where would one put a series of xhost 
>> commands so that I can set it up once for all users and forget it? Is 
>> there a better way than xhost?
>>   
>>     
> What I wound up doing:
>
> Created a script: xhost.sh
>
> #!/bin/bash
> xhost +host1
> xhost +host2
> ...
> ...
>
>
> I marked it as executable: chmod +x xhost.sh
>
> I copied it to ~/.kde/Autostart
>
> Now when I login it automatically runs and I can run X applications 
> hosted on other computers.
>
>   
That's a better way than setting up a .xsession file :-)! I did not
think about the KDE autostart feature... And I should use it more often
by myself.




More information about the kubuntu-users mailing list