| MacTalk Forums |
| Mac OS X Discussion and support on Mac OS X. If you have an issue with an application (e.g: Safari, or iPhoto, or Adium), it goes in the Applications forum. |
| Reply |
|
|
LinkBack | Thread Tools | Display Modes |
| MacTalk Forums |
| Mac OS X Discussion and support on Mac OS X. If you have an issue with an application (e.g: Safari, or iPhoto, or Adium), it goes in the Applications forum. |
| Reply |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
This question comes up quite frequently. Someone asks "What software can I get to do something or other?" and the answer can often be "There's an open source app, but it runs in X11". Immediately, a bunch of people who have no Unix/Linux knowledge are completely confused.
What I'm going to start by doing is explaining what I know, and people with a greater knowledge can add to what I write. Very basically, X11, or XWindows as it's known is the graphical interface for Unix/Linux, where Quartz (including Quartz Extreme) is the graphical interface layer for OSX, the Finder is for OS9 and below, and Windows is (or rather, was) for DOS. X11 itself is only a very basic system for drawing pixels on a screen. On top of XWindows one runs a window manager. KDE and Gnome are most well known in the Linux world, with the most basic window manager being TWM. In Mac OS X, Aqua is the closest thing to the Window Manager. If you've ever played with Linux and seen Windowmaker, that's the window manager NeXT came with. The dock in OSX is basically an evolution of a feature in Windowmaker for example. In Mac OS X, it's possible to run Unix/Linux applications (that have been re-compiled) that require XWindows graphical user interface. The Gimp is a good example of this, being a freeware equivalent of Photoshop. As Aqua has nothing whatsoever in common with XWindows, Apple has provided an application, X11.app that runs XWindows, so you can run these applications. Normally, XWindows would draw directly to the screen on a computer, but with X11.app it's drawing to that application. X11.app comes with its own special window manager that makes the individual windows behave like Aqua windows - ie: you can minimise them to the dock etc. You can run window managers like Windowmaker, KDE and Gnome instead, and even have the desktop icons appearing on your desktop! With window managers other than the one that comes with X11.app, there are two ways of running the XWindows desktop, called "rooted" or "rootless". This is not quite "stuffed" or "haven't got any lately", but refers to the "root" window, ie, the screen being drawn to, the "root window", which is known in Mac OS (X) as the desktop. The X11.app standard window manager is "rootless" because it runs as if there is no desktop, whereas other window managers can, with a setting in X11.app, run so that, if you click on X11.app the entire screen dissapears, to be replaced entirely with the XWindows environment, including desktop. That's knows as "rooted". Now I need some screenshots. Anyone else want to add to what I say or fix any blundering errors I've made until I have some? Edit: Took Bahamut's suggestion about Quartz and Aqua, even though the comparison is a bit messy.
__________________
"The trouble with most people is not what they don't know, but what they know for certain that isn't true." -- Mark Twain currawong.net | Twitter | Chat online with other Mac users. |
|
|||
|
Excellent explanation. Very concise and clear.
The one saving grace of X11 is that despite what series of window managers you use (GNOME, KDE, TWM, XFCE4, etc) the applications underneath still understand how to draw basic graphic information to the screen. This in turn means that any POSIX compliant C or C++ code that does not refer to cpu-specific features, and draws out to X11 is immediately accessible to MacOSX users who run X11. A simple recompile for the MacOSX kernel, and the application is usable on any Mac running OSX. Examples of these are GIMP (Photoshop clone), OpenOffice, Inkscape (vector art package) and a host of other quality tools. Superb packages that until recently have needed entire rebuilds for use on other platforms. With Apple's X11 implementation, it means less effort to get these tools to a working status. Native Aqua/Cocoa code would of course be preferred, as it means no need for X11 to sit in between. However, that means far more development time, or even worse, pushes developers away from Mac as a platform to experiment with. For those wanting X11 for Apple, the GIMP.app page has links to X11 for OSX10.3 and OSX10.2: http://gimp-app.sourceforge.net/
__________________
"Saying your operating system is the best because more people use it is like saying MacDonalds make the best food" |
|
||||
|
Great thread guys bit don't forget FINK!
Once you have x11 installed on your mac Get FinkCommander "FinkCommander is an open-source, graphical user interface for the Fink software packaging system for Mac OS X. It provides an intuitive front-end to the Fink command-line tools for downloading and installing Unix software." (quote from Website) Fihttp://finkcommander.sourceforge.net/ Install Fink "The Fink project wants to bring the full world of Unix Open Source software to Darwin and Mac OS X. We modify Unix software so that it compiles and runs on Mac OS X ("port" it) and make it available for download as a coherent distribution."(quote from Website) (Note last time I installed Fink Commander it had a pre install of fink with it!) The upshot of this is that you can then install hundreds of x11 programs with the click of a mouse although after installing them you have to open them in an xterminal ie sudo /sw/bin/./ethereal or /sw/bin/./gimp if your installing just command line tools you can open them up in the mac os X terminal without needing to open x11 ! (very useful for enmap etc.) Screeen shot shows finkcommander
__________________
Successful trades witn ilostmypassword |
|
||||
|
Just found this useful thread I started while moving other threads
__________________
"The trouble with most people is not what they don't know, but what they know for certain that isn't true." -- Mark Twain currawong.net | Twitter | Chat online with other Mac users. |
|
|||
|
I want to get into the X11 thing...
What sparked my interest was talking to a teacher at TAFE, who is into Linux stuff. He was talking about compiling programs, Knoppix and the network testing tools that are included in that distro. He also mentioned a fractal generating program in Knoppix, while not ground-breakingly useful (!), I was determined to get it for my mac. I couldnt get my head around it till I installed the Fink package. Its not the Commander, cause I want to do the command line interface. Something like sudo apt-get instal Windows XP :blink: I can get it working in the terminal, all julia sets and mandelbrodts (in ascii hehehe) and in X11 all colours and patterns... I was stoked! Ok, it makes me feel cleverer than I am to get it going,this CLI, Fink, X11 thing is a whole new world of personal computing that I find incredible and something I couldn't explore in my previous OS. Thanks for opening my mind Apple, AppleTalk and Open Source.
__________________
[There is no escape from Microsoft] |
|
|
||||
|
From left to right:
Gimp, pstree (a fink install which shows parentage of processes), top -u and Elena Anaya =)
__________________
MacDaveŽ - Macintosh Service & Consulting --- Apple Certified Help Desk Specialist --- |
|
|
|||
|
The exact name is X Window System (or simply X), not XWindows. Notice the lack of "s" in "Window".
I've switched from fink to DarwinPorts. IIRC DP has more packages and it feels more robust
__________________
- Jay XDD |
|
|||
|
Quote:
DarwinPorts: http://darwinports.opendarwin.org/ports/ "View All Software Titles (2192)" Fink: http://fink.sourceforge.net/pdb/index.php?phpLang=en "The database was last updated at 04:26 GMT on Thursday, October 06 and currently lists 5602 packages" Fink weighs in at more than double the size of DarwinPorts. And they're not just bizzare or obscure ones either. I've tried DarwinPorts 3 times to date, and each time fell back to Fink shortly thereafter thanks to DP missing essential packages that I use daily. Same goes for MacOSX-Gentoo. Great system, but grossly lacking in usable content.
__________________
"Saying your operating system is the best because more people use it is like saying MacDonalds make the best food" |
|
|||
|
So anyway.. this thread is great but.. how do I run X11?
I grabbed an X11 dmg from Apple but when I tried to install it, it tells me there is a newer version already installed (I'm running 10.4.3). Spotlight tells me there's no X11.app though I do have various x11 folders about the place. Would anyone like to shed some light on this for me? |
|
|||
|
Quote:
__________________
"Saying your operating system is the best because more people use it is like saying MacDonalds make the best food" |
|
|||
|
Quote:
__________________
MacBook, iPhone 3GS, 4G iPod |
|
|||
|
|
|
|||
|
I'll just clarify for those who are a little confused as to where to find it...
X11 is not installed in Mac OS X by default. If you don't have it: If you're using OS 10.3, download the X11 installer from the Apple website here: Apple - Downloads - Mac OS X Updates - X11 for Mac OS X. If you're using 10.4 or 10.5, you need to install it from your CD that came with your computer. There's no online version available. Richard |
| Reply |
| Bookmarks |
| Tags |
| x11 |
| Thread Tools | |
| Display Modes | |
|
|