Guacamole Package?

This is what worked for me:

Install NS7, all updates, and mySQL from web interface

yum install cairo-devel libjpeg-devel uuid-devel freerdp-devel pango-devel libssh2-devel libtelnet-devel libvncserver-devel pulseaudio-libs-devel libvorbis-devel libwebp-devel nethserver-tomcat gcc

wget http://sourceforge.net/projects/guacamole/files/current/source/guacamole-server-0.9.9.tar.gz

tar -xzf guacamole-server-0.9.9.tar.gz && cd guacamole-server-0.9.9

./configure --with-init-dir=/etc/init.d

make

make install

ldconfig

mkdir -p /var/lib/guacamole && cd /var/lib/guacamole/

wget http://sourceforge.net/projects/guacamole/files/current/binary/guacamole-0.9.9.war -O guacamole.war

ln -s /var/lib/guacamole/guacamole.war /var/lib/tomcat/webapps/

rm -rf /usr/lib64/freerdp/guacdr.so

ln -s /usr/local/lib/freerdp/guacdr.so /usr/lib64/freerdp/

mkdir ~/guacamole && cd ~/guacamole

wget http://sourceforge.net/projects/guacamole/files/current/extensions/guacamole-auth-jdbc-0.9.9.tar.gz

tar -zxf guacamole-auth-jdbc-0.9.9.tar.gz

wget http://dev.mysql.com/get/Downloads/Connector/j/mysql-connector-java-5.1.38.tar.gz

tar -zxf mysql-connector-java-5.1.38.tar.gz

mkdir -p /usr/share/tomcat/.guacamole/{extensions,lib}

mv guacamole-auth-jdbc-0.9.9/mysql/guacamole-auth-jdbc-mysql-0.9.9.jar /usr/share/tomcat/.guacamole/extensions/

mv mysql-connector-java-5.1.38/mysql-connector-java-5.1.38-bin.jar /usr/share/tomcat/.guacamole/lib/

mysqladmin -u root password MySQLRootPass

mysql -u root -p

<enter above password>

create database guacdb;

create user 'guacuser'@'localhost' identified by 'guacDBpass';

grant all privileges on guacdb.* to 'guacuser'@'localhost';

flush privileges;

quit

cd ~/guacamole/guacamole-auth-jdbc-0.9.9/mysql/schema/

cat ./*.sql | mysql -u root -p guacdb

<enter root pw from above>

mkdir -p /etc/guacamole/ && vi /etc/guacamole/guacamole.properties

Paste the following in this file:
     # MySQL properties
     mysql-hostname: localhost
     mysql-port: 3306
     mysql-database: guacdb
     mysql-username: guacuser
     mysql-password: guacDBpass

     # Additional settings
     mysql-default-max-connections-per-user: 0
     mysql-default-max-group-connections-per-user: 0

ln -s /etc/guacamole/guacamole.properties /usr/share/tomcat/.guacamole/

cd ~ && rm -rf guacamole*

systemctl enable tomcat.service && chkconfig guacd on

systemctl reboot

Then you should be able to access the site via http://ip:8080/guacamole with the default username and pw of ‘guacadmin’.

5 Likes