mirror of
https://github.com/MysticRyuujin/guac-install.git
synced 2023-10-10 13:36:56 +02:00
Debian support (#9)
* Debian Dependencies * Debian Support * Fixed Order to reflect guac manual * Debian Support Fixes Issue #8
This commit is contained in:
parent
fd169f2647
commit
ea91e025fd
@ -1,5 +1,5 @@
|
||||
# guac-install
|
||||
Script for installing Guacamole 0.9.12 on Ubuntu 16.04 with MySQL
|
||||
Script for installing Guacamole 0.9.12 on Ubuntu 16.04 with MySQL. Should also work on pure Debian.
|
||||
|
||||
Run script, enter MySQL Root Password and Guacamole User password. Guacamole User is used to connect the the Guacamole Database.
|
||||
|
||||
|
@ -2,16 +2,24 @@
|
||||
|
||||
VERSION="0.9.12"
|
||||
|
||||
# Ubuntu and Debian have different names of the libjpeg-turbo library for some reason...
|
||||
if [ `egrep -c "ID=ubuntu" /etc/os-release` -gt 0 ]
|
||||
then
|
||||
JPEGTURBO="libjpeg-turbo8-dev"
|
||||
else
|
||||
JPEGTURBO="libjpeg62-turbo-dev"
|
||||
fi
|
||||
|
||||
# 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 \
|
||||
apt-get -y install build-essential libcairo2-dev $JPEGTURBO 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 curl wget
|
||||
|
||||
# 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?"
|
||||
echo "apt-get failed to install all required dependencies."
|
||||
exit
|
||||
fi
|
||||
|
||||
|
@ -12,16 +12,24 @@ debconf-set-selections <<< "mysql-server mysql-server/root_password_again passwo
|
||||
# Grab a password for Guacamole Database User Account
|
||||
read -s -p "Enter the password that will be used for the Guacamole database: " guacdbuserpassword
|
||||
|
||||
# Ubuntu and Debian have different names of the libjpeg-turbo library for some reason...
|
||||
if [ `egrep -c "ID=ubuntu" /etc/os-release` -gt 0 ]
|
||||
then
|
||||
JPEGTURBO="libjpeg-turbo8-dev"
|
||||
else
|
||||
JPEGTURBO="libjpeg62-turbo-dev"
|
||||
fi
|
||||
|
||||
# Install Features
|
||||
apt-get update
|
||||
apt-get -y install build-essential libcairo2-dev libjpeg-turbo8-dev libpng12-dev libossp-uuid-dev libavcodec-dev libavutil-dev \
|
||||
apt-get -y install build-essential libcairo2-dev $JPEGTURBO 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 mysql-server mysql-client mysql-common mysql-utilities tomcat8 freerdp ghostscript jq wget curl
|
||||
|
||||
# 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?"
|
||||
echo "apt-get failed to install all required dependencies.
|
||||
exit
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user