Difference between revisions of "Install Guacamole - HTML5 RDP Gateway"

From Bitbull Wiki
Jump to navigation Jump to search
 
(No difference)

Revision as of 04:49, 17 May 2023

1 general

  • guacamole is a great way to present windows apps and desktops to the internet.

You have only one https port open to the internet and the application is working pretty nice and fast.

2 install

yum -y install epel-release
yum  makecache
yum -y upgrade
yum install -y wget pv dialog gcc cairo-devel libpng-devel libjpeg-turbo-devel uuid-devel freerdp-devel freerdp-plugins pango-devel libssh2-devel libtelnet-devel libvncserver-devel pulseaudio-libs-devel openssl-devel libvorbis-devel libwebp-devel tomcat gnu-free-mono-fonts mariadb mariadb-server
yum -y install ghostscript
wget http://sourceforge.net/projects/guacamoleinstallscript/files/CentOS/guacamole-install-script.sh
sed -i 's/GUACA_VER=.*/GUACA_VER="0.9.11-incubating"/g' guacamole-install-script.sh
sed -i 's/|| exit 1//g' guacamole-install-script.sh #/usr/lib64/pkgconfig linking error
chmod 700 guacamole-install-script.sh
./guacamole-install-script.sh
  • Enter the root password for MariaDB: secret123
  • Enter the Guacamole DB name: guacamole
  • Enter the Guacamole DB username: guacamole
  • Enter the Guacamole DB password: secret123
  • Enter the Java KeyStore password (least 6 characters): secret123
  • Do you wish to Install the Proxy feature (Nginx)?: yes
  • Enter the Guacamole Server IP addres or hostame (default localhost): ras.bitbull.ch
  • Enter the URI path (default guacamole): ras
service tomcat stop
echo 'JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom -Djava.awt.headless=true -Xmx512m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC"' >> /etc/tomcat/tomcat.conf
mkdir /var/lib/tomcat/webapps/ROOT
echo '<HTML>
 <HEAD>
 <TITLE>Automatic Redirection</TITLE>
 <SCRIPT LANGUAGE="JavaScript"><!--
 function redirect () { setTimeout("go_now()",1); }
 function go_now ()   { window.location.href = "guacamole/"; }
 //--></SCRIPT>
 </HEAD>
 <BODY onLoad="redirect()">
 </BODY>
 </HTML>' > /var/lib/tomcat/webapps/ROOT/index.html
systemctl enable tomcat
systemctl start tomcat
systemctl enable guacd
systemctl start guacd
firewall-cmd --permanent --zone=public --add-port=8443/tcp 
firewall-cmd --reload