fazer o chroot num sistema com debian - novo!
começamos por arrancar com o debian live e de seguida:
mount /dev/sda1 /mnt
(Mounted the rootfs)
mount /dev/sda2 /mnt/boot/efi/
(Mounted the EFI boot partition)
mount /dev/sdaX /mnt/home
(Only if you have separate partitions for /HOME)
montamos as diversas partições e fazemos o chroot de seguida:
for name in proc sys dev ; do mount --bind /$name /mnt/$name; done
mount --bind /etc/resolv.conf /mnt/etc/resolv.conf
chroot /mnt/ /bin/bash
limpar /var/log/journal
https://ao.ms/how-to-cleanup-a-var-log-journal-in-linux/
journalctl --vacuum-size=500M
ldn
mono
problemas com certificados produzidos com o traefik
https://blog.roberthallam.org/2022/01/solved-traefik-and-sec_error_revo…
https://github.com/ldez/traefik-certs-cleaner/
palhaçada - melhor remover acme.json e reiniciar o traefik
"The website encountered an unexpected error. Please try again later."
problema no drupal quando se define um tema com problemas.
na máquina virtual:
cd /var/www/drupal9/
composer require --dev drush/drush
./vendor/bin/drush config-set system.theme default bartik