Install the Remote Desktop Server software VNC Server in centos6.5

Source: Internet
Author: User

VNC allows you to remotely access and control your computer from another computer or mobile device, wherever you are in the world. Common Use Cases include providing desktop support to colleagues and friends, and Remotely Managing Your servers.

Deploy the VNC Server to the computer you want to control, and use the VNC Viewer to connect to the computer you want to control.

Installation Service:

Yum install tigervnc-Server

This name is a bit strange. If you never know it, you cannot guess it.

[[email protected] ~]# yum install tigervnc-serverLoaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfile * base: mirror.bit.edu.cn * extras: mirrors.yun-idc.com * updates: mirrors.yun-idc.comSetting up Install ProcessResolving Dependencies--> Running transaction check---> Package tigervnc-server.x86_64 0:1.1.0-8.el6_5 will be installed--> Finished Dependency ResolutionDependencies Resolved=============================================================================================================================================================================================== Package                                           Arch                                     Version                                            Repository                                 Size===============================================================================================================================================================================================Installing: tigervnc-server                                   x86_64                                   1.1.0-8.el6_5                                      updates                                   1.1 MTransaction Summary===============================================================================================================================================================================================Install       1 Package(s)Total download size: 1.1 MInstalled size: 2.9 MIs this ok [y/N]: yDownloading Packages:tigervnc-server-1.1.0-8.el6_5.x86_64.rpm                                                                                                                                | 1.1 MB     00:02     Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction  Installing : tigervnc-server-1.1.0-8.el6_5.x86_64                                                                                                                                        1/1   Verifying  : tigervnc-server-1.1.0-8.el6_5.x86_64                                                                                                                                        1/1 Installed:  tigervnc-server.x86_64 0:1.1.0-8.el6_5        Complete!

Run and set the password:

Vncserver: 1

Note: There must be spaces between vncserver and: 1.

Enter the password to generate related files.

[[email protected] ~]# vncserver :1You will require a password to access your desktops.Password:Verify:xauth:  creating new authority file /root/.XauthorityNew ‘localhost.localdomain:1 (root)‘ desktop is localhost.localdomain:1Creating default startup script /root/.vnc/xstartupStarting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/localhost.localdomain:1.log
Configure the user

Vim/etc/sysconfig/vncservers

Add the last line:

Vncservers = "1: Root" separated by Spaces


Practical command: Usage: vncserver [: <number>] [-name <desktop-Name>] [-depth <depth>]
[-Geometry <width> x [-Pixelformat rgbnnn | bgrnnn]
[-FP <font-path>]
[-FG]
<Xvnc-Options>...
Vncserver-kill <X-display>
Vncserver-list
Vncserver [: N] Service Activation
Several vncserver-list statements are running.
Vncserver-kill: N kills the nth X-Display
Vncpasswd Change Password

Service Management Service vncserver restart
Other usage:/etc/init. d/vncserver {START | stop | restart | try-Restart | status | force-Reload}
Chkconfig vncserver on is added to self-start (chkconfig -- level 35 vncserver on)

Client Connection
Centos: Use tigervnc viewer to connect to IP Address: 1
Windows: use real VNC Viewer to connect to IP Address: 1
Enter the password to access

Error records and solutions:

错误记录:[[email protected] media]# service vncserver startStarting VNC server: 1:root WARNING: The first attempt to start Xvnc failed, possibly because the fontcatalog is not properly configured.  Attempting to determine an appropriatefont path for this system and restart Xvnc using that font path ...Could not start Xvnc./usr/bin/Xvnc: symbol lookup error: /usr/bin/Xvnc: undefined symbol: pixman_composite_trapezoids/usr/bin/Xvnc: symbol lookup error: /usr/bin/Xvnc: undefined symbol: pixman_composite_trapezoids                                                           [FAILED]解决方案:yum install pixman pixman-devel libXfont错误记录:[[email protected] /]# vncserver :1WARNING: The first attempt to start Xvnc failed, possibly because the fontcatalog is not properly configured.  Attempting to determine an appropriatefont path for this system and restart Xvnc using that font path ...Could not start Xvnc._XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed_XSERVTransMakeAllCOTSServerListeners: server already runningFatal server error:Cannot establish any listening sockets - Make sure an X server isn‘t already running_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed_XSERVTransMakeAllCOTSServerListeners: server already runningFatal server error:Cannot establish any listening sockets - Make sure an X server isn‘t already running解决过程:ps aux |grep -i "xorg|x11"yum -y groupinstall "GNOME Desktop Environment"  CentOS6.5下不能用。yum groupinstall "X Window System" "KDE (K Desktop Environment)"rm -rf /tmp/.X11-unix错误记录:[[email protected] opt]# vncserver :1Warning: hn.kd.ny.adsl:1 is taken because of /tmp/.X1-lockRemove this file if there is no X server hn.kd.ny.adsl:1A VNC server is already running as :1[[email protected] opt]# cp /tmp/.X1-lock X1-lock.bak[[email protected] opt]# rm -rf /tmp/.X1-lock[[email protected] opt]# vncserver :1Warning: hn.kd.ny.adsl:1 is taken because of /tmp/.X11-unix/X1Remove this file if there is no X server hn.kd.ny.adsl:1A VNC server is already running as :1[[email protected] opt]# vncserver :1Warning: hn.kd.ny.adsl:1 is taken because of /tmp/.X11-unix/X1Remove this file if there is no X server hn.kd.ny.adsl:1A VNC server is already running as :1[[email protected] opt]# rm -rf /tmp/.X11-unix/X1[[email protected] opt]# vncserver :1xauth:  creating new authority file /root/.XauthorityWARNING: The first attempt to start Xvnc failed, possibly because the fontcatalog is not properly configured.  Attempting to determine an appropriatefont path for this system and restart Xvnc using that font path ...Could not start Xvnc._XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed_XSERVTransMakeAllCOTSServerListeners: server already runningFatal server error:Cannot establish any listening sockets - Make sure an X server isn‘t already running_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed_XSERVTransMakeAllCOTSServerListeners: server already runningFatal server error:Cannot establish any listening sockets - Make sure an X server isn‘t already running正在启动 VNC 服务器:1:root WARNING: The first attempt to start Xvnc failed, possibly because the fontcatalog is not properly configured.  Attempting to determine an appropriatefont path for this system and restart Xvnc using that font path ...Could not start Xvnc._XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed_XSERVTransMakeAllCOTSServerListeners: server already runningFatal server error:Cannot establish any listening sockets - Make sure an X server isn‘t already running_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed_XSERVTransMakeAllCOTSServerListeners: server already runningFatal server error:Cannot establish any listening sockets - Make sure an X server isn‘t already running                                                           [失败]正在启动 VNC 服务器:1:root WARNING: The first attempt to start Xvnc failed, possibly because the fontcatalog is not properly configured.  Attempting to determine an appropriatefont path for this system and restart Xvnc using that font path ...Could not start Xvnc._XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed_XSERVTransMakeAllCOTSServerListeners: server already runningFatal server error:Cannot establish any listening sockets - Make sure an X server isn‘t already running_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed_XSERVTransMakeAllCOTSServerListeners: server already runningFatal server error:Cannot establish any listening sockets - Make sure an X server isn‘t already running                                                           [失败]执行:setup 命令没有需要的选项;以下为2014年10月21日安装VNCServer遇到的问题及解决方法错误记录:[[email protected]]# service vncserver restart关闭 VNC 服务器:                                          [确定]正在启动 VNC 服务器:1:root Warning: hn.kd.ny.adsl:1 is taken because of /tmp/.X1-lockRemove this file if there is no X server hn.kd.ny.adsl:1A VNC server is already running as :1                                                           [失败][[email protected]]# find -name hn.kd.my.ads1:1[[email protected]]# rm -rf /tmp/.X1-lock[[email protected]]# [[email protected]]# [[email protected]]# service vncserver restart关闭 VNC 服务器:                                          [确定]正在启动 VNC 服务器:1:root Warning: hn.kd.ny.adsl:1 is taken because of /tmp/.X11-unix/X1Remove this file if there is no X server hn.kd.ny.adsl:1A VNC server is already running as :1                                                           [失败][[email protected]]# rm -rf /tmp/.X11-unix/X1[[email protected]]# service vncserver restart关闭 VNC 服务器:                                          [确定]正在启动 VNC 服务器:1:root WARNING: The first attempt to start Xvnc failed, possibly because the fontcatalog is not properly configured.  Attempting to determine an appropriatefont path for this system and restart Xvnc using that font path ...Could not start Xvnc._XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed_XSERVTransMakeAllCOTSServerListeners: server already runningFatal server error:Cannot establish any listening sockets - Make sure an X server isn‘t already running_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed_XSERVTransMakeAllCOTSServerListeners: server already runningFatal server error:Cannot establish any listening sockets - Make sure an X server isn‘t already running                                                           [失败][[email protected]]# 解决方案:[[email protected]]# init 3[[email protected]]# service vncserver restart关闭 VNC 服务器:                                          [确定]正在启动 VNC 服务器:1:root New ‘hn.kd.ny.adsl:1 (root)‘ desktop is hn.kd.ny.adsl:1Creating default startup script /root/.vnc/xstartupStarting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/hn.kd.ny.adsl:1.log                                                           [确定][[email protected]]# 
How to download the installation file of the VNC server from the official website? How to Use the VNC Viewer to connect to a remote centos server?

Install the Remote Desktop Server software VNC Server in centos6.5

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.