diff options
-rw-r--r-- | debian/control | 8 | ||||
-rwxr-xr-x | sbin/diskless-workstation-shell.trixie | 68 |
2 files changed, 72 insertions, 4 deletions
diff --git a/debian/control b/debian/control index b946358..78ae727 100644 --- a/debian/control +++ b/debian/control @@ -293,7 +293,6 @@ Depends: pdfarranger, pidgin, pluma, - pyhoca-gui, python3-altair, python3-matplotlib, python3-notebook, @@ -344,6 +343,7 @@ Recommends: flashplayer-chromium, flashplayer-mozilla, openboard-contrib, + pyhoca-gui, sagemath, Conflicts: browser-plugin-gnash, @@ -1078,7 +1078,6 @@ Depends: pidgin, pluma, puppet, - pyhoca-gui, python3-altair, python3-matplotlib, python3-notebook, @@ -1130,6 +1129,7 @@ Recommends: flashplayer-chromium, flashplayer-mozilla, openboard-contrib, + pyhoca-gui, sagemath, Conflicts: browser-plugin-gnash, @@ -1240,7 +1240,6 @@ Depends: odt2txt, openvpn, postfix, - pyhoca-gui, qemu-kvm, reportbug, sudo, @@ -1260,6 +1259,7 @@ Depends: ${misc:Depends}, Recommends: firmware-linux-nonfree, + pyhoca-gui, Conflicts: exim4, exim4-base, exim4-config, @@ -1438,7 +1438,6 @@ Depends: pidgin, pluma, puppet, - pyhoca-gui, python3-altair, python3-matplotlib, python3-notebook, @@ -1493,6 +1492,7 @@ Recommends: flashplayer-mozilla, network-manager-gnome, openboard-contrib, + pyhoca-gui, sagemath, Suggests: arctica-greeter-guest-session, diff --git a/sbin/diskless-workstation-shell.trixie b/sbin/diskless-workstation-shell.trixie new file mode 100755 index 0000000..c1bdb4a --- /dev/null +++ b/sbin/diskless-workstation-shell.trixie @@ -0,0 +1,68 @@ +#!/bin/bash + +# Copyright (C) 2011-2021 by Mike Gabriel <mike.gabriel@it-zukunft-schule.de> + +# This script 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 script 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 program; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +set -e + +VERSION=0.3 +DLW_SHELL="bash" +CHROOT="/srv/ltsp/dlw+amd64+trixie/" + +export TMPDIR=/tmp + +test -e "$CHROOT" || { + echo "ERROR: Diskless workstation chroot does not exist at $CHROOT." + exit -1 +} + +[ "x$USER" == "xroot" ] || { + echo "ERROR: Diskless workstation management has to be performed as root." + exit -2 +} + +cat > "$CHROOT/dlw_shell.sh" <<EOF +#!/bin/bash +mount -tproc proc /proc &> /dev/null +mount /dev/pts &> /dev/null +export HOME=/root +export LTSP_HANDLE_DAEMONS="false" + +# export the proxy server (if any) to the shell. +export http_proxy=http://webcache.intern:3128 +export https_proxy=http://webcache.intern:3128 +export ftp_proxy=http://webcache.intern:3128 + +echo 'This shell has been started in your Diskless Workstation chroot environment.' +echo 'All changes performed here will take effect on your Diskless Workstations' +echo 'after their next (re)boot. So be careful!!!' +echo +echo "To return from this chroot shell hit STRG+D or type ,,exit'' on the" +echo 'command line...' +echo + +/bin/$DLW_SHELL + +umount -l /proc &> /dev/null +umount -l /dev/pts &> /dev/null + +echo +echo "Diskless Workstation Shell has exited." +echo +EOF +chmod u+x "$CHROOT/dlw_shell.sh" +chroot "$CHROOT" /dlw_shell.sh |