Skip to content

Instantly share code, notes, and snippets.

@dragonauta
Last active May 10, 2017 21:26
Show Gist options
  • Save dragonauta/d29b79748a7b158d2408e7f7a7a62b3e to your computer and use it in GitHub Desktop.
Save dragonauta/d29b79748a7b158d2408e7f7a7a62b3e to your computer and use it in GitHub Desktop.
upgrade guacamole
#!/bin/bash
# for upgrading guacamole (https://guacamole.incubator.apache.org/)
# change version and execute
# should download war and deploy into tomcat8
# and download server, and install it
VER="0.9.12-incubating"
DEPS="libfreerdp-dev libpango1.0-dev libavcodec-dev libavutil-dev libssh2-1-dev libssl-dev libswscale-dev libvncserver-dev libvorbis-dev libpulse-dev libwebp-dev"
apt-get install $DEPS
cd /var/lib/tomcat8/webapps
rm -rf guacamole*
curl -J -L http://mirrors.dcarsat.com.ar/apache/incubator/guacamole/$VER/binary/guacamole-$VER.war -o "guacamole.war"
chown tomcat8:tomcat8 guacamole.war
cd /opt/
curl -O -J -L http://apache.dattatec.com/incubator/guacamole/$VER/source/guacamole-server-$VER.tar.gz
tar xf guacamole-server-$VER.tar.gz
cd guacamole-server-$VER
./configure
make
make install
service tomcat8 restart
service guacd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment