windows通过VNC访问远程ubuntu14.04 server服务器
apt-get install xrdp
apt-get install vnc4server
启动vnc4server,第一次启动需要设置密码
vncserver
apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
启动脚本
修改xstartup,
gedit ~/.vnc/xstartup
内容如下
#!/bin/sh
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &
重启vnc
vncserver -kill :1
vncserver :1
windows下安装 vncviewer
输入服务器ip:5901
输入服务器端所设密码
apt-get install vnc4server
启动vnc4server,第一次启动需要设置密码
vncserver
apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
启动脚本
修改xstartup,
gedit ~/.vnc/xstartup
内容如下
#!/bin/sh
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &
重启vnc
vncserver -kill :1
vncserver :1
windows下安装 vncviewer
输入服务器ip:5901
输入服务器端所设密码