No more logmein Free? OpenSource to the rescue! Part 3:Upgrading Guacamole

Door Tomba op zaterdag 19 april 2014 14:48 - Reacties (4)
CategorieŽn: Guacamole, Linux, Systeembeheer, Views: 7.144

In part 1 of my series on Guacamole we learned how to install Guacamole on an Ubuntu machine. In part 2 of my series on Guacamole we learned how to further secure the machine running Guacamole. Since Guacamole 0.9.0 was released recently, this time we will look into upgrading to a newer version of Guacamole .

First off, I upgraded my Ubuntu machine to 14.04 first to enable SSH support. We also need two specific packages to enable this: libpango2-1 and libssh2-1-dev
Installing these was as easy as running
apt-get install libpango2-1 libssh2-1-dev

Screenshots to follow later

1. Stop both guacamole and Tomcat7 by running
service guacd stop
service tomcat7 stop

2. Download the new War file by running
wget -O guacamole-0.9.0.war

3. Download the new server source by running
wget -O guacamole-server-0.9.0.tar.gz

4. Now we can unpack the source files of Guacamole server and we configure the package (Note by adding the --with-init-dir=/etc/init.d switch we prepare the build to install a startup script for guacd into the /etc/init.d directory)
tar -xzf guacamole-server-0.9.0.tar.gz
cd guacamole-server-0.9.0/
./configure --with-init-dir=/etc/init.d

5. If no errors occur we can make the source

6. And install Guacamole server:
make install

7. Now we tell Ubuntu to create the startupscript for Guacamole server and tell Ubuntu to rescan the libs
update-rc.d guacd defaults

8. Now we need to remove the existing Tomcat package and copy the new war-file
rm -r /var/lib/tomcat7/webapps/guacamole
cp guacamole-0.9.0.war /var/lib/tomcat7/webapps/guacamole.war

9. All preparations are now done, so it's time to restart Guacamole and Tomcat7
service guacd start
service tomcat7 restart

Now Guacamole 0.9.0 should be running on port 8080 on your server :)