Skip to content

Instantly share code, notes, and snippets.

@paralin
Created December 27, 2023 22:56
Show Gist options
  • Save paralin/5d3c04c6d54b05450cfd536c8c2bd07d to your computer and use it in GitHub Desktop.
Save paralin/5d3c04c6d54b05450cfd536c8c2bd07d to your computer and use it in GitHub Desktop.
x2x on MacOS

X2X on MacOS

It works! Sort of.

Using X2X from MacOS

  1. Install XQuartz
  2. Set up your Linux host with X11, x2x, and a SSH server.
  3. Add your host to ~/.ssh/config so you can use ssh myhost to connect.
  4. Open XQuartz. Select in the top menu: Applications -> Terminal
  5. Hold option and double-click the bottom right corner of the terminal to make it fullscreen.
  6. Make sure the Terminal is focused. Do not click on any other windows or you need to restart x2x.
  7. ssh -YC myhost x2x -north -to :0.0
  8. Move your mouse off the top of the screen and onto your other Linux host!

Known issues:

  • If you focus a different window outside XQuartz you will need to restart x2x.

Installing X2X on MacOS

  1. Install XQuartz
  2. brew install libxtst automake autoconf
  3. git clone https://github.com/dottedmag/x2x
  4. cd ./x2x
  5. bash bootstrap.sh
  6. bash configure
  7. make -j10
  8. Set up your Linux host with X11 and a SSH server.
  9. Add your host to ~/.ssh/config so you can use ssh myhost to connect.
  10. Open XQuartz. Select in the top menu: Applications -> Terminal
  11. cd ./x2x/
  12. ./x2x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment