In case it's useful to anyone here's what I did to get Guacamole 1.5.0 running with Tomcat9 on a fresh Ubuntu 22.04 VM.

Essentially this is similar to my previous notes for earlier versions of Guacamole and Ubuntu, but with necessary package updates etc.

I should comment that previously there has been some discussion over the use of /etc for the location of the .war file. It's not necessary to install it there, you could put it in /opt, or wherever works for you.

In terms of testing I've given this latest install a brief try with RDP to a Win7 VM and it seemed to work fine, however I've not progressed further than the login. Therefore I'd treat this as a guide only, and suggest it would be advisable to carry out some trials before utilising in a production environment. If you find any issues, or have suggestions to improve, please let me know.

Finally the observant will see I've not included the requisite packages for video recording or Kubernetes. They're simple to install if you need them, the information is available in the official installation detail here: https://guacamole.apache.org/doc/gug/installing-guacamole.html

-----

#
# Install Guacamole 1.5.0 on Ubuntu 22.04 server (VM)
#
su

# libpng12-0 is no longer part of the main packages, so need PPA
# ***but may work ok with just libpng-dev***
add-apt-repository ppa:linuxuprising/libpng12
apt-get update
apt install libpng12-0
#
apt-get install build-essential autoconf libtool-bin m4 libjpeg-turbo8-dev libcairo2-dev uuid-dev libtelnet-dev libpango1.0-dev freerdp2-dev libssh2-1-dev libwebp-dev libvncserver-dev libpulse-dev libvorbis-dev libssl-dev libpng12-dev

# Install Tomcat 9 - 10 is not presently usable (see https://issues.apache.org/jira/browse/GUACAMOLE-1325)

apt-get install tomcat9 tomcat9-admin tomcat9-common tomcat9-user

cd /tmp
wget https://www.apache.org/dist/guacamole/1.5.0/source/guacamole-server-1.5.0.tar.gz
tar -zxvf guacamole-server-1.5.0.tar.gz
cd guacamole-server-1.5.0
./configure --with-init-dir=/etc/init.d
make
make install
ldconfig
cd ..
wget https://www.apache.org/dist/guacamole/1.5.0/binary/guacamole-1.5.0.war
mkdir /etc/guacamole
cp guacamole-1.5.0.war /etc/guacamole/guacamole.war
ln -s /etc/guacamole/guacamole.war /var/lib/tomcat9/webapps/
systemctl restart tomcat9
systemctl enable guacd
systemctl start guacd
#
# Above this line *should* work in standard auth mode, but I've not checked this, below is detail for MySQL auth
#
su
cd /tmp
apt-get install mysql-server
#apt-get install libmysql-java
wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java_8.0.28-1ubuntu20.04_all.deb
dpkg -i mysql-connector-java_8.0.28-1ubuntu20.04_all.deb
wget https://www.apache.org/dist/guacamole/1.5.0/binary/guacamole-auth-jdbc-1.5.0.tar.gz
tar -zxvf guacamole-auth-jdbc-1.5.0.tar.gz
mkdir /etc/guacamole/extensions
mkdir /etc/guacamole/lib
cp guacamole-auth-jdbc-1.5.0/mysql/guacamole-auth-jdbc-mysql-1.5.0.jar /etc/guacamole/extensions/
nano /etc/guacamole/guacamole.properties
 mysql-hostname: localhost
 mysql-port: 3306
 mysql-database: guacamole_db
 mysql-username: guacamole_user
 mysql-password:
(ctrl-x then y)
mysql -u root -p
create database guacamole_db;
create user 'guacamole_user'@'localhost' identified by '';
grant select,insert,update,delete on guacamole_db.* to 'guacamole_user'@'localhost';
flush privileges;
quit
cat guacamole-auth-jdbc-1.5.0/mysql/schema/*.sql | mysql -u root -p guacamole_db
ln -s /usr/share/java/mysql-connector-java-8.0.28.jar /etc/guacamole/lib/
mkdir -p /usr/lib/$(dpkg-architecture -qDEB_BUILD_GNU_TYPE)/freerdp
ln -s /usr/local/lib/freerdp/guac*.so /usr/lib/$(dpkg-architecture -qDEB_BUILD_GNU_TYPE)/freerdp/
ldconfig
systemctl restart guacd
systemctl restart tomcat9.service

Go to http://<ip-address>:8080/guacamole
Default login guacadmin:guacadmin



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org
For additional commands, e-mail: user-h...@guacamole.apache.org

Reply via email to