X on X
by Chris Coleman07/10/2001
I read an article the other day that predicted Apple wouldn't be able to keep advanced Mac OS X users because they would learn Unix and move on to a more professional system. I disagree.
Mac OS X has built-in advantages that no other OS currently offers. It will keep the advanced users because of open-source developments that will ultimately take computing beyond anything that even Apple has imagined. Already open-source developers are extending Mac OS X beyond what Apple initially delivered.
Apple provides an excellent desktop built on top of a powerful Unix foundation and has made it easy for anyone to use. Open-source developers are taking that starting point and merging it with existing open-source technologies and creating new, wonderful things.
XFree86
If you've used BSD or Linux, you're most likely familiar with XFree86. It provides the graphics engine for most open-source operating systems, including Darwin. Darwin is the core of Mac OS X and is based on BSD.
Mac OS X comes with Core Graphics and Aqua. If you run Darwin, you have to install XFree86 and your choice of window manager to get similar functionality. Because Mac OS X is based on Darwin, it's possible to shut down Core Graphics and install XFree86 to access your X11-based programs.
|
Also in Mac Dev News Roundup: |
However, this doesn't really gain you anything over just downloading Darwin for free. In the May/June Issue of the Daemon News print magazine, I read an article by Torrey Lyons titled "Installing XFree86 on Mac OS X and Darwin." So, I owe most of what I know about X on X to Torrey. (Disclaimer: I am a co-founder of DN, so I get to read all the articles.) As soon as I got my iBook up and running, XFree86 was one of the first things I installed, and I was surprised at how smoothly it went.
The latest version, XFree86 4.1.0, includes all the work done by the X on X group -- nothing extra to worry about. Darwin and OS X don't require an XFree86 configuration file. Actually, configuration at that level is not possible because XFree86 uses Apple's IOKit drivers. Although, this means that there must be an IOKit driver for your video card.
X on X is the work of a group of open-source developers who wanted to make the most of XFree86 on OS X. Their modifications allow XFree86 and Core Graphics to co-exist. Currently when you boot up XFree86, it puts an "XDarwin" icon in your applications folder. Clicking that icon will start XFree86 in a separate screen, almost like a virtual terminal. It will read .xinitrc from your home directory and start your favorite window manager. From this point, you can run all your favorite X Window applications.
By pressing command-alt-a, you can return to your Aqua desktop. The key sequence is customizable. The X on X project is working on a "rootless" X Server. Right now, the X Server is "rooted" in the separate virtual terminal. When the X on X project succeeds with a rootless X Server, you will be able to have windows from X and Aqua on the same screen.
This sort of flexibility isn't possible in the world of closed source. Apple made a very smart move when it opened up its base operating system.
So far, I am very pleased with Mac OS X. There's still room for improvement, but I like what is available so far. I haven't lost my BSD, and I've gained a professional GUI.
Chris Coleman is the Open Source Editor for the O'Reilly Network and is actively involved with community projects such as OpenPackages.org and Daemon News.
Read more Mac Dev News Roundup columns.
Return to the Mac DevCenter.
You must be logged in to the O'Reilly Network to post a talkback.
Showing messages 1 through 5 of 5.
-
Rootless is there.
2001-07-13 08:10:45 hornp [Reply | View]
Just get the sources via cvs and modify the file
xc/programs/Xserver/hw/darwin/darwin.c
change the line
#define QUARTZ_DEFAULT_ROOTLESS 0
to
#define QUARTZ_DEFAULT_ROOTLESS 1
compile, install, run, and - yippie - it's rootless.
BTW: Oroborus is the ideal Windowmanager for rootless X on X.
-
Rootless would be a lot better
2001-07-12 10:46:08 enorum [Reply | View]
I can't see X11 on OS X being that popular (or convenient) until X11 applications can be run rootless on the Aqua desktop.
-
importance of XFree install
2001-07-12 05:48:52 parnet [Reply | View]
No brainer! Of course it's important beyond
just the fact it can be done because it gains
access to the most advanced GUI work
being done under Linux: Gnome, KDE, then
Konqueror and Enlightenment. Some already
have this going. I'm waiting for very reliable
highly detailed installation instructions so I
want to thank Chris and everybody else
working in this area.
Paul Arnett -
importance of XFree install
2001-07-12 07:28:21 Derrick Story [Reply | View]
In response to more information about installing the X Window System, I just ran across a good "how to" article in the print version of MacAddict magazine -- the Aug. 2001 edition. On page 64 it maps out step-by-step instructions for the entire installation. Very nice!






It should be known that XFree86 (under standard binary downloads) supports only the primary monitor.
I current use 2 monitors primary for big GUI apps and a smaller one for "Terminal.app" work for multiple shells & casual Web Browsing.
Upon launch, X Windows & Aqua Cmd+Option+A nicely, while I still get to use my 2 monitor for OMNI Web or whatever.
Later, Markus.