From e151983a73f3cb7edc4aeb10137409b41d98a922 Mon Sep 17 00:00:00 2001 From: Tyron Date: Wed, 5 Apr 2017 12:12:34 -0400 Subject: [PATCH 1/6] grab SERVER after package install Update to grab SERVER value after jq package is installed from repo --- guac-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/guac-install.sh b/guac-install.sh index 08dd747..3138fc4 100644 --- a/guac-install.sh +++ b/guac-install.sh @@ -1,7 +1,6 @@ #!/bin/bash VERSION="0.9.11" -SERVER=$(curl -s 'https://www.apache.org/dyn/closer.cgi?as_json=1' | jq --raw-output '.preferred|rtrimstr("/")') # Grab a password for MySQL Root read -s -p "Enter the password that will be used for MySQL Root: " mysqlrootpassword @@ -24,6 +23,8 @@ then exit fi +SERVER=$(curl -s 'https://www.apache.org/dyn/closer.cgi?as_json=1' | jq --raw-output '.preferred|rtrimstr("/")') + # Add GUACAMOLE_HOME to Tomcat8 ENV echo "" >> /etc/default/tomcat8 echo "# GUACAMOLE EVN VARIABLE" >> /etc/default/tomcat8 From 34c49cecceb09427d9a806017b039889c994d402 Mon Sep 17 00:00:00 2001 From: Tyron Date: Wed, 5 Apr 2017 12:13:10 -0400 Subject: [PATCH 2/6] update to newest version update to version 0.9.12 --- guac-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guac-install.sh b/guac-install.sh index 3138fc4..87d020e 100644 --- a/guac-install.sh +++ b/guac-install.sh @@ -1,6 +1,6 @@ #!/bin/bash -VERSION="0.9.11" +VERSION="0.9.12" # Grab a password for MySQL Root read -s -p "Enter the password that will be used for MySQL Root: " mysqlrootpassword From 41b7ec2c3821043a99396d1afcbedb1d0bf094e6 Mon Sep 17 00:00:00 2001 From: Tyron Date: Wed, 5 Apr 2017 12:33:25 -0400 Subject: [PATCH 3/6] initial file Script to deploy only the server component of Guacamole. This was intended to simplify installation of Guacamole server into a cloud VM to be later captured as a template and deployed into an auto-scaling group behind a load balancer. --- guac-install-server.sh | 47 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 guac-install-server.sh diff --git a/guac-install-server.sh b/guac-install-server.sh new file mode 100644 index 0000000..52f5c06 --- /dev/null +++ b/guac-install-server.sh @@ -0,0 +1,47 @@ +#!/bin/bash + +VERSION="0.9.12" + +# Install Server Features +apt-get update +apt-get -y install build-essential libcairo2-dev libjpeg-turbo8-dev libpng12-dev libossp-uuid-dev libavcodec-dev libavutil-dev \ +libswscale-dev libfreerdp-dev libpango1.0-dev libssh2-1-dev libtelnet-dev libvncserver-dev libpulse-dev libssl-dev \ +libvorbis-dev libwebp-dev jq + +# If Apt-Get fails to run completely the rest of this isn't going to work... +if [ $? != 0 ] +then + echo "apt-get failed to install all required dependencies. Are you on Ubuntu 16.04 LTS?" + exit +fi + +SERVER=$(curl -s 'https://www.apache.org/dyn/closer.cgi?as_json=1' | jq --raw-output '.preferred|rtrimstr("/")') + +# Download Guacample Files +wget ${SERVER}/incubator/guacamole/${VERSION}-incubating/source/guacamole-server-${VERSION}-incubating.tar.gz + +# Extract Guacamole Files +tar -xzf guacamole-server-${VERSION}-incubating.tar.gz + +# MAKE DIRECTORIES +mkdir /etc/guacamole + +# Install GUACD +cd guacamole-server-${VERSION}-incubating +./configure --with-init-dir=/etc/init.d +make +make install +ldconfig +cd .. + +# Configure guacamole.properties +echo "[server]" >> /etc/guacamole/guacd.conf +echo "bind_host = 0.0.0.0" >> /etc/guacamole/guacd.conf +echo "bind_port = 4822" >> /etc/guacamole/guacd.conf + +# Configure startup +systemctl enable guacd +systemctl start guacd + +# Cleanup +rm -rf guacamole-* From c0956cca6ea921d8644dbb14aedd653a86012fe2 Mon Sep 17 00:00:00 2001 From: Tyron Date: Wed, 5 Apr 2017 12:33:49 -0400 Subject: [PATCH 4/6] version update --- docker-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-install.sh b/docker-install.sh index 7bb912a..2f4ea28 100644 --- a/docker-install.sh +++ b/docker-install.sh @@ -1,7 +1,7 @@ #!/bin/bash # WORKING ON UBUNTU 16.04 LTS -VERSION="0.9.11" +VERSION="0.9.12" SERVER=$(curl -s 'https://www.apache.org/dyn/closer.cgi?as_json=1' | jq --raw-output '.preferred|rtrimstr("/")') read -s -p "Enter the password that will be used for MySQL Root: " MYSQLROOTPASSWORD From 5e64ba90c927f695d228f278d258fbbe7d170c11 Mon Sep 17 00:00:00 2001 From: Tyron Date: Wed, 5 Apr 2017 12:34:59 -0400 Subject: [PATCH 5/6] version update --- guac-upgrade.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guac-upgrade.sh b/guac-upgrade.sh index 2243563..9e66701 100644 --- a/guac-upgrade.sh +++ b/guac-upgrade.sh @@ -1,4 +1,4 @@ -VERSION="0.9.11" +VERSION="0.9.12" SERVER=$(curl -s 'https://www.apache.org/dyn/closer.cgi?as_json=1' | jq --raw-output '.preferred|rtrimstr("/")') # Stop Tomcat From f64b83540a8b8a9586ea684fe412383c08ef1122 Mon Sep 17 00:00:00 2001 From: Tyron Date: Wed, 5 Apr 2017 12:35:53 -0400 Subject: [PATCH 6/6] version update --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b5c8d37..aed1eaf 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # guac-install -Script for installing Guacamole 0.9.11 on Ubuntu 16.04 with MySQL +Script for installing Guacamole 0.9.12 on Ubuntu 16.04 with MySQL -Run script, enter MySQL Root Password and Guacample User password. Guacamole User is used to connect the the Guacamole Database. +Run script, enter MySQL Root Password and Guacamole User password. Guacamole User is used to connect the the Guacamole Database. How to Run: