Install following packages under Ubuntu 14.04
apt-get install libssh2-1-dev libpango1.0-dev libossp-uuid-dev libcairo2-dev libpng12-dev freerdp-x11 libssh2-1 libvncserver-dev libfreerdp-dev libvorbis-dev libssh-dev libpulse-dev ghostscript libjpeg62-dev libwebp-dev xrdp
Download the tar ball
# wget http://sourceforge.net/projects/guacamole/files/current/source/guacamole-server-0.9.9.tar.gz # tar zxf guacamole-server-0.9.9.tar.gz
Copy the WAR File to your Tomcat
cp guacamole-0.9.9.war /tomcat/webapps/guacamole.war
Compile the software
cd guacamole-server-0.9.9 ./configure --with-init-dir=/etc/init.d
with this options you have a init script to boot on startup
checking that generated files are newer than configure… done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tests/Makefile
config.status: creating src/common/Makefile
config.status: creating src/common-ssh/Makefile
config.status: creating src/terminal/Makefile
config.status: creating src/libguac/Makefile
config.status: creating src/guacd/Makefile
config.status: creating src/protocols/rdp/Makefile
config.status: creating src/protocols/ssh/Makefile
config.status: creating src/protocols/telnet/Makefile
config.status: creating src/protocols/vnc/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands————————————————
guacamole-server version 0.9.9
————————————————Library status:
freerdp …………. yes
pango …………… yes
libssh2 …………. yes
libssl ………….. yes
libtelnet ……….. no
libVNCServer …….. no
libvorbis ……….. yes
libpulse ………… yes
libwebp …………. yesProtocol support:
RDP ……. yes
SSH ……. yes
Telnet …. no
VNC ……. noInit scripts: /etc/init.d
Type “make” to compile guacamole-server.
make and make install
Libraries have been installed in:
/usr/local/libIf you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR’
flag during linking and do at least one of the following:
– add LIBDIR to the `LD_LIBRARY_PATH’ environment variable
during execution
– add LIBDIR to the `LD_RUN_PATH’ environment variable
during linking
– use the `-Wl,-rpath -Wl,LIBDIR’ linker flag
– have your system administrator add LIBDIR to `/etc/ld.so.conf’See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
———————————————————————-
make[2]: Nothing to be done for `install-data-am’.
make[2]: Leaving directory `/opt/guacamole-server-0.9.9/src/protocols/ssh’
make[1]: Leaving directory `/opt/guacamole-server-0.9.9/src/protocols/ssh’
make[1]: Entering directory `/opt/guacamole-server-0.9.9′
make[2]: Entering directory `/opt/guacamole-server-0.9.9′
make[2]: Nothing to be done for `install-exec-am’.
make[2]: Nothing to be done for `install-data-am’.
make[2]: Leaving directory `/opt/guacamole-server-0.9.9′
make[1]: Leaving directory `/opt/guacamole-server-0.9.9′
update caches
ldconfig
add to autostart at boot
update-rc.d guacd defaults
Now Configure your Tomcat
Set Guacamole Home Directory in your setenv.sh from Tomcat
export GUACAMOLE_HOME=/home/guacamole/
Edit your User Mapping
/home/guacamole/etc/user-mapping.xml
<user-mapping>
<authorize
username=”remote”
password=”1234″
encoding=”md5″>
<connection name=”RDP Jmeter”>
<protocol>rdp</protocol>
<param name=”hostname”>10.241.19.58</param>
<param name=”port”>3389</param>
</connection>
</authorize>
</user-mapping>
Configure your Guacamole.properties
guacd-hostname: localhost
guacd-port: 4822
user-mapping: /home/guacamole/etc/user-mapping.xml
auth-provider: net.sourceforge.guacamole.net.basic.BasicFileAuthenticationProvider
basic-user-mapping: /home/guacamole/etc/user-mapping.xml
enable-clipboard-integration: true
Modify your /etc/rrdp/xrdp.ini to Connect to the same session everytime
[xrdp1]
name=sesman-Xvnc
lib=libvnc.so
username=ask
password=ask
ip=
127.0
.
0.1
port=
5910
Reconnect for XRDP
XRDP Install
More Links that i used for my installation
http://blog.sjas.de/posts/guacamole-home-folder-location.html