VNC搭建
服务器:
[root@zdj ssh]# rpm -qa|grep vnc
tigervnc-1.1.0-5.el6.x86_64
libvncserver-0.9.7-4.el6.x86_64
gtk-vnc-python-0.3.10-3.el6.x86_64
gtk-vnc-0.3.10-3.el6.x86_64
tigervnc-server-1.1.0-5.el6.x86_64
---------------------已经安装VNC
[root@zdj ssh]# yum install tigervnc* -----------安装VNC
[root@zdj ssh]# vncserver :3 -------开启三号桌面
You will require a password to access your desktops.
Password: -------设置VNC密码
Verify:
New ‘zdj.hncsxy.com:3 (root)’ desktop is zdj.hncsxy.com:3
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/zdj.hncsxy.com:3.log
[root@zdj ssh]# vncpasswd --------修改vnc密码
Password:
Verify:
客户机:
Vncviewer 172.17.0.8:3 -shared -------可以控制
Vncviewer 172.17.0.8:3 -shared viewonly ----------不能控制,只能看
老师上课vnc配置
1.开启vncserver :6
2.自己vncviewer 172.17.10.252:6 -shared -fullscreen &
3.然后让同学们都连接到6号桌面,这样大家都在同一个桌面,就可以看到老师的操作