How can I start an application in a specific x-server session from outside (e.g.) with putty? Until now I have started a vnc server, logged in, opened the shell and started the application there.

How can I do that from outside?

2 Answers 2


Most simple X11 applications just need you to set the environment variable DISPLAY, so just

export DISPLAY=:0

before running the command may be enough.

  • No. I get an segmentation fault what means it tries to start from the shell...
    – Christoph
    Jul 7, 2015 at 14:18

I am assuming you want X11 forwarding through PuTTy on a Windows operating system. Please see the answer to the following related question:


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .