Operating System - Tru64 Unix
1830165 Members
2545 Online
109999 Solutions
New Discussion

Xhost/Xlib error

 
Steven Schweda
Honored Contributor

Re: Xhost/Xlib error

The question is not about anyone's DISPLAY
variable, it's about who's logged in at the
graphics console. This would seem to be the
user who owns the "dtsession" process:

urtx# ps -ef | grep /usr/dt/bin/dtsession | grep -v grep
sms 1838 1816 0.0 22:02:42 ?? 0:00.41 /usr/dt/bin/dtsession

In this case, it's "sms". If you don't find
it, then no one's logged in there, and you're
back to a previous problem.
sammysammy
Frequent Advisor

Re: Xhost/Xlib error

In my case,
ps -ef | grep /usr/dt/bin/dtsession | grep -v grep
returns nothing.

Thanks
Steven Schweda
Honored Contributor

Re: Xhost/Xlib error

> In my case,
> ps -ef | grep /usr/dt/bin/dtsession | grep -v grep
> returns nothing.

Which is what I'd expect after you killed the
X server, and before anyone has logged in
again at the console.

Look back at the part about "If no one is
logged in there, who will be looking at the
stuff you want to put onto the display?"

If someone _is_ logged in there (and that
user's name does not include the string
"grep"), and it _still_ shows nothing, then
I'm lost.
sammysammy
Frequent Advisor

Re: Xhost/Xlib error

Is there any log files I can look into?

thanks
Steven Schweda
Honored Contributor

Re: Xhost/Xlib error

> Is there any log files I can look into?

For what? Are you saying that there _is_ a
user logged in at the graphics console, but
there's no dtsession process?
sammysammy
Frequent Advisor

Re: Xhost/Xlib error

no, I want to see the reason of failure of starting xhost +

Thanks
Steven Schweda
Honored Contributor

Re: Xhost/Xlib error

If no one is logged in at the graphics
console, then I'd assume the the display is
controlled by the dtlogin (dtgreet) process.

I repeat, "If no one is logged in there, who
will be looking at the stuff you want to put
onto the display?" What do you want to do,
cover up the login window (or the "hp" logo)?

I don't see the point.