Linux – Starting a program on the desktop from SSH in Ubuntu

linuxsshUbuntu

I'm logged into my Ubuntu 11.04 box using SSH, and I need to start a program – but it is a Windows GUI program which runs under WINE.

How can I start the program from the SSH terminal so that it opens on the desktop, and then stays open even after I log out of SSH.

Best Answer

The general way to start a graphical program from a remote machine:

  1. On the target machine run xhost +. (You'll need to do this from a terminal, or from a login script.)

  2. from a remote client, SSH into the target machine and run nohup program & where "program" is the program as you would run it if you were sitting at the target machine.