ITPub博客

首页 > Linux操作系统 > Linux操作系统 > REDHAT LINUX AS 4下设置VNC

REDHAT LINUX AS 4下设置VNC

原创 Linux操作系统 作者:c4313848 时间:2009-02-20 11:46:20 0 删除 编辑
编辑 /root/.vnc/xstartup文件
修改后内容为:

#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session& 
#twm &
~
~

编辑/etc/sysconfig/vncservers文件:

修改后内容为:

# The VNCSERVERS variable is a list of display:user pairs.
#
# 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
# .

# VNCSERVERS="1:myusername"
# VNCSERVERARGS[1]="-geometry 800x600"

VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x768 -alwaysshared"
~

把VNCSERVER加载到自动启动中

使用 service vncserver start  启动VNC








来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/728081/viewspace-555767/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-11-14

  • 博文量
    26
  • 访问量
    39288