diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-01-12 16:43:18 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-01-12 16:43:18 +0100 |
commit | 539526a966c70defca6f355676d220f8b2968fd5 (patch) | |
tree | 601c1cfaec1193f5073d6725b4a9969026df4677 | |
download | desktop-autoloader-539526a966c70defca6f355676d220f8b2968fd5.tar.gz desktop-autoloader-539526a966c70defca6f355676d220f8b2968fd5.tar.bz2 desktop-autoloader-539526a966c70defca6f355676d220f8b2968fd5.zip |
dump everything into Git... for the next day and for backup...
-rw-r--r-- | README.md | 34 | ||||
-rw-r--r-- | data/d-e-a-sleepandkill.desktop | 7 | ||||
-rw-r--r-- | debian/changelog | 5 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 43 | ||||
-rw-r--r-- | debian/copyright | 32 | ||||
-rw-r--r-- | debian/docs | 1 | ||||
-rw-r--r-- | debian/install | 1 | ||||
-rw-r--r-- | debian/manpages | 1 | ||||
-rwxr-xr-x | debian/rules | 8 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/watch | 3 |
12 files changed, 137 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. diff --git a/data/d-e-a-sleepandkill.desktop b/data/d-e-a-sleepandkill.desktop new file mode 100644 index 0000000..c366bd4 --- /dev/null +++ b/data/d-e-a-sleepandkill.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=sleep-and-kill +Exec=/bin/sh -c "sleep 90; pkill -u desktop-session-autoloader" +Terminal=false +Type=Application +StartupNotify=false diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..220959b --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +desktop-session-autoloader (0.0.1-1) UNRELEASED; urgency=medium + + * Initial release. (Closes: #XXXXXX). + + -- Mike Gabriel <sunweaver@debian.org> Fri, 12 Jan 2018 16:24:46 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..9d60796 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +11
\ No newline at end of file diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..6a9282b --- /dev/null +++ b/debian/control @@ -0,0 +1,43 @@ +Source: desktop-session-autoloader +Section: misc +Priority: optional +Maintainer: Debian Edu Packaging Team <debian-edu-pkg-team@lists.alioth.debian.org> +Uploaders: + Mike Gabriel <sunweaver@debian.org>, +Standards-Version: 4.1.3 +Build-Depends: + debhelper (>= 11), + cdbs, +Vcs-Git: https://anonscm.debian.org/git/debian-edu/pkg-team/desktop-session-autoloader.git +Vcs-Browser: https://anonscm.debian.org/git/debian-edu/pkg-team/desktop-session-autoloader.git +Homepage: https://anonscm.debian.org/git/debian-edu/pkg-team/desktop-session-autoloader/README.md + +Package: desktop-session-autoloader +Architecture: all +Depends: + ${misc:Depends}, +Suggests: +Description: Accelerate Diskless Workstation systems by pre-loading a dummy Desktop Session + This package is for diskless Linux clients as you often find them in + school class rooms running an LTSP based fat client environment. + . + The logon into and the initial session startup on such diskless + workstations can be considerably slow, because all applications need to + be fetch from one server hosting the fat clients' filesystem. + . + The situation gets worse, if 24 computers in the same class room get + switched on simultaneously or the teacher tells the students to open the + same application (e.g. Libreoffice) at the same time. + . + However, this issue only occurs to the first student using a diskless + workstation that day. Other students see all applications launch within + a fraction of a second. + . + Reason: once an application has been launched, it ends up in the + diskless machine's filesystem cache in RAM. + . + This package, thus, pre-loads a desktop session of the admins choice and + some popular applications. It does it before 7:30 in the morning only. + So, combine this package with Wake-On-LAN to make sure systems are up + and the desktop session has been autoloaded (and quit) already before + the first students come into the class room. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..536862f --- /dev/null +++ b/debian/copyright @@ -0,0 +1,32 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: desktop-session-autoloader +Upstream-Contact: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> +Source: https://code.it-zukunft-schule.de + +Files: * +Copyright: + 2011-2017, Klaus Ade Johnstad <klaus@linuxavdelingen.no> + 2017, Mike Gabriel <mike.gabriel@das-netzwerkteam.de> +License: GPL-2+ + +License: GPL-2+ + This program is free software; you can redistribute it + and/or modify it under the terms of the GNU General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later + version. + . + This program is distributed in the hope that it will be + useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the GNU General Public License for more + details. + . + You should have received a copy of the GNU General Public + License along with this package; if not, write to the Free + Software Foundation, Inc., 51 Franklin St, Fifth Floor, + Boston, MA 02110-1301 USA + . + On Debian systems, the full text of the GNU General Public + License version 2 can be found in the file + `/usr/share/common-licenses/GPL-2'. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.md diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..503fa1d --- /dev/null +++ b/debian/install @@ -0,0 +1 @@ +#TODO
\ No newline at end of file diff --git a/debian/manpages b/debian/manpages new file mode 100644 index 0000000..503fa1d --- /dev/null +++ b/debian/manpages @@ -0,0 +1 @@ +#TODO
\ No newline at end of file diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..bce6065 --- /dev/null +++ b/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +VERBOSE=1 + +include /usr/share/cdbs/1/rules/debhelper.mk + +get-orig-source: + uscan --noconf --force-download --rename --download-current-version --destdir=.. diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..46ebe02 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)
\ No newline at end of file diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..2d34965 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://code.it-zukunft-schule.de/cgit/desktop-session-autoloader/ \ + snapshot/desktop-session-autoloader-(\d\.\d\.\d)\.tar\.gz$ |