redhat:guacamole-redhat:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
redhat:guacamole-redhat:start [2020/07/16 11:02]
michael [Upgrade auf neue Version von Guacamole]
redhat:guacamole-redhat:start [2021/05/03 13:19] (current)
michael
Line 15: Line 15:
 **Alternative zu guacamole**: [[redhat:guacamole-redhat:glyptodon-enterprise-redhat|Installation von Glyptodon Enterprise]] [[https://enterprise.glyptodon.com/|(Webpage)]] oder [[https://www.os-js.org/]] **Alternative zu guacamole**: [[redhat:guacamole-redhat:glyptodon-enterprise-redhat|Installation von Glyptodon Enterprise]] [[https://enterprise.glyptodon.com/|(Webpage)]] oder [[https://www.os-js.org/]]
  
-===== Installation von Guacamole 1.0.0 =====+===== Installation von Guacamole 1.3.0 =====
  
 **Die folgende Installation wurde für Red Hat / CentOS 8 geschrieben.** **Die folgende Installation wurde für Red Hat / CentOS 8 geschrieben.**
Line 24: Line 24:
  
 <code> <code>
-yum install epel-release -y +dnf install epel-release -y 
-yum update -y +dnf update -y 
-yum install @container-tools -y+dnf install @container-tools -y
  
-yum install mariadb-server wget java-11-openjdk-devel -y+dnf install mariadb-server wget java-11-openjdk-devel -y
 </code> </code>
  
Line 69: Line 69:
 # cd /tmp # cd /tmp
  
-# wget https://www.blackgate.org/guac/guacamole-auth-jdbc-1.0.0.tar.gz +# wget https://www.blackgate.org/guac/guacamole-auth-jdbc-1.3.0.tar.gz 
-# wget https://www.blackgate.org/guac/guacamole-auth-duo-1.0.0.tar.gz+# wget https://www.blackgate.org/guac/guacamole-auth-duo-1.3.0.tar.gz
  
 ##DOWNLOAD JUST ONE VERSION, HARDENED BY MICHAEL OR ORIGINAL VERSION:## ##DOWNLOAD JUST ONE VERSION, HARDENED BY MICHAEL OR ORIGINAL VERSION:##
-# wget https://www.blackgate.org/guac/guacamole-1.0.0.war +# wget https://www.blackgate.org/guac/guacamole-1.3.0.war 
-# wget https://www.blackgate.org/guac/guacamole-1.0.0_hardened.war+# wget https://www.blackgate.org/guac/guacamole-1.3.0_hardened.war
  
 ##MYSQL CONNECTOR ##MYSQL CONNECTOR
-yum install https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.19-1.el8.noarch.rpm+dnf install https://cdn.mysql.com//Downloads/Connector-J/mysql-connector-java-8.0.24-1.el8.noarch.rpm
 </code> </code>
 </WRAP> </WRAP>
Line 89: Line 89:
 # useradd -m -U -d /opt/tomcat -s /bin/false tomcat # useradd -m -U -d /opt/tomcat -s /bin/false tomcat
  
-# VERSION=9.0.30+# VERSION=9.0.45
 # wget https://www-eu.apache.org/dist/tomcat/tomcat-9/v${VERSION}/bin/apache-tomcat-${VERSION}.tar.gz -P /tmp # wget https://www-eu.apache.org/dist/tomcat/tomcat-9/v${VERSION}/bin/apache-tomcat-${VERSION}.tar.gz -P /tmp
  
Line 132: Line 132:
 <code># systemctl daemon-reload <code># systemctl daemon-reload
  
-# systemctl enable --now tomcat+# systemctl enable tomcat --now
 # systemctl status tomcat # systemctl status tomcat
 </code> </code>
  
  
-<code>#setsebool -P tomcat_can_network_connect_db on+<code># setsebool -P tomcat_can_network_connect_db on
  
 # firewall-cmd --zone=public --add-port=8080/tcp --permanent # firewall-cmd --zone=public --add-port=8080/tcp --permanent
-#firewall-cmd --reload</code>+# firewall-cmd --reload</code>
 </WRAP> </WRAP>
  
Line 208: Line 208:
  
 <code> <code>
-# tar -xvf guacamole-auth-jdbc-1.0.0.tar.gz +# tar -xvf guacamole-auth-jdbc-1.3.0.tar.gz 
-# cd guacamole-auth-jdbc-1.0.0/mysql/+# cd guacamole-auth-jdbc-1.3.0/mysql/
  
-# cp guacamole-auth-jdbc-mysql-1.0.0.jar /etc/guacamole/extensions/+# cp guacamole-auth-jdbc-mysql-1.3.0.jar /etc/guacamole/extensions/
 # cat schema/*.sql | mysql -u root --password=$(cat /root/.mariadb-root-pw) guacamole_db1 # cat schema/*.sql | mysql -u root --password=$(cat /root/.mariadb-root-pw) guacamole_db1
 # cd ../.. # cd ../..
Line 227: Line 227:
    
 <code> <code>
-# cp guacamole-1.0.0.war /etc/guacamole/guacamole.war+# cp guacamole-1.3.0.war /etc/guacamole/guacamole.war
 # ln -s /etc/guacamole/guacamole.war /opt/tomcat/latest/webapps/ # ln -s /etc/guacamole/guacamole.war /opt/tomcat/latest/webapps/
 # mkdir /opt/tomcat/latest/.guacamole # mkdir /opt/tomcat/latest/.guacamole
 +
 # touch /etc/guacamole/guacamole.properties # touch /etc/guacamole/guacamole.properties
- 
 # ln -s /etc/guacamole/guacamole.properties /opt/tomcat/latest/.guacamole/ # ln -s /etc/guacamole/guacamole.properties /opt/tomcat/latest/.guacamole/
-# ln -s /usr/share/java/mysql-connector-java.jar /etc/guacamole/lib/ 
 </code> </code>
  
Line 319: Line 318:
 <code> <code>
 # rm -rf /etc/guacamole/extensions/* # rm -rf /etc/guacamole/extensions/*
-# rm -f /var/lib/tomcat/webapps/guacamole.war +# rm -f /opt/tomcat/latest/webapps/guacamole.war 
-# rm -rf /var/lib/tomcat/webapps/guacamole+# rm -rf /opt/tomcat/latest/webapps/guacamole
 # rm -f /etc/guacamole/guacamole.war # rm -f /etc/guacamole/guacamole.war
 </code> </code>
Line 326: Line 325:
  
 <wrap hi>**__Zum durchführen des Upgrades, wird folgendermassen vorgegangen:__**</wrap> <wrap hi>**__Zum durchführen des Upgrades, wird folgendermassen vorgegangen:__**</wrap>
-  - **Herunterladen der neuen Versionen** (''**Server**'', ''**WebClient**'', ''**jdbc**'' und //falls gebraucht// ''**duo**'') <code># cd ~/build +  - **Herunterladen der neuen Versionen** (''**Server**'', ''**WebClient**'', ''**jdbc**'' und //falls gebraucht// ''**duo**'') <code># cd /tmp
 # wget https://www.blackgate.org/guac/guacamole-auth-jdbc-1.2.0.tar.gz # wget https://www.blackgate.org/guac/guacamole-auth-jdbc-1.2.0.tar.gz
  
Line 338: Line 336:
 # tar -xvf guacamole-auth-duo-1.2.0.tar.gz</code> # tar -xvf guacamole-auth-duo-1.2.0.tar.gz</code>
   - Aktualisieren des Guacamole Protokoll Servers<code># podman pull guacamole/guacd:latest</code>   - Aktualisieren des Guacamole Protokoll Servers<code># podman pull guacamole/guacd:latest</code>
-  - Neue Versionen der Erweiterungen, aus den Source Ordnern in /ect/guacamole/extension kopieren! (z.B. auth-jdbc & auth-duo) <code> # cp guacamole-auth-jdbc-1.2.0/mysql/guacamole-auth-jdbc-mysql-1.2.0.jar /etc/guacamole/extensions/+  - Neue Versionen der Erweiterungen, aus den Source Ordnern in /ect/guacamole/extension kopieren! (z.B. auth-jdbc & auth-duo) <code># cp guacamole-auth-jdbc-1.2.0/mysql/guacamole-auth-jdbc-mysql-1.2.0.jar /etc/guacamole/extensions/
  
 # cp guacamole-auth-duo-1.2.0/guacamole-auth-duo-1.2.0.jar /etc/guacamole/extensions/ # cp guacamole-auth-duo-1.2.0/guacamole-auth-duo-1.2.0.jar /etc/guacamole/extensions/
Line 347: Line 345:
 # cp guacamole-1.2.0.war /etc/guacamole/guacamole.war # cp guacamole-1.2.0.war /etc/guacamole/guacamole.war
  
-# ln -s /etc/guacamole/guacamole.war /var/lib/tomcat/webapps/+# ln -s /etc/guacamole/guacamole.war /opt/tomcat/latest/webapps/
 </code> </code>
   - Falls nötig, **DB-Upgrade durchführen**. Ansonsten Dienste (wie ganz unten beschrieben) wieder starten.   - Falls nötig, **DB-Upgrade durchführen**. Ansonsten Dienste (wie ganz unten beschrieben) wieder starten.
  • redhat/guacamole-redhat/start.1594897328.txt.gz
  • Last modified: 2020/07/16 11:02
  • by michael