This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docpublic:systemes:remotelabsguacamole [2020/06/17 13:17] procacci@tem-tsp.eu [reverse-proxy] |
docpublic:systemes:remotelabsguacamole [2020/06/18 15:25] (current) procacci@tem-tsp.eu [packages repositories] |
||
---|---|---|---|
Line 6: | Line 6: | ||
* https:// | * https:// | ||
+ | |||
+ | ==== environement ==== | ||
+ | |||
+ | installation faite en centos 8 et tomcat 9 (tar.gz dans / | ||
==== packages repositories ==== | ==== packages repositories ==== | ||
Line 18: | Line 22: | ||
< | < | ||
[root@rlab ~]# dnf install --nogpgcheck https:// | [root@rlab ~]# dnf install --nogpgcheck https:// | ||
- | [root@rlabw ~]# yum install dnf-plugins-core | + | [root@rlab ~]# yum install dnf-plugins-core |
- | [root@rlabw ~]# dnf config-manager --enable PowerTools | + | [root@rlab ~]# dnf config-manager --enable PowerTools |
</ | </ | ||
Line 1036: | Line 1040: | ||
CustomLog | CustomLog | ||
</ | </ | ||
+ | |||
+ | |||
+ | ==== database ==== | ||
+ | |||
+ | afin de permettre a plusieurs utilisateurs de se conencter et enregistrer des preferences il convient de definir une database | ||
+ | |||
+ | === arborescence extension === | ||
+ | |||
+ | la database ou autre modules d' | ||
+ | |||
+ | < | ||
+ | [root@rlab etc]# mkdir -p / | ||
+ | </ | ||
+ | |||
+ | === modules === | ||
+ | |||
+ | recuperation et deploiement des modules pour la database | ||
+ | |||
+ | < | ||
+ | [root@rlab ~]# wget https:// | ||
+ | [root@rlab ~]# yum install mysql-connector-java-8.0.20-1.el8.noarch.rpm | ||
+ | [root@rlab ~]# cp / | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | [root@rlab ~]# wget https:// | ||
+ | [root@rlab ~]# tar xvfz guacamole-auth-jdbc-1.1.0.tar.gz ^C | ||
+ | [root@rlab ~]# cp guacamole-auth-jdbc-1.1.0/ | ||
+ | </ | ||
+ | |||
+ | ==== mariaDB ==== | ||
+ | |||
+ | apres installation de mariadb-server , on va le securiser | ||
+ | |||
+ | < | ||
+ | [root@rlab ~]# systemctl start mariadb.service | ||
+ | [root@rlab ~]# mysql_secure_installation | ||
+ | Set root password? [Y/n] Y | ||
+ | New password: | ||
+ | Re-enter new password: Secret Pa U g... S.. ip5 d Da | ||
+ | Password updated successfully! | ||
+ | Reloading privilege tables.. | ||
+ | ... Success! | ||
+ | Remove anonymous users? [Y/n] y | ||
+ | ... Success! | ||
+ | Normally, root should only be allowed to connect from ' | ||
+ | ensures that someone cannot guess at the root password from the network. | ||
+ | Disallow root login remotely? [Y/n] y | ||
+ | ... Success! | ||
+ | Remove test database and access to it? [Y/n] y | ||
+ | - Dropping test database... | ||
+ | ... Success! | ||
+ | - Removing privileges on test database... | ||
+ | ... Success! | ||
+ | Reload privilege tables now? [Y/n] y | ||
+ | Thanks for using MariaDB! | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | [root@rlab ~]# mysql -u root -p | ||
+ | |||
+ | MariaDB [(none)]> | ||
+ | Query OK, 1 row affected (0.000 sec) | ||
+ | MariaDB [(none)]> | ||
+ | Query OK, 0 rows affected (0.000 sec) | ||
+ | MariaDB [(none)]> | ||
+ | Query OK, 0 rows affected (0.000 sec) | ||
+ | MariaDB [(none)]> | ||
+ | </ | ||
+ | |||
+ | creation des table et user : | ||
+ | |||
+ | < | ||
+ | [root@rlab ~]# cat / | ||
+ | [root@rlab ~]# cat / | ||
+ | </ | ||
+ | |||
+ | === configuration / properties === | ||
+ | |||
+ | < | ||
+ | [root@rlab ~]# mkdir -p / | ||
+ | [root@rlab ~]# cat / | ||
+ | # MySQL properties | ||
+ | mysql-hostname: | ||
+ | mysql-port: 3306 | ||
+ | mysql-database: | ||
+ | mysql-username: | ||
+ | mysql-password: | ||
+ | #Additional settings | ||
+ | mysql-default-max-connections-per-user: | ||
+ | mysql-default-max-group-connections-per-user: | ||
+ | </ | ||
+ | |||
+ | === permissions === | ||
+ | |||
+ | < | ||
+ | [root@rlab ~]# chmod 0400 / | ||
+ | [root@rlab ~]# chown tomcat: | ||
+ | [root@rlab ~]# ln -s / | ||
+ | |||
+ | [root@rlab ~]# chown tomcat: | ||
+ | </ | ||
+ | |||
+ | ==== GUACAMOLE_HOME ==== | ||
+ | |||
+ | Tres imprtant pour la configurations des plugins/ | ||
+ | |||
+ | comme ci-dessus nus avons definit les propriété dans / | ||
+ | |||
+ | cf https:// | ||
+ | |||
+ | |||
+ | < | ||
+ | [root@rlab / | ||
+ | </ | ||
+ | |||
+ | Apres redemarrage de tomcat , on peut enfin se connecter avec la compte guacadmin (cf fichier d' | ||
+ | |||
+ | https:// | ||
+ | |||
+ | |||
+ | |||
+ |