Zenten (zenten) wrote in linux,
Zenten
zenten
linux

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 (I think I asked here about it once and no one knew), so I thought I'd share.
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded 

  • 5 comments