A reminder on X

I know I’ll need this again, so I am making a post out of it.  If you are running a DragonFly system through NVMM using the excellent site instructions, and you want X apps to display on a local Windows workstation, you need to:

  1. Install VcXsrv (or your X server of choice) on Windows and start it up.
  2. Install xauth and xterm on the DragonFly host.
  3. On the DragonFly host, set these three options in /etc/ssh/sshd_config.  They are already there but commented out with different arguments.
    X11Forwarding yes
    X11DisplayOffset 0
    X11UseLocalhost yes
  4. Reload sshd: ‘service sshd reload’.
  5. ‘Enable X11 Forwarding’ under Connection -> SSH -> X11 in the puTTY setup dialog.

Connect to the DragonFly host with puTTY, type ‘xterm’, and a terminal window should appear on your Windows desktop within a few seconds.  This could be turned into a shortcut with puTTY to avoid having redundant terminals, but I’m not writing that out yet.