Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| lehrkraefte:snr:informatik:glf22:python-schullaptops [2023/01/13 17:13] – Olaf Schnürer | lehrkraefte:snr:informatik:glf22:python-schullaptops [2023/06/09 17:08] (current) – Karlheinz Schubert | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Python on Linux (insbesondere Schullaptops) ====== | ||
| + | |||
| + | Im Terminal Python-Shell starten:'' | ||
| + | |||
| + | Für '' | ||
| + | '' | ||
| + | |||
| + | ===== Zurückgegebene Linux-Rechner/ | ||
| + | |||
| + | So ungefähr wie folgt vorgehen: | ||
| + | |||
| + | * Gehe in's tech-lab home directory. | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * Gehe in's tech-lab home directory. | ||
| + | * '' | ||
| + | * '' | ||
| + | * WLAN credentials löschen? | ||
| + | |||
| + | <code lang=bash> | ||
| + | #!/bin/bash | ||
| + | read -p "Do you wish to remove all files from '/ | ||
| + | case $yn in | ||
| + | [Yy]* ) | ||
| + | echo " | ||
| + | cd / | ||
| + | if [[ $PWD/ != / | ||
| + | echo "$PWD not / | ||
| + | exit; | ||
| + | fi | ||
| + | rm -rdf *; | ||
| + | rm -rdf .*; | ||
| + | cd /etc/skel/; | ||
| + | cp -r . / | ||
| + | cd / | ||
| + | sudo chown tech-lab .*; | ||
| + | sudo chgrp tech-lab .*; | ||
| + | exit;; | ||
| + | |||
| + | [Nn]* ) | ||
| + | echo " | ||
| + | exit;; | ||
| + | |||
| + | * ) | ||
| + | echo "Input not recognized": | ||
| + | exit;; | ||
| + | esac | ||
| + | echo " | ||
| + | |||
| + | </ | ||
| + | |||