diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..9e0b19c --- /dev/null +++ b/README.md @@ -0,0 +1,34 @@ +# 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. |