[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Connecting to X session



Hi,

If I remember correctly, there was a question about connecting to an X session for remote display (well, what else). I just tried to run VNC , and the default setting is "shared"; which means that anyone who connects to the same display number, will get the same desktop. It can be done in the following:
In the machine you want to monitor (to have a desktop on):
vncserver
Of course, this can be done remotely; eg: using ssh. You'd be prompted for a password and later you'd get output of the display number.

To connect to the VNC server, in your local machine run:
xvncviewer <servername>:<display number>
You'd be prompted to enter the password. In this first run, you may get nothing but an empty desktop; to have an xterm running, just run "xterm -display <display number>", on the server machine. Once you have an xterm on the VNC viewer window, basically you can do anything. To kill the viewer, just close the window; you don't need to close all the running applications. Next time you connect, you'd get everything that was left (assuming that the VNC server wouldn't get killed).

BTW, in the default connection, VNC doesn't use encryption.

Oki



Reply to: