将鳄梨酱客户端集成到 Django 站点中

integration of a guacamole client into a django site

编辑:
我知道我必须使用 guacamole 项目提供的 api,现在的疑问是:我如何在 jango 中使用像 guacamole-common 这样的 java api ?


我想寻求有关在 django 站点中开发鳄梨酱客户端的帮助。 不幸的是,我并不是这方面的专家,我不知道这是否真的可行,而且在互联网上看我也没有运气。 使用 django 可以执行 javascript 代码,所以我相信有办法。 我已经阅读了 Guacamole 网站上的用户手册,特别是“第 27 章。编写您自己的 Guacamole 应用程序”(http://guacamole.apache.org/doc/gug/writing-you-own-guacamole-app .html)中解释的过程,但是,我不明白它是否是使用指南中列出的工具严格可实现的解决方案,或者如果以某种方式可以在不同环境中实现相同的事情。 我对使用的方法或工具没有任何义务,所以我对所有解决方案持开放态度,即使是最有想象力的。 提前致谢

有可能。在后端(图中的黄色框),您必须 运行 鳄梨酱本身 (guacd) 和鳄梨酱隧道实现。实现有不同的语言。我知道的是 Java and NodeJS. If you can't find an implementation in your required language, you can create one, mapping this code 1:1 to your preferred language. After you set up the tunnel, you need to create the client application(purple box) using the guacamole front-end library, guacamole-common-js. If you dont use npm, you can use the js files as they are. Check out its documentation and the reference AngularJS implementation of the guacamole client application,使用 guacamole-common-js 创建的。您可以下载整个 repo 并搜索诸如“onclipboard”之类的细节。这将帮助您了解如何实施您自己的解决方案。我已经在 ubuntu 虚拟机上使用 guacd 服务和 nodejs 隧道 运行ning 完成了所有这些,客户端应用程序使用 guacamole-common-js 做出反应。