Apache Guacamole installation bash script for RHEL 7 and CentOS 7 including options for Nginx, HTTPS...
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
The Guacamole install script
guac-install.shis intended to allow for a guided, simple way to install and configure a complete Apache Guacamole server on a fresh CentOS 7 or RHEL 7 installation. This Apache Guacamole installation script presents an interactive menu providing options to install Guacamole, Nginx, MariaDB and other software for a complete Guacamole setup. The menu provides the means to set configuration parameters in an organized way, allows for review and making changes prior to running the installation for Guacamole.
The wiki will cover all aspects of the Apache Guacamole installation script for RHEL and CentOS in further detail. Before using the script read all the documentation and review the Guacamole install script (especially the variables). Test the Guacamole script in a test environment/server and ensure it functions exactly as desired before attempting to utilize it on a production system.
Some of the main features and benefits of using this installation script for Apache Guacamole are: - Simplifies the process of installing Apache Guacamole and other software required for a complete implementation. - Use of Nginx as a reverse proxy allows for changing the URI, having SSL/HTTPS securely setup and forcing HTTPS among other benefits. - Nginx configuration options capable of scoring A+ and 90-100% on the categories of the Qualys SSL test. Will varying based on other options selected. - Nginx Content-Security-Policy (CSP) option to enable CSP. Scores A+, 100/100 on Mozilla Observatory test. - Ability to create a valid SSL certificate from LetsEncrypt AND keep it updated automatically. Also allows setting the key-size used by LetsEncrypt. - MariaDB is setup and configured as the database for user settings and metadata. MariaDB is the default primary authentication method. - MariaDB is also automatically hardened (by running mysqlsecureinstallation and automatically answering the prompts) - Ability to install and configure Guacamole extensions for primary and secondary authentication. (Currently limited to LDAP(s) and/or TOTP) - Ability to install a custom Guacamole extension, like my Guacamole Customize Login Page extension to change the appearance of the login page. - Optionally, LDAP/LDAPS as primary authentication via Guacamole LDAP extension and configuration prompts. - Optionally, TOTP as a 2FA method via Guacamole TOTP extension and configuration prompts. - All SELinux contexts properly set instead of disabling SEL. - Firewalld configured for Guacamole. - Script generates a log file of what it did for review. - Error handling covering the installation process. On error the line number, line that failed and exit code are displayed, logged and the script stops - And more...
Further details see the Script Features page.
wgetinstalled to download the Guacamole install script
guac-install.shfrom this repo.
Full requirements listed on the Requirements page
I recommend reading this entire README page AND the entire Wiki prior to attempting to use the Apache Guacamole installation script. It is essential to understand what the script does as you will be prompted to enter parameters during setup when running the script. It is important to be prepared to answer these prompts with accurate and desired parameters.
WARNING: It is highly recommended to test this script in a dev environment prior to using it in a production setting!
guac-install.shscript from this repo:
wget https://raw.githubusercontent.com/Zer0CoolX/guacamole-install-rhel/master/guac-install.shIf installing a custom Guacamole extension, download it as well and take note of its file name and path. See here for more details
chmod +x guac-install.shRun the script as sudo/root:
./guac-install.shProceed with the prompts provided by the installer, see Step-by-Step Installation Guide for a walk-through of the options.
See this wiki post regarding Customizing the Apache Guacamole Login Screen for details on another repo of mine to accomplish this.
I have based this Apache Guacamole install script on multiple other projects and my own work with similar goals. There are too many sources to provide credit to.
The script versioning, for now, will be based on the date of the last commit in the format "yyyymmdd".
I try and test the script as many ways as I can. Should you find an issue you feel is due to the script please submit an issue according to the directions here. I am also open to ideas on improving or fixing issues with the script. I am hoping that in time, after revisions and testing, that this install script for Guacamole will become the go-to for those looking to setup Guacamole on RHEL or CentOS.
As expressed on the official site for Apache Guacamole (which is free and open source):
Apache Guacamole is a clientless remote desktop gateway. It supports standard protocols like VNC, RDP, and SSH. We call it clientless because no plugins or client software are required.
Nginx is a free and open source HTTP and reverse proxy server.
MariaDB is an open source database that is forked from MySQL.
Let's Encrypt is a free, automated and open Certificate Authority providing SSL certificates to allow setting up more secure websites using HTTPS.