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
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.
Step | Command | |
---|---|---|
1 | Start Xephyr. |
Parameters:
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. |
|
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.
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 | |
---|---|---|
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:
Locate the following line and insert a comment character, '#', at the beginning of the line. Save the file. |
3 | Restart the X-server. |
(If there is no dtlogin file in /etc/init.d, you first have to run |
Configure the Font Server
<tbd>
Connect to HP-UX from Linux
<tbd>
Connect to HP-UX from Windows
<tbd>