понедельник, 30 октября 2023 г.

Start GUI application from Windows on remote Linux server with Xming

  1. Start Xming.
  2. Set "Enable X11 forwarding" in Putty configuration (Connection -> SSH -> X11).
  3. Login to remote Linux server with SSH via Putty.
  4. Start GUI application with logged user credentials.
  5. If you need to start GUI application with root credentials:
    • run "sudo su -"
    • run commands:
      $ chmod a+r /home/<user_login>/.Xauthority
      $ export DISPLAY=localhost:10.0
      $ export XAUTHORITY=/home/<user_login>/.Xauthority