Board logo

主題: [教學]架設Red Hat Linux的VNC Server [打印本頁]

發表人: moneyyea    時間: 2007-2-18 07:02 AM     主題: [教學]架設Red Hat Linux的VNC Server

01.設定VNC Server
[root@mylinux ~]# vncserver

02.修改設定檔
[root@mylinux ~]# vi /root/.vnc/xstartup

#!/bin/sh

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

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session &

[root@mylinux ~]# vi /etc/sysconfig/vncservers

# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the line below to start a VNC server on display :1
# 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/vnc/sshvnc.html>.

VNCSERVERS="1:root"

03.設定密碼

[root@mylinux ~]# vncpasswd

04.啟動VNC Server

[root@mylinux ~]# service vncserver start

05.重開機之後,VNC Server依然啟動

[root@mylinux ~]# chkconfig vncserver on

[moneyyea 在  2007-2-18 07:04 AM 作了最後編輯]




歡迎光臨 TWed2k (http://twed2k.org/) Powered by Discuz! 4.1.0