1
0
mirror of https://git.koehlerweb.org/frodovdr/guac-install synced 2024-11-22 09:37:13 +01:00
Backup für Später guacamole - Install Script
Go to file
Chase Wright 7a059134da
WIP - Fixes for 19.10 & MFA (#105)
* WIP - Fixes for 19.10 & MFA

* Fix logic on installDuo informational output

* Fix for buster

Add suggested fix from @enira / #91

* Fixes for 19.10
2020-02-17 12:06:47 -08:00
.gitattributes Support for Guacamole 1.1.0 Install/Upgrade + More (#97) 2020-02-05 15:24:52 -05:00
docker-install.sh Support for Guacamole 1.1.0 Install/Upgrade + More (#97) 2020-02-05 15:24:52 -05:00
guac-install-server.sh Add Optional MySQL Support (#99) 2020-02-09 18:40:11 -05:00
guac-install.sh WIP - Fixes for 19.10 & MFA (#105) 2020-02-17 12:06:47 -08:00
guac-upgrade.sh Add Optional MySQL Support (#99) 2020-02-09 18:40:11 -05:00
README.md Add Optional MySQL Support (#99) 2020-02-09 18:40:11 -05:00

guac-install

Script for installing Guacamole 1.1.0 on Ubuntu 16.04 or newer (optionally with MySQL by default). It should also work on pure Debian 7, 8, and 9. It seems Debian 10 is not working right now

Run script, enter MySQL Root Password and Guacamole User password. Guacamole User is used to connect to the Guacamole Database.

The script attempts to install tomcat8 if the available version is 8.5.x or newer, if tomcat8 is only 8.0.x it will fall back to tomcat7. If you want to manually specify a tomcat version there's a commented out line you can modify. Have at it.

If you're looking to also have NGINX / Let's Encrypt / HTTPS click HERE

MFA/2FA

By default the script will not install MFA support (QR code for Google/Microsoft Authenticator, Duo Mobile, etc. or Duo Push), if you do want MFA support you need to specify the -t or --totp or for Duo -d or --duo flags on the command line. Or modify the script variables installTOTP=true or installDuo=true.

How to Run:

Download file directly from here:

wget https://git.io/fxZq5

Make it executable:

chmod +x guac-install.sh

Run it as root:

Interactive (asks for passwords):

./guac-install.sh

Non-Interactive (values provided via cli):

./guac-install.sh --mysqlpwd password --guacpwd password

OR

./guac-install.sh -r password -gp password

Once installation is done you can access Guacamole by browsing to: http://<host_or_ip>:8080/guacamole/ The default credentials are guacadmin as both username and password. Please change them or disable guacadmin after install!

guac-upgrade

Script for upgrading currently installed Guacamole instance (previously installed via this script/guide). This will also now update the TOTP or Duo extensions if used.

If looks for the tomcat folder in /etc/ (E.G. /etc/tomcat7 or /etc/tomcat8) hopefully that works to identify the correct tomcat version/path 😄 I'm open to suggestions/pull requests for a cleaner method.

All Switches

Install MySQL:

-i or --installmysql

Do NOT install MySQL:

-n or --nomysql

MySQL Host:

-h or --mysqlhost

MySQL Port:

-p or --mysqlport

MySQL Root Password:

-r or --mysqlpwd

Guacamole Database:

-db or --guacdb

Guacamole User:

-gu or --guacuser

Guacamole User Password:

-gp or --guacpwd

Install TOTP:

-t or --totp

Install Duo:

-d or --duo

NOTE: Only the switches for MySQL Host, MySQL Port and Guacamole Database are available in the upgrade script.

WARNING

  • Upgrading from 0.9.14 -> 1.1.0 has not been tested, only 1.0.0 -> 1.1.0.
  • Switches have changed and additional ones have been added!

How to Run:

Download file directly from here:

wget https://raw.githubusercontent.com/MysticRyuujin/guac-install/master/guac-upgrade.sh

Make it executable:

chmod +x guac-upgrade.sh

Run it as root:

Interactive (asks for passwords):

./guac-upgrade.sh

Non-Interactive (MySQL root password provided via cli):

./guac-upgrade.sh --mysqlpwd password