Chapter 3. Starting the VNC Server

This chapter describes how the VNC server is started on Windows and Linux machines. After the server has been started you will need to generate the config file to be distributed to remote sites. This is done easily from a Windows machine (described in the last section of this chapter.

3.1. Starting the VNC server on Linux

First you need to set the password for the session. To do this, type in vncpasswd in a terminal window. This will prompt you for a password. This is the password you will need to distribute to remote sites so that they are able to connect to the server.

On a terminal window, type in vncserver. This will start up a server on the next available screen. You will want to check the log file specified in the message to check and make sure there have been no errors. (Or, you could use ps to see if the server is running.

To kill the server, on a terminal window, type in vncserver -kill < screen_number >. Note: The screen number is the number following the colon

You can specify arguments to the vncserver. Two options you might be interested in are:

  1. -nevershared / -alwaysshared: specify if the session can be shared by multiple clients. Use this option to restrict how many people can connect to the server. In the AG setup, normally, multiple sites participate in a session. So, you might want to set this to always shared. This will allow clients with an incorrect shared flag to connect.

  2. -depth: specify the pixel depth in bits of the desktop to be created. A lower depth value will make the connection faster, but will not display as many colors.

For a complete list of options, see ( http://www.uk.research.att.com/vnc/xvnc.html ).