六、vnc安装
环境说明:
本机win7系统
虚拟机 ubuntu11.10
本机win7 下载vnc viewer客户端
http://www.realvnc.com/products/free/4.1/winvncviewer.html
ubuntu11.10 安装vnc服务端 sudo apt-get install vnc4server
比如在/home/abc/.vnc目录,可以设置密码,日志等等信息
1、启动
vncserver
2、图形界面
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-fallback &
注掉x-window-manager
ubuntu 11.10默认采用gnome3特效,如果用gnome-session会看不到标题栏,因此需要采用gnome-session-fallback
http://www.linuxso.com/linuxrumen/13991.html
3、VNC的启动/停止/重启
关闭具体的vncserver命令:vncserver -kill :1 vncserver -kill :2
4、设置密码
#vncpasswd
5、客户端登录
在vnc客户端中输入:服务器端IP:1 或 服务器端IP:2
通过vnc web客户端连接(192.168.18.129:5801)
环境说明:
本机win7系统
虚拟机 ubuntu11.10
本机win7 下载vnc viewer客户端
http://www.realvnc.com/products/free/4.1/winvncviewer.html
ubuntu11.10 安装vnc服务端 sudo apt-get install vnc4server
比如在/home/abc/.vnc目录,可以设置密码,日志等等信息
1、启动
vncserver
2、图形界面
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-fallback &
注掉x-window-manager
ubuntu 11.10默认采用gnome3特效,如果用gnome-session会看不到标题栏,因此需要采用gnome-session-fallback
http://www.linuxso.com/linuxrumen/13991.html
3、VNC的启动/停止/重启
关闭具体的vncserver命令:vncserver -kill :1 vncserver -kill :2
4、设置密码
#vncpasswd
5、客户端登录
在vnc客户端中输入:服务器端IP:1 或 服务器端IP:2
通过vnc web客户端连接(192.168.18.129:5801)