Update
Apt-get Update && apt-get-y dist-upgrade
Installing dependent libraries
Install libcairo2-dev libpng12-dev libossp-uuid-dev libfreerdp-dev libpango1. 0-dev libssh2-1-dev libtelnet-dev libvncserver-dev libpulse-dev libssl-dev Libvorbis-dev Mysql-server mysql-client Mysql-common mysql-utilities tomcat8
Add guacamole to Tomcat
Echo ">>/etc/default/tomcat8echo"# guacamole EVN VARIABLE" >>/etc/default/tomcat8echo"guacamole_home=/etc/guacamole " >>/etc/default/tomcat8
Download guacamole file and MySQL
wget-O guacamole-0.9.8.war http://Downloads.sourceforge.net/project/guacamole/current/binary/guacamole-0.9.8.warwget-O guacamole-server-0.9.8.Tar. GZ http://sourceforge.net/projects/guacamole/files/current/source/guacamole-server-0.9.8.tar.gzwget-O guacamole-auth-jdbc-0.9.8.Tar. GZ http://sourceforge.net/projects/guacamole/files/current/extensions/guacamole-auth-jdbc-0.9.8.tar.gzwget-O mysql-connector-java-5.1. $.Tar. GZ http://dev.mysql.com/get/downloads/connector/j/mysql-connector-java-5.1.36.tar.gz
Unzip these files
tar -xzf guacamole-server-0. 9.8.tar. GZtar -xzf guacamole-auth-jdbc-0. 9.8.tar. GZtar -xzf mysql-connector-java-5.1. . tar. gz
Create a Guacmole folder
mkdir /etc/guacamolemkdir /etc/guacamole/libmkdir /etc/guacamole/ Extensions mkdir /usr/share/tomcat8/.guacamole
Installing Gucamole
CD guacamole-server-0.9. 8 . /configure--with-init-dir=/etc/init.dmake doinstall ldconfigsystemctl enable GUACDCD.
Move the file to the appropriate location
MV guacamole-0. 9.8.war/etc/guacamole/guacamole.warLn -s/etc/guacamole/guacamole.war/var/lib/tomcat8/webapps/ CP mysql-connector-java-5.1. /mysql-connector-java-5.1. -bin.jar/etc/guacamole/lib/cp guacamole-auth-jdbc-0. 9.8/mysql/guacamole-auth-jdbc-mysql-0. 9.8.jar/etc/guacamole/extensions/
Related Settings for Guacmole
Echo "Mysql-hostname:localhost">>/etc/guacamole/guacamole.propertiesEcho "mysql-port:3306">>/etc/guacamole/guacamole.propertiesEcho "mysql-database:guacamole_db">>/etc/guacamole/guacamole.propertiesEcho "Mysql-username:guacamole_user">>/etc/guacamole/guacamole.propertiesEcho "Mysql-password:password">>/etc/guacamole/guacamole.propertiesLN-s/etc/guacamole/guacamole.properties/usr/share/tomcat8/.guacamole/Service tomcat8 Restart
Settings for MySQL
Mysql-u Root-pmysqlrootpasswordcreate Database guacamole_db;create user'Guacamole_user'@'localhost'Identified by'PASSWORD'; GRANT select,insert,update,delete on guacamole_db.* To'Guacamole_user'@'localhost'; flush Privileges;quitCatguacamole-auth-jdbc-0.9.8/mysql/schema/*. sql | mysql-u root-pmysqlrootpassword guacamole_db
Ubuntu Installation Gucamole