RHEL6vnc的配置 飞翔2011.9.5

RHEL6vnc的配置  飞翔2011.9.5

S首先安装vnc软件

#[root@station20 ~]# vim /etc/sysconfig/vncservers

 

# The VNCSERVERS variable is a list of display:user pairs.

#

# Uncomment the lines below to start a VNC server on display :2

# 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 this URL:

# http://kbase.redhat.com/faq/docs/DOC-7028

 

# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.

 

# Use "-localhost" to prevent remote VNC clients connecting except when

# doing so through a secure tunnel.  See the "-via" option in the

# `man vncviewer' manual page.

 

 VNCSERVERS="2:root 3:oracle"

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

#

取消掉nolisten localhost

多个用户的话1root 2:oracle 3ccd 这就是三个用户对应的桌面号

VNCSERVERARGS[1]="-geometry 800x600 "

VNCSERVERARGS[2]="-geometry 800x600 "

VNCSERVERARGS[3]="-geometry 800x600 "

VNCSERVERARGS[4]="-geometry 800x600 "

VNCSERVERARGS[5]="-geometry 800x600 "

VNCSERVERARGS[6]="-geometry 800x600 "

VNCSERVERARGS[7]="-geometry 800x600 "

VNCSERVERARGS[8]="-geometry 800x600 "

VNCSERVERARGS[9]="-geometry 800x600 "

~                                      

 

#vncpasswd 输入访问密码 不同的用户在不不同的用户下设置

#开启多个界面

#vncserver :1

#vncserver :2

如果要开启多个界面就如上面的参数设置  

 

本文出自 “asdasdfs.51.com” 博客,转载请与作者联系!

你可能感兴趣的:(职场,vnc,休闲,RHEL6)