centos 6.2 64位安装vnc
2013-07-29 10:53
295 查看
一、 查看是否安装 VNC
yum groupinstall "Chinese Support"
yum groupinstall"Desktop"
打开配置文件的目录: cd /etc/sysconfig
2)编辑配置文件: vi i18n
3)用#号把第一行(LANG="en_US.UTF-8")注释掉,其实直接在这行改也是可以的,不过保险点的做法,还是先注释掉,等成功后再删除不迟。
在第一行下添加一行新行,输入(LANG="zh_CN.UTF-8"),然后保存文件,重启系统,就能见到亲切的中文啦。
好像 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
配置
修改 xstartup
文件把最后的 twm &
删掉加上 gnome-session &
[root@xen ~]# cd /root/.vnc/
[root@xen .vnc]# tail -n 3 xstartup
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title"$VNCDESKTOP Desktop" &
gnome-session &
如果直接启动
[root@xen .vnc]# /etc/init.d/vncserver start
正在启动 VNC 服务器:no displaysconfigured [失败]
所以要修改 /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
yum groupinstall "Chinese Support"
yum groupinstall"Desktop"
打开配置文件的目录: cd /etc/sysconfig
2)编辑配置文件: vi i18n
3)用#号把第一行(LANG="en_US.UTF-8")注释掉,其实直接在这行改也是可以的,不过保险点的做法,还是先注释掉,等成功后再删除不迟。
在第一行下添加一行新行,输入(LANG="zh_CN.UTF-8"),然后保存文件,重启系统,就能见到亲切的中文啦。
好像 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
配置
修改 xstartup
文件把最后的 twm &
删掉加上 gnome-session &
[root@xen ~]# cd /root/.vnc/
[root@xen .vnc]# tail -n 3 xstartup
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title"$VNCDESKTOP Desktop" &
gnome-session &
如果直接启动
[root@xen .vnc]# /etc/init.d/vncserver start
正在启动 VNC 服务器:no displaysconfigured [失败]
所以要修改 /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
相关文章推荐
- Centos6.2(64位)系统VNC安装文档
- 64位CentOS6.2安装erlang及rabbitmqServer
- hadoop学习笔记1--centos6.2 64位 最小化(minimal)安装配置
- CentOS 6.2(32位/64位) 安装步骤图文详解
- VMare Workstation 安装 Linux CentOS6.2 64位
- centos6.2 vnc安装及使用
- centos 6.5 64位 安装 vnc 远程桌面
- CentOS 6.2 64位安装Oracle 11g时check package无法通过
- centos 6.2 64位安装nginx,php,mysql和中文分词
- 在Linux(CentOS 6.2 64位操作系统)下安装MySQL数据并开启远程访问权限
- 生产环境下的centos6.2 64位下LAMP安装
- MongoDB 在centos6.2 64位下的安装及配置PHP扩展
- 在CentOS 6.2 64位机器上安装Vmware Server 2.0.2
- 腾讯云 CentOS6.2 64位 NFS 安装
- win7(64位)下安装centos6.2_64双系统
- centos 6.2 64位安装nginx php mysql
- 在64位CentOS6.2上安装64位oracle10g失败总结
- MongoDB(3.0.2)在centos6.2(64位)下安装
- CentOS6.2 64位 mysql源码安装
- centos6.2(64位)安装KVM虚拟机