Run X Apps Remotely

Configuring the DHCP Server

Unix Through Windows

Win-Lin Remote Connects 

Remote Booting in Linux

Imagine a Linux machine with a large-capacity hard disk, oodles of RAM and a fast processor. What if X (graphical) applications installed on such a powerful machine could be shared and worked upon by users sitting on different machines on the network. Let the IP address of this Linux machine on your private network be

Set up server
First, you must run Telnet for users to log in remotely to this machine and run X applications. Issue the command ‘ntsysv’ and from the list of services select ‘telnet’. Restart the Linux machine. Log in as root on this machine and create accounts for users (using ‘useradd’ and ‘passwd‘commands) who will use the graphical applications installed on this machine.

The logic

When graphical X applications like Gimp, StarOffice, or xmms run on a Linux machine they look for the location of a running X server to emit their graphical display. By default, the X server is assumed to be running on the same machine. However, by changing an environment variable named DISPLAY you can tell X applications to use an X server running on a different machine

User machines
On a user machine (for example, with IP, start the X server using the ‘startx’ command. In a terminal window within X issue:

xhost +

(Syntax: xhost +<IP address>)
The above command authorizes graphical applications launched on to use the X server running on this machine for display. Now telnet to

In the terminal window issue:


Login as a user previously setup and issue the following command.

export DISPLAY=
(Syntax: export DISPLAY= <IP-address-ofuser-machine>:0)

Append this command in a file named .bash_profile (note the dot prefix) in your home directory (/home/<user name>) on Start any X application, say Gimp, as:

gimp & (Syntax: <X application executable> &)

This will display the Gimp graphics editor on the X server running on the user’s machine. However, all the files which you open, save, or modify will be on the host machine.

X apps on Windows
What if the user machine is running Windows? Then you need an X server for Windows. On this month’s CD, you will find Xmanager in /usr/Utilities. After installing, start Xmanager from Start>Programs>Xmanager 1.3.9>Xmanager. Xmanager minimizes to the taskbar. Right click on it and select File>Configure. Click on ‘XDM’ tab and select the option ‘Do not use XDM (Passive)’. Click on Security tab, check the option ‘Enable Access Control’ and then click on the ‘Configure’ button. In the ‘New Host’ text field enter and click on ‘Add’. This step corresponds to using ‘xhost’ command on Linux. Telnet to The subsequent steps remain the same as for Linux.

  • Follow PCQuest on
  • become a fan on
  • Stay updated via
  • RSS


Notify me of follow-up comments via e-mail address

Post Comment


Survey Box

Now that Microsoft has finally discontinued support for Windows XP, which OS are you likely to upgrade to?

Send this article by email