Skip to content

[Linux]RedHat Enterprise Linux 5 계열 VNC Server 설정

조회 수 23712 추천 수 0 2009.09.25 14:29:53

RedHat Enterprise Linux 5, 그리고 이와 한 핏줄인 CentOS 5 및 Scientific Linux 5에서의 VNC Server 설정은 아래와 같이 한다.

 

1) VNC Server Package 설치를 확인한다.
$ rpm -qa | grep vnc

 

다음은 VNC Server 구동에 사용되는 소프트웨어들이다.
Xvnc : 실제 구동되는 VNC Server
vncpasswd : VNC Password 설정
vncserver : Xvnc를 구동하는 pearl script

 

2) (root권한) VNC로 접속하고자 하는 계정을 vncserver 파일에 주석 양식을 따라 추가한다.(사용할 계정은 미리 만들어 둔다)

ex)
# VNCSERVERS="2:myusername"
# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"
VNCSERVERS="1:dekarno"   # Port:UserID
VNCSERVERARGS[1]="-geometry 800x600" # [Port]로 접속한 VNC Client 해상도

 

3) (user권한) 자신의 계정으로 로그인하여 VNC Password를 설정한다.

$ vncpasswd

 

 이후 자신의 home 디렉토리에 .vnc 디렉토리가 생성된 것을 확인하면 정상적으로 설정된 것이다. 만약 vncpasswd를 root 계정으로 실행하면 root의 Password가 설정되는 것이므로 헷갈리지 않도록 주의한다.

 

4) (root권한) VNC Server를 시작한다.
(vncserver -start:시작 -stop:중지 -status:가동여부 표시)

$ /etc/init.d/vncserver start

 

5) (root권한) 접속이 불가능한 경우 방화벽 설정을 바꾼다.
$ system-config-securitylevel

 

6) (root권한)X-windows 화면을 보기 위해서는 자신의 home 디렉토리 내 .vnc/Xstartup 파일의 다음 두 줄 주석을 제거 후 VNC Server를 재시작한다.

 

...

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

...

 

7) (root계정) 부팅시마다 VNC Server가 자동으로 시작되도록 아래와 같이 조치한다.

$ chkconfig vncserver on

profile

일요일은 짜빠게뤼~ 먹는날~^^

엮인글 :
http://adminplay.com/2718/b7a/trackback
List of Articles
번호 제목 글쓴이 날짜 조회 수sort

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234