安装
参考链接: ?https://blog.csdn.net/Yg854879464/article/details/82151314? (有jdk、tomcat配置教程) ?https://blog.csdn.net/asd372506589/article/details/106399868? ?https://blog.csdn.net/cuiran/article/details/106609133?
系统环境
CentOS7 + tomcat + jdk + guacamole
安装依赖环境
rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
yum -y install http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
安装依赖包
yum -y install cairo-devel libjpeg-devel libpng-devel uuid-devel
yum -y install ffmpeg-devel freerdp-devel pango-devel libssh2-devel
yum -y install libtelnet-devel libvncserver-devel pulseaudio-libs-devel
yum -y install openssl-devel libvorbis-devel libwebp-devel
yum -y install freerdp-plugins
下载安装包
https://guacamole.apache.org/releases/1.4.0/
服务端安装
解压下载的guacamole-server-1.4.0.tar.gz放在任意目录都可以
解压并安装:
tar -xzvf guacamole-server-0.9.14.tar.gz
cd /guacamole-server-0.9.14/
./configure --with-init-dir=/etc/init.d
在当前目录下继续执行:
make
make install
ldconfig
安装完成之后,可以使用以下来看guacd是否安装成功:
service guacd start
service guacd stop
service guacd restart
//success
以上:服务端安装好了
客户端安装
将下载的guacamole-1.4.0.war,放入webapp目录下。
创建/etc/guacamole/文件目录:
mkdir /etc/guacamole/
创建guacamole.properties文件:
cd /etc/guacamole/
vi guacamole.properties
guacamole.properties文本内容:
basic-user-mapping: /etc/guacamole/user-mapping.xml
在/etc/guacamole/目录下创建user-mapping.xml文件:
vi user-mapping.xml
user-mapping.xml文本内容:
<user-mapping>
<authorize password="123456" username="admin">
<connection name="rdp-windows-zongmin">
<protocol>rdp</protocol>
<param name="hostname">119.XXXX.121.XXXX</param>
<param name="port">3389</param>
<param name="username">XXXX</param>
<param name="password">XXXXXX</param>
</connection>
<connection name="rdp-192.XXXX.41.XXXX">
<protocol>rdp</protocol>
<param name="hostname">192.XXXX.41.XXXX</param>
<param name="port">3389</param>
<param name="username">XXXXX</param>
<param name="password">XXXXX</param>
</connection>
<connection name="ssh-192.XXXX.41.XXXX">
<protocol>ssh</protocol>
<param name="hostname">192.XXXX.41.XXXX</param>
<param name="port">22</param>
<param name="username">XXXXX</param>
<param name="password">XXXXX</param>
<param name="enable-sftp">true</param>
<param name="sftp-hostname">192.XXXX.41.XXXX</param>
<param name="sftp-root-directory">/data/sftp</param>
<param name="sftp-username">XXXXX</param>
<param name="sftp-password">XXXXX</param>
</connection>
<connection name="ssh-192.XXXX.41.XXXX">
<protocol>ssh</protocol>
<param name="hostname">192.XXXX.41.XXXX</param>
<param name="port">22</param>
<param name="username">XXXXX</param>
<param name="password">XXXXX</param>
<param name="enable-sftp">true</param>
<param name="sftp-hostname">192.XXXX.41.XXXX</param>
<param name="sftp-root-directory">/data/sftp</param>
<param name="sftp-username">XXXXX</param>
<param name="sftp-password">XXXXX</param>
</connection>
</authorize>
</user-mapping>
验证是否成功
开tomcat、开guacd
systemctl tomcat start
service guacd restart
浏览器页面
输入: http://虚拟机的ip地址:8080/guacamole/#/e
用户名:admin 密码:123456
|