打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
CentOS 6.2 配置VNC

 Centos 6.2 配置VNC

cnetos6.2 的vnc 和以前5版本配置稍微有点区别,记下来。

安装vncserver
yum -y install tigervnc tigervnc-server 

#########################################################################

添加配置文件
vim /etc/sysconfig/vncservers 

 VNCSERVERS="1:root"
 VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"


###########################################################################
开启vncserver
vncserver :1
输入密码

修改配置文件
vim ~/.vnc/xstartup 
注释
#twm &
添加
gnome-session &

重启动服务
vncserver -kill :1
/etc/init.d/vncservser restart

将5901端口加入防火墙(修改/etc/sysconfig/iptables,添加5901端口)

必须明白:

vncserver在调用的时候,会根据你的配置来启用server端的监听端口,

端口默认是从5900开始,再加上你的桌面号。

比如你的桌面号为1,则vnc的连接端口号为5900+1=5901

比如你的桌面号为10000,则vnc的连接端口号为5900+10000=15900

使用vncclient连接

CentOS 6.2环境下安装VNC报错如下:

[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]

很是费解,后来搜索发现需要增加3个包即可解决该问题

yum install pixman pixman-devel libXfont

本文出自 “老尼” 博客,请务必保留此出处http://zcnick.blog.51cto.com/1992444/939006

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
CentOS7.2 部署VNC服务记录
@Centos7安装vnc
Centos7 安装VNC实现远程桌面
RHEL 6.2安装及配置VNC服务器
阿里云CentOS 7搭建VNC远程桌面服务步骤方法
Windows下使用VNC连接CentOS7远程桌面
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服