HP-UX Graphical Connection via X-Server

HP-UX Graphical Connection via X-Server

This section describes two methods to run graphical applications on the HP-UX guest system by using an X-Server installed on the emulator host system or a remote system:

  • Xsession started via ssh

  • Xsession started via XCMCP

The following points are discussed in more detail:

X-Servers

To apply the two methods described, the remote system needs to run an X-Server. For the examples in this section two free applications are used:

  • Linux: Xephyr, a nested X-Server able to run on an existing graphical desktop.

  • Microsoft Windows: Xming.

There are several other free and commercial X-Servers. To describe all of them is outside the scope of this document.

 

Install Xephyr on Linux

Xephyr is available in the standard repositories of the supported Linux distributions. If it has not already been installed, install it using the following command on an RPM-based system:

# yum install xorg-x11-server-Xephyr

 

Install Xming on Microsoft Windows

There are several commercial products. However, there are also free X-server packages, for example the X-server integrated in Cygwin, VcXsrv, or Xming. The following examples use Xming.

The installer for Xming and more product information are available on http://www.straightrunning.com/XmingNotes/.

Running an X-Session via SSH on Linux

Please note: any firewall between the HP-UX and the X-Server system must allow the SSH connection between the two systems.

Advantages compared to using XDMCP:

  • encrypted communication between the guest HP-UX system and the X-Server,

  • no font problems.

Disadvantages compared to using XDMCP:

  • more complicated handling,

  • does not use the general CDE login mechanism.

 

Perform the following steps to start an Xsession via SSH.

 

Step

Command

 

Step

Command

1

Start Xephyr.

$ Xephyr :20 -ac -screen 950x540

Parameters:

  • :20 - the DISPLAY variable is set to :20

  • -ac - no access control to the X-Server

  • -screen - the dimensions of the X-display (example only)

For more information refer to the man-pages of your Linux system.

2

Start an xterm inside Xephyr and create a SSH connection to HP-UX.

$ xterm -display :20  \
   -e ssh -Yf <user@hp-ux-ip-address> /usr/dt/bin/Xsession

3

Wait for the password prompt inside the xterm window and enter the password for the HP-UX user.

 

4

An X-Session for the user will open in the Xephyr window.

 

 

Using XDMCP

Before using the X-server, XDMCP must be enabled on the guest system. XDMCP allows the HP-UX dtlogin screen to be displayed on remote X-Servers upon request of the X-Server.

Please note: Any intermediate firewall must allow access to UDP port 177 on HP-UX, and to TCP ports 6000~60xx from the remote host to your PC (depending on the X-Server settings).

Enabling XDMCP

Perform the following steps to enable XDMCP on HP-UX:

 

Step

Description

 

Step

Description

1

Create a system-specific copy of the Xconfig file

# cp /usr/dt/config/Xconfig /etc/dt/config/Xconfig

2

Enable XDMCP.

Edit the file:

# vi /etc/dt/config/Xconfig

Locate the following line and insert a comment character, '#', at the beginning of the line.
        Dtlogin.requestPort: 0

Save the file.

3

Restart the X-server.

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

(If there is no dtlogin.rc file in /sbin/init.d, you first have to run
        /usr/dt/bin/dtconfig -e )



© Stromasys, 1999-2025  - All the information is provided on the best effort basis, and might be changed anytime without notice. Information provided does not mean Stromasys commitment to any features described. 
Need fast, reliable migration? We have done it countless times. Talk to an expert