Як видалити xquartz з mac

Як видалити xquartz з mac

Run the following to prevent launchd from setting $ DISPLAY and creating its socket.

ssh X forwarding debugging

You can forward X11 over an SSH connection by using either ‘ssh -X’ or ‘ssh -Y’. Since ‘ssh -X’ provides tighter security, it is preferred over ‘ssh -Y’; see the SSH manual.

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.

The XQuartz installer should automatically point SSH to the correct location of xauth by editing ssh_config and sshd_config during its post-install script. Unfortunately, these two files are often overwritten during a macOS update, and the specific SSH settings that XQuartz needs are then lost. When that happens, X11 forwarding over SSH will suddenly fail with one of the following error messages:

ssh -X: «Warning: untrusted X11 forwarding setup failed: xauth key data not generated.»Ssh -Y:» Warning: No xauth data; using fake authentication data for X11 forwarding.»

This problem can be fixed as follows.

  1. Start XQuartz, go to Preferences with «Cmd-,» and go to the Security tab. Enable the first option: «Authenticate connections».
  2. Edit or create the file «

/.ssh / config «on the Mac and add these three lines:

In general, you can try these SSH troubleshooting steps. This list shows the expected behavior of the system.

local $ — refers to commands run on your local Mac

remote $ — refers to commands run on a remote Unix machine, of any type

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.

Step 4 should not return any error or warning messages. If you get any messages about ‘xauth’: see above. If you get any other messages: use ‘ssh -vvv -X remote’ to obtain more information.

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.

Suppressing xterm launching by default

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 2.8.0, use the org.macosforge.xquartz.X11 preference domain instead. For versions propr to 2.1.1, use the org.x.X11_launcher domain.

Uninstall (XQuartz 2.8 and later)

To uninstall XQuartz 2.8 and later, execute the following in Terminal:

Uninstall (XQuartz 2.7.x and earlier)

To uninstall XQuartz 2.7.x and earlier, execute the following in Terminal:

Switching DISPLAY on Snow Leopard

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.

Messed it up, got confused, want to start over? (Leopard)

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.

  • Delete pretty much all X11 from you system, and let it forget its receipts
  • If you want Apple’s X11
  • Install X11User.pkg from Leopard’s installation DVD, which is in / Volumes / Mac OS X Install DVD / Optional Install / Optional Installs.mpkg
  • Install X11SDK.pkg from Leopard’s installation DVD, which is in / Volumes / Mac OS X Install DVD / Optional Installs / Xcode Tools / Packages /
  • Install the OS X 10.5.8 Combo Update (make sure you get the «Combo Update» and not the «Update»)
  • Install the latest X11 package release.

How can my launched applications inherit my tcsh environment? (Old)

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.

Will XQuartz be released for Tiger?

XQuartz is available for Tiger via MacPorts. After installing MacPorts, run this command:

This will create / Applications / MacPorts / X11.app

Default resolution too low? Fonts too small?

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.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *