900字范文,内容丰富有趣,生活中的好帮手!
900字范文 > linux安装了vnc服务器 Linux安装VNC服务及配置

linux安装了vnc服务器 Linux安装VNC服务及配置

时间:2019-08-15 06:19:32

相关推荐

linux安装了vnc服务器 Linux安装VNC服务及配置

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 12:26:41)

Copyright (C) 2002- 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 for information on VNC.

For third party acknowledgements see:

/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 has been successfully applied.

[root@solgle init.d]#

--ok

------???

root@solgle ~]# vncserver :1

VNC(R) Server 5.2.1 (r5668) 64-bit (Aug 18 12:26:41)

Copyright (C) 2002- 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 for information on VNC.

For third party acknowledgements see:

/products/vnc/documentation/5.2/acknowledgements.txt

If a desktop environment fails to load for this virtual desktop, please see:

/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 连接成功

---关闭及启动一个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

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。