CentOS6.5下安装远程桌面服务端软件VNC Server
VNC 使您能够远程訪问和控制您的计算机从还有一计算机或移动设备上,不管你在世界的不论什么地方。
常见的使用情形,包含给同事和朋友提供桌面支持、远程管理您的服务器。
将 VNC Server部署到您想要控制计算机。使用VNC Viewer连接到你想要控制的计算机。
安装服务:
yum install tigervnc-server
这名称有点怪,没用过不知道的话是推測不到的。
[root@localhost ~]# yum install tigervnc-server
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror.bit.edu.cn
* extras: mirrors.yun-idc.com
* updates: mirrors.yun-idc.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package tigervnc-server.x86_64 0:1.1.0-8.el6_5 will be installed
--> Finished Dependency Resolution Dependencies Resolved ===============================================================================================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================================================================================
Installing:
tigervnc-server x86_64 1.1.0-8.el6_5 updates 1.1 M Transaction Summary
===============================================================================================================================================================================================
Install 1 Package(s) Total download size: 1.1 M
Installed size: 2.9 M
Is this ok [y/N]: y
Downloading Packages:
tigervnc-server-1.1.0-8.el6_5.x86_64.rpm | 1.1 MB 00:02
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running 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!
执行并设置password:
vncserver :1
注意:vncserver和:1之间必须有空格的。
输入password。会生成相关的文件
[root@localhost ~]# vncserver :1 You will require a password to access your desktops. Password:
Verify:
xauth: creating new authority file /root/.Xauthority New 'localhost.localdomain:1 (root)' desktop is localhost.localdomain:1 Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:1.log
配置用户
vim /etc/sysconfig/vncservers
最后一行增加:
VNCSERVERS="1:root" 多个用户用空格分开
watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvdGVzdGNzX2Ru/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" />
有用命令
usage: vncserver [:<number>] [-name <desktop-name>] [-depth <depth>]
[-geometry <width>x<height>]
[-pixelformat rgbNNN|bgrNNN]
[-fp <font-path>]
[-fg]
<Xvnc-options>...
vncserver -kill <X-display>
vncserver -list
vncserver[:n]开服务
vncserver -list看有几个在执行
vncserver -kill :n 杀掉第几个x-display
vncpasswd 改动password
服务管理
service vncserver restart
其他使用方法:/etc/init.d/vncserver {start|stop|restart|try-restart|status|force-reload}
chkconfig vncserver on 增加到自启动(chkconfig --level 35 vncserver on)
client连接
CentOS:使用TigerVNC Viewer 连接 ip:1
Windows:使用Real VNC Viewer 连接ip:1
输入password就可以訪问
错误记录及解决方式:
错误记录:
[root@localhost media]# service vncserver start
Starting VNC server: 1:root
WARNING: The first attempt to start Xvnc failed, possibly because the font
catalog is not properly configured. Attempting to determine an appropriate
font 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 错误记录:
[root@localhost /]# vncserver :1 WARNING: The first attempt to start Xvnc failed, possibly because the font
catalog is not properly configured. Attempting to determine an appropriate
font path for this system and restart Xvnc using that font path ...
Could not start Xvnc. _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running Fatal 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 错误记录:
[root@hn opt]# vncserver :1 Warning: hn.kd.ny.adsl:1 is taken because of /tmp/.X1-lock
Remove this file if there is no X server hn.kd.ny.adsl:1
A VNC server is already running as :1
[root@hn opt]# cp /tmp/.X1-lock X1-lock.bak
[root@hn opt]# rm -rf /tmp/.X1-lock
[root@hn opt]# vncserver :1 Warning: hn.kd.ny.adsl:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server hn.kd.ny.adsl:1
A VNC server is already running as :1
[root@hn opt]# vncserver :1 Warning: hn.kd.ny.adsl:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server hn.kd.ny.adsl:1
A VNC server is already running as :1
[root@hn opt]# rm -rf /tmp/.X11-unix/X1
[root@hn opt]# vncserver :1
xauth: creating new authority file /root/.Xauthority WARNING: The first attempt to start Xvnc failed, possibly because the font
catalog is not properly configured. Attempting to determine an appropriate
font path for this system and restart Xvnc using that font path ...
Could not start Xvnc. _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running Fatal 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 font
catalog is not properly configured. Attempting to determine an appropriate
font path for this system and restart Xvnc using that font path ...
Could not start Xvnc. _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running Fatal 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 font
catalog is not properly configured. Attempting to determine an appropriate
font path for this system and restart Xvnc using that font path ...
Could not start Xvnc. _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running [失败] 执行:setup 命令 没有须要的选项; 下面为2014年10月21日安装VNCServer遇到的问题及解决方法
错误记录:
[root@hn]# service vncserver restart
关闭 VNC 服务器: [确定]
正在启动 VNC 服务器:1:root
Warning: hn.kd.ny.adsl:1 is taken because of /tmp/.X1-lock
Remove this file if there is no X server hn.kd.ny.adsl:1
A VNC server is already running as :1
[失败]
[root@hn]# find -name hn.kd.my.ads1:1
[root@hn]# rm -rf /tmp/.X1-lock
[root@hn]#
[root@hn]#
[root@hn]# service vncserver restart
关闭 VNC 服务器: [确定]
正在启动 VNC 服务器:1:root
Warning: hn.kd.ny.adsl:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server hn.kd.ny.adsl:1
A VNC server is already running as :1
[失败]
[root@hn]# rm -rf /tmp/.X11-unix/X1
[root@hn]# service vncserver restart
关闭 VNC 服务器: [确定]
正在启动 VNC 服务器:1:root
WARNING: The first attempt to start Xvnc failed, possibly because the font
catalog is not properly configured. Attempting to determine an appropriate
font path for this system and restart Xvnc using that font path ...
Could not start Xvnc. _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running [失败]
[root@hn]# 解决方式:
[root@hn]# init 3
[root@hn]# service vncserver restart
关闭 VNC 服务器: [确定]
正在启动 VNC 服务器:1:root
New 'hn.kd.ny.adsl:1 (root)' desktop is hn.kd.ny.adsl:1 Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/hn.kd.ny.adsl:1.log [确定]
[root@hn]#
怎样从官网下载VNC Server服务端安装文件
怎样使用VNC Viewer连接远程CentOS服务器
CentOS6.5下安装远程桌面服务端软件VNC Server的更多相关文章
- 启用Win8(中文版/核心版)中被阉割的远程桌面服务端
Windows 8/8.1 标准版(中文版/核心版)中取消了远程桌面服务端,想通过远程连接到自己的电脑就很麻烦了,第三方远程桌面速度又不理想(如TeamViewer).通过以下方法可让系统恢复远程桌面 ...
- 启用Win8/10(中文版/核心版/家庭版)中被阉割的远程桌面服务端
Windows 8/8.1/10 标准版(中文版/核心版/家庭版)中取消了远程桌面服务端,想通过远程连接到自己的电脑就很麻烦了,第三方远程桌面速度又不理想(如TeamViewer).通过以下方法可让系 ...
- linux(centos 6.4)下安装php memcache服务端及其客户端(详细教程)
前言 在搭建个人博客时,由于没有使用任何框架,纯手工code前台和后台,导致遇到许多问题,其中一个问题就是mysql连接导致的页面相应速度异常低.在查询各种途径后,只能考虑使用memcache缓存.在 ...
- [转载] linux、Solaris下xdmcp远程桌面服务
原文链接 http://youlvconglin.blog.163.com/blog/static/52320420106243857254/ 使用图形界面远程登录linux和Solaris,首先要在 ...
- 在CentOS6.x下安装Compiz——桌面立方体,特效种种
很多人貌似认为compiz必须要emerland,但事实上,没这个必要. compiz+gnome,实用,而又华丽,是个不错的选择. compiz需要显卡驱动,一般情况下不成问题(别忘了这是很新的ce ...
- 启用Win10家庭版的远程桌面服务端
1,使用工具:下载地址:https://github.com/binarymaster/rdpwrap/releases 参考资料: https://blog.csdn.net/BaoBeiDeXia ...
- 在远程桌面服务中配置RD网关直接访问内网
原文地址:http://wangchunhai.blog.51cto.com/225186/1139388/ 远程桌面网关(RD 网关)是一项角色服务,使授权远程用户可以从任何连接到 Internet ...
- debian 9 安装远程桌面
1. 安装远程桌面服务: apt-get install xrdp 2. 修改设置文件 dpkg-reconfigure xserver-xorg-legacy 设置为anybody 3. 使用ms ...
- VPS的centOS6安装远程桌面
VPS的centOS6安装远程桌面 64位系统的需要编译安装 ttp://www.landui.com/help/Show-991.html xrdp是在图形界面下使用的,首先要确定您的centos系 ...
随机推荐
- 杂项:Kafka
ylbtech-杂项:Kafka Kafka是由Apache软件基金会开发的一个开源流处理平台,由Scala和Java编写.Kafka是一种高吞吐量的分布式发布订阅消息系统,它可以处理消费者规模的网站 ...
- java语言的运行机制
计算机高级编程语言按其程序的执行方式可分为编译型语言和解释型语言. 编译型语言是指使用专门的编译器,针对特定的操作系统将源程序代码一次性翻译成计算机能识别的机器指令.例如C.C++等都属于编译型语言. ...
- html基础知识整理
html 标题 <h1>这是一级标题</h1> <h2>这是二级标题</h2> <h3>这是三级标题</h3> html注释: ...
- 企业级时间轴插件Vue-timelinepick
简介 时间范围选择插件 取当前时间之前一段时间范围 按刻,小时,天分类 在线演示及下载 在线演示:https://yelingfeng.github.io/vue-timelinepick/ 本地下载 ...
- Android GoogleMap 谷歌地图从零开始
说明 由于国内使用v2最新的谷歌地图有很多限制,所有如果要在真机上测试运行要做一些准备 准备1: vpn必不可少啦 推荐cloud vpn或者betternet都是不错的免费vpn 准备2: 由于最新 ...
- Vue 项目打包和上线
1.把绝对路径改为相对路径 我们打开config/index.js 会看到一个build属性,这里就我们打包的基本配置了.你在这里可以修改打包的目录,打包的文件名.最重要的是一定要把绝对目录改为相对目 ...
- Ext未定义问题解决
做的项目用到EXT.NET,调试时候没问题,发布到IIS上出现EXT未定义,把项目的应用程序池改为Classic 模式就可以了.
- 前端web通过flask操作数据库-增删改查
后端python代码: #coding:utf8 from flask import Flask,request,render_template import pymysql as mysql imp ...
- Language Integrated Query
Language Integrated Query (LINQ, pronounced "link") is a Microsoft .NET Framework componen ...
- div与div之间的拖拽
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8" ...