Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1 apt update && apt install htop mc -y && apt upgrade -y && reboot
- 2 history
- 3 wget https://downloads.apache.org/guacamole/1.5.3/source/guacamole-server-1.5.3.tar.gz
- 4 ll
- 5 tar xzf guacamole-server-1.5.3.tar.gz
- 6 cd guacamole-server-1.5.3
- 7 apt install libcairo2-dev libjpeg-turbo8-dev libpng-dev libtool-bin libossp-uuid-dev libvncserver-dev freerdp2-dev libssh2-1-dev libtelnet-dev libwebsockets-dev libpulse-dev libvorbis-dev libwebp-dev libssl-dev libpango1.0-dev libswscale-dev libavcodec-dev libavutil-dev libavformat-dev -y
- 8 apt install build-essential -y
- 9 ./configure --with-init-dir=/etc/init.d
- 10 make
- 11 make install
- 12 ldconfig
- 13 systemctl start guacd
- 14 systemctl enable guacd
- 15 systemctl start guacd
- 16 systemctl status guacd
- 17 cd ..
- 18 wget https://downloads.apache.org/guacamole/1.5.3/binary/guacamole-1.5.3.war
- 19 mkdir -p /etc/guacamole/{extensions,lib}
- 20 mv guacamole-1.5.3.war /etc/guacamole/
- 21 apt install tomcat9 tomcat9-admin tomcat9-common tomcat9-user -y
- 22 ln -s /etc/guacamole/guacamole-1.5.3.war /var/lib/tomcat9/webapps/guacamole.war
- 23 ll /var/lib/tomcat9/webapps/
- 24 systemctl restart tomcat9 guacd
- 25 echo "GUACAMOLE_HOME=/etc/guacamole" >> /etc/default/tomcat9
- 26 nano /etc/guacamole/guacamole.properties
- 27 echo -n testpassword | openssl md5
- 28 nano /etc/guacamole/user-mapping.xml
- 29 systemctl restart tomcat9 guacd
- #### THIS IS guacamole.properties FILE CONTENT ####
- guacd-hostname: localhost
- guacd-port: 4822
- user-mapping: /etc/guacamole/user-mapping.xml
- auth-provider: net.sourceforge.guacamole.net.basic.BasicFileAuthenticationProvider
- ### END OF FILE ####
- #### THIS IS user-mapping.xml FILE CONTENT ####
- <user-mapping>
- <!-- Per-user authentication and config information -->
- <!-- A user using md5 to hash the password
- guacadmin user and its md5 hashed password below is used to
- login to Guacamole Web UI-->
- <authorize
- username="guacadmin"
- password="e16b2ab8d12314bf4efbd6203906ea6c"
- encoding="md5">
- <!-- First authorized Remote connection -->
- <connection name="CentOS-Server">
- <protocol>ssh</protocol>
- <param name="hostname">192.168.56.156</param>
- <param name="port">22</param>
- </connection>
- </authorize>
- </user-mapping>
- ### END OF FILE ####
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement