Operating System - HP-UX
1822430 Members
2873 Online
109642 Solutions
New Discussion юеВ

File configuration of xhost

 
malki_3
Frequent Advisor

File configuration of xhost

Helle everybody
I want to use sam on remote machine. I'm connected with to this machine with xterm
I have some problem with X connection
How can I verify a xhost+ configuration on this machine..?
Thanks
8 REPLIES 8
Steve Steel
Honored Contributor

Re: File configuration of xhost

Hi


xhost with no parameters shows what is allowed


steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
malki_3
Frequent Advisor

Re: File configuration of xhost

I have alreaday doing it..!!
# xhost
1356-200 xhost unable to open display ""

Leif Halvarsson_2
Honored Contributor

Re: File configuration of xhost

Hi
Is the DISPLAY variable set (echo $DISPLAY). If not set it with DISPLAY=:0.0; export DISPLAY ( is the hostname or ip-adress of the host with the display connected).
malki_3
Frequent Advisor

Re: File configuration of xhost

I don't have explaining enought my question
What I need exactly is the file where can I finding the configuration of X11 that can allow access to other machines for X11 connections
Leif Halvarsson_2
Honored Contributor

Re: File configuration of xhost

Hi
/usr/dt/config/Xaccess
Steve Steel
Honored Contributor

Re: File configuration of xhost

Hi

If not sure then

www.docs.hp.com
select
search this site (In Blue Area)

Give Xaccess

First result is CDE documentation where it is well explained.

If you look in /var/dt/Xerrors and find errors over MIT then look at Xconfig


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Gerard Leclercq
Trusted Contributor

Re: File configuration of xhost

Hello

You want to use SAM on a remote station and display it on your
local machine ?

If so you must do this :

- On the local machine : xhost +

- On the remote machine :
# DISPLAY=local_machine_name:0.0
# export DISPLAY
# sam
Alex Glennie
Honored Contributor

Re: File configuration of xhost

the file you need to create is /etc/X0.hosts

put in it the hostname or ip address of the remote systems you wish to grant access to.

This is an X issue not CDE !

extract from man Xserver ->



The sample server also uses a host-based access control list for
deciding whether or not to accept connections from clients on a
particular machine. This list initially consists of the host on which
the server is running as well as any machines listed in the file
/etc/Xn.hosts, where n is the display number of the server. Each line
of the file should contain an Internet hostname (e.g.
expo.lcs.mit.edu.) There should be no leading or trailing spaces on
any lines. For example:

joesworkstation
corporate.company.com
Standard input