Originally Published: Monday, 8 November 1999 Author: Stan Shivell
Published to: news_learn_support/Support News Page: 1/1 - [Std View]

Remote X Configuration

Linuxpower.org has posted a document on how to configure and set up your X server so programs may be run remotely.

From linuxpower.org


1.Set DISPLAY variable (set DISPLAY="some.host:0") 2.Allow hosts to connect to your X server (xhost +other.host.com) 3.Start up a font server on the server side by typing xfs &.

4.If you need to, set the address of the font server on the client side.

5.On a terminal (telnet, ssh, rsh) on the remote host, type in the name of the program you want to run (gimp, netscape, and xv are a few)

This page is going to help you run X programs on another computer, but display it on your X session. This is especially helpful if you have a slow machine on your LAN or want to display X applications on a Windows machine.

Client Side Configuration

On your client side (the computer you want to display and use the program) you need something that allows the display of X programs. On a Linux/Unix machine you'll probably just need to have something like XFree86 or MetroX; any standard X server will do, as long as it displays and starts up fine on your computer. If it's a Windows machine, you need to download an X server. Two that I know of are XWin32 and MI/X. You can look for more at Tucows, under server daemons, I think.

You should allow connections from the server side so that the programs can display. If you're using Unix/Linux on the client side, that can be done by typing xhost +server.side, to allow the hostname "server.side" to connect. You'll probably need to change the hostname to whatever the hostname of your Linux box is. With ssh you can just connect to the server and type the name of the program without setting xhost or $DISPLAY. I think it works by exporting the DISPLAY variable and automatically setting xhost to allow applications to be run from the server side. If $DISPLAY isn't set on the client side, I don't think it will be exported to the server side so that applications display on your screen. Thanks to Todd Cohen for pointing this out. If anyone can provide more information on this please [Erik - add your comments].

If you're using XWin32 you need to set Options -> XHost to the IP address of the machine with the X applications in XUtil32. With MI/X I don't recall having to set the host but my memory isn't fresh.

Font Setup

If the fonts that came with your X server don't work or you want to use the server side fonts, then set the font server to be the hostname of the server on port 7100. In XWin32 it's in XUtil32's Fonts -> Path dialog box; click on "Add Font Server" and in place of "xfs" use the hostname or IP address of the font server. For me I had the font server point to on port 7100. If you're using a Linux/Unix box as your client, I'm not sure but I think you can use the command line xset +fp, if is the font server.

A font server must be running on the server side. Read on to find out how to start it up.

Full Article