2020-02-10 00:40:11 +01:00
2016-08-14 20:05:46 +02:00
# guac-install
2019-01-10 18:21:52 +01:00
2020-02-10 00:40:11 +01:00
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**
2016-08-14 20:31:26 +02:00
2017-08-22 04:46:45 +02:00
Run script, enter MySQL Root Password and Guacamole User password. Guacamole User is used to connect to the Guacamole Database.
2016-08-14 20:31:26 +02:00
2020-02-10 00:40:11 +01:00
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.
2017-08-02 13:31:42 +02:00
2018-09-01 16:39:06 +02:00
If you're looking to also have NGINX / Let's Encrypt / HTTPS click [HERE ](https://github.com/bigredthelogger/guacamole )
2018-04-20 15:34:20 +02:00
2019-11-16 17:06:46 +01:00
## MFA/2FA
2020-02-10 00:40:11 +01:00
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` .
2019-11-16 17:06:46 +01:00
2018-03-09 22:51:48 +01:00
## How to Run:
2017-03-12 19:43:21 +01:00
2018-03-09 22:51:48 +01:00
### Download file directly from here:
2017-03-12 19:42:53 +01:00
2019-10-26 19:10:55 +02:00
< code > wget https://git.io/fxZq5< / code >
2016-12-31 23:44:30 +01:00
2018-03-09 22:51:48 +01:00
### Make it executable:
2017-03-12 19:42:53 +01:00
< code > chmod +x guac-install.sh< / code >
2016-12-31 23:44:30 +01:00
2018-03-09 22:51:48 +01:00
### Run it as root:
Interactive (asks for passwords):
2017-03-12 19:42:53 +01:00
< code > ./guac-install.sh< / code >
2017-07-20 19:14:06 +02:00
2020-02-10 00:40:11 +01:00
Non-Interactive (values provided via cli):
2018-03-09 22:51:48 +01:00
< code > ./guac-install.sh --mysqlpwd password --guacpwd password< / code >
OR
2020-02-10 00:40:11 +01:00
< code > ./guac-install.sh -r password -gp password< / code >
2018-03-09 22:51:48 +01:00
2020-02-10 00:40:11 +01:00
Once installation is done you can access Guacamole by browsing to: http://< host_or_ip > :8080/guacamole/
2017-08-01 00:28:56 +02:00
The default credentials are guacadmin as both username and password. Please change them or disable guacadmin after install!
2018-01-20 15:23:04 +01:00
# guac-upgrade
2020-02-10 00:40:11 +01:00
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.
2018-01-20 15:23:04 +01:00
2019-01-25 16:16:22 +01:00
2018-01-20 15:23:04 +01:00
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 :smile: I'm open to suggestions/pull requests for a cleaner method.
2020-02-10 00:40:11 +01:00
## All Switches
Install MySQL:
< code > -i or --installmysql< / code >
Do *NOT* install MySQL:
< code > -n or --nomysql< / code >
MySQL Host:
< code > -h or --mysqlhost< / code >
MySQL Port:
< code > -p or --mysqlport< / code >
MySQL Root Password:
< code > -r or --mysqlpwd< / code >
Guacamole Database:
< code > -db or --guacdb< / code >
Guacamole User:
< code > -gu or --guacuser< / code >
Guacamole User Password:
< code > -gp or --guacpwd< / code >
Install TOTP:
< code > -t or --totp< / code >
Install Duo:
< code > -d or --duo< / code >
NOTE: Only the switches for MySQL Host, MySQL Port and Guacamole Database are available in the upgrade script.
2019-01-25 16:16:22 +01:00
## WARNING
2020-02-10 00:40:11 +01:00
- 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!
2019-01-25 16:16:22 +01:00
2018-03-09 22:51:48 +01:00
## How to Run:
2018-01-20 15:23:04 +01:00
2018-03-09 22:51:48 +01:00
### Download file directly from here:
2018-01-20 15:23:04 +01:00
< code > wget https://raw.githubusercontent.com/MysticRyuujin/guac-install/master/guac-upgrade.sh< / code >
2018-03-09 22:51:48 +01:00
### Make it executable:
2018-01-20 15:23:04 +01:00
< code > chmod +x guac-upgrade.sh< / code >
2018-03-09 22:51:48 +01:00
### Run it as root:
Interactive (asks for passwords):
2018-01-20 15:23:04 +01:00
< code > ./guac-upgrade.sh< / code >
2018-03-09 22:51:48 +01:00
2020-02-10 00:40:11 +01:00
Non-Interactive (MySQL root password provided via cli):
2018-03-09 22:51:48 +01:00
< code > ./guac-upgrade.sh --mysqlpwd password< / code >