mirror of
https://github.com/MysticRyuujin/guac-install.git
synced 2023-10-10 13:36:56 +02:00
Merge pull request #3 from tyron/master
script to install just guacamole-server + version update
This commit is contained in:
commit
d7fb548513
@ -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:
|
||||
|
||||
|
@ -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
|
||||
|
47
guac-install-server.sh
Normal file
47
guac-install-server.sh
Normal file
@ -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-*
|
@ -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("/")')
|
||||
VERSION="0.9.12"
|
||||
|
||||
# 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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user