Setting up X11 on Mac
Using Terminal and X11 requires the installation of Xcode Tools. An official package from Apple can be found here.
- Download XQuartz from Xquartz Project page.
- Locate the downloaded file in your "Downloads" directory and double click on it to open the package.
- Click "Continue".
- Follow the on-screen instructions to install the software.
- 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.