现在的位置: 首页 > 综合 > 正文

redhat6.0下使用vnc

2012年10月17日 ⁄ 综合 ⁄ 共 580字 ⁄ 字号 评论关闭

centos/redhat 6.0 安装好后需要在windows上远程管理,类似windows的远程桌面,如下:

 

1、yum install tiger* :安装vnc的组件包;

2、修改vnc配置文件:vim /etc/sysconfig/vncservers

3、设置登录vnc密码:vncpasswd

# VNCSERVERS="2:myusername"
# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"

VNCSERVERS="2:root"
VNCSERVERARGS[2]="-geometry 1024x768"

前两行是文档的例子,根据例子修改就好了,记得把myusername改为你要登录的用户名,可以按照我的格式来。

4、启动服务  chkconfig  vncserver on :开机启动   service vncserver restart :启动服务

5、关闭防火墙和selinux:

chkconfig iptables off
service iptables stop
vim /etc/selinux/config  修改SELINUX=disabled ,重启后生效

 setenforce 0 ,不需要重启,立即生效,只限于当次

 

这时即可在windows上使用vnc远程管理,登录方式:192.168.0.1:5902。

抱歉!评论已关闭.