Linux系统

Linux安装VNC服务及配置

时间:2015/4/8 21:33:08  作者:solgle  来源:www.solgle.com  查看:10758  评论:0
内容摘要:linux部署环境如果没有远程桌面,那就只有静默安装了,当然这有难度,不过有VNC很不错,远程桌面环境部署方便多了,环境还算清晰,速度不卡,部署平台完全没有问题,部署方式可以参考如下笔记:[root@solgle Desktop]# rpm -ivh VNC-Server-5.2...
linux部署环境如果没有远程桌面,那就只有静默安装了,当然这有难度,不过有VNC很不错,远程桌面环境部署方便多了,环境还算清晰,速度不卡,部署平台完全没有问题,部署方式可以参考如下笔记:

[root@solgle Desktop]# rpm -ivh VNC-Server-5.2.1-Linux-x64.rpm 
Preparing...                ########################################### [100%]
   1:realvnc-vnc-server     ########################################### [100%]
Checking for xauth... [OK]
Updating /etc/pam.d/vncserver
NOTICE: common configuration in /etc/pam.d contains the following modules:
   pam_fprintd.so
The default vncserver PAM configuration only enables pam_unix. See 
`man vncinitconfig  for details on any manual configuration required.
 
Looking for font path... not found.
Generating private key...done
Installed init script for VNC X11 Service-mode daemon
Start and stop the service with:
  /etc/init.d/vncserver-x11-serviced (start|stop)
Use chkconfig to start or stop the service at boot time.
 
Installed init script for VNC Virtual-mode daemon
Start and stop the service with:
  /etc/init.d/vncserver-virtuald (start|stop)
Use chkconfig to start or stop the service at boot time.
 
[root@solgle Desktop]# 
-------安装成功
 
[root@solgle init.d]# vncserver :1
VNC(R) Server 5.2.1 (r5668) 64-bit (Aug 18 2014 12:26:41)
Copyright (C) 2002-2014 RealVNC Ltd.
VNC is a registered trademark of RealVNC Ltd in the U.S. and in other
countries.
Protected by UK patent 2481870; US patent 8760366.
See http://www.realvnc.com for information on VNC.
For third party acknowledgements see:
http://www.realvnc.com/products/vnc/documentation/5.2/acknowledgements.txt
 
Error: No license keys found.
Run vnclicense to apply a license key. [NoLicense]
----提示没有license
 
----add license
[root@solgle init.d]# vnclicense -add WHJRK=UXYY7V=Q34M9-C2U8L-8KGFA
Error: This is not a valid license key.
 
A license key consists of 25 alphanumeric characters, divided by hyphens into 5
groups of 5 characters each.
[root@solgle init.d]# 
 
----使用另一个license
[root@solgle init.d]# vnclicense -add 3TH6P-DV5AE-BLHY6-PNENS-B3AQA
License key <Enterprise> has been successfully applied.
[root@solgle init.d]# 
 
--ok
 
------???
root@solgle ~]# vncserver :1
VNC(R) Server 5.2.1 (r5668) 64-bit (Aug 18 2014 12:26:41)
Copyright (C) 2002-2014 RealVNC Ltd.
VNC is a registered trademark of RealVNC Ltd in the U.S. and in other
countries.
Protected by UK patent 2481870; US patent 8760366.
See http://www.realvnc.com for information on VNC.
For third party acknowledgements see:
http://www.realvnc.com/products/vnc/documentation/5.2/acknowledgements.txt
 
If a desktop environment fails to load for this virtual desktop, please see:
http://www.realvnc.com/kb-345
Running applications in /etc/vnc/xstartup
 
VNC Server catchphrase: "Sofia unit nickel. Campus tic-tac north."
             signature: 25-b2-6d-b7-ae-f4-b3-e6
 
Log file is /root/.vnc/solgle:1.log
New desktop is solgle:1 (192.16.3.8:1)
 
----查看vncserver进程信息
[root@solgle ~]# ps -ef | grep vnc
root      2680  2651  0 13:49 pts/0    00:00:00 grep vnc
[root@solgle ~]# 
 
---设置远程密码
[root@solgle sysconfig]# vncpasswd
Setting "Password" VNC parameter in /root/.vnc/config.d/vncserver-x11
Password:
Verify:
Passwords don't match - try again
Password:
Verify:
Successfully set  Password" VNC parameter in /root/.vnc/config.d/vncserver-x11
 
---配置防火墙:vnc server端口从5900开始,比如 5901,5902
 
---设置成功,使用vnc viewer 连接成功
 
Linux安装VNC服务及配置
 
---关闭及启动一个vnc远程桌面(每次连接可能需要重启一次,否则会报(10061)连接超时)
[root@solgle sysconfig]# vncserver -kill :1
Can't find file /root/.vnc/solgle:1.pid
You'll have to kill the Xvnc process manually.
[root@solgle sysconfig]# ^C
[root@solgle sysconfig]# vncserver :1
 
 
标签:Linux安装VNC服务及配置 

solgle.com 版权所有,欢迎分享!!!

相关文章
    相关评论
     img1 img2 img3 img4 img5 img6 img7 img8 img9 img10
    评论者:      验证码:  点击获取验证码
       Copyright © 2013-2028 solgle.com,All rights reserved.[solgle.com] 公安机关备案号:51010802000219
    Email:solgle@solgle.com; weixin:cd1008610000 ICP:蜀ICP备14011070号-1