HP BL680c XenServer Virtual Machine Installation 4.1.0 - Page 27

Determining the location of your VNC configuration file, 4.8.1.2. Configuring GDM to use VNC

Page 27 highlights

Installing Linux VMs Note Before setting up your Red Hat VMs for VNC, be sure that you have installed the Linux guest agent. See Section 4.5, "Installing the Linux guest agent" for details. In order to configure VNC on Red Hat VMs, you need to modify the GDM configuration. The GDM configuration is held in a file whose location varies depending on the version of Red Hat Linux you are using. Before modifying it, we first must determine the location of this configuration file; this file will then be modified in a number of subsequent procedures in this section. 4.8.1.1. Determining the location of your VNC configuration file If you are using Red Hat Linux version 3 or 4 the GDM configuration file is /etc/X11/gdm/gdm.conf. This is a unified configuration file that contains both default values as specified by the provider of your version of GDM in addition to your own customized configuration. This type of file is used by default in older versions of GDM, as included in these version of Red Hat Linux. If you are using Red Hat Linux version 5 the GDM configuration file is /etc/gdm/custom.conf. This is a split configuration file that contains only user-specified values that override the default configuration. This type of file is used by default in newer versions of GDM, as included in these versions of Red Hat Linux. 4.8.1.2. Configuring GDM to use VNC 1. As root at the prompt in the VM's text console, type in rpm -q vnc-server gdm. The package names vnc-server and gdm should appear, with their version numbers specified. If these package names are displayed, the appropriate packages are already installed. If you see a message saying that one of the packages is not installed, then you may not have selected the graphical desktop options during installation. You will need to install these packages before you can continue. See the appropriate Red Hat Linux x86 Installation Guide for details regarding installing additional software on your VM. 2. Open the GDM configuration file with your preferred text editor and add the following lines to the file: [server-VNC] name=VNC Server command=/usr/bin/Xvnc -SecurityTypes None -geometry 1024x768 -depth 16 \ -BlacklistTimeout 0 flexible=true • With configuration files as found on Red Hat Linux 3 and 4, this should be added above the [server-Standard section. • With configuration files as found on Red Hat Linux 5, this should be added into the empty [servers] section. 3. Modify the configuration so that the Xvnc server is used instead of the standard X server: • If you are using Red Hat Linux 3 or 4, there will be a line just above that says: 0=Standard Modify it to read: 22

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44

Installing Linux VMs
22
Note
Before setting up your Red Hat VMs for VNC, be sure that you have installed the Linux guest agent.
See Section 4.5, “Installing the Linux guest agent” for details.
In order to configure VNC on Red Hat VMs, you need to modify the GDM configuration. The GDM configu-
ration is held in a file whose location varies depending on the version of Red Hat Linux you are using. Before
modifying it, we first must determine the location of this configuration file; this file will then be modified in
a number of subsequent procedures in this section.
4.8.1.1. Determining the location of your VNC configuration file
If you are using Red Hat Linux version 3 or 4
the GDM configuration file is
/etc/X11/gdm/gdm.conf
. This
is a unified configuration file that contains both default values as specified by the provider of your version of
GDM in addition to your own customized configuration. This type of file is used by default in older versions
of GDM, as included in these version of Red Hat Linux.
If you are using Red Hat Linux version 5
the GDM configuration file is
/etc/gdm/custom.conf
. This is
a split configuration file that contains only user-specified values that override the default configuration. This
type of file is used by default in newer versions of GDM, as included in these versions of Red Hat Linux.
4.8.1.2. Configuring GDM to use VNC
1.
As root at the prompt in the VM's text console, type in
rpm -q vnc-server gdm
. The package names
vnc-server
and
gdm
should appear, with their version numbers specified.
If these package names are displayed, the appropriate packages are already installed. If you see a
message saying that one of the packages is not installed, then you may not have selected the graphical
desktop options during installation. You will need to install these packages before you can continue. See
the appropriate
Red Hat Linux x86 Installation Guide
for details regarding installing additional software
on your VM.
2.
Open the GDM configuration file with your preferred text editor and add the following lines to the file:
[server-VNC]
name=VNC Server
command=/usr/bin/Xvnc -SecurityTypes None -geometry 1024x768 -depth 16 \
-BlacklistTimeout 0
flexible=true
With configuration files as found on Red Hat Linux 3 and 4, this should be added above the
[serv-
er-Standard
section.
With configuration files as found on Red Hat Linux 5, this should be added into the empty
[servers]
section.
3.
Modify the configuration so that the Xvnc server is used instead of the standard X server:
If you are using Red Hat Linux 3 or 4, there will be a line just above that says:
0=Standard
Modify it to read: