# Desktop Session (Pre-)Autoloader FIXME: this README.md needs to be beautified... Old dirty hack. Stick this line in a file under /etc/rc.local.d/ [ $(date +%s) -lt $(date -d 07:55 +%s) ] && su autoload -c "Xvfb :10 & DISPLAY=:10 /usr/bin/dbus-launch --exit-with-session startxfce4 &" This will start things if the machine boots up before 07:55, combine this with wol, so things are up and running before pupils arrive. Then, create a autostart.desktop file for the "autoload" user, which logs him automatically out after 90 sec, like this: /home/autoload/.config/autostart/sleepandkill.desktop [Desktop Entry] Encoding=UTF-8 Name=sleepandkill Exec=/bin/sh -c "sleep 90; pkill -u autoload" Terminal=false Type=Application StartupNotify=false I stick these desktopfiles in under /home/autoload/.config/autostart/ as well: firefox.desktop geogebra.desktop libreoffice-writer.desktop sleepandkill.desktop Thunar.desktop That wau LO, FF, Thunar and Geogebra is already cached on the client. Dirty hack, but you notice the differene quit well.