vncserver配置文件

.xstarup
#!/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 -nowin &
xterm -geometry 1366x768  -ls -title "$VNCDESKTOP Desktop" &
LANGUAGE="zh_CN.UTF8"
LANG="zh_CN.UTF8"
LC_ALL="zh_CN.UTF8"
export LANGUAGE LANG LC_ALL
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE="scim"
export XIM_PROGRAM="scim -d"
export QT_IM_MODULE="scim"
scim -d
gnome-session &

/etc/sysconfig/vncservers
VNCSERVERS="1:root 2:postgres"
VNCSERVERARGS[1]="-geometry 1366x768"
VNCSERVERARGS[2]="-geometry 1366x768"


http://linuxjcq.blog.51cto.com/3042600/748382

你可能感兴趣的:(server)