Run the following to prevent launchd from setting $DISPLAY and creating its socket.
Oct 30, 2016 It come with the Mac OS X 10.8 Mountain Lion installer. INSTEAD Apple are going to direct Mac users to download exactly what we have here: XQuartz, the source project for X11. So if you like X11, download the latest stable XQuartz and get to work with it! Web site based on a design by Kyle J. McKay for the XQuartz project. Web site content distribution services provided by CloudFlare.CloudFlare.
The XQuartz installer should automatically setup xauth for by editing ssh_config and sshd_config during its post-install script. If you are sshing to another system, be sure that remote server allows ssh forwarding. You may need to have an administrator edit that system’s sshd_config file.
Try these SSH troubleshooting steps. This list shows the expected behavior of the system.
local $ — refers to commands run on your local Mac running Leopard
remote $ — refers to commands run on a remote Unix machine, of any type
Notes:
If step 1 returns :0, localhost:0 or anything similar, you have a configuration file that is overriding launchd’s $DISPLAY.
If step 2 outputs anything, it indicates that a configuration file in your home directory may be the culprit; try creating a new user and repeating the steps with that user.
If step 3 outputs anything, it indicates that a system-wide change was made that is overriding your environment. If it begins with /opt/local, it is MacPorts; if it begins with /sw, it is Fink. Otherwise, it is probably a commercial program that uses X11; contact your vendor for an updated version.
The warning message in step 4 is harmless.
If step 5 does not output anything, then step 6’s results probably include X11Forwarding no. In this case, you must fix the configuration on the remote side.
If step 5 outputs anything other than localhost:xx.0, then your remote configuration is overriding the DISPLAY environment variable set by sshd on the remote side.
You can change the initial application launched by XQuartz.app to something else by doing the following:
So if you want nothing to run, you can accomplish this by:
If you launch XQuartz.app from the dock or run “open -a XQuartz” it will run app_to_run.
Note: For versions prior to the X11-2.1.1 package, use the following instead:
Before you start deleting anything, make sure you have a Leopard’s installation DVD available and downloaded the latest update of X11 from this site.
/Volumes/Mac OS X Install DVD/Optional Install/Optional Installs.mpkg
/Volumes/Mac OS X Install DVD/Optional Installs/Xcode Tools/Packages/
XQuartz does not replace the system X11 on Snow Leopard, so you can go back to the Apple-provided X11.app rather easily. Just launch X11.app rather than XQuartz.app to get the older server. If you want to make Apple’s X11.app the default server (owning the launchd $DISPLAY socket), then you should disable the org.macosforge.xquartz.startx.plist as described in the first question. After logging out and back in, Apple’s X11.app will be default. If you still want to remove XQuartz.app from your system, you can do that with these two steps:
By default, X11-2.3.2 inherits your bash environment. 2.3.3 and later should inherit your login shell’s environment. We do this by starting X11.app from a login shell using the script below. This should work for the most common (and some less common) shells.
If this script does not satisfy your login shell, please let us know on the xquartz-dev mailing list. You can also create a ~/.x11run script to handle your unique shell.
XQuartz is available for Tiger via MacPorts. After installing MacPorts, run this command:
This will create /Applications/MacPorts/X11.app
Do your fonts come out too small in programs like Gimp? This and related problems are especially noticeable on the MacBook Pro with high-definition screen. The problem is that older versions of X11 use a resolution setting of 75dpi (dots per inch), and even newer ones use 96dpi by default. Since X11 2.3.2rc4, you can override this default and put in a value that suits your display. For example, for the MacBook Pro, the appropriate value is 133dpi. To do this, enter the following in the Terminal, and restart X11:
You should replace 133 by some other number appropriate to your display if it is not 133dpi. How do you tell what the appropriate dpi setting is? One way (there may be simpler ones!) is to fire up Acrobat or Acrobat Reader, and look at Preferences -> Page Display, which will tell you what the System Setting for your resolution is in dpi.
If you want to run multiple X11.app servers, you can do that by just copying the X11.app bundle to another name (like X11256.app) and editing the Info.plist to change the CFBundleIdentifier to a different value (like org.x.X11.256color). This will let you launch a different X11 server with different options. The launchd DISPLAY socket will always correspond to the original X11.app. Do not change the CFBundleIdentifier of the original X11.app or you will run into problems. Your xinitrc inherits the CFBundleIdentifier as the X11_PREFS_DOMAIN environment variable, so you can use this in your xinitrc to start up differently.
1) Copy X11.app to X11Gimp.app
2) edit X11Gimp.app/Contents/Info.plist and change the CFBundleIdentifier from “org.x.X11” to “org.x.X11.gimp”
3) Create a xinitrc.d script to handle starting gimp:
4) Make that script executable:
Note: If you are a standard user and don’t have administrative privileges, you can put X11Gimp.app in ~/Applications and use ~/.xinitrc.d/95-gimp.sh instead.
Apple created the XQuartz project as a community effort to further develop and support X11 on Mac. The XQuartz project was originally based on the version of X11 included in Mac OS X v10.5. There have since been multiple releases of XQuartz with fixes, support for new features, and additional refinements to the X11 experience. Apple is a contributor to the XQuartz project and has worked to ensure that X11 works as expected with macOS and latest available versions of XQuartz.
X11 server and client libraries for macOS are available from the XQuartz project at www.xquartz.org. Download the latest version available.