Operating System - HP-UX
1834448 Members
2126 Online
110067 Solutions
New Discussion

How to connect HPUX CDE (GUI - mode)

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

Re: How to connect HPUX CDE (GUI - mode)

Please find the output of commands:


# ll /var/dt/Xerrors
/var/dt/Xerrors not found


# ll /etc/X11/xdm/Xaccess
/etc/X11/xdm/Xaccess not found


I am not able to open the port 177:

C:\Users\311933>telnet 10.250.0.145 177
Connecting To 10.250.0.145...Could not open connection to the host, on port 177:
Connect failed

V. Nyga
Honored Contributor

Re: How to connect HPUX CDE (GUI - mode)

Hi again,

>root@:/root > graphinfo
>graphinfo: unable to open device file at /dev/crt

Seems like here is no graphics card installed.

Btw. at my system:
# which graphinfo
/usr/bin/graphinfo
.. is the full path.

>4)How to know that CDE has been started, if not how to start?
Check /etc/rc.log - search for CDE:
Start CDE login server
Output from "/sbin/rc3.d/S990dtlogin.rc start":
-------------------------------------------

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
V. Nyga
Honored Contributor

Re: How to connect HPUX CDE (GUI - mode)

Hi again,

also check if files exist in
/var/X11/Xserver/logs

V.
*** Say 'Thanks' with Kudos ***
Jeeshan
Honored Contributor

Re: How to connect HPUX CDE (GUI - mode)

XDMCP will not work correctly if you have a personal firewall installed or the built-in firewall of Windows is activated.

The XDMCP protocol will send and receive data on port 177/UDP. But the actual connections will be made to the local port 6000/TCP. It is safe to allow connections since the xserver has an own security layer.

Confirm from your network admin that, the UDP port 177 and TCP port 6000 is open.
a warrior never quits
senthil_kumar_1
Super Advisor

Re: How to connect HPUX CDE (GUI - mode)

Hi V. Nyga ,

I have checked both working and non working servers.

I am able to find below given details in working server.

1)root@aa128116:/sbin/rc1.d > which graphinfo
/opt/graphics/common/bin/graphinfo


2)root@aa128116:/sbin/rc1.d > grep -i cde /etc/rc.log
Start CDE login server


3)root@aa128116:/sbin/rc3.d > ll *dtlogin*
lrwxr-xr-x 1 root sys 23 Feb 12 2004 S990dtlogin.rc -> /sbin/init.d/dtlogin.rc


But i am not able to find the above mentioned details in non working servers, but CDE has been installed in that server.
How to solve this.



V. Nyga
Honored Contributor

Re: How to connect HPUX CDE (GUI - mode)

Hi again,

from /sbin/init.d/dtlogin.rc :
# When placed in the /sbin/rc3.d directory and named appropriately, such as
# "S990dtlogin", this script will automatically start the dtlogin window
# after the HP-UX system boots to its multi-user level.

So create a link like:
'ln -s /sbin/init.d/dtlogin.rc S990dtlogin.rc'

So CDE should be started.

Also check:
'ioscan -fnC graphics'

-> graphics 0 0/4/0/0 gvid_core CLAIMED INTERFACE AGP Display (10024154)

You need an installed (CLAIMED) graphics card to run CDE.

V.
*** Say 'Thanks' with Kudos ***
OldSchool
Honored Contributor

Re: How to connect HPUX CDE (GUI - mode)

"-> graphics 0 0/4/0/0 gvid_core CLAIMED INTERFACE AGP Display (10024154)

You need an installed (CLAIMED) graphics card to run CDE."

that simply is NOT true. You do not need a graphics card if you are connecting remotely. which is what he's attempting to do here....

Since you've servers you can connect to and servers you can't, what METHOD are you using to connect to the "working servers"? remsh / telnet / XDMCP / tunneled ssh ??????? or what method do you need to use / want to use with the new servers? this has been asked before and gone unanswered.

Tingli
Esteemed Contributor

Re: How to connect HPUX CDE (GUI - mode)

I use Cygwin to do the work.

Now, I created a short cut, which runs a script I prepared:

c:\cygwin\bin\bash.exe c:\cygwin\start_gui.sh


The content of the script is:
# base-files version 3.7-1
#
/usr/bin/XWin.exe :0 rootless -query HPservername &

This will create CDE in your Window.

Tor-Arne Nostdal
Trusted Contributor

Re: How to connect HPUX CDE (GUI - mode)

Hi
Everything sai related to requirements on PC is correct (I use exceed).

I use Putty and connect using SSH.
Be aware that the most normal setup is to tunnel the X-window through your SSH-tunnel.

When you do this, you should not define the DISPLAY variable directly back to your IP-address !!!

In Putty configuration make sure you have the following settings:
Connection->SSH->X11
Enable X11 forwarding (v)
X display location=localhost:0

After connecting to the server, you should automatically get a DISPLAY variable set by SSHD which will point back to the server you just logged into ;) but this is because it points back to the SSH tunnel.

example:
myserver# echo $DISPLAY
10.100.77.109:10.0
myserver#

------------
Then... have you allowed X11 forwarding in your SSH configuration of the server?

You should check the sshd configuration file (default file: /opt/ssh/etc/sshd_config
see man 5 sshd_config)
I'll bet it is not allowed ;)
X11Forwarding yes


/2r
I'm trying to become President of the state I'm in...
Tor-Arne Nostdal
Trusted Contributor

Re: How to connect HPUX CDE (GUI - mode)

ooops - one more thing... which might be/become an issue for you...

you break the rules for your sshd session if you login to your server, and then afterwards su to another userid...

example:
Putty_sshX -> userid@myserver
userid@myserver> xclock # works fine &
userid@myserver> su - 2user
2user@myserver> xclock # doesn't work &
I'm trying to become President of the state I'm in...
senthil_kumar_1
Super Advisor

Re: How to connect HPUX CDE (GUI - mode)

Hi All,

There is no file like "ll /sbin/init.d/dtlogin.rc".


And the graphics card available and dirver has been installed.

# ioscan -funC graphics
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
graphics 0 0/0/4/0 gvid_core CLAIMED INTERFACE PCI Display (10025159)
senthil_kumar_1
Super Advisor

Re: How to connect HPUX CDE (GUI - mode)

Hi All,

There is no file like "ll /sbin/init.d/dtlogin.rc".


And the graphics card available and dirver has been installed.

# ioscan -funC graphics
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
graphics 0 0/0/4/0 gvid_core CLAIMED INTERFACE PCI Display (10025159)


How to solve the issue.
OldSchool
Honored Contributor

Re: How to connect HPUX CDE (GUI - mode)

"example:
Putty_sshX -> userid@myserver
userid@myserver> xclock # works fine &
userid@myserver> su - 2user
2user@myserver> xclock # doesn't work &"

and that's fixable with xauth...

the issue remains that how any of *us* do things / connect don't really matter.

what does how *senthil* needs to / wants to connect. and he hasn't answered that question...
senthil_kumar_1
Super Advisor

Re: How to connect HPUX CDE (GUI - mode)

Hi OldSchool,

All is working fine thru xterm connected using rlogin or telnet.


But i am not able to connect xdm.

SSH is not supported thru exceed.

Actually i want to connect whole GUI interface thru Exceed.
OldSchool
Honored Contributor

Re: How to connect HPUX CDE (GUI - mode)

"But i am not able to connect xdm.

SSH is not supported thru exceed."

yes it is. I believe you'll find its in the latest version.

If not, enable x tunnels in putty. then set the connection mode to "passive" in later versions.

otherwise, you can enable x tunneling in putty. set exceed's connection mode to passive. open a putty session, open exceed, and the in the Putty session run Xsession. that should start the x connection over the tunnel
OldSchool
Honored Contributor

Re: How to connect HPUX CDE (GUI - mode)

"All is working fine thru xterm connected using rlogin or telnet.

But i am not able to connect xdm.

SSH is not supported thru exceed.

Actually i want to connect whole GUI interface thru Exceed."

Lets be very clear here. There are multiple ways to connect (in Exceed) and have the X-Windows work. Look at the "connection method" being used in Exceed. You will note that it doesn't have to be XDM. If thats what you want to use, then you need to be sure that everything in the other posts regarding starting XDM, firewalls and so forth is set up.




Raj D.
Honored Contributor

Re: How to connect HPUX CDE (GUI - mode)

Senthil,
Enable the dtlogin and xwindow,
disable xhost access control by typing xhost at the unix prompt,so that clients can connect from any host , & go through the Exceed Hummingbird documentation for a while , hope it will help,

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
V. Nyga
Honored Contributor

Re: How to connect HPUX CDE (GUI - mode)

Hi again,

there seems to be different ways to come to a solution .. :-)

>There is no file like "ll /sbin/init.d/dtlogin.rc".

Just copy it from another server where it exists.
'rcp' or use a common net directory, check the permissions at the source.
I hope that there are not more differences between the servers.

V.
*** Say 'Thanks' with Kudos ***
senthil_kumar_1
Super Advisor

Re: How to connect HPUX CDE (GUI - mode)

How to start XDM in HP-UX 11i v3.

In my server grphics card available and driver has been installed.

Ex:

# ioscan -funC graphics
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
graphics 0 0/0/4/0 gvid_core CLAIMED INTERFACE PCI Display (10025159)



But the following is not available.

)root@aa128116:/sbin/rc1.d > which graphinfo
/opt/graphics/common/bin/graphinfo


2)root@aa128116:/sbin/rc1.d > grep -i cde /etc/rc.log
Start CDE login server


3)root@aa128116:/sbin/rc3.d > ll *dtlogin*
lrwxr-xr-x 1 root sys 23 Feb 12 2004 S990dtlogin.rc -> /sbin/init.d/dtlogin.rc


In that situation how start the XDM.
senthil_kumar_1
Super Advisor

Re: How to connect HPUX CDE (GUI - mode)

How to start XDM in HP-UX 11i v3.

In my server grphics card available and driver has been installed.

Ex:

# ioscan -funC graphics
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
graphics 0 0/0/4/0 gvid_core CLAIMED INTERFACE PCI Display (10025159)



But the followings are not available.

)root@aa128116:/sbin/rc1.d > which graphinfo
/opt/graphics/common/bin/graphinfo


2)root@aa128116:/sbin/rc1.d > grep -i cde /etc/rc.log
Start CDE login server


3)root@aa128116:/sbin/rc3.d > ll *dtlogin*
lrwxr-xr-x 1 root sys 23 Feb 12 2004 S990dtlogin.rc -> /sbin/init.d/dtlogin.rc


In that situation how start the XDM.
OldSchool
Honored Contributor

Re: How to connect HPUX CDE (GUI - mode)

see the file at the link below. event though its for SuperDome, goes thru the X server configuration steps. Pages 7 and 8 seem particularly relevant, you can also search it for "unwilling" (your error message)

http://docs.hp.com/en/12657/HP-UXDesktopTroubleshootingguide.pdf
Alex Glennie
Honored Contributor

Re: How to connect HPUX CDE (GUI - mode)

HTH

CDE is likely to be providing XDMCP broadcasts by means of dtlogin : if this is running it'll be a parent process plus a child per DISPLAY (local or remote connection) it manages.

So if you connect via an Xemulation package on 2 separate pc's you should see 3 dtlogins.

You do not need a graphics card to connect to cde remotely.

Most likely causes : hostname resolution or firewall issues.

Xceed -> Xconfig -> Trouble-shooting

enable log & set tracing and reproduce problem -> review or post logs NB above is based an old version of Exceed 6.2

Not sure where 11.23 crept into this you referenced 10.20, 11.00 and 11.11 ?



Viveki
Trusted Contributor

Re: How to connect HPUX CDE (GUI - mode)

Hi Senthil,

There is no relation between the graphics card and remote CDE. The graphics card can onle be used to connect a local monitor.

Attached is the CDE troubleshooting documnet which will be helpful for you
刘建树_1
New Member

Re: How to connect HPUX CDE (GUI - mode)

show the last line of config
/etc/dt/config/Xservers
V. Nyga
Honored Contributor

Re: How to connect HPUX CDE (GUI - mode)

@ OldSchool and Alex:
Ok, he doesn't need a graphics card, my mistake

But it seems like cde is not running because 'dtlogin.rc' doesn't exist.

The simpliest way would be to copy 'sbin/init.d/dtlogin.rc' from another server where it exists.
Then create a link in /sbin/rc3.d:
'ln -s /sbin/init.d/dtlogin.rc S990dtlogin.rc'

Then cde should start in boot level 3.

Volkmar
*** Say 'Thanks' with Kudos ***