From 8da14b837b408e5772e8940e28ebdd4900e3458c Mon Sep 17 00:00:00 2001 From: Curtis Carter Date: Sat, 26 Dec 2020 23:41:33 -0600 Subject: [PATCH] Add Support For Linux Mint (#161) * Add Support For Linux Mint * Add Linux Mint Debian Edition Support Added LMDE to Debian Name Checks --- README.md | 2 +- guac-install-server.sh | 10 +++++----- guac-install.sh | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index e1748e2..2b90176 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ sudo apt-get update sudo apt-get install freerdp2-dev freerdp2-x11 ``` -Script for installing Guacamole 1.2.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/) 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. +Script for installing Guacamole 1.2.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. Run script, enter MySQL Root Password and Guacamole User password. Guacamole User is used to connect to the Guacamole Database. diff --git a/guac-install-server.sh b/guac-install-server.sh index e35976f..05b782a 100755 --- a/guac-install-server.sh +++ b/guac-install-server.sh @@ -6,9 +6,9 @@ if ! [ $(id -u) = 0 ]; then echo "Please run this script as sudo or root"; exit # Version number of Guacamole to install GUACVERSION="1.2.0" -# Different version of Ubuntu and Debian have different package names... +# Different version of Ubuntu/Linux Mint and Debian have different package names... source /etc/os-release -if [[ "${NAME}" == "Ubuntu" ]]; then +if [[ "${NAME}" == "Ubuntu" ]] || [[ "${NAME}" == "Linux Mint" ]]; then # Ubuntu > 18.04 does not include universe repo by default # Add the "Universe" repo, don't update add-apt-repository -yn universe @@ -20,15 +20,15 @@ if [[ "${NAME}" == "Ubuntu" ]]; then else LIBPNG="libpng-dev" fi -elif [[ "${NAME}" == *"Debian"* ]] || [[ "${NAME}" == *"Raspbian GNU/Linux"* ]] || [[ "${NAME}" == *"Kali GNU/Linux"* ]]; then +elif [[ "${NAME}" == *"Debian"* ]] || [[ "${NAME}" == *"Raspbian GNU/Linux"* ]] || [[ "${NAME}" == *"Kali GNU/Linux"* ]] || [[ "${NAME}" == "LMDE" ]]; then JPEGTURBO="libjpeg62-turbo-dev" - if [[ "${PRETTY_NAME}" == *"stretch"* ]] || [[ "${PRETTY_NAME}" == *"buster"* ]] || [[ "${PRETTY_NAME}" == *"Kali GNU/Linux Rolling"* ]]; then + if [[ "${PRETTY_NAME}" == *"stretch"* ]] || [[ "${PRETTY_NAME}" == *"buster"* ]] || [[ "${PRETTY_NAME}" == *"Kali GNU/Linux Rolling"* ]] || [[ "${NAME}" == "LMDE" ]]; then LIBPNG="libpng-dev" else LIBPNG="libpng12-dev" fi else - echo "Unsupported Distro - Ubuntu, Debian, Kali or Raspbian Only" + echo "Unsupported Distro - Ubuntu, Linux Mint, Debian, Kali or Raspbian Only" exit 1 fi diff --git a/guac-install.sh b/guac-install.sh index 3b88ba8..cf3e78b 100755 --- a/guac-install.sh +++ b/guac-install.sh @@ -212,9 +212,9 @@ if [ "${installMySQL}" = true ]; then debconf-set-selections <<< "mysql-server mysql-server/root_password_again password ${mysqlRootPwd}" fi -# Different version of Ubuntu and Debian have different package names... +# Different version of Ubuntu/Linux Mint and Debian have different package names... source /etc/os-release -if [[ "${NAME}" == "Ubuntu" ]]; then +if [[ "${NAME}" == "Ubuntu" ]] || [[ "${NAME}" == "Linux Mint" ]]; then # Ubuntu > 18.04 does not include universe repo by default # Add the "Universe" repo, don't update add-apt-repository -yn universe @@ -233,9 +233,9 @@ if [[ "${NAME}" == "Ubuntu" ]]; then else MYSQL="mysql-client" fi -elif [[ "${NAME}" == *"Debian"* ]] || [[ "${NAME}" == *"Raspbian GNU/Linux"* ]] || [[ "${NAME}" == *"Kali GNU/Linux"* ]]; then +elif [[ "${NAME}" == *"Debian"* ]] || [[ "${NAME}" == *"Raspbian GNU/Linux"* ]] || [[ "${NAME}" == *"Kali GNU/Linux"* ]] || [[ "${NAME}" == "LMDE" ]]; then JPEGTURBO="libjpeg62-turbo-dev" - if [[ "${PRETTY_NAME}" == *"stretch"* ]] || [[ "${PRETTY_NAME}" == *"buster"* ]] || [[ "${PRETTY_NAME}" == *"Kali GNU/Linux Rolling"* ]]; then + if [[ "${PRETTY_NAME}" == *"stretch"* ]] || [[ "${PRETTY_NAME}" == *"buster"* ]] || [[ "${PRETTY_NAME}" == *"Kali GNU/Linux Rolling"* ]] || [[ "${NAME}" == "LMDE" ]]; then LIBPNG="libpng-dev" else LIBPNG="libpng12-dev" @@ -249,7 +249,7 @@ elif [[ "${NAME}" == *"Debian"* ]] || [[ "${NAME}" == *"Raspbian GNU/Linux"* ]] MYSQL="default-mysql-client" fi else - echo "Unsupported distribution - Debian, Kali, Raspbian or Ubuntu only" + echo "Unsupported distribution - Debian, Kali, Raspbian, Linux Mint or Ubuntu only" exit 1 fi