My $HOME/.vnc/xstartup

By: Zhiqiang Ma In: Linux

This configuration files makes VNC to use gnome as the desktop environment of remote server instead of the default (twm).

使用gnome作为远程登录的桌面系统,而不是默认的twm

The ~/.vnc/xstartup file:

#!/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" &
#twm &
gnome-session &
Author: Zhiqiang Ma Last updated on: Jul 18, 2011 Posted on: Aug 16, 2008 Views: 369
Tags: ,
Add your comments, share your thoughts

Be nice. Keep it clean. Stay on topic. No spam.