VNC服务器端与客户端配置

本文介绍如何在Ubuntu服务器上安装及配置VNC,并通过Windows或Ubuntu客户端进行远程连接。主要内容包括下载安装包、安装VNC Server、注册license、启动服务等步骤。

环境:

server:ubuntu

client:Win7或ubuntu

服务器端

ubuntu

1:在VNC官网下载安装包

VNC for linux:VNC-5.0.5-Linux-x86-ANY.tar.gz

VNC for Windows:VNC-5.0.5-Windows.exe

2,安装VNC server

在ubuntu环境下执行命令:

hadoop@master-server:~/VNC-5.0.5-Linux-x86$ sudo ./vncinstall
Copying vncviewer to /usr/bin
Copying vncviewer.man to /usr/share/man/man1/vncviewer.1
Copying vncaddrbook to /usr/bin
Copying vncaddrbook.man to /usr/share/man/man1/vncaddrbook.1
Copying vncserver-x11 to /usr/bin
Copying vncserver-x11.man to /usr/share/man/man1/vncserver-x11.1
Copying vncserver-x11-core to /usr/bin
Copying Xvnc to /usr/bin
Copying Xvnc.man to /usr/share/man/man1/Xvnc.1
Copying Xvnc-core to /usr/bin
Copying vncserverui to /usr/bin
Copying vncserver-virtual to /usr/bin
Copying vncserver-virtual.man to /usr/share/man/man1/vncserver-virtual.1
Copying vncserver-virtuald to /usr/bin
Copying vncserver-virtuald.man to /usr/share/man/man1/vncserver-virtuald.1
Copying vncserver-x11-serviced to /usr/bin
Copying vncserver-x11-serviced.man to /usr/share/man/man1/vncserver-x11-serviced.1
Copying vncpasswd to /usr/bin
Copying vncpasswd.man to /usr/share/man/man1/vncpasswd.1
Copying vnclicense to /usr/bin
Copying vnclicense.man to /usr/share/man/man1/vnclicense.1
Copying vnclicensewiz to /usr/bin
Copying vncpipehelper to /usr/bin
Copying vncchat to /usr/bin
Copying vncinitconfig to /usr/bin
Copying vncinitconfig.man to /usr/share/man/man1/vncinitconfig.1
Copying get_primary_ip4 to /usr/lib/vnc
Copying vncelevate to /usr/lib/vnc
Updating /etc/pam.d/vncserver
Updating /etc/pam.conf
Looking for font path...  /usr/share/fonts/X11/misc,/usr/share/fonts/X11/Type1,built-ins (from xset).
Generating private key:
  p: ................................................................................
  q: ........................................................
Installed init script for VNC X11 Service-mode daemon
Start and stop the service with:
  /etc/init.d/vncserver-x11-serviced (start|stop)

Installed init script for VNC Virtual-mode daemon
Start and stop the service with:
  /etc/init.d/vncserver-virtuald (start|stop)
2,注册license

hadoop@master-server:~/VNC-5.0.5-Linux-x86$ sudo ./vnclicense
VNC(R) Licensing Utility 5.0.5 (r106461) 
Built on Mar  4 2013 13:50:05
Copyright (C) 2002-2013 RealVNC Ltd.
VNC is a registered trademark of RealVNC Ltd. in the U.S. and in other
countries.
Protected by UK patent 2481870.
See http://www.realvnc.com for information on VNC.
For third party acknowledgements see:
http://www.realvnc.com/products/vnc/documentation/5.0/acknowledgements.txt

Usage: vnclicense COMMAND

Commands:
  -add KEY       Add KEY
  -remove        Remove the key if there is only one installed
  -remove N      Remove Nth key shown by "-list"
  -remove KEY    Remove KEY if it is installed
  -list          List installed keys
  -check         Print the number of desktops. Returns 0 if license
                 installed is valid

3,添加license key

hadoop@master-server:~/VNC-5.0.5-Linux-x86$ vnclicense -check
No licenses installed.

hadoop@master-server:~/VNC-5.0.5-Linux-x86$ sudo ./vnclicense -add WHJRK-UXY7V-Q34M9-CZU8L-8KGFA
Enterprise license key has been successfully applied.

4,启动vncserver

hadoop@master-server:~$ vncserver-virtual
VNC(R) Server 5.0.5 (r106461) 
Built on Mar  4 2013 13:46:20
Copyright (C) 2002-2013 RealVNC Ltd.
VNC is a registered trademark of RealVNC Ltd. in the U.S. and in other
countries.
Protected by UK patent 2481870.
See http://www.realvnc.com for information on VNC.
For third party acknowledgements see:
http://www.realvnc.com/products/vnc/documentation/5.0/acknowledgements.txt


Running applications in /etc/vnc/xstartup

VNC Server signature: 82-b1-2d-ab-55-28-ea-72
Log file is /home/hadoop/.vnc/master-server:1.log
New desktop is master-server:1 (地址:1)

客户端

Win7
1,运行VNC-5.0.5-Windows.exe

2,输入IP:会话号,如*.*.*.*:1

即可远程

ubuntu

包:VNC-5.0.5-Linux-x86-ANY.tar.gz

hadoop@slave5:~/VNC-5.0.5-Linux-x86$ sudo ./vncviewer
[sudo] password for hadoop:
hadoop@slave5:~/VNC-5.0.5-Linux-x86$ ./vncviewer
hadoop@slave5:~/VNC-5.0.5-Linux-x86$ ./vncviewer 122.205.7.180:1
hadoop@slave5:~/VNC-5.0.5-Linux-x86$




  提供RealVNC 5.0.5 的可用注册码,激活之后显示可使用到2024年4月24号,够长了吧!密钥见说明,是在安装过程要求填入的。注意安装包中已经内置VNC Server和VNC Viewer!刚刚在两台电脑之间作了测试,远程连接速度很快,操控也相当稳定。至于VNC的详细使用方法,本站将另外单独发文。 VNC,全称:Virtual Network Computing,即虚拟网络计算机。维基百科上解释说它是一种使用RFB协定的屏幕画面分享及远程操作软件。什么RFB协定我们也不了解,总之它就是一款远程控制软件。分客户端和服务端,即VNC ViewerVNC Server。我觉得VNC最大的特色莫过于它的平台无关性,你可以用Windows电脑控制Linux系统或苹果的Mac OS,反之亦同。另外,没有安装客户端程序的电脑中,也可使用,只要有支持JAVA的浏览器。本文提供RealVNC Enterprise 5最新版下载,并且奉上有效注册码,亲测成功!许可密钥可用到2024年!!!   RealVNC允许您访问和控制您的桌面应用程序,无论你在世界的哪一端。VNC具有广泛的用户群,从个人到世界上最大的跨国公司,利用该技术的应用范围。因为VNC是以GPL方法授权的,派生出了几个VNC软件,主要有RealVNC、TightVNC和UltraVNC,它们都可以被看作是原始VNC程序的延续,其中最有名的当属RealVNC了,也就是本文的主角。它支持的平台包括Windows、Linux、MAC OS X、Solaris、HP-UX以及AIX。   RealVNC目前最新版本为5.0.5,它分免费版、专业版和企业版。企业版即RealVNC Enterprise,它是收费的,当然功能也更加强大。免费版远程控制为个体私营使用,不包含会话加密,还没有包含在个人和企业的高级功能。而企业版是全功能、超安全、易管理的远程控制个人和中型和大型的商业用途。   对于个人,一个常见的??情况是使用VNC,帮助解决一个远程的技术上的问题。而对于企业,一个非常普遍的业务应用程序的VNC远程系统管理,它是用来允许管理员控制员工的机器来诊断和修复问题,或旅行到控制台访问和管理服务器的机器没有。 VNC可以使用,以提供一个灵活的热,办公桌面和道路战士的环境,让员工以访问他们的办公桌面和服务器的机器从任何机器在公司的办公室或其他远程站点,而不管的类型的电脑在任结束。同时它被应用于教育事业,例如允许分布式的学生同时查看计算机屏幕由教员操纵,或允许教师采取控制学生的计算机提供协助。 解压密码:admin
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值