Making Mac OS X Work Like X Windows? 110
X Fiend asks: "Is it possible to configure Mac OS X's window manager to run in a client-server mode like X Windows? I'd like to use my (rather anemic) iBook as an X Terminal, with apps running on my (manly dual-processor) desktop machine, but I don't want to have to use X Windows to do it- I want to use Mac OS X's native window manager. Any ideas?"
OboroOSX (Score:1, Offtopic)
Re:OboroOSX (Score:2)
Re:OboroOSX (Score:1, Insightful)
Re:OboroOSX (Score:1)
sudo su -
open
You should see...
"
kCGErrorIllegalArgument : initCGDisplayState: cannot map display interlocks.
kCGErrorIllegalArgument : CGSNewConnection cannot get connection port
INIT_Processeses(), could not establish the default connection to the WindowServer.Abort
"
I'm not saying this means it works... But it does kind of get me thinking. I just wanted to see if you could post some reference proving that the windowserver can't do it.
Re:OboroOSX (Score:1)
I would recommend its use for anyone at all a novice to X on OS X.
do NOT use Tenon Xtools (Score:2)
Even if the price weren't a ripoff, you don't want it anyway: the current release has a substantial number of showstopper bugs, and they have yet to update to the XFree 4.2.0 codebase. The last update to Xtools was in December of 2001, and they appear to have completely abandoned the product since then. (The support boards on tenon.com are a rather unhappy place as a result; I wouldn't be surprised to see a class-action suit arise out of this.)
More on Xtools (Score:2)
not what he was asking (Score:1)
Fact is the GUI isn't as UNIX like that I'd hope. Don't get me wrong, I love the interface and the GUI (despite a few small bugs) looks great. However, I think features similar to X, such as launching remote programs (either other mac programs or other X-Windows programs) would be great. One thing I love about linux is being able to type ssh -X host and be able to launch those programs on my X server.
-Chris
Not possible (Score:4, Informative)
Re:Not possible (Score:1)
Re:Not possible (Score:2, Informative)
For those who are unaware, Haxial uses their own, incredibly ugly GUI for all their applications, with no way to get the native GUI elements. There's some explanation for this on their webpage, but it's poor and I honestly don't feel like finding it!
dalamcd
Re:Not possible (Score:1)
dalamcd
OSX VNC without a physcial screen (Score:2)
I find this surprising because ordinary X windows VNC servers can use virtual screens. I'm sure there must be some way of creating a virutal screen for the macs too because you can buy KVM switches that use the USB port rather than the Graphics adapter for the video display. Also I have found that if I plug a screen in to the graphics card, launch osxvnc and then unplug the screen that OSX VNC functions fine until the next reboot.
Does anyone know how to permenantly fool or otherwise use aqua VNC on a mac without a graphics card attached. I contacted the folks maintaining OSX VNC and they would like to know of a solution too.
in a large rack is sure would be nice not to have to attatch any keyboards or screens yet still have access to the aqua desktop on each machine.
Re:OSX VNC without a physcial screen (Score:2)
Yawn. Here ya go: (Score:2, Informative)
This is one of the most useless
Go to www.apple.com. Hit the Search field. Type in "Apple Remote Desktop".
'nuff said.
Dude, its not karma-whoring
Re:Yawn. Here ya go: (Score:5, Insightful)
Apple Remote Desktop is a VNC or Timbuktu-like program, which pushes the (compressed) bitmap of a desktop to the client machine. While it can work for the situation the questioner asked about, it
(a) is not a truely native solution, in which the API calls are transmitted rather than the bitmap of the screen, and
(b) is geared towards education, where it can be used by a teacher to show a demonstration on a set of student computers.
It also costs $300.
NeXT's Display Postscript had the ability to run remotely, like X, but those hooks were abandoned when Apple converted the display model to Quartz/Display PDF.
Re:Yawn. Here ya go: (Score:4, Insightful)
As for my points:
(a) Yes. Apple Remote Desktop is a bitmap-pusher, like VNC or Timbuktu. It does *not* hook into Quartz in the same manner that remote X hooks into X, or that RDP hooks into Window's GDI.
(b) Read about the product. It's not a protocol for sharing apps across different computers, although it could work that way. As I (admittedly awkwardly) said, it emphasizes a scenario in which a teacher has a program running on his or her computer, and that teacher's screen is "pushed" onto a bunch of student computers, so they can watch the teacher's demo.
And I'll elevate the price issue to
(c) it costs $300.
So while the poster may appreciate your link, Apple Remote Desktop is not a direct answer to his question, any more than a link to VNC or Timbuktu would be.
There remains a real issue here of the non-remoteness of the Quartz APIs, an issue that Apple really should try to deal with. Many, many people want them to re-implement this, after it was lost from NeXT.
(By the way, if you have an old copy of OS X Server 1.2 around, you CAN do remote display on that platform, since it still used Display Postscript instead of Aqua)
Re:Yawn. Here ya go: (Score:2, Informative)
I was under the impression - admittedly a glib one - that it's possible to send remote Aqua events using Applescript over any of the network layers.
I also was under the impression - mistakenly, since you've said ARD is a bitmap pusher - that ARD used this capability to reduce network clutter.
I still don't agree with you that the fact that ARD is meant for teachers makes this unusable. That makes no sense whatsoever. I've used ARD, and I'm certainly no teacher.
X was meant for rocket scientists, but that doesn't stop the kiddies from using it.
The bitmap issue, of course, is key. VNC wins, hands-down - since ARD ain't free.
If it came down to it, though, ARD will still get the job done - and may have the added advantage that with a fast network connection, ARD may one day be able to do such things as play Quicktime movies (albeit buffered) seamlessly
Also, isn't ARD included with all 10.2 Server packages now?
Re:Yawn. Here ya go: (Score:2)
Not being a teacher certainly doesn't make ARD off-limits to you, as I mentioned below, it is great for managing apps and interacting with a single machine from a single terminal if you do not have to do it for very long as a time. But it kills productivity and is not very fun to work on for a period of more than a few minutes.
But a good point was made in that ARD IS good for teachers. I worked as a sysadmin for a school that was going to OS X, and we installed ARD for teacher use in demos, etc. And yes, others can use it, but for the purposes the poster was getting at, I think he wants the full X functionality.
Re:Yawn. Here ya go: (Score:4, Informative)
It may be, but not for ARD.
I also was under the impression - mistakenly, since you've said ARD is a bitmap pusher - that ARD used this capability to reduce network clutter.
If only. It's a bitmap pusher, that's all.
The bitmap issue, of course, is key. VNC wins, hands-down - since ARD ain't free.
VNC is also MUCH more reliable and can easily be invoked (and shut down) from a remote shell.
If it came down to it, though, ARD will still get the job done - and may have the added advantage that with a fast network connection, ARD may one day be able to do such things as play Quicktime movies (albeit buffered) seamlessly
ARD is not suitable as an X replacement. For starters it only supports one client connection at a time. Secondly it freezes - often. No good having a remote admin tool if it doesnt work. Thirdly it's bandwidth intensive, as it's a bitmap pusher. Admittedly bandwidth is becoming less of an issue however the less you need to push around the faster you can do it.
Also, isn't ARD included with all 10.2 Server packages now?
No it isn't, but it should be.
ARD is a screen controller, nothing more. There is also the security aspect - if you are controlling a machine remotely, anyone who is physically able to can see what you are doing and take over at any time. For example - someone sees you log in as the admin, or perhaps root then unplugs the network cable to tinker with the box. This would not be possible with correctly configured X.
X remoteness (Score:2)
And, frusteratingly, I hear calls for X to do the same. An irritating but vocal minority keeps yelling that X is bloated (it's not, and RAM usage requirements are because of server-side pixmap storage), slow (it's not, and if you wanted it to it could buffer all client windows to get "smooth dragging" if you wanted to blow huge quantities of RAM like Quartz does), and complicated (because they aren't using the straightforward, reliable front ends to set it up). A lot of this gets blamed on the remote capabilities of X, and I keep hearing calls for a windowing system using a local framebuffer. Ick.
It's good to see that some people *took* this step and regretted it. I would hope that X users can *learn* from this.
Re:Yawn. Here ya go: (Score:5, Informative)
Point b) is also very valid because it details what the intended purpose of different technologies is. Whereas X allows you to load JUST an application, such as eterm, on the remote machine, ARD forces the entire server screen buffer to be loaded...in its own window (blech!). X also lets you log into the server as any user and run programs, regardless of which user is currently logged into the GUI. ARD forces you to use the current user, and takes the machine over.
mithras was right in his analysis of the technology. ARD is to be used in labs, large deployments, etc to manage multiple machines (install files, mass reboot, system status, monitoring, etc), but is hardly a client-server ideal setup like X.
I had heard somewhere that rumors persist of the hooks still existing in OS X, but the APIs are secret. That's not fact though. I WISH Apple would produce a system like that, but I fear they will not. It might also be possible that because of how Display PDF works (creating a PDF for each screen element, then compositing them together), it is not possible to merely send the screen draw APIs. Maybe?
But if you're like me, and you WANT this capability, Tell Apple! [apple.com]
Re:Yawn. Here ya go: (Score:2)
That's gotta suck based just on the Mac OS X pixmaps. People I know that use VNC regularly use a solid color background, solid color widgets, solid color titlebars to keep things light and usable...all that glitzy translucency and racing strips across everything wreak havoc on attempts to do an efficient pixel-pushing system.
Re:Yawn. Here ya go: (Score:4, Funny)
The fun comes in watching every karma-whore wax technical about different characteristics of the underlying technology that make it easy / difficult to implement feature X on system Y, while missing the original point entirely. Just part of the fun of reading
Here you go! (Score:3, Interesting)
If OS X is gonna whore the name around, they should do so with style rather than beauty.
To the original author, just do what I did and install Linux on your iBook. If necessary you can run MoL [maconlinux.org] on your dual processing G4 and run it remotely on your iBook. I use MoL for programs such as Bryce and Flash MX with no trouble to speak of. Configuring networking will be a bitch, I warn you.
Whoa there! (Score:1)
Dan Aris
Re:Yawn. Here ya go: (Score:2, Informative)
Remote Desktop Connection Client for Mac OS X [microsoft.com]
Think of how productive you can be with local OSX Apps, remote OSX Apps, local windows Apps via Virtual PC, remote Windows Apps via WRD, local X11 apps on XDarwin, remote X11 Apps also with XDarwin and a VNC client for your Apple Newton's VNC Server. All on the same desktop.
Re:Yawn. Here ya go: (Score:1)
There are those who ask questions, and there are those insecure wannabe peons who delight in berating those who dare show any signs of ignorance.
In theory... (Score:5, Interesting)
In theory, you can intercept messages between two ports and run them through arbitrary filters.
Since the window server process is nothing but another port to Mach, you *should* be able to catch everything going to it, send it over the network and have it appear on another Window Server on another machine.
In practice there would be a lot of details to take care of like configuration and non-display. But the nature of Mach is that any IPC can be generalized to take place over any kind of network connection.
Re:In theory... (Score:1)
Re:In theory... (Score:3, Informative)
You are correct about the design of Mach being such that it can operate on a network transparently. The caveat is you need all the appropriate pieces to do so.
Sloppy Focus (Score:1, Interesting)
Re:Sloppy Focus (Score:2, Interesting)
Sloppy focus can be nice for pro users, but its terribly confusing for novices, and it goes against Apple's beliefs.
Re:Sloppy Focus (Score:3, Informative)
That way, it's not something Joe Average can enable by accident, but those who want it can get it.
Mark
Re:Sloppy Focus (Score:1)
Re:Sloppy Focus (Score:3, Informative)
There is a very good reason for not supporting sloppy focus in OS X. Think about it for a moment... How in the world would you get to the menu bar for an application without that app losing focus? It wouldn't be possible - whatever app you mouse across on the way to the menubar would gain focus, and you'd get the menubar for a different app. The only way to have sloppy focus be even remotely usable would be to add yet another interface hack to allow you to get at the menubar, such as a hotkey which locked the focus to your current window. Sounds kinda yucky to me, frankly...
Re:Sloppy Focus (Score:2)
You'd do it the same way you'd access submenu's sloppily (try it, you don't need to go into a submenu exactly where it touches the real menu, you can slide it over the desktop). You track where the cursor is going. If it's heading torwards the menu bar at a fairly high rate of speed then don't switch focus.
Re:Sloppy Focus (Score:1)
The easy way is to wait for a significant pause in mouse movement. If the mouse stops moving over a window for more than a moment if becomes selected. The threshold time would be user definable in the same way that the double click threshold is.
There used to be an old Mac OS 9 extension that allowed auto focusing called Mac Sloop which I have long since lost track of. Shame it never made it to Mac OS X.
Auto-focusing is great in use with a graphics tablet.
Re:Sloppy Focus (Score:2)
It could be an option. The option to swap the left control and capslock keys on USB keyboards [macosxhints.com] is supported and that particular option tends to annoy the hell out of everybody except for old school Unix folk and people who use emacs. They could simply make it an option like caps/control swap that nobody would ever run across unless they were specifically looking for it.
Re:Sloppy Focus (Score:4, Informative)
try it you won't be dissapointed.
Re:Sloppy Focus (Score:2)
Re:Sloppy Focus (Score:1)
It also addressed all my other concerns with the earlier version of the software, and happens to include a very good focus-follows-mouse implementation.
While it's not an answer to the remote-display problem, I think that this tool takes care of just about everything else anyone could miss from X11 window managers. I cannot recommend it highly enough.
Re:Sloppy Focus (Score:2)
Also, IIRC it was written (or this could be a very similar utility, hard to remember...could be what I'm confusing it with) by the author of one of the Mac's few malicious viruses. As a sort of atonement, he wrote a few pieces of very nice software, which he then released for free. Kind of cool.
Of course, this was years and years ago, and VT appears to be $20, so...
That being said, I agree with the endorsement. Once you've experienced it, using a system without multiple viewports is incredibly painful. It's a tremendously attractive feature. I cannot imagine how people get by on vanilla Windows (BTW, there's a fairly good page for Windows called JS Pager).
Re:Sloppy Focus (Score:1)
try VNC (Score:4, Informative)
http://www.redstonesoftware.com/osxvnc/ [redstonesoftware.com]
Other VNC servers and clients can be found at:
www.realvnc.com [realvnc.com]
It works, but you'd better be running a 100Mbps LAN with plenty of horsepower on both ends of the connection. OS X is a lotta GUI to be managing remotely.
Re:try VNC (Score:3, Informative)
Certainly not usable for primary work over such a slow connection. When I'm local, it's decent under the 11Mbps of 802.11b. But I have to agree, to be usable on a regular basis, 100Mbps minimum is needed. I can't wait for Gigabit switches to come down in price so we can really use the power of the network adapters in our Macs.
-Alex
Re:try VNC (Score:2)
What about multiple desktops? (Score:1)
Does anything like this exist for OS X? I know there is a notion of a "Console user" in OS X (e.g. default user id for mounting disks) which might hinder this ... any tips?
Re:What about multiple desktops? (Score:1, Offtopic)
type the other user password then you are now login with that user accont.
And you can run apps as that user.
Re:What about multiple desktops? (Score:1)
the tools aren't all GUIfied in the non-Server versions of OS X however.
coming soon to a aqua screen near you? (Score:4, Informative)
but to answer your question, there is NO way to do what you want short of taking over the desktop machine's screen. (or buying a new faster *book...)
Re:coming soon to a aqua screen near you? (Score:2)
Spike has been Spike since before I met him in 1990. You were nine at the time.
You, sir, are an impostor. Hopefully a happy, hungover impostor (happy belated birthday!), but an impostor nonetheless.
"I served with Spike. I know Spike. Spike is a friend of mine. MyDixieWrecked, you're no Spike."
Re:coming soon to a aqua screen near you? (Score:1)
I've been spike since about september 1981, so it's perfectly possible that I was spike before this Spike that you speak of.
Unfortunatly, I was not hungover. I had work the next day. I had many drinks, drank a lot of water, drank a lot of coffee in the AM. Now I just have to go to AC and gamble and win millions of dollars and take over the world.
Re:coming soon to a aqua screen near you? (Score:2)
Good luck with your gambling. I like to see somebody with a plan... :-)
NextSTEP and Rhapsody NSHosting (Score:3, Informative)
This was supported by the windowing system, then based on Display Postscript. If my memory serves me well, you could even display an application running on different OSs as long as you had OpenStep installed locally.
Moving to Quartz, this wonderful feature unfortunately didn't make it...
Some say some of the hooks are there for a third party to implement it (CGRemoteOperation.h).
Re:NextSTEP and Rhapsody NSHosting (Score:3, Informative)
I once saw this (the legacy hooks in Quartz) documented in detail on a GnuStep mailing list, but I can't google it and their archive does not seem to be searchable.
My Apple tech reps don't want to discuss it, or anything else interesting for that matter. I did find a mention of it on Ars Technica [arstechnica.com] and Planet PDF [216.239.37.100].
Re:NextSTEP and Rhapsody NSHosting (Score:1)
The killer app for multiple user log-in (Score:3, Insightful)
The PPC 970 seems to be much more multi-processor friendly from what's been released so far. Creating a 8, 16, or 32 way house server in partnership with housing construction firms would make a compelling business proposition because you would have a relatively secure system with low virus potential and you could fold the $10k-$15k cost of such a system into that venerable institution, the home mortgage. Talk about a digital lifestyle, upscale developments created with such home servers as stock features would actually fit into Apple's business plan, be very profitable while expanding the Mac user base, and would provide a compelling need to be able to run multiple graphical user sessions.
It's such a compelling solution that you might even get Steve Jobs to sign a clone license for such a beastie if Apple didn't want to pursue such a system itself.
Next version of OS X? (Score:3, Interesting)
See macosrumors.com [macosrumors.com]
Re:Next version of OS X? (Score:2)
Would be nice if they were right for once though... dare to dream!
Write to Apple to reput in NXHost (Score:1)
I would but I don't have OS X to run.
Re:Write to Apple to reput in NXHost (Score:2, Interesting)
This is what turns up for me (note that most of these are duplicates, since the Frameworks folder has symlinks all over the place):
[mithras@localhost: data] grep -r NXHostBinary file
Binary file
Binary file
Binary file
Binary file
So it seems bits and pieces of the old architecture are there, but are probably rotting away from disuse. I hope we can convince Apple to revive this effort.
Re:Write to Apple to reput in NXHost (Score:2)
There is nothing to revive. NSHost was based on piping postscript commands. Quartz is a different animal.
RIP
Mac On Linux (Score:1)
It's designed to give you a remote virtual desktop for an instance of the OS. It is more like LTSP for Mac than it is like VNC.
Of course, it is not simply another Mac app, and would involve wiping the machine and starting over, so it's not for the faint-of-heart...
yowza (Score:1, Troll)
It's X. Or X11. X-Windows is something you might tell newbies, but it's not an official name, and slashdot really does know better. Ah but I forgot: slashdot's editors don't.
Re:yowza, You are wrong! (Score:1)
"I nearly pissed myself when I read the title the first time as "Making Mac OS X Work Like Windows?""
The title clearly says "Making Mac OS X work like X -windows." Check it again and I hope you do piss yourslef!
It's X Window System (Score:1)
What the fuck... (Score:1)
Re:What the fuck... (Score:1)
Re:What the fuck... (Score:2)
Re:What the fuck... (Score:1)
Re:What the fuck... (Score:2)
Re:What the fuck... (Score:1)
(my apologies for sounding trite, I just woke up)
Re:What the fuck... (Score:2)
yeah, you're probably right. i was trying to be funny actually, but i think it's safe to say that that didn't work out. thanks for the effort anyway, at least you posted a followup. the only other feedback i got was a (-1) overrated moderation...
X-client for Mac OSX (Score:2, Informative)
Wouldn't Apple would be reinventing this if they were to develop their own graphical remote user interface?
If so, this would not seem to be as useful as X11, which would allow logins from diverse X servers rather than Macs only.
Re:X-client for Mac OSX (Score:1)
Re:X-client for Mac OSX (Score:1)
Re:X-client for Mac OSX (Score:2)
Re:X-client for Mac OSX (Score:1)
Thanks, Tom
The problem is more than just Aqua/Quartz (Score:1)
In addition,Aqua would have to be changed to understand how to lock USB and FireWire resources so that remote and console users don't crash into each other.
In my opinion, however, the biggest issue that would kill having an X-style remote GUI is philosophical: nearly all of the software vendors and general Mac users assume that the console user is the only user and having the ability to have multiple GUI logins would really confuse the heck out of them.
Re:The problem is more than just Aqua/Quartz (Score:1)
This has all been worked out already for other Unix boxes that use X11 to get remote displays of their programs.
Re:The problem is more than just Aqua/Quartz (Score:1)
Re:The problem is more than just Aqua/Quartz (Score:1)
I agree with tomem, there aren't any logistical problems here, and it'll just be a matter of time before it's implemented.
-judas
Tricks (Score:5, Insightful)
Why do I write this? This simply illustrates that Apple has done quite a lot in order to hide the window manager, and a lot of other functionality, in the normal view and it is very possible that there are indeed hidden hooks in the window manager to get it to work over a network, such as the ability to create a seperate window from another machine, not just pushing bitmaps around. The technology is certainly there, with Remote Objects in Cocoa. I also don't think it has that much to do with Quartz, as quartz is simply the drawing system and the window manager is the system that actually manages all created windows. Quartz simply composits and draws them. The fact that 10.1 had the hack of enabling one to enable window buffer compression lends some support to this theory. In theory one would simply have to know whether the window manager could send and receive window objects across the network, or if window objects were confined to the local machine.
Re:Tricks (Score:2)
I tried something similar, but had problems exiting cleanly. For some reason, even SSHing in and killing the WindowServer wouldn't drop back from the 'blue screen' to the console. Killing the tty eventually worked, kicking back to the loginwindow.
Also, I could only get this to work as root, but not as a normal user...
Anyhow I'd love to see what your script is!
Re:Tricks (Score:2)
It seems it can only work as the root user. Perhaps windowServer is picky on who starts it? I used to be able to quit the windowServer and terminal with a script to drop back into the console, but I think one of Apple's upgrades has stopped this. This is a real hack with the only benefit being that one can save oneself the resources needed by the finder. If one needs almost the whole machine for a single piece of software, such as Photoshop, this can help a bit in terms of resources. Apart from that, it is mainly interesting to see that the WindowServer could theoretically have hooks for other finders or functions, I think.
Re:Tricks (Score:1)
Actually, I just did a ps ajx, and it looks like the Dock has been using about 7 times as much processor time as the Finder on my iBook.
Code Tek Virtual Desktop Version 2.0 (Score:2)
AND IT HAS Focus Follows Mouse!
My life is complete
Check it out here [codetek.com]
Re:tsarkon reports homos is a fucking fag (Score:1)
Just curious.
Re:Vectors... (Score:2)
In fact very little of what you see are paths.
Quartz isn't 'lightweight'. In fact it uses oodles of RAM.