Skip to content

Instantly share code, notes, and snippets.

@ajxchapman
Last active Apr 29, 2019
Embed
What would you like to do?
Installing Apache Guacamole
  1. Install Docker
# https://docs.docker.com/install/linux/docker-ce/ubuntu/
apt-get update
apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update
apt-get install -y docker-ce docker-ce-cli containerd.io
docker run hello-world
  1. Setup the docker containers
docker run --name guac_guacd -e GUACD_LOG_LEVEL=debug -d guacamole/guacd
docker run --rm guacamole/guacamole /opt/guacamole/bin/initdb.sh --mysql > initdb.sql

docker run                                                     \
    --name guac_mysql                                          \
    -e MYSQL_ROOT_PASSWORD=rootpassword                        \
    -e MYSQL_DATABASE=guac_db                                  \
    -e MYSQL_USER=guac_user                                    \
    -e MYSQL_PASSWORD=guac_password                            \
    -v `pwd`/initdb.sql:/docker-entrypoint-initdb.d/initdb.sql \
    -d mysql

docker run                          \
    --name guac_guacamole           \
    --link guac_guacd:guacd         \
    --link guac_mysql:mysql         \
    -e MYSQL_DATABASE=guac_db       \
    -e MYSQL_USER=guac_user         \
    -e MYSQL_PASSWORD=guac_password \
    -d -p 8080:8080                 \
    guacamole/guacamole
  1. http://:8080/guacamole/
  • guacadmin:guacadmin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment