centos6.2 vncserver配置
来源:互联网 发布:下载新软件 编辑:程序博客网 时间:2024/06/05 13:29
一、 查看是否安装 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 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,方法是将需要自动管理的信息添加到/etc/sysconfig/vncservers配置文件中,先以桌面1为root用户桌面2为oracle用户为例进行配置如下:
格式为:VNCSERVERS="桌面号:使用的用户名 桌面号:使用的用户名"
[root@testdb ~]# vi /etc/sysconfig/vncservers
VNCSERVERS="1:root 2:oracle"
VNCSERVERARGS[1]="-geometry 1024x768"
VNCSERVERARGS[2]="-geometry 1024x768"
- centos6.2 vncserver配置
- centos6.5配置vncserver
- centos6.5上vncserver上的相关配置
- centos7.2 vncserver配置安装
- centos6.5安装vncserver
- vncserver 配置
- VNCserver 配置
- vncserver配置
- vncserver 配置
- CentOS6.5_x64安装VNCserver
- VNCserver的配置
- VNCServer的配置
- RHEL5下配置vncserver
- VNCserver 配置 gnome 桌面
- linux VNCserver配置
- vncserver配置分辨率
- RHEL5上配置VNCSERVER
- Linux VncServer 配置
- android显示GIF图片
- 【计算机网络常见面试题】VLAN有什么特点
- Windows 驱动程序设计(一)
- Opencv学习笔记(2)模块,图像读取、显示、叠加、融合、颜色分离、亮度、对比度
- hbase shell 简单使用
- centos6.2 vncserver配置
- Ubuntu如何安装pacman
- Java中关于Iterator和Iteratable设计的思考
- 我为App做测试---搜狐新闻(1)
- android开发中结束所有activity
- WINCE 电池状态(C#)
- SQL存储过程实现SPSS交叉表(有图有真相)
- HDOJ 4630 No Pain No Game
- 【计算机网络常见面试题】SNMP