简介
Apache Guacamole 是无客户端远程桌面网关. 它支持标准协议, 例如 VNC,RDP 和 SSH.
我们称其为无客户端, 因为不需要插件或客户端软件.
多亏了 html5, 在服务器上安装了鳄梨调味酱之后, 只需使用 web 浏览器即可访问桌面.
[前期文章]
[玩转腾讯云] 一. 半小时轻松搭建属于自己的 Discuz! 论坛
[玩转腾讯云] 二. 基于 CVM 服务器轻松部署 PostgreSQL 数据库
[玩转腾讯云] 三. 云端轻松构建部署 WordPress 网站应用
[玩转腾讯云] 四. 使用云服务器 CVM 轻松部署 Node.JS
[玩转腾讯云] 五. 手把手教你用 VNC 搭建 Ubuntu 可视化界面 (一)
[玩转腾讯云] 六. 3 分钟打造个人专属云盘, 速度吊打某云盘
[玩转腾讯云] 七. 基于 CVM 快速搭建部署属于自己的维基百科
[玩转腾讯云] 八. 一分钟快速上手搭建宝塔管理面板
[玩转腾讯云] 九. 云开发 CloudBase 快速搭建 hexo 博客
- yum install http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
- yum install FFMPEG-devel
- yum install libvncserver-devel freerdp1.2-devel libssh2-devel openssl-devel pango-devel libtelnet-devel pulseaudio-libs-devel libvorbis-devel libwebp-devel
cd /usr/local/src wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-9/v9.0.34/bin/apache-tomcat-9.0.34.tar.gz
cd /usr/local/src/ wget https://mirrors.tuna.tsinghua.edu.cn/apache/guacamole/1.1.0/source/guacamole-server-1.1.0.tar.gz
cd /usr/local/src/apache-tomcat-9.0.31/webapps/ wget http://mirror.bit.edu.cn/apache/guacamole/1.1.0/binary/guacamole-1.1.0.war
cd /usr/local/src/ tar -zxvf guacamole-server-1.1.0.tar.gz
make -j4 make install
cd /etc/guacamole VIM guacamole.properties
guacd-hostname: localhost guacd-port:4822 user-mapping:/etc/guacamole/user-mapping.xml enable-clipboard-integration: true
<user-mapping> <!-- 每用户身份验证和配置信息 --> <authorize username="admin" password="123456"> <!-- 第一授权连接 --> <connection name="mycentos"> <protocol>SSH</protocol> <param name="hostname">localhost</param> <param name="port">22</param> <param name="username">root</param> <param name="password">123456789</param> </connection> <!-- 第二授权连接 --> <connection name="PLVPS"> <protocol>SSH</protocol> <param name="hostname">1.0.0.9</param> <param name="port">22</param> <param name="username">root</param> <param name="password">123456789</param> </connection> <!-- 第三授权连接 --> <connection name="windows"> <protocol>rdp</protocol> <param name="hostname">1.0.1.9</param> <param name="port">3389</param> <param name="security">tls</param> #连接加密方式. 默认使用标准 RDP 加密方式. 可选参数: rdp,nla,tls,any 建议设置 tls <param name="ignore-cert">true</param> #如果设置为 true, 则忽略服务器返回的证书建议 true <param name="enable-drive">true</param> #启用文件传输, 需要配合下一条指定路径使用 <param name="drive-path">c:\</param> #Guacamole 服务器上应存储传输文件的目录 <param name="username">administrator</param> <param name="password">123456789</param> </connection> </authorize> <!-- 另一个用户, 但使用 md5 哈希密码 (下面的示例使用 "PASSWORD" 的 md5 哈希值) --> <authorize username="USERNAME2" password="319f4d26e3c536b5dd871bb2c52e3178"encoding="md5"> </authorize></user-mapping>
sh /usr/local/src/apache-tomcat-9.0.34/bin/shutdown.sh sh /usr/local/src/apache-tomcat-9.0.34/bin/startup.sh
来源: https://www.qcloud.com/developer/article/1616555