Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Run Aqua apps from X11 after booting in console mode UNIX
If you log in to Darwin with >console, and then navigate your way to the executable X11 inside the X11 package in /Applications -> Utilities, you'll find that you can run it.

From the xterm, you can then run many normal Aqua applications. For example, I'm typing this into Safari right now this way. The dock isn't running, and neither is the Finder. This is sheer weirdness, and it no doubt stems from being able to run X11 1.0 as a root window. From top, I see that I'm running quartz-wm, Xquartz, X11, and a few other things.
    •    
  • Currently 2.33 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[8,861 views]  

Run Aqua apps from X11 after booting in console mode | 11 comments | Create New Account
Click here to return to the 'Run Aqua apps from X11 after booting in console mode' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Run Aqua apps from X11 after booting in console mode
Authored by: Graff on Nov 10, '03 11:41:48AM

How did you get this to work? I did exactly as you said and ran the X11 executable with the command:
/Applications/Utilities/X11.app/Contents/MacOS/X11

I got a graphical environment, but it was only a blue screen and an arrow cursor that I could move around. Nothing else. I couldn't even quit out of the environment to try again (I tried control-x, control-z, etc.)

Is there some special way you need to launch the X11 executable so that you retain a command line, such as:
/Applications/Utilities/X11.app/Contents/MacOS/X11 &

Am I missing something else?

Not only that but many of my commands were skipping around the screen in the command-line environment. I would do a ls and it would hop to 1/2 way up the screen to do the listing. I would do a man and it would overwrite itself. Very odd, should I have some special kind of terminal set for that environment? I currently have my TERM environment variable set to xterm-color.



[ Reply to This | # ]
Run Aqua apps from X11 after booting in console mode
Authored by: zoldar256 on Nov 10, '03 12:14:12PM

Depends on your xinitrc. Check to see that in /etc/X11/xinit/xinitrc you run other apps after X11 is opened. The default is to run xterm before the window manager.



[ Reply to This | # ]
disable fast user switching
Authored by: matx666 on Nov 10, '03 12:36:34PM

one more thing.

to log into console, disable fast user switching



[ Reply to This | # ]
What about from a remote machine?
Authored by: tuatara on Nov 11, '03 07:13:43PM

I don't have two networked Macs to try this, but it seems to me this method should work to allow X forwarding. I'd love to be able to run a user gui session on a remote box.

I'll try this at home tonight connecting to my Mac from a Linux machine, although I'm sure that won't work. But could you connect from another Mac? Somebody keen to try?

(You'll need to allow X connections, and probably enable ssh forwarding. connect with ssh -X ... there are probably instructions on this site somewhere, but I don't have time to look right now.)

My suspicion is this is the groundwork for a feature not quite ready for prime time... NeXT used to have a network window server. I'm intrigued!



[ Reply to This | # ]
Run Aqua apps from X11 after booting in console mode
Authored by: microsquire on Nov 10, '03 02:07:12PM

It is only working for me when I dump to console and log in as root.

some other interesting bits:
* cut&paste no longer work...
* WindowServer is running. (Thus Aqua/Quartz apps can launch...)
* Fonts look different too me.



[ Reply to This | # ]
Run Aqua apps from X11 after booting in console mode
Authored by: microsquire on Nov 10, '03 02:18:11PM

one other thing

I ran xbench twice.

ran, rebooted into console... ran again

both times my score was 10 points lower than it is normally.

So anyone looking for a speedboost, this isn't the way. What this mode would be good for is someone who truly hates the finder/dock and would rather use a replacement app all the way. (one that has a clipboard at that).



[ Reply to This | # ]
Run Aqua apps from X11 after booting in console mode
Authored by: amutti on Nov 10, '03 06:44:44PM

Anyway to get this to work from single user mode?



[ Reply to This | # ]
Run Aqua apps from X11 after booting in console mode
Authored by: amutti on Nov 10, '03 09:03:53PM

What's really bizarre is loading the finder, then the dock, etc. Without the dock running, the finder is pretty much useless. I was actually able to load enough stuff to re-enable fast user switching and change users to shutdown.

This is a really neat hint. Not sure how practical? I'm going to try some Final Cut pro (yes it runs) stuff later in the "X11-mode" and see it it is any faster. Maybe I'll be really risky and try DVD-Studio???

I ran XBench a few times with no increase or decrease in overall score (+/- 2 points consistently).

Any idea what to load to log out?

Great hint!!!



[ Reply to This | # ]
Run Aqua apps from X11 after booting in console mode
Authored by: TazuMeen on Nov 11, '03 10:56:35AM

When dropping to '>console' on 10.3.1 all I get is a blue screen with a mouse pointer, no console, no login dialog, just any empty blue screen. WTF? I ssh'd in from another box and killed all the ARD stuff but still just a blue screen. Tested on a virgin install of Panther and I get the same thing.

Anyone have any ideas?



[ Reply to This | # ]
Run Aqua apps from X11 after booting in console mode
Authored by: amutti on Nov 11, '03 09:18:38PM

I used 'sudo open X11.app' and it worked fine.



[ Reply to This | # ]
Run Aqua apps from X11 after booting in console mode
Authored by: danieleprocida on Nov 12, '03 07:04:02PM
I fail to see what the above-described experience has to do with X11. Try this:

1. Log out, so that there are no users logged in
2. At the Login prompt, type >console for the user name and press return
3. You'll have a console shell up; login as root (if you don't do this as root you'll end up with an unusable blue screen).
4. type cd /Applications/utilities
5. type open Terminal.app
6. The Terminal will open. Now in the terminal you can open any applications you choose, including Finder.app, Dock.app and so on, from /System/Library/CoreServices/ until bit by bit you have what mostly resembles a normal Mac interface.
7. So far, the only away I've discovered to get out of this and back to normal is to issue a reboot command in the terminal as root.

So it's interesting, but I don't see what it has to do with X11. (It's not going to get anyone any closer to remote access to Aqua applications, which is what I hoped this might be leading towards.)

Daniele

[ Reply to This | # ]