XQuartz installation on macOS

Image credit: Daniel Romero on Unsplash

Table of Contents

Motivation

Due to the novel coronavirus (SARS-CoV-2) and its related disease 😷 COVID-19 employees and students at Wageningen University & Research are all working from home. Students taking Statistical Courses taught by Mathematical and Statistical Methods at Wageningen University & Research will most likely use R. Students enrolled in MAT-15303 Statistics 1 and MAT-15403 Statistics 2 will use R Commander instead of basic R. Therefore, they will need to install R Commander.

R Commmander has been programmed in Tcl (Tool Command Language) and uses Tk as a graphical user interface toolkit. To be able to use R Commander correctly on macOS, software needs to installed that enables the use of Tcl/Tk. XQuartz is the only software on macOS, which enables the operating system to use Tcl/Tk.

This post will show how to install XQuartz on a desktop or laptop computer running macOS as operating system.

In the text some symbol combinations are used for shortcuts, the following table explains the meaning of these symbols in relation to specific keys on your keyboard. To use the shortcuts press the keyboard keys simultaneously, e.g. ⇧⌘A means ⇧+⌘+A.

Icon Keyboard Meaning Icon Keyboard Meaning
command caps lock
option (or alt) carriage return (return/enter)
control delete/backspace
fn function forward delete (fn + ⌫)
shift (either left or right) escape

Download

At the time this post was written the latest release of XQuartz is version 2.7.11. It will work on Mac OS X Snow Leopard (version 10.6.3) or later, up to and including macOS Catalina (version 10.15.x).

Download XQuartz using the following link: XQuartz v2.7.11 (ca. 75.9 MB)

XQuartz Installation

To install XQuartz on macOS perform the following steps:

  1. Open the downloaded XQuartz disk image. This file will most likely reside in Finder > Downloads (shortcut: ⌥⌘L). The file can more easily be found by switching into List view (shortcut: ⌘2). To switch to Icon view use the shortcut: ⌘1. The XQuartz disk image will look like the image displayed below. XQuartz disk images icon.
  2. Opening the XQuartz disk image will cause a window labeled ‘XQuartz-2.7.11’ to appear containing a XQuartz installer package. This package looks like the image shown below. Double click the XQuartz installer package to open the installer. XQuartz installer package icon.
  3. The installer for XQuartz will appear, showing the Introduction as displayed below. Click the ‘Continue’ button to proceed. XQuartz installer introduction.
  4. Next the Read Me will appear as shown below. Click the ‘Continue’ button to proceed. XQuartz installer read me.
  5. Right after the Read Me a Software Licence Agreement will appear. By clicking the ‘Continue’ button you will be asked to agree with this software licence agreement as diplayed below. Click on ‘Agree’ to proceed. XQuartz installer License agreement.
  6. The installer will select the best destination to install the software for you and will display the Installation Type as shown below. Click on the ‘Install’ button to start the software installation. XQuartz installer installation type.
  7. Before the software installation will commence, confirmation of the user is requested as displayed below. Either use the finger print scanner on the touch bar of your mac or confirm using the password of your mac. Confirm XQuartz software installation.
  8. Most likely a security request will pop up from your operating system, requesting access to control system events as shown below. Click on the on the ‘OK’ button to grant access. Installer access request
  9. Now you will be warned that to make XQuartz your default X11 server, as shown below, you will need to log out and again log into your system. Click on the on the ‘OK’ button to continue. XQuartz log out warning.
  10. The software installer will start installing XQuartz onto your mac. When completed the installer will show a summary stating, that the installation was successful as shown in the image below. Click on the ‘Close’ button. XQuartz successful installation.
  11. The installer will finally ask you, whether you want to keep or move the XQuartz installer package to the trashbin. Click ‘Move to Bin’ to discard the installer package and simultaneously close the XQuartz disk image. Actually the XQuartz disk image will be put into the trashbin!
Congratulations, 😆, you now have XQuartz installed on your mac!
As mentioned in step 9. you have to make XQuartz your default X11 server by logging out and again logging in on your mac. Do this by navigating your mouse pointer to the menu bar, click on and select ‘Log Out <username>…’. Here <username> will display the name you selected, while setting up your mac for the first time. Log back in and XQuartz will now be your default X11 server.
Maikel Verouden, Ph.D.
Maikel Verouden, Ph.D.
Researcher | Lecturer | IT contact person

My research interests include Statistics, Teaching and programmable matter (statistical software).

Related