Saturday, 15 February 2020

XMinG for Local Use and XMinG for X11 Forwarding

Windows 10 has WSL (Windows Subsystem Linux) and it launches a terminal by default. Here's how to run Linux GUI apps from that terminal:
  • On Windows, install XMinG
  • In terminal:
    • Open ~/.bashrc
    • Add a line: 
      • export DISPLAY=0.0
    • Run: 
      • source ~/.bashrc
    • Test: 
      • sudo yum install xclock -y && xclock
VNC is boring with all remote apps shown in a virtual display rectangle, here's how to use X11 Forwarding to open remote apps in separate windows:
  • Install and test XMinG as above.
  • Enable X11 Forwarding on server:
    • ssh someserver
    • sudo micro /etc/ssh/sshd_config
    • Find and set these:
      • X11UseLocalhost no
      • X11Forwarding yes
    • sudo systemctl restart sshd
    • sudo yum install xauth -y
    • logout
  • Run test:
    • ssh -Xv someserver
    • It says: ".Xauthority does not exist", run again:
    • ssh -Xv someserver
    • xclock

No comments:

Post a Comment