vault backup: 2026-03-11 01:42:22
This commit is contained in:
@@ -3,7 +3,7 @@ title: "Déploiement d'Apache Guacamole via Docker sur Debian 12 (Bookworm)"
|
|||||||
description:
|
description:
|
||||||
tags: []
|
tags: []
|
||||||
date: 2026-03-11 00:27
|
date: 2026-03-11 00:27
|
||||||
lastmod: 2026-03-11 00:27
|
lastmod: 2026-03-11 01:19
|
||||||
type:
|
type:
|
||||||
- article
|
- article
|
||||||
category:
|
category:
|
||||||
@@ -30,9 +30,7 @@ Nous utilisons un trio de conteneurs isolés :
|
|||||||
|
|
||||||
On commence par structurer notre projet sur l'hôte :
|
On commence par structurer notre projet sur l'hôte :
|
||||||
|
|
||||||
Bash
|
```Bash
|
||||||
|
|
||||||
```
|
|
||||||
mkdir ~/guacamole-docker && cd ~/guacamole-docker
|
mkdir ~/guacamole-docker && cd ~/guacamole-docker
|
||||||
mkdir -p guacamole-home data init
|
mkdir -p guacamole-home data init
|
||||||
```
|
```
|
||||||
@@ -43,9 +41,7 @@ Le secret d'une installation qui ne casse pas lors des mises à jour réside dan
|
|||||||
|
|
||||||
`nano docker-compose.yml`
|
`nano docker-compose.yml`
|
||||||
|
|
||||||
YAML
|
```YAML
|
||||||
|
|
||||||
```
|
|
||||||
services:
|
services:
|
||||||
# Moteur de protocoles
|
# Moteur de protocoles
|
||||||
guacd:
|
guacd:
|
||||||
@@ -90,9 +86,7 @@ services:
|
|||||||
|
|
||||||
C’est l'étape où 90% des installations échouent. Il faut générer le schéma SQL officiel de Guacamole et le donner à manger à Postgres.
|
C’est l'étape où 90% des installations échouent. Il faut générer le schéma SQL officiel de Guacamole et le donner à manger à Postgres.
|
||||||
|
|
||||||
Bash
|
```Bash
|
||||||
|
|
||||||
```
|
|
||||||
# Générer le script SQL
|
# Générer le script SQL
|
||||||
docker run --rm guacamole/guacamole /opt/guacamole/bin/initdb.sh --postgresql > ./init/01_initdb.sql
|
docker run --rm guacamole/guacamole /opt/guacamole/bin/initdb.sh --postgresql > ./init/01_initdb.sql
|
||||||
|
|
||||||
@@ -106,9 +100,7 @@ Pour éviter que Java n'ignore vos variables d'environnement, créez ce fichier
|
|||||||
|
|
||||||
`nano guacamole-home/guacamole.properties`
|
`nano guacamole-home/guacamole.properties`
|
||||||
|
|
||||||
Properties
|
```Properties
|
||||||
|
|
||||||
```
|
|
||||||
postgresql-hostname: postgres
|
postgresql-hostname: postgres
|
||||||
postgresql-port: 5432
|
postgresql-port: 5432
|
||||||
postgresql-database: guacamole_db
|
postgresql-database: guacamole_db
|
||||||
@@ -122,9 +114,7 @@ extension-priority: postgresql
|
|||||||
|
|
||||||
Si `guacadmin` / `guacadmin` vous renvoie un "Identifiant incorrect" (souvent dû à un souci de hachage lors de l'init), créez un admin de secours directement en SQL :
|
Si `guacadmin` / `guacadmin` vous renvoie un "Identifiant incorrect" (souvent dû à un souci de hachage lors de l'init), créez un admin de secours directement en SQL :
|
||||||
|
|
||||||
Bash
|
```Bash
|
||||||
|
|
||||||
```
|
|
||||||
docker exec -i guac-postgres psql -U guacamole_user -d guacamole_db -c "INSERT INTO guacamole_entity (name, type) VALUES ('admin_devops', 'USER');"
|
docker exec -i guac-postgres psql -U guacamole_user -d guacamole_db -c "INSERT INTO guacamole_entity (name, type) VALUES ('admin_devops', 'USER');"
|
||||||
docker exec -i guac-postgres psql -U guacamole_user -d guacamole_db -c "INSERT INTO guacamole_user (entity_id, password_hash, password_salt, password_date) SELECT entity_id, decode('8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918', 'hex'), NULL, CURRENT_TIMESTAMP FROM guacamole_entity WHERE name = 'admin_devops';"
|
docker exec -i guac-postgres psql -U guacamole_user -d guacamole_db -c "INSERT INTO guacamole_user (entity_id, password_hash, password_salt, password_date) SELECT entity_id, decode('8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918', 'hex'), NULL, CURRENT_TIMESTAMP FROM guacamole_entity WHERE name = 'admin_devops';"
|
||||||
docker exec -i guac-postgres psql -U guacamole_user -d guacamole_db -c "INSERT INTO guacamole_system_permission (entity_id, permission) SELECT entity_id, permission::guacamole_system_permission_type FROM guacamole_entity, (VALUES ('CREATE_CONNECTION'), ('CREATE_USER'), ('ADMINISTER')) AS p (permission) WHERE name = 'admin_devops';"
|
docker exec -i guac-postgres psql -U guacamole_user -d guacamole_db -c "INSERT INTO guacamole_system_permission (entity_id, permission) SELECT entity_id, permission::guacamole_system_permission_type FROM guacamole_entity, (VALUES ('CREATE_CONNECTION'), ('CREATE_USER'), ('ADMINISTER')) AS p (permission) WHERE name = 'admin_devops';"
|
||||||
|
|||||||
Reference in New Issue
Block a user