Re: Alternative window managers for Apple X11?
Re: Alternative window managers for Apple X11?
- Subject: Re: Alternative window managers for Apple X11?
- From: Randy Ford <email@hidden>
- Date: Sat, 29 Mar 2003 11:33:33 -0600
On Friday, March 28, 2003, at 08:45 PM, Rich Morin wrote:
Option 2:
Start up the X11 server on OSX; kill the resulting window.
Start up the Terminal on OSX. In the resulting window:
"setenv DISPLAY ':0.0'"
"ssh -X <host>"
Issue X11 commands.
I'm using option 2, supplemented by a bit of local configuration
in a start-up file:
setenv DISPLAY ':0.0'
alias <host> ssh -X <host>
To streamline option 2, remove or comment out the xterm& line in your
~/.xinitrc and add the following line before the window manager:
open /Applications/Utilities/Terminal.app
That will open a Terminal instead of an xterm, and DISPLAY will already
be set. There isn't a reason to background ("&") the Terminal since it
will be backgrounded automatically by the app. There are other ways to
do this, but this is a quick and easy way.
If you don't have a ~/.xinitrc, look at the FAQ or archives for
instructions.
It's generally not a good idea to hardcode a DISPLAY: some programs
test it to see if you are running in an X window. It can also cause
problems that are time-consuming to debug. For instance, if you ssh -X
into that box from another, the DISPLAY of :0.0 will overwrite the one
set by ssh. The symptom will be that launched X programs will seem to
not show up anywhere: they are really showing up or trying to show up
on the wrong terminal. You may get connection refused errors because
you don't have authority to display on that other machine, or an X
server may not even be running there. This can waste a lot of time.
randy.
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.