I've started experimenting with XFree86/OS2 to provide an XWindows environment under OS/2. I've also been experimenting with a Linux box. One of the features of XWindows is the ability for a program's output(and keyboard/mouse input) to be handled by a system other than the one executing the program. I have Civilization:Call To Power installed on my Linux box. It's currently limited to a 640x480 screen(it's an old 14" fixed-frequency monitor). By using XWindows, I'm able to run Civilization on the OS/2 system where the display uses a 1280x1024 screen(on the new 19" Sony). I can even run XWindows programs under OS/2 where the display is the Linux box(the XFree86/OS2 site links quite a few XWindows executables that run under OS/2).
| Name | OS | IP |
| Ruth | OS/2 Warp 4.0 | 192.168.0.10 |
| Smaug | Red Hat Linux 6.2 | 192.168.0.111 |
| Spyro (Thinkpad) | Win98, OS/2, Red Hat Linux 6.2 | 192.168.0.2 |
I've a rather large dragon collection, and as such decided to name my systems after dragons. Smaug is from The Hobbit, Ruth is from The Dragon Riders of Pern, and Spyro is from the Playstation game that forced me to purchase a Playstation :-)
I've updated the hostname tables on all systems so that I can use ping ruth instead of ping 192.168.0.10.
You'll need to have telnet, and telnetd(the daemon) running on both systems. My linux system installed both and telnetd was already enabled. The OS/2 system also has them installed, but it needs to have telnetd configured. Also telnet will not run under XFree86/OS2. You can still use telnet by switching to the PM, or you can install an XWindows compatible telnet such as X3270. To configure OS/2's telnetd do the following:
Next you'll need to tell XWindows that it's OK to show output from other systems.
You can do this by using the xhost command while running XWindows.
On Ruth use the command xhost +smaug to allow Smaug to display windows on Ruth.
On Smaug use xhost +ruth.
The only problem with this is that you have to enter this command every time you start up xwindows.
The best thing to do is to create a file on all systems which contains a list of valid hosts.
The file is called X0.hosts (that's X followed by the number zero).
The files on my systems contain the following three lines:
inet:smaug
inet:ruth
inet:spyro
| System | path |
| OS/2 | d:\XFree86\lib\X11\X0.hosts |
| Linux | /etc/X0.hosts |
This is probably the most useful as, after all, the XWindows software that's compiled as an OS/2 executible is already available for Linux.
| Site | What's There |
| XFree86/OS2 | XFree86 for OS/2 - allows OS/2 to run XWindows based software |
| Sebastien Marineau's X11 apps for OS/2 | X3270 and other X11 apps ported to OS/2 |
Last updated - October 14, 2000
Send comments/corrections to Darrell Spice Jr.
Return to SpiceWare Homepage