2016-08-14 20:05:46 +02:00
# guac-install
2019-01-10 18:21:52 +01:00
2021-01-27 15:38:44 +01:00
## NOTE: Ubuntu users having issues with RDP have reported the following fix:
2020-03-22 02:51:41 +01:00
```
sudo add-apt-repository ppa:remmina-ppa-team/freerdp-daily
sudo apt-get update
sudo apt-get install freerdp2-dev freerdp2-x11
```
2021-01-27 15:38:55 +01:00
## NOTE: Debian users having issues with RDP have reported the following fix:
2021-01-27 15:37:34 +01:00
```
sudo bash -c 'echo "deb http://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list.d/backports.list'
sudo apt update
2021-02-10 16:27:41 +01:00
sudo apt -y -t buster-backports install freerdp2-dev libpulse-dev
2021-01-27 15:37:34 +01:00
```
2021-01-03 16:16:32 +01:00
Script for installing Guacamole 1.3.0 on Ubuntu 16.04 or newer (with MySQL, or remote MySQL). It should also work on pure [Debian ](https://www.debian.org/ ), [Raspbian ](https://www.raspberrypi.org/downloads/raspbian/ ), [Linux Mint ](https://linuxmint.com/ ) (18/LMDE 4 or newer) or [Kali Linux ](https://www.kali.org/ ). I have tested this with Debian 10.3.0 (Buster). **If other versions don't work please open an issue.** It is likely due to a required library having a different name.
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-03-05 14:56:11 +01:00
The script attempts to install `tomcat9` by default (it will fall back on `tomcat8` **if the available version is 8.5.x or newer** , otherwise 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-03-05 14:56: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 can use 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` . **Do not install both**
2019-11-16 17:06:46 +01:00
2020-03-22 02:51:41 +01:00
## FYI
Here's a cool PowerShell module for using the Guacamole API: https://github.com/UpperM/guacamole-powershell
2020-05-07 17:00:17 +02:00
Does not work if you have MFA turned on (however, you can authenticate via the gui and get a token to use it that way)
2020-03-22 03:08:12 +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
2020-07-06 00:53:36 +02:00
`wget https://git.io/fxZq5 -O guac-install.sh`
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
2020-03-05 14:56:11 +01:00
`chmod +x guac-install.sh`
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
2020-03-05 14:56:11 +01:00
`./guac-install.sh`
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
2020-03-05 14:56:11 +01:00
`./guac-install.sh --mysqlpwd password --guacpwd password --nomfa --installmysql`
2018-03-09 22:51:48 +01:00
OR
2020-03-05 14:56:11 +01:00
`./guac-install.sh -r password -gp password -o -i`
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/
2020-03-05 14:56:11 +01: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-03-04 14:42:01 +01:00
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
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:
2020-03-05 14:56:11 +01:00
`-i or --installmysql`
2020-02-10 00:40:11 +01:00
Do *NOT* install MySQL:
2020-03-05 14:56:11 +01:00
`-n or --nomysql`
2020-02-10 00:40:11 +01:00
MySQL Host:
2020-03-05 14:56:11 +01:00
`-h or --mysqlhost`
2020-02-10 00:40:11 +01:00
MySQL Port:
2020-03-05 14:56:11 +01:00
`-p or --mysqlport`
2020-02-10 00:40:11 +01:00
MySQL Root Password:
2020-03-05 14:56:11 +01:00
`-r or --mysqlpwd`
2020-02-10 00:40:11 +01:00
Guacamole Database:
2020-03-05 14:56:11 +01:00
`-db or --guacdb`
2020-02-10 00:40:11 +01:00
Guacamole User:
2020-03-05 14:56:11 +01:00
`-gu or --guacuser`
2020-02-10 00:40:11 +01:00
Guacamole User Password:
2020-03-05 14:56:11 +01:00
`-gp or --guacpwd`
No MFA (No TOTP + Duo):
`-o or --nomfa`
2020-02-10 00:40:11 +01:00
Install TOTP:
2020-03-05 14:56:11 +01:00
`-t or --totp`
2020-02-10 00:40:11 +01:00
Install Duo:
2020-03-05 14:56:11 +01:00
`-d or --duo`
2020-02-10 00:40:11 +01:00
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
2021-01-03 16:16:32 +01:00
- Upgrading from 0.9.14 or 1.1.0 to 1.3.0 has not been tested, only 1.2.0 to 1.3.0 has been tested.
2020-02-10 00:40:11 +01:00
- 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
2020-03-05 14:56:11 +01:00
`wget https://raw.githubusercontent.com/MysticRyuujin/guac-install/master/guac-upgrade.sh`
2018-01-20 15:23:04 +01:00
2018-03-09 22:51:48 +01:00
### Make it executable:
2018-01-20 15:23:04 +01:00
2020-03-05 14:56:11 +01:00
`chmod +x guac-upgrade.sh`
2018-01-20 15:23:04 +01:00
2018-03-09 22:51:48 +01:00
### Run it as root:
Interactive (asks for passwords):
2018-01-20 15:23:04 +01:00
2020-03-05 14:56:11 +01:00
`./guac-upgrade.sh`
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
2020-03-05 14:56:11 +01:00
`./guac-upgrade.sh --mysqlpwd password`