[root@cpmlx-edgv2-01 vnc]# rpm -ivh ./vnc-server-4.1.2-14.el5_5.4.x86_64.rpm ./libXfont-1.2.2-1.0.6.el5_11.x86_64.rpm ./libfontenc-1.0.2-2.2.el5.x86_64.rpm ./xorg-x11-fonts-base-7.1-2.1.el5.noarch.rpm ./chkfontpath-1.10.1-1.1.x86_64.rpm ./xorg-x11-xfs-1.0.2-4.x86_64.rpm ./xorg-x11-font-utils-7.1-3.x86_64.rpm ./libFS-1.0.0-3.1.x86_64.rpm ./ttmkfdir-3.0.9-23.el5.x86_64.rpm Preparing... ########################################### [100%] 1:libfontenc ########################################### [ 11%] 2:libXfont ########################################### [ 22%] 3:xorg-x11-font-utils ########################################### [ 33%] 4:ttmkfdir ########################################### [ 44%] 5:libFS ########################################### [ 56%] 6:chkfontpath ########################################### [ 67%] 7:xorg-x11-xfs ########################################### [ 78%] 8:xorg-x11-fonts-base ########################################### [ 89%] 9:vnc-server ########################################### [100%] [root@cpmlx-edgv2-01 vnc]# [root@cpmlx-edgv2-01 vnc]# cat /etc/sysconfig/vncservers # The VNCSERVERS variable is a list of display:user pairs. # # Uncomment the lines below to start a VNC server on display :2 # as my 'myusername' (adjust this to your own). You will also # need to set a VNC password; run 'man vncpasswd' to see how # to do that. # # DO NOT RUN THIS SERVICE if your local area network is # untrusted! For a secure way of using VNC, see # . # Use "-nolisten tcp" to prevent X connections to your VNC server via TCP. # Use "-nohttpd" to prevent web-based VNC clients connecting. # Use "-localhost" to prevent remote VNC clients connecting except when # doing so through a secure tunnel. See the "-via" option in the # `man vncviewer' manual page. # VNCSERVERS="2:myusername" # VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost" VNCSERVERS=2:root VNCSERVERARGS[2]="-geometry 1024x768 -nolisten tcp -nohttpd -localhost" [root@cpmlx-edgv2-01 vnc]# [root@cpmlx-edgv2-01 vnc]# vncpasswd Password: Verify: [root@cpmlx-edgv2-01 vnc]# [root@cpmlx-edgv2-01 vnc]# rpm -ivh xterm-215-8.el5_4.1.x86_64.rpm Preparing... ########################################### [100%] 1:xterm ########################################### [100%] [root@cpmlx-edgv2-01 vnc]# [root@cpmlx-edgv2-01 vnc]# /etc/init.d/vncserver stop Shutting down VNC server: 2:root [FAILED] [root@cpmlx-edgv2-01 vnc]# /etc/init.d/vncserver start Starting VNC server: 2:root xauth: creating new authority file /root/.Xauthority New 'cpmlx-edgv2-01.tjsc.jus.br:2 (root)' desktop is cpmlx-edgv2-01.tjsc.jus.br:2 Creating default startup script /root/.vnc/xstartup Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/cpmlx-edgv2-01.tjsc.jus.br:2.log [ OK ] [root@cpmlx-edgv2-01 vnc]# [root@cpmlx-edgv2-01 tmp]# cat /root/.vnc/xstartup #!/bin/sh # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & xterm -geometry 160x48+10+10 -ls -title "$VNCDESKTOP Desktop" & twm & [root@cpmlx-edgv2-01 tmp]#