Manual Implementation of Auto Resizing For Non-Gnome Environments (like XFCE) running under Spice/Libvirt

echo 'ACTION=="change",KERNEL=="card0", SUBSYSTEM=="drm", RUN+="/usr/local/bin/x-resize" ' | sudo tee /etc/udev/rules.d/50-x-resize.rules
sudo mkdir /var/log/autores
sudo curl "https://gist.githubusercontent.com/3lpsy/4cc344ae031bf77595991c536cbd3275/raw/4965f04913626eb94485a5e6a67938b16c16b6e0/x-resize" -o /usr/local/bin/x-resize
sudo chmod +x /usr/local/bin/x-resize
sudo udevadm control --reload-rules
sudo systemctl enable --now spice-vdagentd

criação de utilizador com home na ram

useradd aluno -m -d /dev/shm/aluno -c 'Utilizador aluno' -s /bin/bash
nano /etc/systemd/system/mkhomedir_helper.service

e introduzir o texto

[Unit]
Description=Run mkhomedir_helper to generate the /home from /etc/skel.
[Service]
ExecStart=/usr/sbin/mkhomedir_helper aluno
[Install]
WantedBy=graphical.target

ativar o serviço:
systemctl enable --now mkhomedir_helper

erro ao entrar no tinkercad

[ 1058.759]
X.Org X Server 1.21.1.16
X Protocol Version 11, Revision 0
[ 1058.759] Current Operating System: Linux administrador-hpcompaqdc7800psmallformfactor 6.12.43+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.43-1 (2025-08-27) x86_64
[ 1058.759] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.12.43+deb13-amd64 root=UUID=0a5a8695-8694-4d2f-9ef5-a45bd58b474f ro quiet splash resume=UUID=59c9fcd9-a1ed-411c-bf42-32c382970e00
[ 1058.759] xorg-server 2:21.1.16-1.3 (https://www.debian.org/support)

problema num contentor LXC

Job for systemd-sysctl.service failed because the control process exited with error code.

systemctl --failed --all

UNIT LOAD ACTIVE SUB DESCRIPTION
* sys-kernel-config.mount loaded failed failed Kernel Configuration File System

a resolução.
echo 'lxc.cap.drop: "sys_rawio audit_read"'>>/etc/pve/nodes/xana-w530/lxc/999.conf

Subscrever