首页 > 开发 > 综合 > 正文

在Linux下安装VNC 远程安装

2024-07-21 02:13:15
字体:
来源:转载
供稿:网友

首先从网上下载:

[[email protected]]$ wget http://www.realvnc.com/dist/vnc-4.0-x86_linux.tar.gz
--10:34:32--  http://www.realvnc.com/dist/vnc-4.0-x86_linux.tar.gz
           => `vnc-4.0-x86_linux.tar.gz'
resolving www.realvnc.com... done.
connecting to www.realvnc.com[83.170.68.194]:80... connected.
http request sent, awaiting response... 200 ok
length: 1,625,390 [application/x-gzip]

100%[==============================>] 1,625,390     52.67k/s    eta 00:00

10:35:04 (52.67 kb/s) - `vnc-4.0-x86_linux.tar.gz' saved [1625390/1625390]

发现4.0版本安装起来更加方便,解压后按照readme文档操作即可:

[[email protected] ]# tar -xvf vnc-4.0-x86_linux.tar
vnc-4.0-x86_linux/
vnc-4.0-x86_linux/vncinstall
vnc-4.0-x86_linux/xvnc
vnc-4.0-x86_linux/vncviewer
vnc-4.0-x86_linux/vncserver
.....
vnc-4.0-x86_linux/java/vncviewer.jar
[[email protected] ]# cd vnc-4.0-x86_linux


[[email protected] ]# ./vncinstall /usr/local/bin
can't install manual pages to /usr/local/man/man1
copying xvnc to /usr/local/bin
copying vncviewer to /usr/local/bin
copying vncpasswd to /usr/local/bin
copying vncconfig to /usr/local/bin
copying vncserver to /usr/local/bin
copying x0vncserver to /usr/local/bin
[[email protected] ]# mkdir -p /usr/local/vnc/classes
[[email protected] ]# cp java/* /usr/local/vnc/classes

此时即可启动vncserver: 

[[email protected] ]# vncserver

you will require a password to access your desktops.

password:
verify:
xauth:  creating new authority file /root/.xauthority

new 'xcorder.sky.cn:1 (root)' desktop is xcorder.sky.cn:1

creating default startup script /root/.vnc/xstartup
starting applications specified in /root/.vnc/xstartup
log file is /root/.vnc/xcorder.sky.cn:1.log

如果存在防火墙,还需要开放防火墙,然后就可以通过浏览器在5801端口访问vncserver了.

可以通过如下命令确认端口已经正常启动:

[[email protected] ]# netstat -an|grep 01
tcp        0      0 0.0.0.0:5801                0.0.0.0:*                   listen     
tcp        0      0 0.0.0.0:5901                0.0.0.0:*                   listen     
tcp        0      0 0.0.0.0:6001                0.0.0.0:*                   listen     
.....

通过vnc远程安装oracle是非常不错的一个选择.

  • 本文来源于网页设计爱好者web开发社区http://www.html.org.cn收集整理,欢迎访问。
  • 发表评论 共有条评论
    用户名: 密码:
    验证码: 匿名发表