How to Install Guacamole on Ubuntu 20.04

Install Guacamole on Ubuntu 20.04

In this article, we will have explained the necessary steps to install and configure Install Guacamole on Ubuntu 20.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Apache Guacamole is a clientless HTML5 web-based remote desktop gateway that provides remote access to servers and desktops through a web browser. It supports standard protocols like VNC, RDP, SSH, and Kubernetes, and you don’t need to install any software on the client computer. It supports clipboard, file transfer via SFTP and allows you to manage multiple remote desktop sessions.

Install Guacamole on Ubuntu

Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.

sudo apt update
sudo apt upgrade

Step 2. Install dependencies for Guacamole installation.

Run the following command to install dependencies required:

sudo apt install -y build-essential libcairo2-dev libjpeg-turbo8-dev libpng-dev \
libtool-bin libossp-uuid-dev libavcodec-dev libavutil-dev libswscale-dev \
freerdp2-dev libpango1.0-dev libssh2-1-dev libvncserver-dev libtelnet-dev \
libssl-dev libvorbis-dev libwebp-dev

Step 3. Install Guacamole on the Ubuntu system.

Download the latest version of Guacamole from the official website:

wget "https://apache.org/dyn/closer.cgi?action=download&filename=guacamole/1.2.0/source/guacamole-server-1.2.0.tar.gz" -O guacamole-server-1.2.0.tar.gz

Once download, extract Guacamole source code:

tar zxvf 1.2.0.tar.gz
cd guacamole-server-1.2.0autoconf -i

Then, execute the configure script to verify if there are any missing dependencies. This usually takes two minutes or so, so be patient as the script performs the dependency check:

./configure --with-init-dir=/etc/init.d

You should see the following output:

------------------------------------------------
guacamole-server version 1.2.0------------------------------------------------
 
   Library status:
 
     freerdp2 ............ yes pango ............... yes libavcodec .......... yes libavformat.......... yes libavutil ........... yes libssh2 ............. yes libssl .............. yes libswscale .......... yes libtelnet ........... yes libVNCServer ........ yes libvorbis ........... yes libpulse ............ yes libwebsockets ....... yes libwebp ............. yes wsock32 ............. no
 
   Protocol support:
 
      Kubernetes .... yes RDP ........... yes SSH ........... yes Telnet ........ yes VNC ........... yes
 
   Services / tools:
 
      guacd ...... yes guacenc .... yes guaclog .... yes
 
   FreeRDP plugins: /usr/lib/x86_64-linux-gnu/freerdp2
   Init scripts: no
   Systemd units: no
 
Type "make" to compile guacamole-server.

Next, compile and install Guacamole, run the commands below, one after the other:

sudo make
sudo make install
sudo ldconfig

After that, enable and start the Guacamole service using the following command:

sudo systemctl start guacd
sudo systemctl enable guacd
sudo systemctl status guacd

That’s all you need to do to install Install Apache Guacamole on Ubuntu 20.04 LTS Focal Fossa. I hope you find this quick tip helpful. For further reading on Install Guacamole, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.