aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-01-12 16:43:18 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-01-12 16:43:18 +0100
commit539526a966c70defca6f355676d220f8b2968fd5 (patch)
tree601c1cfaec1193f5073d6725b4a9969026df4677 /README.md
downloaddesktop-autoloader-539526a966c70defca6f355676d220f8b2968fd5.tar.gz
desktop-autoloader-539526a966c70defca6f355676d220f8b2968fd5.tar.bz2
desktop-autoloader-539526a966c70defca6f355676d220f8b2968fd5.zip
dump everything into Git... for the next day and for backup...
Diffstat (limited to 'README.md')
-rw-r--r--README.md34
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.