Here is a recipe for using a remote machine (grus) while you are sat at a machine called pavo.
ssh to grus and type:
vncserver -geometry 1280x1024The 1280x1024 parameter depends on the resolution setting of the remote machine (grus), 1280x1024 is good starting point. You will be asked to supply a session password, do this. You will also be given a session name of the form: grus.star.bris.ac.uk:1
The first time you do this, you will have to edit the file:
~/.vnc/xstartupand uncomment the first two lines that say:
unset SESSION_MANAGER exec /etc/X11/xinit/xinitrcOn the local machine, pavo, type:
vncviewer grus.star.bris.ac.uk:1 -fullscreenYou will be asked for your session password, and a desktop on grus will pop up and fill your screen.
To get out of this, use the F8 key. This gives you the option to terminate the session. Remember the F8 key is the magic key....
When you are finished, you can terminate your session on the remote machine, by running the following command.
vncserver -kill grus.star.bris.ac.uk:1However, you may wish to leave your session running, as you can reconnect to it from another machine later, and carry on where you left off.
ssh -L 5902:localhost:5901 grusand start the vncserver as before, ie:
vncserver -geometry 1280x1024and use the following form for the vncviewer command, but in another window, as the ssh command needs to continue running.
vncviewer localhost:2Again, when you are finished, you can terminate your session on the remote machine, by running the following command.
vncserver -kill grus.star.bris.ac.uk:1