Исходная система: Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: xenial
- Установить зависимости
в зависимости от того какие сервисы должен поддерживать guacamole ставим или нет следующие зависимости: libfreerdp-dev libpango1.0-dev libssh-dev libssh2-1-dev libssl-dev libtelnet-dev libvorbis-dev libwebp-dev отсутствуют зависимости поддержки pulse и VNC.1apt install fail2ban build–essential htop mc maven libcairo2–dev libjpeg62–dev libpng–dev libossp–uuid–dev tomcat8 openjdk–8–jdk openjdk–8–jre libfreerdp–dev libpango1.0–dev libssh–dev libssh2–1–dev libssl–dev libtelnet–dev libvorbis–dev libwebp–dev libavcodec–dev libavutil–dev libswscale–dev
Вот эти три не факт что нужны, но тестить лень: libavcodec-dev libavutil-dev libswscale-dev
- Загрузить guacamole
12345wget http://sourceforge.net/projects/guacamole/files/current/source/guacamole–server–0.9.9.tar.gzwget http://sourceforge.net/projects/guacamole/files/current/binary/guacamole–0.9.9.warcp guacamole–0.9.9.war /var/lib/tomcat8/webapps/guacamole.warwget http://sourceforge.net/projects/guacamole/files/current/source/guacamole–client–0.9.9.tar.gztar –xvf guacamole–*tar.gz
- Установить guacamole клиент
12cd guacamole–client–0.9.9mvn package
- Установить guacamole сервер
На выходе должны получить:12cd ../guacamole–server–0.9.9./configure —with–init–dir=/etc/init.dЕсли либрари и протоколы устраивают компилируем:1234567891011121314151617181920212223242526————————————————————————guacamole–server version 0.9.9————————————————————————Library status:freerdp ............. yespango ............... yeslibssh2 ............. yeslibssl .............. yeslibtelnet ........... yeslibVNCServer ........ nolibvorbis ........... yeslibpulse ............ nolibwebp ............. yesProtocol support:RDP ....... yesSSH ....... yesTelnet .... yesVNC ....... noInit scripts: /etc/init.dType “make” to compile guacamole–server.1./configure —with–init–dir=/etc/init.d && make && make install
- Создать файлы конфигурации guacamole
1mkdir /etc/guacamole/Ссылка на конфигурацию1234567891011121314151617181920212223242526nano /etc/guacamole/guacamole.properties# Guacamole – Clientless Remote Desktop# Copyright (C) 2010 Michael Jumper## This program is free software: you can redistribute it and/or modify# it under the terms of the GNU Affero General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.## This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU Affero General Public License for more details.## You should have received a copy of the GNU Affero General Public License# along with this program. If not, see .# Hostname and port of guacamole proxyguacd–hostname: localhostguacd–port: 4822# Auth provider class (authenticates user/pass combination, needed if using the provided login screen)auth–provider: net.sourceforge.guacamole.net.basic.BasicFileAuthenticationProviderbasic–user–mapping: /etc/guacamole/user–mapping.xmlФайл настроек проксирования1ln –s /etc/guacamole/guacamole.properties /usr/share/tomcat8/lib/guacamole.properties1nano /etc/guacamole/user–mapping.xmlПерезапустить сервисы1234567891011121314<user–mapping><authorize username=“admin” password=“********” encoding=“md5”><connection name=“RDP-TS01”><protocol>rdp</protocol><param name=“hostname”>IP_ADDRESS</param><param name=“username”></param><param name=“password”></param><param name=“domain”></param><param name=“port”>3389</param><param name=“security”>rdp</param><param name=“ignore-cert”>true</param></connection></authorize></user–mapping>Ссылка на сервис http://hostname|ip_address:8080/guacamole/#/123ldconfig/etc/init.d/tomcat8 restart/etc/init.d/guacd restart
Используемые ссылки: http://guacamole.incubator.apache.org/doc/0.8.4/gug/installing-guacamole.html http://guacamole.incubator.apache.org/doc/gug/configuring-guacamole.html https://guacamole.incubator.apache.org/doc/gug/installing-guacamole.html