2009. 4. 22.

VNC 서버 설정

1. VNC 서버 설치



yum install vnc-server

service vncserver start





2. 설정

/etc/sysconfig/vncserver



* root로 원격에서 접속가능하게 설정하기

VNCSERVERS="2:root"
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd"






* 패스워드 설정

vncpasswd 명령을 실행





* 그놈으로 VNC 원격 열기

~/.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 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &

export GTK_IM_MODULE=scim <- 한글 입력을 위해
gnome-session & <- 그놈 데스크탑 실행





3. 클라이언트 접속

UltraVNC를 설치하여 UltraVNC Viewer 를 실행

VNC Server : 에 www.junix.pe.kr:2 를 입력하고 vncpasswd에서 지정한 암호 입력

댓글 없음: