X-Window ¸¦ ¼³Ä¡ÇÏ¿´À¸¸é ÀÌȯ°æÀ» ÄÁÆ®·Ñ ÇÒ¼ö ÀÖ°Ô VNC-Server °¡ ¼³Á¤ÀÌ µÇ¾îÀÖ¾î¾ß ÇÑ´Ù.
ÀÌ°Å¿ª½Ã yum À¸·Î ¹ÞÀ¸¸é ±Ý¹æ ¼³Ä¡°¡´ÉÇÑ´Ù.
[root@chonnom ~]# yum -y install vnc-server
[root@chonnom ~]# rpm -qa |grep vnc
vnc-server-4.1.2-20.fc7
vnc-4.1.2-19.fc7
gtk-vnc-0.3.2-2.fc7
gtk-vnc-python-0.3.2-2.fc7
vnc-libs-4.1.2-19.fc7
VNC ¼³Á¤ÆÄÀÏ È®ÀÎ (/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
# <
URL:http://www.uk.research.att.com/archive/vnc/sshvnc.html>.
# 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="1:root"
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"
¡Ø VNC ¼ºñ½º ¼ø¼¿Í °èÁ¤ (Á¢¼ÓÆ÷Æ®´Â ¼ø¼¿¡ ±âº» 5900 Æ÷Æ®°ªÀ» ´õÇÑ°ª ex: 1+5900=5901 Æ÷Æ®·Î Á¢¼Ó)
VNC ¼ºñ½ºÀÇ Á¢¼Ó ÇØ»óµµ ¼³Á¤
¿É¼Ç
-nolisten tcp
TCP Åë½ÅÀ» ÅëÇÑ VNC ¼¹ö·ÎÀÇ ¿¬°áÀ» Â÷´ÜÇÕ´Ï´Ù.
-nohttpd
À¥±â¹Ý VNC Ŭ¶óÀ̾ðÆ®ÀÇ ¿¬°áÀ» Â÷´ÜÇÕ´Ï´Ù.
-localhost
secure tunnelÀ» ÅëÇÏÁö ¾ÊÀº ¸ðµç ¿ø°Ý Ŭ¶óÀ̾ðÆ®ÀÇ Á¢¼ÓÀ» Â÷´ÜÇÕ´Ï´Ù.
vnc ¿¬°á°èÁ¤ Æнº¿öµå ÁöÁ¤
[root@chonnom ~]# vncpasswd
Password:
Verify:
VNC ¼¹ö¼³Á¤ ¿Ï·á.... VNC ¼¹öµ¥¸ó ¿Ã¸®°í Á¢±Ù!!
[root@chonnom ~]# /etc/init.d/vncserver start
¾Ñ......ÅؽºÆ®È¯°æ¸¸ º¸ÀδÙ...
¸Õ°¡ ºüÁøºÎºÐÀÌ ÀÖ´Ù. /root/.vnc/xstartup ÆÄÀÏÀ» ¼öÁ¤ÇØ¾ß µÇ´Âµ¥....³» ½Ã½ºÅÛ¿¡¼´Â ÇØ´ç ÆÄÀÏÀÌ º¸ÀÌÁö ¾Ê´Â´Ù.. vncµ¥¸ó ½ÃÀÛÇÏ¸é »ý¼ºµÊ...
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER ==> 2°³ ¶óÀÎ ÁÖ¼®ÇØÁ¦
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 &
ÀÌÁ¦ Á¦´ë·Î º¸ÀδÙ...¤»¤»¤»