diff options
-rw-r--r-- | install-itzks-workstation-network-only | 104 | ||||
-rw-r--r-- | install-itzks-workstation-packages-only | 45 | ||||
-rw-r--r-- | install-itzks-workstation-puppet-only | 38 | ||||
-rw-r--r-- | install-itzks-workstation-user-and-partitions-only | 24 | ||||
-rw-r--r-- | install-itzks-workstation-wpad-only | 33 |
5 files changed, 0 insertions, 244 deletions
diff --git a/install-itzks-workstation-network-only b/install-itzks-workstation-network-only deleted file mode 100644 index 46b0f43..0000000 --- a/install-itzks-workstation-network-only +++ /dev/null @@ -1,104 +0,0 @@ -#!/bin/bash -# script for installing a Debian Edu Workstation with ITZkS modifications - -set -e - -# FIXME: this should be scripted; manage with puppet instead -read -p '''! Änderung in Network-Interfaces -Ändere die bestehenden Einträge für eth0 auf - - #NetworkManager iface eth0 inet dhcp - -Starte nun den Editor mit [Enter] -''' -editor /etc/network/interfaces - -#################### - -# FIXME: this should be scripted; manage with puppet instead -read -p '''! Änderung in NFS-Common -Ändere die Datei /etc/default/nfs-common am Ende: - NEED_GSSD= (leer lassen) -Starte nun den Editor mit [Enter] -''' -editor /etc/default/nfs-common - -# Alternate: scripted edit to /etc/default/nfs-common when script is run -# sed -i 's/NEED_GSSD=.*/NEED_GSSD=/' /etc/default/nfs-common - -#################### - -# Add system-wide WiFi-config -# echo '! WIFI-Netzwerk hinzufügen' -# read -p 'Wie lautet die SSID? ' ssid -# read -p 'Wie lautet das zugehörige Passwort? ' passw -# export WIFIDEV=wlan0 -# wpa_passphrase $ssid $passw >> /etc/wpa_supplicant/wpa_supplicant-$WIFIDEV.conf - -# Alternate: Check for WiFi-Interface before asking for SSID and PW - -#FOUND=`iwconfig | grep "IEE 802.11"` -#WIFIDEV=$(echo "$FOUND" | awk '{print $1}') - -# FIXME: this works for systemd-networkd, but not for NetworkManager -#if [ -n "$FOUND" ]; then -# export WIFIDEV -# # Add system-wide WiFi-config -# echo '! WIFI-Netzwerk hinzufügen' -# read -p 'Wie lautet die SSID? ' ssid -# read -p 'Wie lautet das zugehörige Passwort? ' passw -# wpa_passphrase $ssid $passw >> /etc/wpa_supplicant/wpa_supplicant-$WIFIDEV.conf -#fi - -# Alternate WiFi-config for NetworkManager - -# Write standard config -touch /etc/NetworkManager/system-connections/BLANK -cat <<EOT >> /etc/NetworkManager/system-connections/BLANK -[connection] -id=<SSID> -uuid=42d084e4-4ff0-45a0-8aee-771c7a568046 -type=wifi -permissions= -timestamp=1515144490 -autoconnect=true - -[wifi] -mac-address-blacklist= -mode=infrastructure -ssid=<SSID> - -[wifi-security] -key-mgmt=wpa-psk -psk=<password> - -[ipv4] -dns-search= -method=auto -ignore-auto-routes=false -ignore-auto-dns=false -never-default=false - -[ipv6] -method=ignore -EOT - -# Generate uuid and timestamp and overwrite in file - -UUID=$(uuidgen -t wlan0) -sed -i 's/uuid=.*/uuid='"$UUID"'/' /etc/NetworkManager/system-connections/BLANK - -TIMESTAMP=$(date +%s ) -sed -i 's/timestamp=.*/timestamp='"$TIMESTAMP"'/' /etc/NetworkManager/system-connections/BLANK - -# Ask user for SSID and password -echo '! WIFI-Netzwerk hinzufügen' -read -p 'Wie lautet die SSID? ' ssid -sed -i 's/ssid=.*/ssid='"$ssid"'/' /etc/NetworkManager/system-connections/BLANK -sed -i 's/id=<SSID>/id='"$ssid"'/' /etc/NetworkManager/system-connections/BLANK -read -p 'Wie lautet das zugehörige Passwort? ' passw -sed -i 's/psk=.*/psk='"$passw"'/' /etc/NetworkManager/system-connections/BLANK -mv /etc/NetworkManager/system-connections/BLANK /etc/NetworkManager/system-connections/"$ssid" - -# Set permissions on generated file -chmod go-rwx /etc/NetworkManager/systems-connections/"$ssid"
\ No newline at end of file diff --git a/install-itzks-workstation-packages-only b/install-itzks-workstation-packages-only deleted file mode 100644 index b6cce9b..0000000 --- a/install-itzks-workstation-packages-only +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash -# script for installing a Debian Edu Workstation with ITZkS modifications - -set -e - -# Add itzks.list and its contents if file not already there -if [ ! -e "/etc/apt/sources.list.d/itzks.list" ]; then - touch /etc/apt/sources.list.d/itzks.list - echo "deb http://packages.it-zukunft-schule.de/debian stretch main contrib non-free" >> /etc/apt/sources.list.d/itzks.list - echo "deb http://packages.it-zukunft-schule.de/debian stretch-backports main contrib non-free" >> /etc/apt/sources.list.d/itzks.list - echo "deb http://packages.it-zukunft-schule.de/debian sid main contrib non-free" >> /etc/apt/sources.list.d/itzks.list -fi - -# Export proxy-settings for first install -export https_proxy=http://webcache:3128 -export http_proxy=http://webcache:3128 -export ftp_proxy=http://webcache:3128 - -# Get update and add itzks-keyring and itzks-systems-common package -apt-get update -apt-get install itzks-keyring && apt-get update && apt-get install itzks-systems-common - -# Get update and install keyring packages -apt-get update -apt-get install x2go-keyring deb-multimedia-keyring arctica-keyring && apt-get update - -# Install the itzks-systems-workstation package -apt-get install --yes --force-yes ocsinventory-agent -itzks-systems.do_preseed -apt-get install itzks-systems-workstation - -# Install wireless-tools for configuration of WiFi -apt-get install wireless-tools - -# Alternate install libdvdcss2 if needed -read -p "Verfügt der Rechner über ein DVD-Laufwerk bzw. sollen DVDs abgespielt werden könnne? (j/n)? " answer -case ${answer:0:1} in - y|Y|j|J ) - apt install libdvdcss2 - ;; - *) - : - ;; -esac - diff --git a/install-itzks-workstation-puppet-only b/install-itzks-workstation-puppet-only deleted file mode 100644 index 48d9ae2..0000000 --- a/install-itzks-workstation-puppet-only +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -# script for installing a Debian Edu Workstation with ITZkS modifications - -set -e - -# Install puppet-agent -echo '! Puppet-Agent installieren' -read -p '''Bevor der Puppet-Agent installiert werden kann, -muss der Hostname geändert werden. Es darf kein "lan" im -Namen auftauchen, z.B. statt mw101-lan.intern muss -es mw101.intern heißen. [ENTER] ''' - -# Set hostname -read -p 'Wie lautet der Hostname (ohne Domain)? ' myhost -hostnamectl set-hostname $myhost - -# To be sure restart the following services -invoke-rc.d rsyslog restart -invoke-rc.d cron restart -invoke-rc.d puppet restart - -# Install and enable puppet-agent on client -echo '! Puppet-Agent wird installiert... ' -apt-get install puppet -puppet agent --test -puppet agent --enable -read -p '''Nun mit ssh auf den tjener wechseln und dort -mit puppet cert --list die am Master angemeldeten -Clients auflisten. - -Anschließend mit puppet cert --sign <myhost>.intern -den Puppet-Agent des Clients authorisieren. [ENTER] ''' -ssh tjener -echo '''! FERTIG -Die Installation - - des Basissystems mit ITZKS-Anpassungen - - des Puppet-Agents -ist abgeschlossen.'''
\ No newline at end of file diff --git a/install-itzks-workstation-user-and-partitions-only b/install-itzks-workstation-user-and-partitions-only deleted file mode 100644 index 4d8bc2f..0000000 --- a/install-itzks-workstation-user-and-partitions-only +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -# script for installing a Debian Edu Workstation with ITZkS modifications - -set -e - -# Add user locadm if not already there -if [ -z $"(getent passwd locadm)" ]; then - adduser --gecos "Local Administrator" locadm - adduser locadm sudo -fi - -# Enlarge root-fs - -if [ -e /dev/vg_system/usr ]; then - lvextend -L 18G /dev/vg_system/usr - resize2fs /dev/vg_system/usr -else - lvextend -L 22G /dev/vg_system/root - resize2fs /dev/vg_system/root -fi - -# Retrieve LDAP CA certificate -invoke-rc.d fetch-ldap-cert start - diff --git a/install-itzks-workstation-wpad-only b/install-itzks-workstation-wpad-only deleted file mode 100644 index 3ccbb2f..0000000 --- a/install-itzks-workstation-wpad-only +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -# script for installing a Debian Edu Workstation with ITZkS modifications - -set -e - - -# Install libpacparser1 -apt-get install libpacparser1 - - -# Write new content for /usr/share/debian-edu-config/tools/wpad-extract. -# Workaround for Debian bug #888829. Probably fixed with debian-edu-config 1.929+deb9u1. - -cat <<EOT > /usr/share/debian-edu-config/tools/wpad-extract -#!/bin/bash -# -# Detect proxy URL via WPAD -# -# Author: Wolfgang Schweer -# License: GNU General Public License v2 or later - -# This version uses pactester from package libpacparser1. - -# Look up one of the www.debian.org IP addresses to avoid hanging on -# DNS if the skolelinux machines are not connected to the Internet. -proxy_url=\$(curl -s http://wpad/wpad.dat | pactester -p - \\ - -u http://130.89.148.14 | awk '{print \$2}' | cut -d';' -f1) -echo http_proxy=http://\$proxy_url -EOT - -# Run /usr/share/debian-edu-config/tools/update-proxy-from-wpad -/usr/share/debian-edu-config/tools/update-proxy-from-wpad - |