Advertisement
Guest User

guacamole install steps

a guest
Nov 20th, 2023
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.46 KB | Software | 0 0
  1.     1  apt update && apt install htop mc -y && apt upgrade -y && reboot
  2.     2  history
  3.     3  wget https://downloads.apache.org/guacamole/1.5.3/source/guacamole-server-1.5.3.tar.gz
  4.     4  ll
  5.     5  tar xzf guacamole-server-1.5.3.tar.gz
  6.     6  cd guacamole-server-1.5.3
  7.     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.     8  apt install build-essential -y
  9.     9  ./configure --with-init-dir=/etc/init.d
  10.    10  make
  11.    11  make install
  12.    12  ldconfig
  13.    13  systemctl start guacd
  14.    14  systemctl enable guacd
  15.    15  systemctl start guacd
  16.    16  systemctl status guacd
  17.    17  cd ..
  18.    18  wget https://downloads.apache.org/guacamole/1.5.3/binary/guacamole-1.5.3.war
  19.    19  mkdir -p /etc/guacamole/{extensions,lib}
  20.    20  mv guacamole-1.5.3.war /etc/guacamole/
  21.    21  apt install tomcat9 tomcat9-admin tomcat9-common tomcat9-user -y
  22.    22  ln -s /etc/guacamole/guacamole-1.5.3.war /var/lib/tomcat9/webapps/guacamole.war
  23.    23  ll /var/lib/tomcat9/webapps/
  24.    24  systemctl restart tomcat9 guacd
  25.    25  echo "GUACAMOLE_HOME=/etc/guacamole" >> /etc/default/tomcat9
  26.    26  nano /etc/guacamole/guacamole.properties
  27.    27  echo -n testpassword | openssl md5
  28.    28  nano /etc/guacamole/user-mapping.xml
  29.    29  systemctl restart tomcat9 guacd
  30.  
  31.  
  32. #### THIS IS guacamole.properties FILE CONTENT ####
  33. guacd-hostname: localhost
  34. guacd-port:     4822
  35. user-mapping:   /etc/guacamole/user-mapping.xml
  36. auth-provider:  net.sourceforge.guacamole.net.basic.BasicFileAuthenticationProvider
  37. ### END OF FILE ####
  38.  
  39. #### THIS IS user-mapping.xml FILE CONTENT ####
  40. <user-mapping>
  41.  
  42.     <!-- Per-user authentication and config information -->
  43.  
  44.     <!-- A user using md5 to hash the password
  45.          guacadmin user and its md5 hashed password below is used to
  46.              login to Guacamole Web UI-->
  47.     <authorize
  48.             username="guacadmin"
  49.             password="e16b2ab8d12314bf4efbd6203906ea6c"
  50.             encoding="md5">
  51.  
  52.         <!-- First authorized Remote connection -->
  53.         <connection name="CentOS-Server">
  54.             <protocol>ssh</protocol>
  55.             <param name="hostname">192.168.56.156</param>
  56.             <param name="port">22</param>
  57.         </connection>
  58.     </authorize>
  59.  
  60. </user-mapping>
  61. ### END OF FILE ####
Tags: guacaamole
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement