1824988 Members
1908 Online
109678 Solutions
New Discussion юеВ

Re: Problem with xhost

 
Leon_17
Occasional Advisor

Problem with xhost

Hi there,
I am trying to start vnc on system boot-up.
In the startup script I run "xhost +" before I start vnc. While the startup process runs I get the display, but when the process completed I lose my display. It looks like I lose the xhost, I have even tried to start it with nohup.

Can someone please help?
Leon
9 REPLIES 9
T G Manikandan
Honored Contributor

Re: Problem with xhost

xhost + for that session.
For permanent entries
Just try entering the hostname to which you are giving access in
/etc/X0.hosts
single hostname per line.
check the man pages of X



Revert on the same
T G Manikandan
Honored Contributor

Re: Problem with xhost

xhost + for that session.
For permanent entries
Just try entering the hostname to which you are giving access in
/etc/X0.hosts
single hostname per line.
check the man pages of X



Revert on the same

Also this link

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf324f608743fd711abdc0090277a778c,00.html
Alex Glennie
Honored Contributor

Re: Problem with xhost

Well just in case this is NOT related to xhost lets check around for any errors reported ... anything in $HOME/.vnc/:#.log ?

fyi I don't need to run xhost to get vnc to work on my hpux workstation when connecting to NT etc ...

What else is in the xstartup file ?

Also if you find an error check out the following, http://www.uk.research.att.com/vnc/faq.html

I've found it resolves 99.9 % of problems encountered.

Failing that attach your vnc xstartup file and I'll give it a try if I get time.
Leon_17
Occasional Advisor

Re: Problem with xhost

More info:
I am still trying to get it to work with /etc/X0.hosts, but no joy.
I am sure it is something to do with xhosts. After boot I run "xhost +", su to a user and then I can run xclock, for example. At this time vcn is in raw mode.

Leon
Alex Glennie
Honored Contributor

Re: Problem with xhost

see above ....
Leon_17
Occasional Advisor

Re: Problem with xhost

Hi,
I just want to know if "/etc/X0.hosts" is still valid in hp-ux 11i?
I also had a look on VNC fag's, but I still have a problem with xhost.

Leon
Steve Steel
Honored Contributor

Re: Problem with xhost

Hi

from man xhost on my itanium


DIAGNOSTICS
For each name added to the access control list, a line of the form
"name being added to access control list" is printed. For each name
removed from the access control list, a line of the form "name being
removed from access control list" is printed.

FILES
/etc/X*.hosts

SEE ALSO
X(1), Xsecurity(1), Xserver(1), xdm(1)

ENVIRONMENT
DISPLAY to get the default host and display to use.

BUGS
You can't specify a display on the command line because -display is a
valid command line argument (indicating that you want to remove the
machine named ``display'' from the access list).

The X server stores network addresses, not host names. This is not
really a bug. If somehow you change a host's network address while
the server is still running, xhost must be used to add the new address
and/or remove the old address.

AUTHORS
Bob Scheifler, MIT Laboratory for Computer Science,
Jim Gettys, MIT Project Athena (DEC).

Hewlett-Packard Company - 2 - HP-UX 11.11 May 2002

#

since /etc/X*.hosts is still referenced and is used then yes it is supported

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Alex Glennie
Honored Contributor

Re: Problem with xhost

Out of interest your startup script .... does it contain su in it at all ?

If yes please be aware that there are 2 forms of Xauthorisation ... host based and user based. Host based = Xhost and yes it's still valid at hp-ux 11.x

Users based as in .Xauthority files see man Xauth

let us know whether the XO.host file creation works/fails ....
Rick Beldin
HPE Pro

Re: Problem with xhost

Why not just disable authentication in Xvnc and dispense with xhost?

One of the arguments to Xvnc is -ac, which disables authentication.

If you are using the vncserver script, then it would be something like:

vncserver :10 -geometry 512x512 -ac
Necessary questions: Why? What? How? When?