I would like to run an application on a remote ubuntu machine using vnc. Currently I have to
- ssh into the remote machine and run x11vnc
- Run vinagre locally
- Start the application in the vinagre vnc window
How can I turn this into a single command line operation? I can combine 1 and 2 into a bash script but how do I do 3 from the command line too?
If you want a specific app in your vnc session, you can use
vnc4server
and edit.vnc/xstartup
to start your application. But the shared desktop won't be your physical X11 display, but another (virtual) display.An alternative would be to use ssh / X11 forwarding (
ssh -X server
) : any graphical application you launch is redirected to your local desktop.