Difference between revisions of "Guacamole"

From MyWiki
Jump to: navigation, search
Line 41: Line 41:
  
 
mkdir /usr/share/tomcat7/.guacamole<br>
 
mkdir /usr/share/tomcat7/.guacamole<br>
 +
ln -s /etc/guacamole/guacamole.properties /usr/share/tomcat7/.guacamole<br>

Revision as of 03:30, 4 September 2015

Reference : http://tomba.tweakblogs.net/blog/9833/no-more-logmein-free-opensource-to-the-rescue!.html

Install the prerequisites :
apt-get install make libcairo2-dev libpng12-dev freerdp-x11 libssh2-1 libvncserver-dev libfreerdp-dev libvorbis-dev libssl0.9.8 gcc libssh-dev libpulse-dev tomcat7 tomcat7-admin tomcat7-docs

Download the source and the war file :

wget -O guacamole-server-0.8.3.tar.gz http://sourceforge.net/projects/guacamole/files/current/source/guacamole-server-0.8.3.tar.gz/download?use_mirror=freefr&r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fguacamole%2Ffiles%2Fcurrent%2Fsource%2F&use_mirror=optimate


wget http://sourceforge.net/projects/guacamole/files/current/binary/guacamole-0.8.3.war/download?use_mirror=heanet&r=http%3A%2F%2Fsourceforge.net%2Fprojects2Fguacamole%2Ffiles%2Fcurrent%2Fbinary%2F&use_mirror=gar

tar -xzf guacamole-server-0.8.3.tar.gz
cd guacamole-server-0.8.3/
./configure --with-init-dir=/etc/init.d

make
make install
update-rc.d guacd defaults
ldconfig
mkdir /etc/guacamole
vi /etc/guacamole/guacamole.properties

# Hostname and port of guacamole proxy
guacd-hostname: localhost
guacd-port: 4822
 
# Location to read extra .jar's from
lib-directory: /var/lib/tomcat7/webapps/guacamole/WEB-INF/classes
 
# Authentication provider class
auth-provider: net.sourceforge.guacamole.net.basic.BasicFileAuthenticationProvider
 
# Properties used by BasicFileAuthenticationProvider
basic-user-mapping: /etc/guacamole/user-mapping.xml

Now edit the file /etc/guacamole/user-mapping.xml

mkdir /usr/share/tomcat7/.guacamole
ln -s /etc/guacamole/guacamole.properties /usr/share/tomcat7/.guacamole