`
redstarofsleep
  • 浏览: 444818 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

guacamole搭建,一个基于HTML5的VNC远程桌面

 
阅读更多

文章搬至CSDN, 最新内容请访问: http://blog.csdn.net/redstarofsleep/article/details/45092123

 

Guacamole是一个远程桌面的代理,它本身并没有实现VNC Server的功能.

个人理解它更像是一个VNC Viewer,或者说VNC Client的代理.

基本原理是这样的,看下面这个图:


Guacamole在VNC Server和浏览器之间建立了一个代理,Guacamole与VNC Server进行通信,就像VNC Viewer和Server之间的同信一样,然后Guacamole再将需要显示的数据传给浏览器进行显示,它和浏览器之间的通信用的是HTML5的WebSocket,然后浏览器再用Canvas将画面画出来.

 

我是在Ubunut12.04上搭建的Guacamole环境,Guacamole对VNC Server没有要求,我连接的是Windows上的VNC Server.

在Ubuntu上安装Guacamole是比较简单的,在保证Ubuntu能够连网的情况下,直接执行

 

apt-get install guacamole-tomcat

 待这个执行完,其实Guacamole就已经算装完了,然后进行一些简单的配置:

 

 

# ln -s /var/lib/guacamole/guacamole.war /var/lib/tomcat6/webapps
# ln -s /etc/guacamole/guacamole.properties /usr/share/tomcat6/.guacamole/

 这里要注意下,".guacamole"这个目录是没有的,需要自己建一下.

 

然后打开/etc/guacamole目录下的user-mapping.xml,把注释中的下面这段打开

 

<authorize username="USERNAME" password="PASSWORD">
        <protocol>vnc</protocol>
        <param name="hostname">localhost</param>
        <param name="port">5900</param>
        <param name="password">VNCPASS</param>
</authorize>

 这里的几个参数:

username和password是登录guacamole用的,

protocol是远程连接的协议,连接VNC Server默认就是vnc,不需要修改,

<param name="hostname">localhost</param>是VNC Server的IP地址

<param name="port">5900</param>是VNC的端口,如果VNC Server上没有修改过的话也不需要修改

<param name="password">VNCPASS</param>是连接VNC Server的密码,guacamote自动去连接,不需要用户输入的.

 

最后重启Tomcat

/etc/init.d/tomcat6 restart

 

然后浏览器中访问:http://ip:8080/guacamole/  (这里的IP是安装Guacamole的机器的IP)



 

好,至此一个最基本的Guacamole就搭建完成了.

 

转载请注明出处

  • 大小: 14.3 KB
  • 大小: 91.8 KB
2
1
分享到:
评论
6 楼 yuky1327 2014-02-07  
<authorize username="rdp" password="123456">
    <protocol>rdp</protocol>
    <param name="username">administrator</param>
<param name="password">Root-admin</param>
<param name="hostname">192.168.7.10</param>
    <param name="port">5900</param>
</authorize>

为什么rdp的连接不能成功?报Internal error,另外guacamole的日志在哪里可以看到?
我已经安装了xfreerdp了,xfreerdp   -u administrator -p Root-admin 192.168.7.10都能成功。
5 楼 redstarofsleep 2014-01-17  
yuky1327 写道
一月 17, 2014 1:22:45 上午 org.slf4j.impl.JCLLoggerAdapter error
严重: Server error in tunnel
org.glyptodon.guacamole.GuacamoleServerException: End of stream during initial handshake.
at org.glyptodon.guacamole.protocol.ConfiguredGuacamoleSocket.<init>(ConfiguredGuacamoleSocket.java:124)
at org.glyptodon.guacamole.net.auth.simple.SimpleConnection.connect(SimpleConnection.java:112)
at

请问你在部署的时候有没遇到上面的错误?

这个错误没有遇到过
4 楼 yuky1327 2014-01-16  
一月 17, 2014 1:22:45 上午 org.slf4j.impl.JCLLoggerAdapter error
严重: Server error in tunnel
org.glyptodon.guacamole.GuacamoleServerException: End of stream during initial handshake.
at org.glyptodon.guacamole.protocol.ConfiguredGuacamoleSocket.<init>(ConfiguredGuacamoleSocket.java:124)
at org.glyptodon.guacamole.net.auth.simple.SimpleConnection.connect(SimpleConnection.java:112)
at

请问你在部署的时候有没遇到上面的错误?
3 楼 lhx469215044 2013-12-30  
楼主好,我在ubuntu 10 上想搭建guacamole-0.8.3的开发环境,可是没成功。能发一篇这样的教程么?先谢了
2 楼 redstarofsleep 2013-12-16  
pwijkbije 写道
你好,我也想用这个软件,我下了最新的版本guacamole-0.8.3,我是在win7的32位系统用的tomcat7.0搭建的,vnc server 也是装在win7上,但是当我登陆http://192.168.2.2:8080/guacamole/ 成功后Recent Connections那一栏 显示“No recent connections”,我用的vnc服务器是realVNC:vnc-E4_6_1-x86_x64_win32。是不是我的这个vnc服务器不支持guacamole,还是有其他的问题?你是用的什么版本的VNC服务器。能把你用的vnc server发给我吗,非常感谢。我的邮箱是:pwijkbije@163.com

不是VNC的问题,是guacamole的安装问题,你windows上怎么装的guacamole-server?
1 楼 pwijkbije 2013-12-14  
你好,我也想用这个软件,我下了最新的版本guacamole-0.8.3,我是在win7的32位系统用的tomcat7.0搭建的,vnc server 也是装在win7上,但是当我登陆http://192.168.2.2:8080/guacamole/ 成功后Recent Connections那一栏 显示“No recent connections”,我用的vnc服务器是realVNC:vnc-E4_6_1-x86_x64_win32。是不是我的这个vnc服务器不支持guacamole,还是有其他的问题?你是用的什么版本的VNC服务器。能把你用的vnc server发给我吗,非常感谢。我的邮箱是:pwijkbije@163.com

相关推荐

    远程桌面中转,基于 UltraVNC Repeater(中继器)的远程桌面服务搭建,用于复杂网络环境

    远程桌面中转,基于 UltraVNC Repeater(中继器)的远程桌面服务搭建概述搭建 UltraVNC Repeater 中继器服务器windows 端搭建centos 端搭建客户端安装 UltraVNC Server 和 UltraVNC Viewer启动 UltraVNC Server启动 ...

    springboot Guacamole vnc远程与录屏播放

    而Guacamole是一款开源的应用程序,提供了一个基于Web的远程桌面网关,可以实现远程访问和控制各种类型的客户端,如VNC(Virtual Network Computing)。 VNC是一种远程桌面协议,允许用户通过网络远程控制另一台...

    guacamole-docker, 无客户端远程桌面网关的Docker 图像.zip

    guacamole-docker, 无客户端...Guacamole Guacamole 是一个无客户端远程桌面网关。 它支持像VNC和RDP这样的标准协议。 因为不需要插件或者客户端软件,我们称它为客户端。由于 HTML5,一旦在服务器上安装了,你需要访问

    Ubuntu16.04下搭建Guacamole-Tomcat环境

    Guacamole是一款开源的、基于HTML5的远程桌面网关,它允许用户通过Web浏览器访问和控制远程桌面,如Windows、Linux或Mac OS等。Tomcat是一个流行的Java应用服务器,用于部署和运行Java Web应用程序,包括Guacamole的...

    guacapy:适用于Apache Guacamole的REST API客户端

    Apache Guacamole是一款开源的远程桌面网关,它支持多种远程桌面协议,如RDP、VNC、SSH和SPICE,允许用户通过Web浏览器访问远程桌面。Guacapy是为Apache Guacamole设计的一个Python库,它提供了一个方便的REST API...

    guacamole-docker-compose:鳄梨酱与 docker-compose 使用 PostgreSQL,nginx 与 SSL(自签名)

    Apache Guacamole(孵化)是一个无客户端远程桌面网关。 它支持标准协议,如 VNC、RDP 和 SSH。 它被称为无客户端,因为不需要插件或客户端软件。 多亏了 HTML5,一旦在服务器上安装了 Guacamole,您访问桌面所需的...

    guac-install:在Ubuntu上安装Guacamole的脚本

    Guacamole是一款开源的远程桌面网关,它允许用户通过Web浏览器访问远程桌面会话,如Windows、Linux或Mac OS X系统。...在Ubuntu上使用`guac-install`脚本安装Guacamole,能帮助管理员快速搭建和管理远程桌面环境。

    next-terminal.7z

    Next Terminal 是一个专为IT管理员设计的轻量级堡垒机系统,它的主要功能是提供对远程设备的安全访问,包括RDP(远程桌面协议)、SSH(安全外壳协议)、VNC(虚拟网络计算)、Telnet和Kubernetes协议的支持。...

Global site tag (gtag.js) - Google Analytics