Covered remote access to the primary desktop
In the examples so far we have only covered remote access to the primary desktop. By primary desktop we mean the desktop you see when you sit at your computer and turn on the monitor. While this is fine for a single user system we should not lose sight of the fact that Linux is a multi-user operating system and it will often be necessary for more than one person to have remote desktop access at a time. While it might be fun to watch everyone fight over the mouse point as they share the same desktop it is clear that not much work will get done. The solution to this is to run multiple desktops for the users to connect to.
New desktop environments are created using the vncserver utility which will need to be installed using the following commands:
su – yum install tigervnc-server
The desktop we have used so far in this chapter is desktop :0. New desktops must be assigned different numbers. For example to launch desktop :1 run the following command from a terminal window command-line prompt:
vncserver :1
This will start a new desktop in the background ready for a remote user to connect to. To connect to the desktop follow the steps for connecting to desktop :0 outlined above but this time use port 5901 instead of port 5900 (you will similarly use port 5902 for desktop :2 and so on). For example, to connect using Vinagre, click on the Connect button in the toolbar and enter the following information:
hostname:1
Where hostname is the IP address or name of the system on which the new desktop is running. Similarly, to connect using vncviewer:
vncviewer hostname:1

