Needed a way to access Remote Desktop and other remote servers from behind a firewall. Windows RD Gateway doesn't work behind a nginx server (or I wasn't able to figure it out), so needed an alternative. Found Guacamole!
-
Install Debian Wheezy
-
Install tomcat
sudo apt-get install tomcat
-
Install Java JDK if you're going to compile the
guacamole-client
-
Follow most of the instructions on the Guacamole Website. Abbreviated version below:
a.sudo apt-get install libcairo2-dev libpng12-dev libossp-uuid-dev
b. might also needsudo apt-get install make
andsudo apt-get install maven
(for building the client)
c. Download the latest stable releasewget https://github.com/glyptodon/guacamole-server/archive/0.9.4.tar.gz
d. Choose your supported remote server types, and install the required packages:
RDP:sudo apt-get install libfreerdp-dev
OpenSSL:sudo apt-get install libssl-dev
Audio:sudo apt-get install libvorbis-dev
e.tar -xzf guacamole-server-0.9.4.tar.gz
f. run in the new directory:./configure --with-init-dir=/etc/init.d
g. thenmake
h. thenmake install
-
Building/Downloading the client
a. Grab the latest clientwget https://github.com/glyptodon/guacamole-client/archive/0.9.4.tar.gz
b.tar -xzf 0.9.4.tar.gz
c.cp guacamole-0.9.4.war /var/lib/tomcat7/webapps/guacamole.war
d. Setup theguacamole.properties
filemkdir /etc/guacamole mkdir /usr/share/tomcat7/.guacamole nano /etc/guacamole/guacamole.properties
e. You can find a copy of guacamole.properties
here
g. Create a user/connection file nano /etc/guacamole/user-mapping.xml
. Example found here
6. Deploy Guacamole
ln -s /yourpath/guacamole/guacamole.war /var/lib/tomcat7/webapps
ln -s /etc/guacamole/guacamole.properties /usr/share/tomcat7/.guacamole/
- Restart tomcat
service tomcat7 restart
- Start guacamole
service guacd restart
- You should now be able to access Guacamole at
http://yourip
- Set up your nginx to reverse proxy to the Guacamole server
- Future considerations. Set up AJP module for nginx