1.vnc pkg설치확인
rpm -qa |grep vnc
2.vnc pkg설치.
rpm -ivh xxxx.rpm
3.vnc service 설정.
ntsysv
우선 여기까지 설정후 테스트 해보고 안되면 아래 절차대로 진행.
****STEP1. On the system you want to control with VNC, run the program vncpasswd as root to set a VNC password. You will use this password when connecting with vncviewer or another VNC remote control program.
****STEP2. Edit the file /etc/X11/xorg.conf on RHEL 5
[A] Create the section called Module in the end of the file and add following lines:
Section "Module"
Load "glx"
Load "dbe"
Load "extmod"
Load "freetype"
Load "type1"
Load "dri"
Load "vnc"
EndSection
Make sure this is on a new line before EndSection.
[B] In section called Screen, add this line:
Option "passwordFile" "/root/.vnc/passwd"
Make sure this is on a new line before EndSection.
****STEP3 – Allow the ports in Firewall
1. SSH to the server and Run the following tool:
2. # system-config-securitylevel
3. In the "Other ports", please add a range as in below example. Note that those will be TCP ports as below:
5900-5904:tcp
4. Save and close the tool then restart firewall:
# service iptables restart
****STEP4: Make sure using chkconfig that vncserver is enabled for level 2,3,4,5. Then RESTART the machine.
Note: If you suspect the firewall blocking, then disable the firewall altogether and test VNC if it works. I use tightVNC to test.
VNC will typically use port 59xx, where "xx" is the console number. Use the command netstat -na | less to see the ports that are open on the system. Look in the 5xxx range for VNC.
댓글 없음:
댓글 쓰기