Setting Up X-windows to a Remote Server

Overview

This procedure allows a terminal session on a Linux VM running on the Vaio laptop to access an X-windows application running on GRIDCTRL (192.168.1.252). This procedure can be expanded to connect to other machines.

Preparation

GRIDCTRL

GRIDCTRL (192.168.1.252) has been started in RUNLEVEL = 5 and has GNOME as the desktop.

Local VM

The local VM has been started in RUNLEVEL = 5 and has GNOME as the desktop.

Authorisation on Local Host

To allow the remote host (GRIDCTRL (192.168.1.252)) to send X commands to the X-server on the local system, enter the following commands in the root environment:

# xhost -

access control enabled, only authorized clients can connect

# xhost 192.168.1.252

192.168.1.252 being added to access control list

# xhost

access control enabled, only authorized clients can connect

INET:192.168.1.252 (no nameserver response within 5 seconds)

SI:localuser:douglas

Connect to Remote Server

Use the following command to connect to the remote host (GRIDCTRL (192.168.1.252)) and allow X commands to be sent to the X-server on the local system:

$ ssh -X oracle@192.168.1.252

Verify that the DISPLAY environment variable is set correctly:

$ echo $DISPLAY

localhost:10.0

Run the canonical program to check that X commands are being sent correctly:

$ xclock &