尝试在CentOS 7上安装Apache Guacamole 1.1.0版本
0. 前提条件 tí
Note: The given phrase “前提条件” is already in Chinese.
マシンIPアドレスOSユーザOSパスワード接続元PC任意–Guacamole CentOS 7192.168.56.10–接続先 Windows 10192.168.56.11windows10_userwindows10_pass接続先 CentOS 7192.168.56.12centos7_usercentos7_pass
1. CentOS 7的【Guacamole】事先准备
# systemctl stop firewalld
# systemctl disable firewalld
2. 添加仓库【Guacamole CentOS 7】。
# yum -y --disablerepo=updates install epel-release
3. 安装软件包【Guacamole CentOS 7】
# yum install -y --disablerepo=updates \
guacd \
libguac-client-kubernetes \
libguac-client-rdp \
libguac-client-ssh \
libguac-client-telnet \
libguac-client-vnc
4. 安装和配置WebUI(Tomcat)【Guacamole CentOS 7】
# yum install -y --disablerepo=updates -y tomcat
# curl -Lo /var/lib/tomcat/webapps/guacamole.war \
http://archive.apache.org/dist/guacamole/1.1.0/binary/guacamole-1.1.0.war
5. 连接目标设定【Guacamole CentOS 7】
# mkdir -p /etc/guacamole/
# cat <<EOF >/etc/guacamole/user-mapping.xml
<user-mapping>
<authorize username="guacuser" password="guacpass">
<connection name="Windows 10">
<protocol>rdp</protocol>
<param name="hostname">192.168.56.11</param>
<param name="username">windows10_user</param>
<param name="password">windows10_pass</param>
<param name="ignore-cert">true</param>
</connection>
<connection name="CentOS 7">
<protocol>ssh</protocol>
<param name="hostname">192.168.56.12</param>
<param name="username">centos7_user</param>
<param name="password">centos7_pass</param>
</connection>
</authorize>
</user-mapping>
EOF
6. 通过启动【Guacamole CentOS 7】来运行Guacamole。
# systemctl start guacd
# systemctl start tomcat
7. 确认操作【连接的电脑】
-
- 使用浏览器访问 http://192.168.56.10:8080/guacamole/。
- 使用在 user-mapping.xml 配置的用户名和密码(例如guacuser/guacpass)进行登录。