Guac Setup



sudo apt install tomcat9 tomcat9-admin tomcat9-common tomcat9-user -y

sudo systemctl start tomcat9

sudo systemctl enable tomcat9

sudo systemctl status tomcat9


Install Guac

wget https://downloads.apache.org/guacamole/1.3.0/source/guacamole-server-1.3.0.tar.gz

tar -xvzf guacamole-server-1.3.0.tar.gz

cd guacamole-server-1.3.0

sudo ./configure --with-init-dir=/etc/init.d

sudo make

sudo make install

sudo ldconfig


Enable and Start guacd

sudo systemctl enable guacd

sudo systemctl start guacd

Install Guac client

wget https://mirrors.estointernet.in/apache/guacamole/1.3.0/binary/guacamole-1.3.0.war

sudo mkdir /etc/guacamole

sudo mv guacamole-1.3.0.war /etc/guacamole/guacamole.war

sudo ln -s /etc/guacamole/guacamole.war /var/lib/tomcat9/webapps/

sudo systemctl restart tomcat9

sudo systemctl restart guacd


Config guac

sudo vi /etc/guacamole/guacamole.properties

guacd-hostname: localhost
guacd-port: 4822
user-mapping: /etc/guacamole/user-mapping.xml
auth-provider: net.sourceforge.guacamole.net.basic.BasicFileAuthenticationProvider

Create password Hash

echo -n your_password | openssl md5

sudo vi /etc/guacamole/user-mapping.xml

<user-mapping>


<authorize

username="prox"

password="1060b7b46a3bd36b3a0d66e0127d0517"

encoding="md5">


<connection name="Ubuntu20.04-Server">

<protocol>ssh</protocol>

<param name="hostname">localhost</param>

<param name="port">22</param>

<param name="username">ubuntu</param>

</connection>


<connection name="default">

<protocol>vnc</protocol>

<param name="hostname">localhost</param>

<param name="port">5901</param>

<param name="password">beaver</param>

</connection>

</authorize>

</user-mapping>


sudo systemctl restart tomcat9 guacd


Install XFCE

sudo apt install xfce4 xfce4-goodies firefox -y

Install VNC server

sudo apt install tigervnc-standalone-server

vncserver

sudo systemctl restart tomcat9 guacd