{"id":152,"date":"2022-03-23T14:14:01","date_gmt":"2022-03-23T21:14:01","guid":{"rendered":"https:\/\/andylittle.us\/?page_id=152"},"modified":"2022-03-24T15:15:39","modified_gmt":"2022-03-24T22:15:39","slug":"apache-guacamole-install","status":"publish","type":"page","link":"https:\/\/andylittle.us\/?page_id=152","title":{"rendered":"Apache Guacamole Install"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n# subscription-manager register\n# subscription-manager attach --auto\n# yum update\n# yum install cairo-devel libjpeg-turbo-devel libjpeg-devel libpng-devel libtool libuuid-devel uuid-devel\n# yum install ffmpeg-devel freerdp-devel pango-devel  libssh2-devel libtelnet-devel libvncserver-devel libwebsockets-devel openssl-devel libwebp-devel\n# git clone git@github.com:apache\/guacamole-server.git\n# cd guacamole-server\/\n# autoreconf -fi\n# and now we find all the missing redhat 7 packages<\/code><\/pre>\n\n\n\n<p>At this point I looked for the Redhat7 docker rpm to download and did not find it. Decided life was too short and went the easy route with a clean debian machine. <\/p>\n\n\n\n<h2 class=\"has-text-align-left wp-block-heading\">Prereqs and Docker install<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">https:\/\/docs.docker.com\/engine\/install\/debian\/<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-get remove docker docker-engine docker.io containerd runc\n\napt-get install     ca-certificates     curl     gnupg     lsb-release\n\ncurl -fsSL https:\/\/download.docker.com\/linux\/debian\/gpg |  gpg --dearmor -o \/usr\/share\/keyrings\/docker-archive-keyring.gpg\n\necho   \"deb &#91;arch=$(dpkg --print-architecture) signed-by=\/usr\/share\/keyrings\/docker-archive-keyring.gpg] https:\/\/download.docker.com\/linux\/debian  $(lsb_release -cs) stable\" |  tee \/etc\/apt\/sources.list.d\/docker.list > \/dev\/null\n\napt-get update\n\napt-get install docker-ce docker-ce-cli containerd.io<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Database Creation and Init<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">https:\/\/guacamole.apache.org\/doc\/gug\/guacamole-docker.html#<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>docker run -d --name some-mysql -e MYSQL_ROOT_PASSWORD=\"xxxxx\" -p 3306:3306 mysql\n\nmysql -p  -u root -h &lt;ip address>  not sure why local host would not work\n\nMySQL &#91;(none)]> create database guacamole_db;\nMySQL &#91;(none)]> use guacamole_db;\nMySQL &#91;guacamole_db]> CREATE USER 'guacamole_user'@'%' IDENTIFIED BY 'xxxx';\nMySQL &#91;guacamole_db]> GRANT CREATE, ALTER, DROP, INSERT, UPDATE, DELETE, SELECT, REFERENCES, RELOAD on *.* TO 'guacamole_user'@'%' WITH GRANT OPTION;\nMySQL &#91;guacamole_db]> flush privileges;\nMySQL &#91;guacamole_db]> EXIT;\n\ndocker run --rm guacamole\/guacamole \/opt\/guacamole\/bin\/initdb.sh --mysql > initdb.sql\n\nmysql -p  -u guacamole_user -h 10.40.2.110 guacamole_db &lt; initdb.sql<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Run guacd container and guacamole container<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>docker run --name some-guacd -d guacamole\/guacd\n\ndocker run -d --name some-guacamole  --link some-guacd:guacd   --link some-mysql:mysql -e MYSQL_DATABASE=guacamole_db -e MYSQL_USER=guacamole_user -e MYSQL_PASSWORD=xxxx  -p 8080:8080 guacamole\/guacamole<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Check<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>root@docker1:~# docker ps \nCONTAINER ID   IMAGE                 COMMAND                  CREATED             STATUS                 PORTS                                                  NAMES\n8efa35b0829a   guacamole\/guacamole   \"\/opt\/guacamole\/bin\/\u2026\"   30 minutes ago      Up 30 minutes          0.0.0.0:8080->8080\/tcp, :::8080->8080\/tcp              some-guacamole\n80a5bd80f893   mysql                 \"docker-entrypoint.s\u2026\"   About an hour ago   Up About an hour       0.0.0.0:3306->3306\/tcp, :::3306->3306\/tcp, 33060\/tcp   some-mysql\nadbd3d22ff6d   guacamole\/guacd       \"\/bin\/sh -c '\/usr\/lo\u2026\"   3 hours ago         Up 3 hours (healthy)   4822\/tcp                                               some-guacd<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>At this point I looked for the Redhat7 docker rpm to download and did not find it. Decided life was too short and went the easy route with a clean debian machine. Prereqs and Docker install https:\/\/docs.docker.com\/engine\/install\/debian\/ Database Creation and Init https:\/\/guacamole.apache.org\/doc\/gug\/guacamole-docker.html# Run guacd container and guacamole container Check<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-152","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/andylittle.us\/index.php?rest_route=\/wp\/v2\/pages\/152","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/andylittle.us\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/andylittle.us\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/andylittle.us\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/andylittle.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=152"}],"version-history":[{"count":6,"href":"https:\/\/andylittle.us\/index.php?rest_route=\/wp\/v2\/pages\/152\/revisions"}],"predecessor-version":[{"id":160,"href":"https:\/\/andylittle.us\/index.php?rest_route=\/wp\/v2\/pages\/152\/revisions\/160"}],"wp:attachment":[{"href":"https:\/\/andylittle.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}