加载中…
个人资料
windmoon_litpig
windmoon_litpig
  • 博客等级:
  • 博客积分:0
  • 博客访问:344
  • 关注人气:14
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

如何通过浏览器使用VNC(转)

(2008-03-26 11:04:32)
标签:

杂谈

 这篇文章是我邀请朋友zeeman写的.如何通过浏览器使用VNC(转)
 
以下是具体使用方法:

1 preparation create xstartup file under your $HOME directory:

[chazhang@psrh4 ~/.vnc]$ ls
opmanager.asia.corp.platform.com:23.log  passwd       psrh4:2.log  slsf02:1.log  slsf02:2.log  xstartup*
opmanager.asia.corp.platform.com:23.pid  psrh4:1.log  psrh4:2.pid  slsf02:1.pid  slsf02:2.pid

[chazhang@psrh4 ~/.vnc]$ more xstartup
#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &

startkde &

 

2 startup vncserver on display 2:
[chazhang@psrh4 ~/.vnc]$ vncserver :2 -geometry 1280*
xauth:  /home/chazhang/.Xauthority not writable, changes will be ignored
xauth:  error in locking authority file /home/chazhang/.Xauthority

New 'psrh4:2 (chazhang)' desktop is psrh4:2

Starting applications specified in /home/chazhang/.vnc/xstartup
Log file is /home/chazhang/.vnc/psrh4:2.log

[chazhang@psrh4 ~/.vnc]$ nmap -v 127.0.0.1|grep vnc
5802/tcp open  vnc-http-2
5902/tcp open  vnc-2


3 vnc will open will open http port(5800+2)

visit from http browser

access the following site http://psrh4:5802

 

4 stop vncserver

 vncserver -kill :2
 
 

 

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有