Difference between revisions of "Access the display on a remote computer"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
Line 1: Line 1:
You know that situation? You are running a program on your desktop, and then you want to continue your work on your notebook, maybe because The Simpsons are beginning and you want to work in front of the television. So, time to get your desktop display on your notebook. Of course, without interrupting the programs. Go to your notebook and do:
+
You want to access an X11 session that already exists.
 +
 
 +
Reasons can be
 +
* someone is running Linux and requesting support from you
 +
* you want to train a user how to work with a specific gui software
 +
* you have left your desktop computer and want to continue work in front of the TV (Simpsons coming) on your notebook
 +
 
 +
 
 +
Go to your notebook and do:
 
  user@user-notebook $ ssh user@user-desktop
 
  user@user-notebook $ ssh user@user-desktop
 
  user@user-desktop $ export DISPLAY=:0
 
  user@user-desktop $ export DISPLAY=:0

Revision as of 23:53, 27 December 2008

You want to access an X11 session that already exists.

Reasons can be

  • someone is running Linux and requesting support from you
  • you want to train a user how to work with a specific gui software
  • you have left your desktop computer and want to continue work in front of the TV (Simpsons coming) on your notebook


Go to your notebook and do:

user@user-notebook $ ssh user@user-desktop
user@user-desktop $ export DISPLAY=:0
user@user-desktop $ x11vnc

The program x11vnc tells you where to connect. The line will read like

The VNC desktop is:      user-desktop:0

Connect from your notebook:

user@user-notebook $ vncviewer user-desktop:0