1832854 Members
3265 Online
110047 Solutions
New Discussion

about CDE login trouble:

 
SOLVED
Go to solution
常有慈悲心
Regular Advisor

about CDE login trouble:



about CDE login trouble:
B2000,hpux 11.0
one lan(NIC) ,it's ip is 128.1.0.8/16,

i use sam to add another ip: 129.1.0.8/16 to this nic,
but when i reboot it,.
Users cannot login in CDE. Session almost starts and then the login
screen reappears.
i think this maybe caused by DISPLAY ,but i don't know how to fix it?

Everything was fine just this.

and very strange is :
i can login from REflection from a pc,
and at the REflextion terminal window ,
echo $DISPLAY
may get the PC's IP:0.0

why? where and who set this?


Your answers were of great help.
5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: about CDE login trouble:

You may have some code in /etc/profile that looks like this:

DISPLAY=$(who -m -u | awk '{print $8}'):0.0
export DISPLAY

This code is designed to help automatically assign the DISPLAY variable when a CDE login is attempted from a PC running X emulaton software.

There is no perfect answer, and this code could also be in .profile for the user or any script sourced by the startup process for that user. Its hard to make the DISPLAY variable turn out right in every circumstance.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steve Steel
Honored Contributor

Re: about CDE login trouble:

Hi


1)run dr_dt for errors


2)look in /var/dt/Xerrors and
$HOME/.dt/*log

The error will be there

Almost certainly name resolution


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
常有慈悲心
Regular Advisor

Re: about CDE login trouble:

it's the name resolve question.
but how can i fix it?
can i use
export DISPLAY=128.1.0.8

AND PUT IT TO A FILE IN /etc/dt/config/Xsession.d?
Steve Steel
Honored Contributor

Re: about CDE login trouble:

Hi


You need to fix the name resolution so ut gives the correct ip to host

What does

nslookup hostname
nslookup 129.1.0.8
nslookup 128.1.0.8


Give


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

Re: about CDE login trouble:

Hi,
How is your server configured, is it using DNS?
If so what do you have int /etc/hosts
and in /etc/nsswitch.conf is DNS before files?
When you say users cannot use CDE what shout I understand - X terminal using bootp to the server since xdmcp with ReflectionX works?

How are the netmasks correct?
What about the gateway?


All the best
Victor