- 论坛徽章:
- 0
|
本帖最后由 gaoxianrui52 于 2013-10-22 10:10 编辑
另外,我想知道怎么设置才能让vncviewer 访问登录时,只需要输入vncpassword设置的密码,而不用输入用户的密码?求高手解答。
VNC配置文件内容:
# cat /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="1:root 2:gao"
#VNCSERVERS="1:gao"
VNCSERVERARGS[1]="-geometry 800x600 -nolisten tcp"
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp"
用户下xstartup配置内容:
cat /home/gao/.vnc/xstartup
#!/bin/sh
#[ -r /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
#export LANG
#export SYSFONT
#vncconfig -iconic &
#unset SESSION_MANAGER
#unset DBUS_SESSION_BUS_ADDRESS
#OS=`uname -s`
#if [ $OS = 'Linux' ]; then
# case "$WINDOWMANAGER" in
# *gnome*)
# if [ -e /etc/SuSE-release ]; then
# PATH=$PATH:/opt/gnome/bin
# export PATH
# fi
# ;;
# esac
#fi
#if [ -x /etc/X11/xinit/xinitrc ]; then
# exec /etc/X11/xinit/xinitrc
#fi
#if [ -f /etc/X11/xinit/xinitrc ]; then
# exec sh /etc/X11/xinit/xinitrc
#fi
#[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
#xsetroot -solid grey
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
#twm gnome-session
gnome-session
xstartup这个配置文件很多被我注释掉了,但跟不注释的情况差不多
|
|