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系 ...
随机推荐
- 解决xftp失去链接需要重新链接问题。
XFTP 失去连接需要重新连接 打开 Xftp 主程序. 在顶部菜单[文件] – [属性], 打开[默认会话属性]窗口,点击[选项],在连接部分选择勾选"发送保持活动状态消息(s)" ...
- nyoj--127--星际之门(一)(生成树的数量)
星际之门(一) 时间限制:3000 ms | 内存限制:65535 KB 难度:3 描述 公元3000年,子虚帝国统领着N个星系,原先它们是靠近光束飞船来进行旅行的,近来,X博士发明了星际之门,它 ...
- Ubuntu搭建docker环境
一丶自己搭建Ubuntu的虚拟机(网上很多教程) PS:下带图形化界面的Ubuntu镜像,这里只说一下要装那些工具和做那些配置 安装vim sudo apt-get install ...
- PIE加载自定义服务数据详细介绍
这段时间我一直在研究如何用PIE加载在线地图服务,遇到了许多问题,多亏了技术员小姐姐的帮助,才让我能正确加载ArcGIS Online在线服务.天地图在线地图和谷歌在线地图.我是根据博客园PIE官方博 ...
- (转)ORA-01502
问题:ora-01502 索引或这类索引的分区处于不可用状态 引发:移动数据表分区,导致索引失效 解决:重建失效索引 1. select index_name ,status from user_i ...
- Python学习笔记基础篇-(1)Python周边
一.系统命令 1.Ctrl+D 退出Python IDLE input方法中输入EOF字符,键入Ctrl+D 2.命令行选项: -d 提供调试输出 -O 生成优化的字节码(.pyo文件) -S 不 ...
- python版本及ML库
一:关于Python版本的选择问题 关于Python的选择问题:要看学术界能不能把科学库迁移到Python3. 1:多个版本共用: 最近发现SciPy的最高版本是3.2,只能是退而求其次,不使用最新版 ...
- 给DBA 的mysql脚本格式
- H5动效的常见制作手法
众所周知,一个元素,动往往比静更吸引眼球: 一套操作界面,合适的动态交互反馈能给用户带来更好的操作体验: 一个H5运营宣传页,炫酷的动画特效定能助力传播和品牌打造. 近两年,小到loading动画,表 ...
- jQuery访问json文件(一个例子)
保存网址 打开时 点开一个类型 当点开一个类型,其他类型隐藏 回到所有类型 没有错,左下角有个这是什么样子的图标 做到了什么: 1.从json文件中取得网址,并根据访问次数排列,放到前面: 2.就是1 ...