Setting up X11 on Mac

Using Terminal and X11 requires the installation of Xcode Tools. An official package from Apple can be found here.

Installing XQuartz

  1. Download XQuartz from Xquartz Project page.
  2. Locate the downloaded file in your "Downloads" directory and double click on it to open the package.
  3. Click "Continue".
  4. Follow the on-screen instructions to install the software.
  5. After the installation is complete, log out and log back in in order for changes to take effect.

After the installation is complete, you should be able to use Xquartz via the terminal and run SSH with "-X" option. If you experience any issues, the X11-UsersFAQ page has useful troubleshooting information.