feat: añadido archivos básicos para crear el template y los equipos en proxmox

This commit is contained in:
Javier Niño Sánchez
2026-10-25 20:02:54 +01:00
parent a02ff5c4bc
commit 2f17d7b03d
8 changed files with 501 additions and 1 deletions

22
files/ttyd.service Normal file
View File

@@ -0,0 +1,22 @@
[Unit]
Description=Terminal web del equipo
# -i eth0 necesita la IP ya puesta. La pone ifupdown2, que en la imagen
# Debian 13 de PVE no retrasa network-online.target, así que se le espera a él
After=networking.service
# teams.sh escribe la ruta de la URL del equipo; hasta entonces ttyd no arranca
ConditionPathExists=/etc/default/ttyd
# Corre como alumno, que puede matarlo: reiniciarlo siempre, sin límite
StartLimitIntervalSec=0
[Service]
User=alumno
WorkingDirectory=~
Environment=LANG=C.UTF-8
EnvironmentFile=/etc/default/ttyd
# Sin NoNewPrivileges=: crontab(1) es setgid y el nivel 2b lo necesita
ExecStart=/usr/local/bin/ttyd -W -i eth0 -p ${TTYD_PORT} -b ${TTYD_BASE} -m 4 -t fontSize=16 bash -l
Restart=always
RestartSec=2
[Install]
WantedBy=multi-user.target