Slashdot Mirror


Apple Explains How to Run X11 on Mac OS X

tuc writes "In this document posted on its Developer Connection, Apple explains how to install X11R6 on Mac OS X, details of the default quartz-wm window manager, how to compile X11 code on Mac OS X, how to install OpenOffice, and the like."

25 of 375 comments (clear)

  1. Re:unix? by Anonymous Coward · · Score: 1, Informative


    So? That doesn't mean one could just take the code for such a huge project, compile it and run it flawlessly.

  2. Re:Trash your mac? by pclminion · · Score: 4, Informative
    It's unfortunate, but people who have only been exposed to Linux really have no clue about cross-UNIX portability. Yeah, UNIX systems are all similar, but you can RARELY take a piece of code developed on one system and just compile it magically on another.

    It's much less work than, say, porting a UNIX project to run on Windows, but it's definitely much more complicated than just copying the source code to the Mac and typing "make."

  3. Re:Slow news day? by JHromadka · · Score: 3, Informative

    X11 isn't installed by default. You have to do a custom Panther install.

    --
    "The objective of securing the safety of Americans from crime and terror has been achieved." -- John Ashcroft
  4. FINK by chadpnet · · Score: 3, Informative

    We have been doing this via fink for quite some time now. http://fink.sourceforge.net/

  5. Re:Wow, really? by nko321 · · Score: 3, Informative

    X.org is an implementation of the X11 protocol. X11R6 is the 6th revision of the X11 protocol. There was supposedly an X10 protocol before X11. What people have begun abandoning is XFree86, and not everyone is leaving it. I think NetBSD still uses it.

  6. Re:Do they really need a step by step.. by learn+fast · · Score: 3, Informative

    and their X11 is OpenGL native. So, rendering is fast as hell.

  7. Re:Reaction to OpenOffice by JJahn · · Score: 5, Informative

    To those who want an aquafied OpenOffice, please check out NeoOffice. They are working to make OpenOffice more MacOS native. Currently, they have removed the need for X11, put in Aquafied menus, and native printer and font support. Sure, its not perfect yet, but its getting there.

  8. Re:Why? by geoffspear · · Score: 2, Informative
    The OS X distribution of OpenOffice comes with a handy .app that starts up X and openoffice at the same time, just like you're running a normal mac application. It's a nice idea, even if I don't like OO.o that much on the whole. This might be the sort of thing you're looking for.

    On the other hand, it requires your end users to have X11 already installed and configured, which might be more of an issue for you, depending on your target audience.

    --
    Don't blame me; I'm never given mod points.
  9. Re:Remote Applications by sootman · · Score: 4, Informative

    Or like when I ssh home (um, at lunch, right) and play Freecell. :-) Or run nedit, then go help -> about and see "Built on Linux, x86." Fun fun fun.

    In all seriousness, I guess the deal here is that it's a newer version than what ships as X11.app? 'About' says 'X11 1.0 - XFree86 4.3.0'. I know the '1.0' refer's to the fact that it's *Apple's* 1.0, but can someone who spends more time with X than I do explain the significance of X11R6?

    [later]

    OK, I just looked at TFA. The title of this summary is a bit misleading--this title is "Apple Explains How to Run X11 on MacOS" but the actual article's title is "Configuring and Running X11 Applications on Mac OS X" and in goes on to say "X11 for Mac OS X... includes the full X11R6.6 technology including an X11 window server, Quartz window manager, libraries, and basic utilities such as xterm." OK, got it. I think. Still not sure how R6 and 4.3.0 relate, but the main thing is, there is nothing new here. They're talking about the X11 that OS X ships with.

    --
    Dear Slashdot: next time you want to mess with the site, add a rich-text editor for comments.
  10. I found Abiword to be much easier than OO by sesshomaru · · Score: 5, Informative
    If all you need is a word processor, there's a native version of AbiWord for OSX that seems to work great:

    http://www.abisource.com/

    I could never get OO to work on OS X, though I use it on my Windows Machine.

    --
    "MIT betrayed all of its basic principles."
  11. Minor OpenOffice.org corrections by soullessbastard · · Score: 4, Informative

    Disclaimer: I am a developer for Mac OS X OpenOffice.org and a founder of the NeoOffice project.

    I happily noticed this myself earlier on in the week and was impressed to find the OpenOffice.org related section. Unfortunately there are some inaccuracies in the section, but I couldn't find any address to which corrections should be submitted.

    Perhaps the most major omission is that the OpenOffice.org Mac OS X (X11) installer is not limited to 10.3 only. In fact, it supports both 10.2 and 10.3. For 10.2 users it also will automatically install XFree86 and a window manager if the system does not have XFree86 on it. Since Apple X11 is not redistributable under its license, 10.3 users are required ot manually install Apple X11. Ironically, that makes installation on 10.3 more inconvenient then 10.2!

    On the trinity forums Smokey also noticed the file format "incompatibility" line in the article. It isn't actually true since OpenOffice.org is 100% compatible with StarOffice which, last I checked, is a commercial office suite even if it doesn't run on Mac OS X :)

    Even with the little foibles, it's great to see support from Apple for X11 applications in general as well as a basic introduction that can help open up the entire world of X11 OSS applications for users, not just OpenOffice.org.

    ed

  12. Dumb explanation of X 'client' / 'server' by figlet · · Score: 3, Informative

    In the section "Which Machine Is the Client?", they completely mess up the explanation. What is wrong with just saying "The X server is a display server. X applications are clients (running on your machine or another machine) which request the server (which may be running on your machine) to do something ("draw a line", etc)."

  13. Re:Wow, really? by Afrosheen · · Score: 2, Informative

    Hey now, that didn't deserve an offtopic. I bet I'm not the only one that misunderstood the difference between a protocol and an implementation of that protocol. Anyway it's still relevant because Apple may use XFree86 or X.org, and that was kinda my original question.

    But seriously, thanks for clearing that up. All 12 of you.

  14. Re:Step 1: Double click X11.app by geoffspear · · Score: 2, Informative

    Umm, right above the screenshot of XGalaga, it shows you how to start xgalaga, which is an X app.

    --
    Don't blame me; I'm never given mod points.
  15. Re:Step 1: Double click X11.app by SilentChris · · Score: 2, Informative

    "Step 2: There is no step 2!"

    Depends. If you're running anything in KDE or Gnome, there's quite a few steps that Apple doesn't go into. I was quite perturbed to install KDE, have it start up successful, and get the Quartz WM trying to take it over (imagine KDE dialogs with Quartz close buttons). It took me a long time to figure out exactly what needed to be added to the .rc file to curb this behavior.

  16. eWeek article on "cancelation" with clarification by soullessbastard · · Score: 4, Informative

    Disclaimer: I am a developer for Mac OS X OpenOffice.org and a founder of the NeoOffice project.

    Well, as it turns out my update to the timeline was grossly misquoted in a couple of places. The update was really just to put things in perspective as to what was really going on in the various projects as well as to reinforce the importance of the X11 work. It was never intended to "cancel" anything since, well, there wasn't really anything to cancel. The update was just stating how things really are within the project.

    Today's article on eWeek has some much better reporting on the progress towards 2.0 X11 and other issues that had been raised by my update. I highly recommend giving it a read as it's a bit more informative then the old /. comments in that thread.

    ed

  17. Re:Apple should... by soullessbastard · · Score: 2, Informative

    Disclaimer: I am a developer of Mac OS X OpenOffice.org and a founder of the NeoOffice project.

    If the X11 server was preloaded onto all Apple systems, it would also solve quite a number of distribution problems for OpenOffice.org and other X11 applications. The license for Apple X11 doesn't allow third parties to bundle it and redistribute it. That makes it really frustrating from an installation perspective. Instead of being able to automatically install the X11 server (like we do using XFree86 for 10.2) we have to prompt the user to either go out and find where the X11User.pkg is on their Panther CDs or Software Restore CDs or even go and download it from Apple to install. Our installers can automatically install all of the other 6 applications OOo requires to run, but we just can't get Apple X11 so it kind of puts a dent in the installation experience. I'm sure that other commerical appliactions like MATLAB would like to be able to auto-install X11 as well.

    Preloading X11 onto all shipping systems would allow us to not have to worry about users getting confused by the additional steps of the process. Traditionally, Mac installers are very simple and it's rare they require other software to be installed first.

    Another solution which would be equally good IMHO is if Apple could come up with some type of distribution clause in their license to allow X11User.pkg to be bundled with installers for other applications. I don't think the problem is the underlying XFree86 based stuff, but rather quartz-wm and maybe other components. Last I knew quartz-wm wasn't open sourced, only the XFree86 derived stuff under the MIT license.

    ed

  18. XDarwin forums still the best place to get advice by ubiquitin · · Score: 3, Informative

    The Apple article was helpful and all but there are guys who have been working on the XFree86 port for a long time, like since 2002 or something, so if you need a place to get answers to running X apps on OSX, keep an eye on www.xdarwin.org/forum

    --
    http://tinyurl.com/4ny52
  19. Re:Step 1: Double click X11.app by hunterx11 · · Score: 2, Informative
    All you have to do it type fink describe bundle-kde | less
    To use KDE as your windowing system in XDarwin, create a file called
    ".xinitrc" in your home directory, containing the following line:
    .
    /sw/bin/startkde >/tmp/kde.log 2>&1
    .
    See http://fink.sourceforge.net/doc/x11/run-xfree86.ph p#xinitrc
    for more information on the xinitrc files and how they work.
    .
    If you want to use Apple's X11 instead of the KDE window manager,
    put the following line before the startkde line in .xinitrc:
    .
    export KDEWM=quartz-wm
    .
    Note that depending on your version of Apple's X11, this can cause
    strange resizing issues with the kicker (KDE task bar).
    .
    --
    English is easier said than done.
  20. Re:Is this the same joke as cygwin X11 server? by Eamon+C · · Score: 2, Informative

    No. OS X is Unix, and Apple's X11 implementation is fine. X apps don't 'behave' as well as native applications, but all the stuff you love about X, e.g. network transparency, works great.

  21. Re:Remote Applications by drew · · Score: 4, Informative

    X11 is an open group specification that is implemented by XFree86, X.org, and a number of commercial X servers. R6.6 is the current version of that specification.

    4.3.0 is the version of the Xfree86 software that Apple ships with OS X, which implements X11R6.6.

    --
    If I don't put anything here, will anyone recognize me anymore?
  22. Re:Remote Applications by jsebrech · · Score: 3, Informative

    I know the '1.0' refer's to the fact that it's *Apple's* 1.0, but can someone who spends more time with X than I do explain the significance of X11R6?

    X11 is two things, a standard for windowing systems, and a series of implementations of that standard. X11, the standard, is developed by the X.org foundation, at www.x.org. The current base version of that is version 11, release 6, X11R6. Don't let the version 11 thing fool you though, X has been at version 11 since 1987, and likely will never get to version 12, which is why everyone just calls it X11.

    As for the implementations ... originally it was simply X11, developed by the X consortium. However, since they were slow to adapt to new platforms or technologies (notably the x86 platform becoming powerful enough to run unix), a spin-off project called XFree86 evolved (it's a bit more complicated, but then who needs details). They became the de-facto reference implementation of X11, even if they didn't have the honor of owning any of the X consortium IP (like trademarks and so on). However, the leadership of the XFree86 project a while ago decided that they would change the license in ways the community did not like. As a result, the last truly free version of XFree86 is 4.3, which is the code that Apple's X11 1.0 is based on. X.org was founded around the same timeframe to step into the void left by the XFree86 project's implosion, and they now develop the official reference implementation (currently X.Org X11R6.8.1). Likely, in the future, apple's X11 will be based on the X.Org code.

  23. Re:atleast its good to see.. by notsoclever · · Score: 2, Informative
    OpenStep had a network-transparent layer, and in theory Cocoa (which is basically OpenStep with a few extensions) could be similarly made network-transparent fairly easily, since ObjC already has a pretty nice distributed object model. Apparently OpenStep even came with a built-in way of doing network-transparent app management (which could even seamlessly migrate windows between systems, which even X11 can't do easily) though I don't know any details of it (this is just according to some formerly NeXT-using people I've known who have since moved to OSX).

    The main reason I can see for Apple not doing such a thing is that it might make things seem a bit weird to people who are accustomed to thinking of each computer as a separate device, and not a big cloud of computation/storage/etc., and would rather do the "cloud" functionality via more traditional (to Windows/Mac users, anyway) file-sharing conduits such as AFP, WebDAV, etc.

    Incidentally, Cocoa is the API, while Aqua is the equivalent of the window manager. Cocoa is to X11 as Aqua is to, say, fvwm, twm, pwm, etc.; it's not Aqua which would be made network-transparent.

    --
    There are 10 kinds of people: ones who understand ternary, ones who don't, and ones who think this joke is about binary
  24. Re:Why? by Onan · · Score: 2, Informative
    Or are these just X-11 servers instead of being real cleints (using the bass-ackward X-11 speak)?
    It's not backward, and it's not X11 specific. People just tend to have an inaccurate idea of what "client" and "server" actually mean.

    The general tendency is to think of server as being "the big machine that does all the hard work for lots of little clients", or "the machine that provides some useful function, of which clients take advantage", and of course the client as the converse of these.

    While these may often be true, the definitional difference is much simpler and clearer: the client is the system that initiates a connection. That's all. And the behaviour of X11 clients like xterm making connections to your X11 server is consistent with this.

    And to answer your actual question, yes, an X11 server and set of standard clients is both an option from the standard osx install discs, and readily available via fink. I would imagine that this guide is not about the very basics of getting the server running ("You see that thing in your applications directory that looks like a big X? Doubleclick it."), but in how it quartz-wm differs from other common window managers, how X11 interacts with Quartz if they're both running, etc.

  25. Re:Funny, I read this article earlier today by Yosho · · Score: 3, Informative

    To expand upon what canon006 said, by default the "root" account is disabled in OS X. For security reasons, it's not recommended that you enable it unless you really, really need it. If you need to run a command as root, you can type "sudo [command name]", and when it asks for a password, type in your own password, assuming your account is considered an Admin account in the system preferences.

    By the way, if you're new to OS X, I'd recommend checking out Fink. It's basically a package manager for UNIX software that is known to compile on OS X; it works somewhat like Debian's apt-get (it uses the .deb package format, even). If you're a long-time Linux user, there are probably a lot of little programs in there that you'll find useful.

    --
    Karma: Terrifying (mostly affected by atrocities you've committed)