vnc配置

修改startup配置

sudo vim ~/.vnc/xstartup

添加权限:

chmod +x ~/.vnc/xstartup

#!/bin/bash
export $(dbus-launch)  
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER

gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &

# [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
# [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources

xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session &

无法启动时:

vncserver -localhost no

关闭vnc

vncserver -kill :1

你可能感兴趣的:(vim,linux,编辑器)