Difference between revisions of "Apache Guacamole"

From Khem Geek Wiki
Jump to navigation Jump to search
Line 43: Line 43:
'''Install'''
'''Install'''


<code>cd guacamole-server-1.4.0/
<code>cd guacamole-server-1.4.0/</code>
./configure --with-systemd-dir=/etc/systemd/system/ --disable-dependency-tracking
make
make install</code>


<code>./configure --with-systemd-dir=/etc/systemd/system/ --disable-dependency-tracking</code>


<code>make</code>
<code>make install</code>
<code>sudo ldconfig</code>
<code>sudo systemctl daemon-reload</code>
<code>sudo systemctl enable --now guacd</code>
<code>sudo systemctl status guacd</code>
'''Edit Guac Config'''
<code>echo GUACAMOLE_HOME=/etc/guacamole >> /etc/default/tomcat9</code>
<code>mkdir -p /etc/guacamole/{extensions,lib}</code>
<code>touch /etc/guacamole/{guacamole.properties,guacd.conf}</code>
'''Set Up MariaDB'''
<code>mysql -u root -p</code>
<code>CREATE DATABASE guacamole_db;</code>
<code>exit</code>
'''Set Up MySQL Connector'''
<code>wget https://dlcdn.apache.org/guacamole/1.4.0/binary/guacamole-auth-jdbc-1.4.0.tar.gz</code>
<code>tar -xf guacamole-auth-jdbc-1.4.0.tar.gz</code>
<code>cd guacamole-auth-jdbc-1.4.0/mysql/<code>
<code>cat schema/*.sql | mysql -u root -p guacamole_db</code>
'''Connect Guac to MySQL'''
<code>mysql -u root -p</code>
<code>CREATE USER 'guacamole_user'@'localhost' IDENTIFIED BY 'StrongPassword';</code>
<code>GRANT SELECT,INSERT,UPDATE,DELETE ON guacamole_db.* TO 'guacamole_user'@'localhost';</code>
<code>FLUSH PRIVILEGES;</code>
<code>exit</code>


== 2nd section title ==
== 2nd section title ==

Revision as of 17:09, 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:

https://guacamole.apache.org/

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

  •  
  •