您现在的位置是:首页 > 运维运维

CentOS VNC配置

谜团 2013-08-13 00:00:00【运维】人已围观

简介 安装:在光盘中找到vncserver包 1、VNC的启动/停止/重启 #service vncserver start/stop/restart 关闭具体的vncserver命令:vncserver -kill :1 vncserver -kill :2
2、设置密码 #vncpasswd
3、客户端登陆

安装:在光盘中找到vncserver包

1、VNC的启动/停止/重启

#service vncserver start/stop/restart

关闭具体的vncserver命令:vncserver -kill :1       vncserver -kill :2

 

2、设置密码

#vncpasswd

 

3、客户端登陆

在vnc客户端中输入:服务器端IP:1或服务器端IP:2

 

4、设置登陆到KDE桌面

a.

[root@centos ~]# vi /etc/sysconfig/vncservers

#

# Uncomment the line below to start a VNC server on display :1

# as my 'myusername' (adjust this to your own).  You will also

# need to set a VNC password; run 'man vncpasswd' to see how

# to do that.

#

# DO NOT RUN THIS SERVICE if your local area network is

# untrusted!  For a secure way of using VNC, see

# <URL:[url]http://www.uk.research.att.com/vnc/sshvnc.html[/url]>.

# VNCSERVERS="1:myusername"

VNCSERVERS="1:root"

# VNCSERVERARGS[1]="-geometry 800x600"

VNCSERVERARGS[1]=”-geometry 800×600 -alwaysshared -depth 24″

-alwaysshared代表允许多用户同时登录 -depth代为色深,参数有8,16,24,32。

c.

重启VNC即可

vncserver :1

很赞哦! ()

文章评论

热评榜