The
11 - Files
General
(The pages deal with XFree86/OS2 3.3.6 (and older). The new version 4 will bring several changes and new features, but is not ready for prime time yet.)
The X11 windowing system is the standard on UNIX-like systems for displaying windows. It can roughly be compared to OS/2's Presentation Manager. The XFree86 Consortium provides a freeware port for Intel x86 based platforms. Holger Veit ported XFree86 to OS/2 and eComStation (eCS).
X11 systems have a client/server structure. The so-called X server (the displaying system) offers its capabilities to the X clients (the applications) to display their output. Due to the X systems networking capabilities server and client can be sited on different machines that are connected via a network (e.g. a TCP/IP LAN or a TCP/IP based dial-up connection).
Now you might ask what to do with a UNIX system when you're running OS/2. Well, using XFree86/OS2 and its client/server architecture offers you the following possibilities:
-
Use your OS/2 machine to login to a UNIX machine, start programs on that remote machine and let them display their output and user interface on your local OS/2 machine. Think of sitting at home and doing some work using the machines at work or a 1000 miles away.
-
Run ported UNIX programs on your local OS/2 machine.
What makes the whole thing especially interesting is the fact that UNIX programs can relatively easy be ported to OS/2 with the help of the emx package. This package (emx = emulate UNIX) consists of some libraries that provide UNIX-features that OS/2 and eCS don't have and the GNU gcc compiler that can be used to compile e.g. C, C++, Objective C, Ada95 and Fortran77 programs. Using emx it sometimes is enough to compile the UNIX programs' source code to get a working program.
Meanwhile lots of programs have been ported and the list is growing...
Please take a look at the following highlights of ported applications:
-
The GIMP (The Graphics Image Manipulation Package). This freeware package isn't far from Photoshop's functionality and can be extended using a plug-in architecture. The stable version 1.2.x that was released a while ago offers many more features over the old 1.0.2. Using the xscanimage plug-in you can also directly scan into The GIMP.
-
LyX is a GUI for LaTeX that allows to compose documents very similar to WYSIWYG word processors. The installation including the setup of emTeX, Ghostscript and XDVI can be a bit tricky, but the LyX package comes with a helpful README.
XFree86OS/2 is not able to display windows seamlessly on the OS/2 desktop, but can be run at the same time. Since it directly accesses the video hardware it is also very fast. There's a Netlabs project called Everblue that is aimed at making seamless X windows on the OS/2 desktop possible, similar to packages like the withdrawn PMX from IBM, Hummingbird's Exceed or HOBLink X11.
Installing XFree86/OS2 seems a bit complicated first, but if you follow the instructions given in the distributions README and the pretty extensive step-by-step guide on these pages there should be no big problems. You can make your life easier by purchasing a Team Trier Collection CD that contains XFree86 3.3.6 that can directly be installed from the CD.
Well, there are some "disadvantages" using XFree86/OS2:
-
To start working under XFree86/OS2 you should have some knowledge about UNIX basics, like directory structure and shell commands, since most of the programs take some things for granted and won't work otherwise. These "things" often are not (sufficiently) documented and so you can e.g. come across the question where to put certain files. Therefor this site offers a guide on setting up a unixish environment for OS/2.
-
XFree86 itself doesn't need very much harddrive space considering that it is a complete video subsystem. But then to successfully operate the ported programs you'll need several tools and utilities that are not always mentioned in the READMEs. Once you have installed all these the used harddisk space has somewhat grown. For help on installation see the guide at this site.
-
UNIX systems don't know about driveletters, there is nothing like C:. You may come across some quick ports that haven't been extended for driveletter support and therefor can only access files residing on the same drive as themselves. To access data on other drives you can use the Toronto Virtual File System (TVFS) and mount all relevant files and directories on one drive.
-
Lots of programs have to be used with tons of cryptic command line options and are not very user friendly. And their documentation is often a bit, hm, rough. Manpages are good as a reference, but not for teaching yourself how to operate the software.
-
There is no standardized user interface. Instead there are lots of window managers with different features available. Most window managers have to be configured by hand-editing files. There's no drag & drop or configuration menus.
To be fair one has to say that most of these disadvantages are not the ones of XFree86/OS2, but result from UNIX systems' structure. In the following you can find some directions to ease your life with XFree86/OS2.
-
First of all see if your graphics card is supported by XFree86/OS2. The README lists several cards and chipsets.
- Make yourself a pot of coffee or tea before starting the installation!
-
Read the READMEs and the X11OS2FAQ!
- Get the emx+gcc package and the GNU utilities FIND, FUTIL, GREP, SED, SUTIL, and TUTIL from LEO or Hobbes. Hopefully, the UnixOS2 project will solve all problems in the future. It aims at creating a kind of Unix distribution for OS/2 that is easy to install.
-
Read the guide on setting up a unixish environment for OS/2 on this site!
-
Most configuration files have to be edited with a X-editor (e.g. xed or gxedit) or EPM in UNIX mode (use parameter /U). OS/2 and UNIX systems use different codes to terminate a line. Editing a file with an editor using different codes will result in programs not being able to read their configuration.
-
Don't panic! If you can't it to work have a look at the FAQ or send a problem report to the XFree86/OS2 mailing list or an OS/2 newsgroup. The mailing list even has a searchable archive.
Requirements for the use of XFree86/OS2
1. Hardware
At least a computer with a 486DX33 and 16MB RAM is required. Machines with 386 CPUs or with 8MB or less memory are insufficient. A Pentium or Pentium Pro class processor
and - especially - more main memory is recommended.
There are no specific requirements concerning network cards, disk types,
or CD ROM equipment; of course the more powerful, the better.
Depending on the packages installed, a disk space of 20-55MB on a HPFS formatted
partition (or a JFS, NFS or ext2fs partition natively allowing long filenames) is required. (Note however that many applications require certain other packages.
See Setting up a UNIX-like environment for OS/2 on this site.) XFree86/OS2 will not run on FAT partitions.
You will also need a video card, or better a video chipset that is supported by XFree86. Note that the sets of video cards supported by XFree86 on one
hand and OS/2 on the other hand overlap, but do not match exactly, i.e. the fact that
your card is supported by OS/2 does not mean it works with XFree86 as well, and vice
versa. XFree86 does not use the video services of the OS/2 operating system.
2. Software
Supported OS/2 versions are Warp 3 or Warp 3 Connect with at least fixpak 17 applied, Warp Server (including SMP) with the corresponding fixpak, Warp 4 and Warp Server for e-Business.
XFree86/OS2 may use a local named-pipe connection or a TCP/IP based network connection.
-
Warp comes with the Internet Access Kit (IAK), which is sufficient. Warp Connect and Warp Server are delivered with a full version of TCP/IP 3.0. Use of this software is preferred over IAK then.
-
Warp 4 comes with TCP/IP 4.0 which also works. Be sure to apply the available fixes, though.
-
The 32bit TCP/IP 4.1 is available via IBM Software Choice. To use this product you will need EMX 0.9c fix 4 or later. The latest EMX 0.9d is recommended.
-
The old IBM TCP/IP 2.0, that comes with the IBM PMX product may be used with Warp as well, although it is no longer supported by IBM. Please ensure that you have the latest Corrective Service Disks (CSDs) installed.
Other versions of TCP/IP, such as FTP's, DEC's, or Hummingbird's TCP/IP versions,
as well as IBM TCP/IP 1.X are not supported. Nor does any networking support from DOS (packet drivers, winsock), Netware, or NetBIOS work.
© 2000, 2001 christian.hennecke@ruhr-uni-bochum.de