Zenten (zenten) wrote,
Zenten
zenten

Starting GUI Programs Remotely

To start up a program that uses X when logged in remotely (such as through ssh), you need to type this in from the remote login Bash shell:

export DISPLAY=:0

Then invoke the program the way you would locally from the shell.

Hint: Add that line to ~/.bashrc to have it happen automatically every time you log in.

I've been trying to figure this out for years, so I thought I'd share.
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 3 comments