Install Guacamole (Incubator) from source on CentOS 7

This post was last updated on Feb 02, 2017. Changes made to make this guide current as of Guacamole Incubator 0.9.11 RC1.

This is my third Guacamole post! My first post was back in 2013 and was for last updated to Guac 0.9.5 on CentOS 6. My second post was in 2015, and last updated to Guac 0.9.9 on CentOS 7. Guac 0.9.9 was releasted on Dec 18, 2015 and there has been no stable release since then.

Why has there been no stable release since Dec 2015? Guacamole joined the Apache Incubator program, and development has been swift since then. Therefore, this post is for installing from source using the incubator github master branch. If you need a stable release, please use my previous guide. if you want to use the latest and greatest, read on!

I am installing the MySQL Authentication package which allows me to store connections and authentication information in a database, instead of a plain-text XML file. I am assuming that you are install as root, with SELinux and firewalld disabled (do this at your own risk! — I run my Guac instance behind a reverse proxy so my Guac instance is not directly accessible from my WAN).

Let’s Get Started!

1.) prerequisites:

Above we are just installing adding the EPEL, Felfert, and nux-dextop repositories that contain the packages we need, and installing all our prereqs. Easy.

2.) guacd install

Guacamole is delivered in two different pieces. The back-end is what we just installed above, from source, called guacd (or guacamole daemon). The other piece is the guacamole client, or web frontend. Install next.

3.) guacamole client

We now have the guacamole server daemon and the guacamole client installed. Next up is the MySQL Authentication piece, using MariaDB.

4.) mysql authentication

The above is downloading and prepping the guacamole-required pieces for db authentication.

5.) configure database

Here we created the database and database user for guacd to use.

6.) extend database schema

And here we extend the schema of the database we created.

7.) configure guacamole

The above is creating our needed directories, and then creating the file. This file is what tomcat uses to know what port to talk to guacd on as well as how to access the database. Here is a basic file that will do what you need.

This will configure guacamole to use the database and user that we created on the default port of 4822. Note, this is for internal communication only and is not the port that you will be accessing the web interface on.

And we have to create a symlink so Guacamole can find the config file:

8.) Cleanup

All that’s left is a little housecleaning!

Once your server boots, you’ll have Guacamole running and ready to be used! Head on over to http://guac_server_ip:8080/guacamole to start using your new Guacamole server! default username and password are both ‘guacadmin’.

If you’re having trouble accessing the webpage for Guacamole, make sure you have configured firewalld (or disabled it) to allow access to port 8080.

Leave me some feedback!



未经允许不得转载:VPS啦 » Install Guacamole (Incubator) from source on CentOS 7

赞 (0) 打赏