Difference between revisions of "Apache Guacamole"
Line 83: | Line 83: | ||
<code>cd guacamole-auth-jdbc-1.4.0/mysql/<code> | <code>cd guacamole-auth-jdbc-1.4.0/mysql/<code> | ||
<code>cat schema/*.sql | mysql -u root -p guacamole_db</code> | <code>cat schema/*.sql | mysql -u root -p guacamole_db</code></code> | ||
'''Connect Guac to MySQL''' | '''Connect Guac to MySQL''' |
Revision as of 17:12, 18 August 2022
Apache Guacamole is a self hosted web application for Remote Desktop services. Guacamole allows remote desktop services to be accessed over HTTP.
The main page for Apache Guacamole can be accessed here:
Installation
This guide is best suited for a Guacamole installation on Ubuntu Server 20.04 LTS
Run as Root
sudo su
Update System
apt update && apt upgrade
Install MariaDB
apt install mariadb-server
Install Dependencies
apt install -y build-essential libcairo2-dev libjpeg62-turbo-dev libpng-dev libtool-bin libossp-uuid-dev libavutil-dev libswscale-dev freerdp2-dev libpango1.0-dev libssh2-1-dev libvncserver-dev libtelnet-dev libwebsockets-dev libssl-dev libvorbis-dev libwebp-dev libpulse-dev sudo vim
Install tomcat9
<code?sudo apt install tomcat9 -y
Enable tomcat
sudo systemctl enable --now tomcat9
sudo systemctl status tomcat9
Get Guacamole server code
wget https://dlcdn.apache.org/guacamole/1.4.0/source/guacamole-server-1.4.0.tar.gz
untar
tar -xzf guacamole-server-1.4.0.tar.gz
Install
cd guacamole-server-1.4.0/
./configure --with-systemd-dir=/etc/systemd/system/ --disable-dependency-tracking
make
make install
sudo ldconfig
sudo systemctl daemon-reload
sudo systemctl enable --now guacd
sudo systemctl status guacd
Edit Guac Config
echo GUACAMOLE_HOME=/etc/guacamole >> /etc/default/tomcat9
mkdir -p /etc/guacamole/{extensions,lib}
touch /etc/guacamole/{guacamole.properties,guacd.conf}
Set Up MariaDB
mysql -u root -p
CREATE DATABASE guacamole_db;
exit
Set Up MySQL Connector
wget https://dlcdn.apache.org/guacamole/1.4.0/binary/guacamole-auth-jdbc-1.4.0.tar.gz
tar -xf guacamole-auth-jdbc-1.4.0.tar.gz
cd guacamole-auth-jdbc-1.4.0/mysql/
cat schema/*.sql | mysql -u root -p guacamole_db
Connect Guac to MySQL
mysql -u root -p
CREATE USER 'guacamole_user'@'localhost' IDENTIFIED BY 'StrongPassword';
GRANT SELECT,INSERT,UPDATE,DELETE ON guacamole_db.* TO 'guacamole_user'@'localhost';
FLUSH PRIVILEGES;
exit
2nd section title
text
See also
-
-
References
<references />
Bibliography
External links
-
-