1834571 Members
2936 Online
110069 Solutions
New Discussion

CDE Remote login

 
Marius Pana_1
Regular Advisor

CDE Remote login

Hi all,

I have 6 rx1620 servers running hp-ux 11i and I am unable to log-in remotely on any of them.

None of them have video cards so I cannot test it locally but dtlogin starts as well as xfs.

Networking is configured and dns is working correctly. I am not getting any output in any logfiles when I try to connect (syslog.log, Xstartup.0.log or Xerrors).

I have no idea where else to check. Any help will be greatly appreciated.

Many thanks!
"The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it." --Linus Torvalds
24 REPLIES 24
Enrico P.
Honored Contributor

Re: CDE Remote login

Hi,
there is a firewall?
If the answer is yes you need to open the port for the X communication.

Enrico
Marius Pana_1
Regular Advisor

Re: CDE Remote login

There is no firewall between us. Very strange indeed!
"The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it." --Linus Torvalds
Rick Garland
Honored Contributor

Re: CDE Remote login

You running through an X emulator?
If so, have you doubled checked the config in there?

If not, how are you connecting to the system?

Marius Pana_1
Regular Advisor

Re: CDE Remote login

I have tried from a linux box (gentoo xorg 6.8) to connect via Xnest and X and windows running cygwin.

I have a couple of other servers (rp3440) that Ican connect without any problems. The only difference being that the rp's have vga cards while the rx's dont.

dr_dt on one of the servers does give an error:

ERROR: HP CDE will not work properly if the hostname is greater than 8 characters. Yours appears to be 11 characters long.

The others do not have this problem.
"The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it." --Linus Torvalds
Rick Garland
Honored Contributor

Re: CDE Remote login

Can you get a dtterm/xterm window?

Once you connect to the system,
xhost +
export DISPLAY=

/usr/dt/bin/dtterm
or
/usr/bin/X11/xterm

Do you get a dtterm/xterm window?

Even simplier, can you start the xclock?
What errors are on screen when you try?


Marius Pana_1
Regular Advisor

Re: CDE Remote login

> Can you get a dtterm/xterm window?

I am not connected locally. Locally in my case means via serial console. I have configured networking and am connected via ssh.

>Once you connect to the system,
>xhost +
>export DISPLAY=

>/usr/dt/bin/dtterm
>or
>/usr/bin/X11/xterm

>Do you get a dtterm/xterm window?

I can get all of these via X forwarding through ssh.

>Even simplier, can you start the xclock?
>What errors are on screen when you try?

# export DISPLAY=99.100.1.179:0
# /usr/dt/bin/dtterm
Error: Can't open display: 99.100.1.179:0
Error: Couldn't find per display information
#

"The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it." --Linus Torvalds
Enrico P.
Honored Contributor

Re: CDE Remote login

Hi,

xhost + (you need to execute it in your client system)

export DISPLAY=:0.0 (in the server that start the CDE)

Enrico
Enrico P.
Honored Contributor

Re: CDE Remote login

Can you ping your client system from the server?

Enrico
Rick Garland
Honored Contributor

Re: CDE Remote login

You do not need to be connected locally. If all is well you could start xclock on a server that is some 10000 miles away.

On the system you are presently typing on and logged into, issue the command 'xhost +'

Then you can export DISPLAY

Any errors when doing the xhost + ?
Marius Pana_1
Regular Advisor

Re: CDE Remote login

xhost + on my local display is set.

# export DISPLAY=99.100.1.171:0.0
# /usr/dt/bin/dtterm
Error: Can't open display: 99.100.1.171:0.0
Error: Couldn't find per display information

The above is the error I get.
"The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it." --Linus Torvalds
Marius Pana_1
Regular Advisor

Re: CDE Remote login

I managed to get an xterm, hpterm, sam ,etc to display on my local machine. The problem was that my local xserver was running with the nolisten tcp option.

Now I can export the display on any of the servers and run X programs but I still cannot connect via Xnest or directly with X.
"The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it." --Linus Torvalds
Marius Pana_1
Regular Advisor

Re: CDE Remote login

One other thing I noticed is that port 6000 is not listening...if that helps anyone :)
"The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it." --Linus Torvalds
rariasn
Honored Contributor

Re: CDE Remote login

Verify,

# swlist -l product CDE

# Target: node:/
#

CDE B.11.11 HP-UX CDE User Interface

and,

#more /etc/rc.config.d/desktop
# CDE Desktop enabled
# DESKTOP=CDE
# CDE Desktop disable
DESKTOP=NOCDE

and,

# more /sbin/init.d/dtlogin.rc

rgs,

ran



Marius Pana_1
Regular Advisor

Re: CDE Remote login

ran,

swlist -l product CDE returns:

CDE B.11.23 HP-UX CDE User Interface

and /etc/rc.config.d/desktop looks like:

# CDE Desktop enabled Tue May 16 15:00:36 EETDST 2006
DESKTOP=CDE
DTPRTSVR=
DT_LOCAL_X_START_ALWAYS=

I have tried to changing DESKTOP to NOCDE and still no success.

Thanks.
"The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it." --Linus Torvalds
RAC_1
Honored Contributor

Re: CDE Remote login

Is dtlogin processes running? do you see any error message/warning/info in /var/dt/Xerrors? in $HOME/.dt/errorlog?
There is no substitute to HARDWORK
Marius Pana_1
Regular Advisor

Re: CDE Remote login

dtlogin is running:

ps -ef | grep dtlo
root 2973 2962 0 14:40:08 pts/0 0:00 /usr/dt/bin/dtlogin
root 3340 1441 0 14:41:01 pts/0 0:00 grep dtlo

so is xfs:

ps -ef | grep xfs
root 52 0 0 14:33:17 ? 0:00 vxfsd
root 1360 1 0 14:34:25 ? 0:00 /usr/bin/X11/xfs -config /etc/X11/fs/config -port 7000 -daemon -quiet_if_addrinuse
root 3343 1441 0 14:41:20 pts/0 0:00 grep xfs

no errors whatsoever in /var/dt/Xerrors and the $HOME/.dt.. has not been created since I have not managed to connect remotely.

Thank you!
"The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it." --Linus Torvalds
rariasn
Honored Contributor

Re: CDE Remote login

Marius,

DESKTOP=CDE

is correct.

probe,
# ps -ef|grep dtrc

root 4948 1 0 Feb 11 ? 0:00 /sbin/sh /usr/dt/bin/dtrc

# /sbin/init.d/dtlogin.rc stop
# /sbin/init.d/dtlogin.rc start

rgs,
Marius Pana_1
Regular Advisor

Re: CDE Remote login

ps -ef | grep dtrc
root 3492 1 0 14:52:30 pts/0 0:00 /sbin/sh /usr/dt/bin/dtrc

I've stopped/started the daemon numerous times. I noticed that sometimes it does not stop it unless I run the command dtlogic.rc stop numerous times. In any case I have stoped and started the daemon. The logs still show nothing.

Thanks.
"The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it." --Linus Torvalds
rariasn
Honored Contributor

Re: CDE Remote login

# more /var/dt/Xerrors

# grep dt /etc/services
dtspc 6112/tcp #subprocess control

#grep dt /etc/inetd.conf
dtspc stream tcp nowait root /usr/dt/bin/dtspcd /usr/dt/bin/dtspcd -log
rpc xti tcp swait root /usr/dt/bin/rpc.ttdbserver 100083 1 /usr/dt/bin/rpc.ttdbs
erver
rpc dgram udp wait root /usr/dt/bin/rpc.cmsd 100068 2-5 rpc.cmsd

Verify DNS configuration,

In local PC:

C:\ipconfig

Ethernet adaptador Conexión de área local:

Sufijo DNS específico de la conexión. :
Dirección IP. . . . . . . . . . . . . : 172.20.10.86
Máscara de subred . . . . . . . . . . : 255.255.255.0
Puerta de enlace predeterminada . . . : 172.20.10.200


add Local Direction to /etc/hosts in server.

rgs,





Marius Pana_1
Regular Advisor

Re: CDE Remote login

- /var/dt/Xerrors file is empty
- verified DNS configuration and it works
- /etc/services contains the dtspc entry
- /etc/inetd.conf contains the proper entried for dtspcd

> add Local Direction to /etc/hosts in server.

What do you mean by Local Direction?

//Marius
"The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it." --Linus Torvalds
rariasn
Honored Contributor

Re: CDE Remote login

My PC IP, where I run Reflection or another Xclient connect to server

rgs,

ran

Marius Pana_1
Regular Advisor

Re: CDE Remote login

Edited /etc/hosts to contain my IP/hostname. Still nothing. I dont believe that it is due to networking problems.

The systems were all pre-installed at the factory, the only thing we did was configure networking and LVM. Everything on these systems is working except for dtlogin :-?

Using reflection X it works but we need to use cygwin and connect directly to X. So..anymore ideas?

Many thanks!
"The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it." --Linus Torvalds
rariasn
Honored Contributor

Re: CDE Remote login

Open one Reflection Session and user "cgywin" client.

rgs,

ran
Marius Pana_1
Regular Advisor

Re: CDE Remote login

We do not have licenses for ReflectionX. We tried it to see if it was something wrong with cygwin.

It only works if we use hpterm in ReflectionX. Using XDMCP does not work. We cannot connect from any other X enabled system directly. We have tried from other HPuX servers, Linux workstations and windows with ReflectionX and Cygwin.

I think I might open a support ticket with HP...

I know on linux that port 6000 is open and accepts X connections. Should not this be the same on HPuX? If so what process opens this port?

Many thanks!
"The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it." --Linus Torvalds