Kamis, 17 November 2011

Install VNC Server di CentOS

Berikut penjelasan Instalasi VNC Server di CentOS :

Install VNC Server
#yum install vnc-server

Masukkan password
#vncpasswd

Setting Display Remote
#nano /etc/sysconfig/vncservers

Edit menjadi :

VNCSERVERS=”1:root”
VNCSERVERARGS[1]=”-geometry 1024×768 -nolisten”

Setting Gnome
#nano /root/.vnc/xstartup

Edit menjadi :

#!/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 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
twm &

Test Service VNC
#vncserver