This post covers how to setup guacamole using podman and systemd.
mkdir config
podman run -p 127.0.0.1:8444:8080 -v ./config:/config:z -e EXTENSIONS="auth-quickconnect" flcontainers/guacamole
Create a quadlet config: $HOME/.config/containers/systemd/guac.container
[Unit]
Description=Guacamole
After=local-fs.target
[Container]
Image=flcontainers/guacamole:latest
PublishPort=127.0.0.1:8444:8080
Volume=/home/freethink/code/public/guacamole/config:/config:Z
Environment=EXTENSIONS="auth-quickconnect"
Network=pasta:-T,5910:5910,22:22
[Install]
# Start by default on boot
WantedBy=multi-user.target default.target
Reload systemd and start
systemctl --user daemon-reload
systemctl --user start guac.service
Create a self signed certificate for stunnel to use:
sudo openssl req -new -out /etc/ssl/certs/stunnel.pem -keyout /etc/ssl/certs/stunnel.pem -nodes -x509 -days 365
Create a stunnel config: /etc/stunnel/stunnel.conf
debug = debug
cert = /etc/ssl/certs/stunnel.pem
[web]
accept=8445
connect=127.0.0.18444
Start and enable the stunnel service:
sudo systemctl enable --now stunnel
Create a config: $HOME/.config/systemd/user/wayvnc.service
[Unit]
Description=WayVNC
After=network.target
[Service]
ExecStart=/usr/bin/wayvnc 127.0.0.1 5910
Restart=always
RestartSec=10
[Install]
WantedBy=default.target
Reload systemd and start vnc:
systemctl --user daemon-reload
systemctl --user enable wayvnc.service
systemctl --user start wayvnc.service
systemctl --user status wayvnc.service
guacadmin:guacadmin
account, rename it.It would be good to have VNC using TLS but seems to not work. Can’t even get users/pass working.
Supposed to go like something like this:
Create another TLS certificate: $HOME/.config/wayvnc
openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:secp384r1 -sha384 -days 3650 -nodes -keyout $HOME/.config/wayvnc/tls_key.pem -out $HOME/.config/wayvnc/tls_cert.pem -subj /CN=localhost -addext subjectAltName=DNS:localhost,DNS:localhost,IP:127.0.0.1
Create a config: $HOME/.config/wayvnc/config
use_relative_paths=true
address=127.0.0.1
port=5910
enable_auth=true
username=pete
password=petel0lz
private_key_file=tls_key.pem
certificate_file=tls_cert.pem
Will keep an eye on wayvnc and might update if I get it working.
4 Oct 2024
Website Last Updated on 4 Oct 2024 (CC BY-SA 4.0)
This site uses JQuery and nanogallery2 hosted by jsdelivr.net
for the Flickr photo feed and GoatCounter for user insights.