天天看点

CentOS 5.11开启VNC访问

因为某些情况下,需要使用到Linux的桌面环境,如Oracle的安装与配置就需要图形化界面。

默认情况下,我们已经安装安装了Gnome桌面环境

1

<code>yum -y </code><code>install</code> <code>vncserver</code>

配置vncserver,在/etc/sysconfig/vncserver新增

2

<code>VNCSERVERS=</code><code>"1:root"</code>

<code>VNCSERVERARGS[1]=</code><code>"-geometry 1024x768 -alwaysshared -depth 24"</code>

配置VNC连接密码

vncpasswd

设置VNC初始化

vncserver

然后配置

vim .vnc/xstartup

#twm &amp;      #注释这样

gnome-session &amp;   #新增这样

默认情况下twm是一个很小型的图形界面完全不符合我们的操作需求

然后启动服务

service vncserver start;chkconfig vncserver on

本文转自 rong341233 51CTO博客,原文链接:http://blog.51cto.com/fengwan/1726775

继续阅读