Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save thimslugga/4739d2f64f60756ae3dcbf2e1fefca1b to your computer and use it in GitHub Desktop.

Select an option

Save thimslugga/4739d2f64f60756ae3dcbf2e1fefca1b to your computer and use it in GitHub Desktop.

Revisions

  1. thimslugga revised this gist Mar 2, 2017. No changes.
  2. thimslugga revised this gist Mar 2, 2017. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions guacamole install on ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -89,7 +89,7 @@ rm -rf /usr/share/tomcat8/.guacamole
    ln -s /etc/guacamole /usr/share/tomcat8/.guacamole
    service tomcat8 restart

    # PostgreSQL: provision the guacamole database
    # postgresql provision the guacamole database
    cd /opt/incubator-guacamole-client/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-postgresql/
    su postgres -
    createdb guacamole_db
    @@ -100,7 +100,7 @@ GRANT SELECT,INSERT,UPDATE,DELETE ON ALL TABLES IN SCHEMA public TO guacamole_us
    GRANT SELECT,USAGE ON ALL SEQUENCES IN SCHEMA public TO guacamole_user;
    \q

    # MySQL: provision the guacamole database
    # mysql provision the guacamole database
    #mysql -u root -pMYSQLROOTPASSWORD
    #create database guacamole_db;
    #create user 'guacamole_user'@'localhost' identified by 'PASSWORD';
    @@ -131,4 +131,5 @@ apt-get install -y haveged
    apt-get install -y nginx
    mkdir /etc/nginx/ssl
    cd /etc/nginx/ssl
    # This is going to take a long time
    openssl dhparam -out dhparams.pem 2048
  3. thimslugga revised this gist Mar 1, 2017. 1 changed file with 8 additions and 8 deletions.
    16 changes: 8 additions & 8 deletions guacamole install on ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -120,15 +120,15 @@ ldconfig
    systemctl restart guacd
    systemctl restart tomcat8

    # nginx:
    apt-get install -y nginx
    mkdir /etc/nginx/ssl
    cd /etc/nginx/ssl
    openssl dhparam -out dhparams.pem 2048
    # default login
    http://IP-ADDRESS:8080/guacamole/
    guacadmin/guacadmin

    # http://IP-ADDRESS:8080/guacamole/ slow to load?
    apt-get install -y haveged

    # default login
    http://IP-ADDRESS:8080/guacamole/
    guacadmin/guacadmin
    # nginx:
    apt-get install -y nginx
    mkdir /etc/nginx/ssl
    cd /etc/nginx/ssl
    openssl dhparam -out dhparams.pem 2048
  4. thimslugga revised this gist Mar 1, 2017. 1 changed file with 8 additions and 4 deletions.
    12 changes: 8 additions & 4 deletions guacamole install on ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -5,13 +5,12 @@ apt -y update
    apt -y install libcairo2-dev libjpeg-turbo8-dev libpng12-dev libossp-uuid-dev libfreerdp-dev libpango1.0-dev libssh2-1-dev libtelnet-dev \
    libvncserver-dev libpulse-dev libssl-dev libvorbis-dev libwebp-dev git build-essential autoconf libtool oracle-java8-installer tomcat8 \
    tomcat8-admin tomcat8-common tomcat8-docs tomcat8-user maven postgresql-server-dev-9.5 postgresql-common postgresql-9.5 libpulse-dev \
    libvorbis-dev freerdp ghostscript wget pwgen nginx haveged
    libvorbis-dev freerdp ghostscript wget pwgen

    # create directories
    # create directories & files
    mkdir -p /etc/guacamole
    mkdir -p /etc/guacamole/lib
    mkdir -p /etc/guacamole/extensions

    touch /etc/guacamole/user-mapping.xml

    # configure GUACAMOLE_HOME for tomcat
    @@ -37,7 +36,7 @@ mvn package
    cp ./guacamole/target/guacamole-0.9.12-incubating.war /var/lib/tomcat8/webapps/guacamole.war
    cp ./extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-postgresql/target/guacamole-auth-jdbc-postgresql-0.9.12-incubating.jar /etc/guacamole/extensions/
    #cp ./extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/target/guacamole-auth-jdbc-mysql-0.9.12-incubating.jar /etc/guacamole/extensions/
    cp ./extensions/guacamole-auth-ldap/target/guacamole-auth-ldap-0.9.12-incubating.jar /etc/guacamole/extensions/
    #cp ./extensions/guacamole-auth-ldap/target/guacamole-auth-ldap-0.9.12-incubating.jar /etc/guacamole/extensions/

    # install postgresql connector
    cd /usr/local/src
    @@ -122,9 +121,14 @@ systemctl restart guacd
    systemctl restart tomcat8

    # nginx:
    apt-get install -y nginx
    mkdir /etc/nginx/ssl
    cd /etc/nginx/ssl
    openssl dhparam -out dhparams.pem 2048

    # http://IP-ADDRESS:8080/guacamole/ slow to load?
    apt-get install -y haveged

    # default login
    http://IP-ADDRESS:8080/guacamole/
    guacadmin/guacadmin
  5. thimslugga revised this gist Mar 1, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion guacamole install on ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -34,7 +34,7 @@ cd /opt
    git clone https://github.com/apache/incubator-guacamole-client.git
    cd incubator-guacamole-client
    mvn package
    cp ./guacamole/target/guacamole-0.9.12-incubating.war /var/lib/tomcat8/webapps/
    cp ./guacamole/target/guacamole-0.9.12-incubating.war /var/lib/tomcat8/webapps/guacamole.war
    cp ./extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-postgresql/target/guacamole-auth-jdbc-postgresql-0.9.12-incubating.jar /etc/guacamole/extensions/
    #cp ./extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/target/guacamole-auth-jdbc-mysql-0.9.12-incubating.jar /etc/guacamole/extensions/
    cp ./extensions/guacamole-auth-ldap/target/guacamole-auth-ldap-0.9.12-incubating.jar /etc/guacamole/extensions/
  6. thimslugga revised this gist Mar 1, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion guacamole install on ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ apt -y update
    apt -y install libcairo2-dev libjpeg-turbo8-dev libpng12-dev libossp-uuid-dev libfreerdp-dev libpango1.0-dev libssh2-1-dev libtelnet-dev \
    libvncserver-dev libpulse-dev libssl-dev libvorbis-dev libwebp-dev git build-essential autoconf libtool oracle-java8-installer tomcat8 \
    tomcat8-admin tomcat8-common tomcat8-docs tomcat8-user maven postgresql-server-dev-9.5 postgresql-common postgresql-9.5 libpulse-dev \
    libvorbis-dev freerdp ghostscript wget pwgen nginx
    libvorbis-dev freerdp ghostscript wget pwgen nginx haveged

    # create directories
    mkdir -p /etc/guacamole
  7. thimslugga revised this gist Mar 1, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions guacamole install on ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -62,8 +62,8 @@ echo "guacd-port: 4822" >> /etc/guacamole/guacamole.properties
    echo "#guacd-ssl: true" >> /etc/guacamole/guacamole.properties

    echo "lib-directory: /var/lib/tomcat8/webapps/guacamole/WEB-INF/classes" >> /etc/guacamole/guacamole.properties
    echo "auth-provider: net.sourceforge.guacamole.net.basic.BasicFileAuthenticationProvider" >> /etc/guacamole/guacamole.properties
    echo "basic-user-mapping: /etc/guacamole/user-mapping.xml" >> /etc/guacamole/guacamole.properties
    #echo "auth-provider: net.sourceforge.guacamole.net.basic.BasicFileAuthenticationProvider" >> /etc/guacamole/guacamole.properties
    #echo "basic-user-mapping: /etc/guacamole/user-mapping.xml" >> /etc/guacamole/guacamole.properties

    # configure postgresql for guacamole
    echo "" >> /etc/guacamole/guacamole.properties
  8. thimslugga revised this gist Mar 1, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions guacamole install on ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -12,6 +12,8 @@ mkdir -p /etc/guacamole
    mkdir -p /etc/guacamole/lib
    mkdir -p /etc/guacamole/extensions

    touch /etc/guacamole/user-mapping.xml

    # configure GUACAMOLE_HOME for tomcat
    echo "" >> /etc/default/tomcat8
    echo "# GUACAMOLE ENV VARIABLE" >> /etc/default/tomcat8
  9. thimslugga revised this gist Mar 1, 2017. 1 changed file with 5 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions guacamole install on ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -59,6 +59,10 @@ echo "guacd-hostname: localhost" >> /etc/guacamole/guacamole.properties
    echo "guacd-port: 4822" >> /etc/guacamole/guacamole.properties
    echo "#guacd-ssl: true" >> /etc/guacamole/guacamole.properties

    echo "lib-directory: /var/lib/tomcat8/webapps/guacamole/WEB-INF/classes" >> /etc/guacamole/guacamole.properties
    echo "auth-provider: net.sourceforge.guacamole.net.basic.BasicFileAuthenticationProvider" >> /etc/guacamole/guacamole.properties
    echo "basic-user-mapping: /etc/guacamole/user-mapping.xml" >> /etc/guacamole/guacamole.properties

    # configure postgresql for guacamole
    echo "" >> /etc/guacamole/guacamole.properties
    echo "postgresql-hostname: localhost" >> /etc/guacamole/guacamole.properties
    @@ -115,8 +119,7 @@ ldconfig
    systemctl restart guacd
    systemctl restart tomcat8

    # NGINX:

    # nginx:
    mkdir /etc/nginx/ssl
    cd /etc/nginx/ssl
    openssl dhparam -out dhparams.pem 2048
  10. thimslugga revised this gist Mar 1, 2017. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion guacamole install on ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -119,4 +119,7 @@ systemctl restart tomcat8

    mkdir /etc/nginx/ssl
    cd /etc/nginx/ssl
    openssl dhparam -out dhparams.pem 2048
    openssl dhparam -out dhparams.pem 2048

    # default login
    guacadmin/guacadmin
  11. thimslugga revised this gist Mar 1, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions guacamole install on ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -24,6 +24,7 @@ cd incubator-guacamole-server/
    autoreconf -fi
    ./configure --with-init-dir=/etc/init.d
    make && make install
    ldconfig
    systemctl enable guacd

    # install guacamole client (web app)
  12. thimslugga revised this gist Mar 1, 2017. 1 changed file with 12 additions and 1 deletion.
    13 changes: 12 additions & 1 deletion guacamole install on ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ apt -y update
    apt -y install libcairo2-dev libjpeg-turbo8-dev libpng12-dev libossp-uuid-dev libfreerdp-dev libpango1.0-dev libssh2-1-dev libtelnet-dev \
    libvncserver-dev libpulse-dev libssl-dev libvorbis-dev libwebp-dev git build-essential autoconf libtool oracle-java8-installer tomcat8 \
    tomcat8-admin tomcat8-common tomcat8-docs tomcat8-user maven postgresql-server-dev-9.5 postgresql-common postgresql-9.5 libpulse-dev \
    libvorbis-dev freerdp ghostscript wget pwgen
    libvorbis-dev freerdp ghostscript wget pwgen nginx

    # create directories
    mkdir -p /etc/guacamole
    @@ -65,6 +65,11 @@ echo "postgresql-port: 5432" >> /etc/guacamole/guacamole.properties
    echo "postgresql-database: guacamole_db" >> /etc/guacamole/guacamole.properties
    echo "postgresql-username: guacamole_user" >> /etc/guacamole/guacamole.properties
    echo "postgresql-password: PASSWORD" >> /etc/guacamole/guacamole.properties
    echo "postgresql-user-password-min-length: 8" >> /etc/guacamole/guacamole.properties
    echo "postgresql-user-password-require-multiple-case: true" >> /etc/guacamole/guacamole.properties
    echo "postgresql-user-password-require-symbol: true" >> /etc/guacamole/guacamole.properties
    echo "postgresql-user-password-require-digit: true" >> /etc/guacamole/guacamole.properties
    echo "postgresql-user-password-prohibit-username: true" >> /etc/guacamole/guacamole.properties

    # configure mysql for guacamole
    #echo "mysql-hostname: localhost" >> /etc/guacamole/guacamole.properties
    @@ -108,3 +113,9 @@ ldconfig

    systemctl restart guacd
    systemctl restart tomcat8

    # NGINX:

    mkdir /etc/nginx/ssl
    cd /etc/nginx/ssl
    openssl dhparam -out dhparams.pem 2048
  13. thimslugga revised this gist Mar 1, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions guacamole install on ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -59,6 +59,7 @@ echo "guacd-port: 4822" >> /etc/guacamole/guacamole.properties
    echo "#guacd-ssl: true" >> /etc/guacamole/guacamole.properties

    # configure postgresql for guacamole
    echo "" >> /etc/guacamole/guacamole.properties
    echo "postgresql-hostname: localhost" >> /etc/guacamole/guacamole.properties
    echo "postgresql-port: 5432" >> /etc/guacamole/guacamole.properties
    echo "postgresql-database: guacamole_db" >> /etc/guacamole/guacamole.properties
  14. thimslugga revised this gist Mar 1, 2017. 1 changed file with 8 additions and 1 deletion.
    9 changes: 8 additions & 1 deletion guacamole install on ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -51,6 +51,13 @@ ln -s /usr/local/lib/freerdp/* /usr/lib/x86_64-linux-gnu/freerdp/.
    # generate password
    pwgen -n 14

    # configure guacamole properties
    echo "#api-session-timeout: 60" >> /etc/guacamole/guacamole.properties
    echo "available-languages: en" >> /etc/guacamole/guacamole.properties
    echo "guacd-hostname: localhost" >> /etc/guacamole/guacamole.properties
    echo "guacd-port: 4822" >> /etc/guacamole/guacamole.properties
    echo "#guacd-ssl: true" >> /etc/guacamole/guacamole.properties

    # configure postgresql for guacamole
    echo "postgresql-hostname: localhost" >> /etc/guacamole/guacamole.properties
    echo "postgresql-port: 5432" >> /etc/guacamole/guacamole.properties
    @@ -95,7 +102,7 @@ GRANT SELECT,USAGE ON ALL SEQUENCES IN SCHEMA public TO guacamole_user;

    systemctl restart guacd

    # guacamole guacd[23403]: Starting guacd: /usr/local/sbin/guacd: error while loading shared libraries: libguac.so.12: cannot open shared object file: No such file
    # guacd: /usr/local/sbin/guacd: error while loading shared libraries: libguac.so.12: cannot open shared object file: No such file
    ldconfig

    systemctl restart guacd
  15. thimslugga revised this gist Mar 1, 2017. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions guacamole install on ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -93,5 +93,10 @@ GRANT SELECT,USAGE ON ALL SEQUENCES IN SCHEMA public TO guacamole_user;

    # TODO: include instructions for ldap integration

    systemctl restart guacd

    # guacamole guacd[23403]: Starting guacd: /usr/local/sbin/guacd: error while loading shared libraries: libguac.so.12: cannot open shared object file: No such file
    ldconfig

    systemctl restart guacd
    systemctl restart tomcat8
  16. thimslugga revised this gist Mar 1, 2017. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions guacamole install on ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -36,6 +36,12 @@ cp ./extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-postgresql/targe
    #cp ./extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/target/guacamole-auth-jdbc-mysql-0.9.12-incubating.jar /etc/guacamole/extensions/
    cp ./extensions/guacamole-auth-ldap/target/guacamole-auth-ldap-0.9.12-incubating.jar /etc/guacamole/extensions/

    # install postgresql connector
    cd /usr/local/src
    wget -c https://jdbc.postgresql.org/download/postgresql-42.0.0.jar
    cp postgresql-42.0.0.jar /etc/guacamole/lib/
    ln -s /usr/local/lib/freerdp/* /usr/lib/x86_64-linux-gnu/freerdp/.

    # install mysql connector
    #wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.tar.gz
    #tar xf mysql-conn*
  17. thimslugga revised this gist Mar 1, 2017. 1 changed file with 22 additions and 1 deletion.
    23 changes: 22 additions & 1 deletion guacamole install on ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ apt -y update
    apt -y install libcairo2-dev libjpeg-turbo8-dev libpng12-dev libossp-uuid-dev libfreerdp-dev libpango1.0-dev libssh2-1-dev libtelnet-dev \
    libvncserver-dev libpulse-dev libssl-dev libvorbis-dev libwebp-dev git build-essential autoconf libtool oracle-java8-installer tomcat8 \
    tomcat8-admin tomcat8-common tomcat8-docs tomcat8-user maven postgresql-server-dev-9.5 postgresql-common postgresql-9.5 libpulse-dev \
    libvorbis-dev freerdp ghostscript wget
    libvorbis-dev freerdp ghostscript wget pwgen

    # create directories
    mkdir -p /etc/guacamole
    @@ -42,6 +42,16 @@ cp ./extensions/guacamole-auth-ldap/target/guacamole-auth-ldap-0.9.12-incubating
    #cp mysql-connector-java-5.1.40/mysql-connector-java-5.1.40-bin.jar /etc/guacamole/lib/
    #ln -s /usr/local/lib/freerdp/* /usr/lib/x86_64-linux-gnu/freerdp/.

    # generate password
    pwgen -n 14

    # configure postgresql for guacamole
    echo "postgresql-hostname: localhost" >> /etc/guacamole/guacamole.properties
    echo "postgresql-port: 5432" >> /etc/guacamole/guacamole.properties
    echo "postgresql-database: guacamole_db" >> /etc/guacamole/guacamole.properties
    echo "postgresql-username: guacamole_user" >> /etc/guacamole/guacamole.properties
    echo "postgresql-password: PASSWORD" >> /etc/guacamole/guacamole.properties

    # configure mysql for guacamole
    #echo "mysql-hostname: localhost" >> /etc/guacamole/guacamole.properties
    #echo "mysql-port: 3306" >> /etc/guacamole/guacamole.properties
    @@ -54,6 +64,17 @@ rm -rf /usr/share/tomcat8/.guacamole
    ln -s /etc/guacamole /usr/share/tomcat8/.guacamole
    service tomcat8 restart

    # PostgreSQL: provision the guacamole database
    cd /opt/incubator-guacamole-client/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-postgresql/
    su postgres -
    createdb guacamole_db
    cat schema/*.sql | psql -d guacamole_db -f -
    psql -d guacamole_db
    CREATE USER guacamole_user WITH PASSWORD 'PASSWORD';
    GRANT SELECT,INSERT,UPDATE,DELETE ON ALL TABLES IN SCHEMA public TO guacamole_user;
    GRANT SELECT,USAGE ON ALL SEQUENCES IN SCHEMA public TO guacamole_user;
    \q

    # MySQL: provision the guacamole database
    #mysql -u root -pMYSQLROOTPASSWORD
    #create database guacamole_db;
  18. thimslugga revised this gist Mar 1, 2017. 1 changed file with 18 additions and 18 deletions.
    36 changes: 18 additions & 18 deletions guacamole install on ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -33,35 +33,35 @@ cd incubator-guacamole-client
    mvn package
    cp ./guacamole/target/guacamole-0.9.12-incubating.war /var/lib/tomcat8/webapps/
    cp ./extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-postgresql/target/guacamole-auth-jdbc-postgresql-0.9.12-incubating.jar /etc/guacamole/extensions/
    cp ./extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/target/guacamole-auth-jdbc-mysql-0.9.12-incubating.jar /etc/guacamole/extensions/
    #cp ./extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/target/guacamole-auth-jdbc-mysql-0.9.12-incubating.jar /etc/guacamole/extensions/
    cp ./extensions/guacamole-auth-ldap/target/guacamole-auth-ldap-0.9.12-incubating.jar /etc/guacamole/extensions/

    # install mysql connector
    wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.tar.gz
    tar xf mysql-conn*
    cp mysql-connector-java-5.1.40/mysql-connector-java-5.1.40-bin.jar /etc/guacamole/lib/
    ln -s /usr/local/lib/freerdp/* /usr/lib/x86_64-linux-gnu/freerdp/.
    #wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.tar.gz
    #tar xf mysql-conn*
    #cp mysql-connector-java-5.1.40/mysql-connector-java-5.1.40-bin.jar /etc/guacamole/lib/
    #ln -s /usr/local/lib/freerdp/* /usr/lib/x86_64-linux-gnu/freerdp/.

    # configure mysql for guacamole
    echo "mysql-hostname: localhost" >> /etc/guacamole/guacamole.properties
    echo "mysql-port: 3306" >> /etc/guacamole/guacamole.properties
    echo "mysql-database: guacamole_db" >> /etc/guacamole/guacamole.properties
    echo "mysql-username: guacamole_user" >> /etc/guacamole/guacamole.properties
    echo "mysql-password: PASSWORD" >> /etc/guacamole/guacamole.properties
    #echo "mysql-hostname: localhost" >> /etc/guacamole/guacamole.properties
    #echo "mysql-port: 3306" >> /etc/guacamole/guacamole.properties
    #echo "mysql-database: guacamole_db" >> /etc/guacamole/guacamole.properties
    #echo "mysql-username: guacamole_user" >> /etc/guacamole/guacamole.properties
    #echo "mysql-password: PASSWORD" >> /etc/guacamole/guacamole.properties

    # link guacamole dir to tomcat
    rm -rf /usr/share/tomcat8/.guacamole
    ln -s /etc/guacamole /usr/share/tomcat8/.guacamole
    service tomcat8 restart

    # provision the guacamole database
    mysql -u root -pMYSQLROOTPASSWORD
    create 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;
    quit
    cat /opt/incubator-guacamole-client/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/schema/*.sql | mysql -u root \
    # MySQL: provision the guacamole database
    #mysql -u root -pMYSQLROOTPASSWORD
    #create 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;
    #quit
    #cat /opt/incubator-guacamole-client/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/schema/*.sql | mysql -u root \
    -pMYSQLROOTPASSWORD guacamole_db

    # TODO: include instructions for ldap integration
  19. thimslugga revised this gist Mar 1, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions guacamole install on ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -32,6 +32,7 @@ git clone https://github.com/apache/incubator-guacamole-client.git
    cd incubator-guacamole-client
    mvn package
    cp ./guacamole/target/guacamole-0.9.12-incubating.war /var/lib/tomcat8/webapps/
    cp ./extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-postgresql/target/guacamole-auth-jdbc-postgresql-0.9.12-incubating.jar /etc/guacamole/extensions/
    cp ./extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/target/guacamole-auth-jdbc-mysql-0.9.12-incubating.jar /etc/guacamole/extensions/
    cp ./extensions/guacamole-auth-ldap/target/guacamole-auth-ldap-0.9.12-incubating.jar /etc/guacamole/extensions/

  20. thimslugga revised this gist Mar 1, 2017. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions guacamole install on ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -31,9 +31,9 @@ cd /opt
    git clone https://github.com/apache/incubator-guacamole-client.git
    cd incubator-guacamole-client
    mvn package
    cp ./guacamole/target/guacamole-0.9.10-incubating.war /var/lib/tomcat8/webapps/
    cp ./extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/target/guacamole-auth-jdbc-mysql-0.9.10-incubating.jar /etc/guacamole/extensions/
    cp ./extensions/guacamole-auth-ldap/target/guacamole-auth-ldap-0.9.10-incubating.jar /etc/guacamole/extensions/
    cp ./guacamole/target/guacamole-0.9.12-incubating.war /var/lib/tomcat8/webapps/
    cp ./extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/target/guacamole-auth-jdbc-mysql-0.9.12-incubating.jar /etc/guacamole/extensions/
    cp ./extensions/guacamole-auth-ldap/target/guacamole-auth-ldap-0.9.12-incubating.jar /etc/guacamole/extensions/

    # install mysql connector
    wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.tar.gz
  21. thimslugga revised this gist Mar 1, 2017. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion guacamole install on ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -26,7 +26,6 @@ autoreconf -fi
    make && make install
    systemctl enable guacd


    # install guacamole client (web app)
    cd /opt
    git clone https://github.com/apache/incubator-guacamole-client.git
  22. thimslugga revised this gist Mar 1, 2017. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions guacamole install on ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,10 @@
    # install required packages
    apt -y update && apt-get -y dist-upgrade
    add-apt-repository ppa:webupd8team/java
    apt -y update
    apt -y upgrade
    apt -y dist-upgrade
    apt -y install libcairo2-dev libjpeg-turbo8-dev libpng12-dev libossp-uuid-dev libfreerdp-dev libpango1.0-dev libssh2-1-dev libtelnet-dev \
    libvncserver-dev libpulse-dev libssl-dev libvorbis-dev libwebp-dev git build-essential autoconf libtool oracle-java8-installer tomcat8 \
    tomcat8-admin tomcat8-common tomcat8-docs tomcat8-user maven mysql-server mysql-client mysql-common mysql-utilities libpulse-dev \
    tomcat8-admin tomcat8-common tomcat8-docs tomcat8-user maven postgresql-server-dev-9.5 postgresql-common postgresql-9.5 libpulse-dev \
    libvorbis-dev freerdp ghostscript wget

    # create directories
  23. @cyrex562 cyrex562 created this gist Nov 23, 2016.
    71 changes: 71 additions & 0 deletions guacamole install on ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,71 @@
    # install required packages
    add-apt-repository ppa:webupd8team/java
    apt -y update
    apt -y upgrade
    apt -y dist-upgrade
    apt -y install libcairo2-dev libjpeg-turbo8-dev libpng12-dev libossp-uuid-dev libfreerdp-dev libpango1.0-dev libssh2-1-dev libtelnet-dev \
    libvncserver-dev libpulse-dev libssl-dev libvorbis-dev libwebp-dev git build-essential autoconf libtool oracle-java8-installer tomcat8 \
    tomcat8-admin tomcat8-common tomcat8-docs tomcat8-user maven mysql-server mysql-client mysql-common mysql-utilities libpulse-dev \
    libvorbis-dev freerdp ghostscript wget

    # create directories
    mkdir -p /etc/guacamole
    mkdir -p /etc/guacamole/lib
    mkdir -p /etc/guacamole/extensions

    # configure GUACAMOLE_HOME for tomcat
    echo "" >> /etc/default/tomcat8
    echo "# GUACAMOLE ENV VARIABLE" >> /etc/default/tomcat8
    echo "GUACAMOLE_HOME=/etc/guacamole" >> /etc/default/tomcat8
    cd /opt

    # install guacamole server
    git clone https://github.com/apache/incubator-guacamole-server.git
    cd incubator-guacamole-server/
    autoreconf -fi
    ./configure --with-init-dir=/etc/init.d
    make && make install
    systemctl enable guacd


    # install guacamole client (web app)
    cd /opt
    git clone https://github.com/apache/incubator-guacamole-client.git
    cd incubator-guacamole-client
    mvn package
    cp ./guacamole/target/guacamole-0.9.10-incubating.war /var/lib/tomcat8/webapps/
    cp ./extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/target/guacamole-auth-jdbc-mysql-0.9.10-incubating.jar /etc/guacamole/extensions/
    cp ./extensions/guacamole-auth-ldap/target/guacamole-auth-ldap-0.9.10-incubating.jar /etc/guacamole/extensions/

    # install mysql connector
    wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.tar.gz
    tar xf mysql-conn*
    cp mysql-connector-java-5.1.40/mysql-connector-java-5.1.40-bin.jar /etc/guacamole/lib/
    ln -s /usr/local/lib/freerdp/* /usr/lib/x86_64-linux-gnu/freerdp/.

    # configure mysql for guacamole
    echo "mysql-hostname: localhost" >> /etc/guacamole/guacamole.properties
    echo "mysql-port: 3306" >> /etc/guacamole/guacamole.properties
    echo "mysql-database: guacamole_db" >> /etc/guacamole/guacamole.properties
    echo "mysql-username: guacamole_user" >> /etc/guacamole/guacamole.properties
    echo "mysql-password: PASSWORD" >> /etc/guacamole/guacamole.properties

    # link guacamole dir to tomcat
    rm -rf /usr/share/tomcat8/.guacamole
    ln -s /etc/guacamole /usr/share/tomcat8/.guacamole
    service tomcat8 restart

    # provision the guacamole database
    mysql -u root -pMYSQLROOTPASSWORD
    create 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;
    quit
    cat /opt/incubator-guacamole-client/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/schema/*.sql | mysql -u root \
    -pMYSQLROOTPASSWORD guacamole_db

    # TODO: include instructions for ldap integration

    systemctl restart guacd
    systemctl restart tomcat8