退出vnc桌面 gnome-session-quit
要kill 一个端口用
vncserver -kill :num
安装 sudo apt-get install openssh-server
在VNC terminal中,使用下面命令可以将vnc中的文本复制到外部的系统中
vncconfig -nowin&
Date 2012/08/16
配置vncserver ubuntu远程服务器图形界面
修改/home/tanlu/.vnc下的xstartup文件
#!/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 &
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
gnome-session &
Date 2012/10.25
VNC4Server这样配置才有用
修改/home/tanlu/.vnc下的xstartup文件
#!/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 &
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP #Desktop" &
x-window-manager &a
gnome-session &
远程VNC Press D键 清屏
Ubuntu 10.10版本后增添了对Windows键的定义,在里面被定义为Super键,当用户在VNC下按下字母"d"时,会被错误的当做返回桌面的快捷方式导致d无法被输入,此时可修改快捷键方式来避免此bug,新打开一个终端,在里面输入:gconf-editor,这样会弹出一个对话框,到“Apps->Metacity->Global keybingdings"中找“show desktop”,修改默认值。注销之后重新登录生效。
参考网址:http://blog.sina.com.cn/s/blog_6db040920100sqmw.html