1. 安装autocutsel
sudo apt-get install autocutsel
2. 打开/root/.vnc/xstartup,添加 autocutsel -fork
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
autocutsel -fork
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
# Fix to make GNOME work
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession
3. 关闭VNC
vncserver -kill :1
4. 启动VNC
vncserver :1