where to put xhosts commands
Paul Lemmons
paul at lemmons.name
Thu Nov 8 06:35:28 UTC 2007
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.
More information about the kubuntu-users
mailing list