The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM
The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM
The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
# chkconfig --list | grep 3:on<br />
abrtd 0:off 1:off 2:off 3:on 4:off 5:on 6:off<br />
cpi 0:off 1:on 2:on 3:on 4:on 5:on 6:off<br />
cpuplugd 0:off 1:off 2:on 3:on 4:on 5:on 6:off<br />
crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off<br />
dumpconf 0:on 1:on 2:on 3:on 4:on 5:on 6:on<br />
lvm2-monitor 0:off 1:on 2:on 3:on 4:on 5:on 6:off<br />
messagebus 0:off 1:off 2:on 3:on 4:on 5:on 6:off<br />
mon_statd 0:off 1:off 2:on 3:on 4:on 5:on 6:off<br />
netfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off<br />
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off<br />
postfix 0:off 1:off 2:on 3:on 4:on 5:on 6:off<br />
rhnsd 0:off 1:off 2:on 3:on 4:on 5:on 6:off<br />
rsyslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off<br />
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off<br />
sysstat 0:off 1:on 2:on 3:on 4:on 5:on 6:off<br />
udev-post 0:off 1:on 2:on 3:on 4:on 5:on 6:off<br />
xinetd 0:off 1:off 2:off 3:on 4:on 5:on 6:off<br />
7.2.5 Configuring the VNC server<br />
Often applications require a graphical environment. <strong>The</strong> Virtual Network Computing (VNC)<br />
server allows <strong>for</strong> a graphical environment to be set up easily by starting the vncserver<br />
service. To do so, per<strong>for</strong>m the following steps:<br />
► RHEL 6 configures the VNC server using the /etc/sysconfig/vncservers configuration<br />
file. Add a line at the bottom of this file to specify the VNC user:<br />
# yum -y install tigervnc-server openmotif xterm xsetroot xorg-x11-xauth<br />
...<br />
► Edit the vncservers file and add one line at the bottom:<br />
# cd /etc/sysconfig<br />
# vi vncservers<br />
...<br />
# VNCSERVERS="2:myusername"<br />
# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"<br />
VNCSERVERS="1:root"<br />
► Set a VNC password with the vncpasswd command. This password will be needed to<br />
connect to the VNC server:<br />
# vncpasswd<br />
Password: lnx4vm<br />
Verify: lnx4vm<br />
► Stop the firewall:<br />
# service iptables stop<br />
iptables: Flushing firewall rules: [ OK ]<br />
iptables: Setting chains to policy ACCEPT: filter [ OK ]<br />
iptables: Unloading modules: [ OK ]<br />
► Start the VNC server. This will create some initial configuration files under the<br />
/root/.vnc/ directory:<br />
# service vncserver start<br />
Starting VNC server: 1:root xauth: creating new authority file /root/.Xauthority<br />
New 'gpok223.endicott.ibm.com:1 (root)' desktop is gpok223.endicott.ibm.com:1<br />
Creating default startup script /root/.vnc/xstartup<br />
Starting applications specified in /root/.vnc/xstartup<br />
122 <strong>The</strong> <strong>Virtualization</strong> <strong>Cookbook</strong> <strong>for</strong> RHEL 6