服务端运行:
vncserver -geometry 1366x768 -depth 24
服务端关闭:
vncserver -kill :1
配置:
vncconfig -nowin &
如何使用gnome:
修改~/.vnc/xstartup
注销x-windows一行,增加一行gnome-session
如下:
#!/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 &
#startkde & #启动KDE桌面
gnome-session & #启动gnome桌面