Difference between revisions of "Apache Guacamole"

Jump to navigation Jump to search
1,573 bytes added ,  18:08, 18 August 2022
Line 77: Line 77:
'''Set Up MySQL Connector'''
'''Set Up MySQL Connector'''


<code>wget </nowiki>https://dlcdn.apache.org/guacamole/1.4.0/binary/guacamole-auth-jdbc-1.4.0.tar.gz<nowiki></code>
<code>wget </nowiki>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>tar -xf guacamole-auth-jdbc-1.4.0.tar.gz</code>


Line 83: Line 84:


<code>cat schema/*.sql | mysql -u root -p guacamole_db</code>
<code>cat schema/*.sql | mysql -u root -p guacamole_db</code>
'''Connect Guac to MySQL'''
'''Connect Guac to MySQL'''


Line 94: Line 96:


<code>exit</code>
<code>exit</code>
<code>cd guacamole-auth-jdbc-1.4.0/mysql/</code>
<code>cp guacamole-auth-jdbc-mysql-1.4.0.jar /etc/guacamole/extensions/guacamole-auth-jdbc-mysql.jar</code>
<code>wget https://cdn.mysql.com//Downloads/Connector-J/mysql-connector-java_8.0.28-1ubuntu20.04_all.deb</code>
<code>dpkg -i mysql-connector-java_8.0.28-1ubuntu20.04_all.deb</code>
<code>cp /usr/share/java/mysql-connector-java-8.0.28.jar /etc/guacamole/lib/mysql-connector.jar</code>
'''Edit Guac config to work with MySQL'''
Edit guacamole.properties
<code>nano /etc/guacamole/guacamole.properties</code>
Add the following:
<code>mysql-hostname: localhost<br />
mysql-port: 3306<br />
mysql-database: guacamole_db<br />
mysql-username: guacamole_user<br />
mysql-password: StrongPassword</code>
Edit guacd.conf:
<code>nano /etc/guacamole/guacd.conf</code>
Add the following:
<code>[server]<br />
bind_host = 0.0.0.0<br />
bind_port = 4822</code>
'''Restart Services'''
<code>sudo systemctl restart tomcat9 guacd</code>
'''Get Guacamole client'''
<code>wget https://dlcdn.apache.org/guacamole/1.4.0/binary/guacamole-1.4.0.war<br />
mv guacamole-1.4.0.war guacamole.war<br />
cp guacamole.war /var/lib/tomcat9/webapps<br />
ls /var/lib/tomcat9/webapps</code>
'''Edit tomcat server Config'''
<code>nano /etc/tomcat9/server.xml</code>
Add the following:
<Valve className="org.apache.catalina.valves.RemoteIpValve"
            internalProxies="127.0.0.1"
            remoteIpHeader="x-forwarded-for"
            remoteIpProxiesHeader="x-forwarded-by"
            protocolHeader="x-forwarded-proto" />
== 2nd section title ==
== 2nd section title ==
text
text
Anonymous user

Navigation menu