Standard

start program with GUI via ssh without X-server

There are a lot of methods, few of them are described below:

  1. ssh X-forwarding:
    • Please ensure such parameters are enabled in your ssh server:
      #Specifies whether TCP forwarding is permitted
      AllowTcpForwarding yes
      X11Forwarding yes
      #Specifies the first display number available for sshd’s X11 forwarding:
      X11DisplayOffset 10  
      #sshd should bind the X11 forwarding server to the loopback address or to the wildcard address:
      X11UseLocalhost yes
    • Turn on X-forwarding by executing command: ssh -X user@host
    • If you see any errors whit -X. the remote machine is treated as trusted client.. run: ssh -Y user@host
  2. use -display :0.0 after name of program name. In this case very comfortable to use screen command.
  3. Export global variable: export DISPLAY=”:0.0″