1819870 Members
2616 Online
109607 Solutions
New Discussion юеВ

xhost +

 
Anu Mathew
Valued Contributor

xhost +

Hi,

Every time I reboot the J210 Workstation (running 11.0 32 bit), I have to give xhosts + at the command prompt, so that I can run remote X windows.

1) Is there any way to automate this? (Other than putting an entry into /etc/profile or .profile or rc files)

2) Is the scenario dependent on if the system is configured as a font server?

Thanks in advance,

Anu
3 REPLIES 3
Patrick Wallek
Honored Contributor

Re: xhost +

As far as I know it does not matter if the machine is a font server or not, you have to do the xhost command.

I think the best way to do it, if you want to automate it, is to put the xhost command in .profile or /etc/profile if you want. Each user that logs into the system will have to do their own xhost, there is no global xhost, at least as far as I know.
Alex Glennie
Honored Contributor

Re: xhost +

1) YES
2) NO

1) create a file called /etc/X0.hosts and add the remote systems hostnames to this file, 1 per line

eg

vi /etc/X0.hosts,
remoteA
remoteB
etc etc ..... see man X or Xserver for more details
Stefan Schulz
Honored Contributor

Re: xhost +

xhost + will allow every host to use your display. With this command you disable all access control to your display.

The best thing to automate this is to use /etc/X0.hosts. Here you can specify which host is allowed to display on your workstation. This is AFAIK the reconmendet way.

Of course you can use /etc/X0.hosts to allow everybody to use your display like with xhost +. Just put a "+" sign in the first and only line.

Hope this helps. Regards Stefan
No Mouse found. System halted. Press Mousebutton to continue.