Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to use Cygwin X server for local and remote

📅 2018-Mar-31 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ cygwinx, ssh, startx, startxwin, x server ⬩ 📚 Archive

Cygwin not only provides most of the Linux programs and shells, it also comes with a builtin X server called Cygwin/X. This is great if you want to run Cygwin GUI applications locally or over SSH from a remote computer.

Install Cygwin/X

Use Cygwin/X for local apps

$ export DISPLAY=:0.0

Use Cygwin/X for remote apps

$ echo $DISPLAY
localhost:11.0

If DISPLAY is empty, then either you did not set DISPLAY locally, did not cleanly restarted a X server locally or there was a problem with SSH X11 Forwarding. Please diagnose.

Tried with: Cygwin 2.10.0 and Windows 10


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧