Red Hat LINUX VIRTUAL SERVER 4.6 - ADMINISTRATION Installationshandbuch Seite 150

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 296
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 149
130 z/VM and Linux on IBM System z: The Virtualization Cookbook for Red Hat Enterprise Linux 6.0
rsyslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
sysstat 0:off 1:on 2:on 3:on 4:on 5:on 6:off
udev-post 0:off 1:on 2:on 3:on 4:on 5:on 6:off
xinetd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
7.2.5 Configuring the VNC server
Often, applications require a graphical environment. The Virtual Network Computing (VNC)
server allows for a graphical environment to be set up easily by starting the vncserver service.
Perform the following steps:
1. RHEL 6 configures the VNC server by using the /etc/sysconfig/vncservers
configuration file. Add a line at the bottom of this file to specify the VNC user:
# yum -y install tigervnc-server openmotif xterm xsetroot xorg-x11-xauth
...
2. Edit the vncservers file and add one line at the bottom:
# cd /etc/sysconfig
# vi vncservers
...
# VNCSERVERS="2:myusername"
# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"
VNCSERVERS="1:root"
3. Set a VNC password with the vncpasswd command. This password will be needed to
connect to the VNC server:
# vncpasswd
Password: lnx4vm
Verify: lnx4vm
4. Stop the firewall:
# service iptables stop
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ]
5. Start the VNC server. This will create some initial configuration files under the
/root/.vnc/ directory:
# service vncserver start
Starting VNC server: 1:root xauth: creating new authority file
/root/.Xauthority
New 'gpok223.endicott.ibm.com:1 (root)' desktop is gpok223.endicott.ibm.com:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/gpok223.endicott.ibm.com:1.log
[ OK ]
6. There is one more configuration to be done. Change from the Tiny window manager
(twm), to the Motif window manager (mwm):
# cd /root/.vnc
# vi xstartup // change last line
Seitenansicht 149
1 2 ... 145 146 147 148 149 150 151 152 153 154 155 ... 295 296

Kommentare zu diesen Handbüchern

Keine Kommentare