CentOS6.4安装与配置VNC
2014-12-04 13:20
429 查看
一、查看是否安装 VNC
好像 6.0 以后VNC名字由 vnc 改成 tigervnc
[root@xen ~]# rpm -qa|grep tigervnc
tigervnc-1.0.90-0.17.20110314svn4359.el6.x86_64
tigervnc-server-1.0.90-0.17.20110314svn4359.el6.x86_64
如果没有就安装下了
[root@xen ~]# yum install tigervnc tigervnc-server
添加启动项
[root@xen ~]# chkconfig --add vncserver
[root@xen ~]# chkconfig vncserver on
二、设置 VNC 密码
[root@xen ~]# vncserver
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/xen:1.log
会在当前用户主目录下生成 .vnc 目录和配置文件
[root@xen ~]# vncpasswd
Password:
Verify:
设置的密码保存在 /root/.vnc/passwd
三、VNC 配置
如果直接启动
[root@xen .vnc]# /etc/init.d/vncserver start
正在启动 VNC 服务器:no displays configured [失败]
所以要修改 /etc/sysconfig/vncservers 文件添加以下内容
VNCSERVERS="2:root"
# 桌面号:用户监听 590* 端口
VNCSERVERARGS[2]="-geometry 800x600"
这样修改后,就算 /etc/inittab 启动模式为 3 也可以正常进入图形界面
启动 vncserver
[root@xen ~]# /etc/init.d/vncserver start
正在启动 VNC 服务器:2:root xauth: (stdin):1: bad display name "xen:2" in "add" command
New 'xen:2 (root)' desktop is xen:2
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/xen:2.log
[确定]
四、VNC 连接
10.10.10.15:5902
问题:
1、VNC客户端连接过去,灰色屏幕;解决如下:
安装X Window System和Desktop两组包即可:
yum groupinstall “X Window System”-y;yum groupinstall Desktop -y
好像 6.0 以后VNC名字由 vnc 改成 tigervnc
[root@xen ~]# rpm -qa|grep tigervnc
tigervnc-1.0.90-0.17.20110314svn4359.el6.x86_64
tigervnc-server-1.0.90-0.17.20110314svn4359.el6.x86_64
如果没有就安装下了
[root@xen ~]# yum install tigervnc tigervnc-server
添加启动项
[root@xen ~]# chkconfig --add vncserver
[root@xen ~]# chkconfig vncserver on
二、设置 VNC 密码
[root@xen ~]# vncserver
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/xen:1.log
会在当前用户主目录下生成 .vnc 目录和配置文件
[root@xen ~]# vncpasswd
Password:
Verify:
设置的密码保存在 /root/.vnc/passwd
三、VNC 配置
如果直接启动
[root@xen .vnc]# /etc/init.d/vncserver start
正在启动 VNC 服务器:no displays configured [失败]
所以要修改 /etc/sysconfig/vncservers 文件添加以下内容
VNCSERVERS="2:root"
# 桌面号:用户监听 590* 端口
VNCSERVERARGS[2]="-geometry 800x600"
这样修改后,就算 /etc/inittab 启动模式为 3 也可以正常进入图形界面
启动 vncserver
[root@xen ~]# /etc/init.d/vncserver start
正在启动 VNC 服务器:2:root xauth: (stdin):1: bad display name "xen:2" in "add" command
New 'xen:2 (root)' desktop is xen:2
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/xen:2.log
[确定]
四、VNC 连接
10.10.10.15:5902
问题:
1、VNC客户端连接过去,灰色屏幕;解决如下:
安装X Window System和Desktop两组包即可:
yum groupinstall “X Window System”-y;yum groupinstall Desktop -y
相关文章推荐
- CentOS 6.4安装和配置VNC服务
- CentOS 6.4安装和配置VNC服务
- CentOS 6.4 i386的学习笔记-003 vsftp 的安装与简单配置
- 详细解析:在CentOS下安装配置VNC的过程
- CentOS6 vnc服务安装配置
- CentOS6下VNC的安装与配置
- 在CentOS下安装配置VNC详细过程
- 在CentOS 5 下安装配置VNC
- Centos下VNC的安装和配置
- CentOS 6.4安装配置LAMP服务器(Apache+PHP5+MySQL)
- CentOS 5 下安装配置VNC
- CentOS6.4安装及配置oracle
- CentOS6.4安装配置epel和rpmforge
- CentOS 6.4安装配置LNMP服务器(Nginx+PHP+MySQL)
- 服务器安装centos6.4 x86_64 与 配置XManager的XDMCP服务 与 配置Ntfs读写
- CentOS6.4系统中Mysql数据库卸载、安装与配置教程
- 在CentOS 5 下安装配置VNC
- 在CentOS 5 下安装配置VNC
- CentOS下安装配置VNC的过程
- CentOS 6.4系统下编译安装LNMP和配置PHP环境具体步骤