Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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.

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

(warning) Any firewall between the HP-UX and the X-Server system must allow the SSH connection between the two systems.

Perform the following steps to start an Xsession via SSH.


StepCommand
1Start 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

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

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

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

3Wait for the password prompt inside the xterm window and enter the password for the HP-UX user.
4An 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.

(warning) 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:


StepDescription
1Create a system-specific copy of the Xconfig file# cp /usr/dt/config/Xconfig /etc/dt/config/Xconfig
2Enable 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.

3Restart the X-server.

# /etc/init.d/dtlogin restart

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

Configure the Font Server

<tbd>

Connect to HP-UX from Linux

<tbd>

Connect to HP-UX from Windows

<tbd>




  • No labels