blob: 9e0b19c1d7d7c3f639f3fb67ef17b21b417aec7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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.
|