Linux中配置VNC服务器

来源:互联网 发布:河鱼软件下载 编辑:程序博客网 时间:2024/06/07 14:21

 1 check whether the vnc has installed:

#rpm -q vnc-server

2 install vnc if need

#yum install vnc-server

3  set the vnc start as boot

#chkconfig vncserver on

4 close the firewall if need.

5 set the vnc password

#vncserver :1

6 set the window config

#vi /root/.vnc/xstartup

modify the content following as :

# 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 &

7 reboot

#reboot

8 start a vnc display

#vncserver :1

9 log in with vnc-client on windows

ip:losthost:1

pwd:your pwd

 

 

原创粉丝点击