Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Python on Linux (insbesondere Schullaptops) ====== Im Terminal Python-Shell starten:''python3'' eingeben, falls ''python'' nicht funktioniert. Analog zum Ausführen von Python-Programmen. Für ''turtle'' oder ''pygame'' brauche ''tkinter''. Installation auf Linux-Schullaptops per ''sudo apt install python3-tk''. ===== Zurückgegebene Linux-Rechner/Laptops zurücksetzen ===== So ungefähr wie folgt vorgehen: * Gehe in's tech-lab home directory. * ''rm -rdf *'' * ''rm -rdf .*'' * ''cd /etc/skel/'' * ''cp -r . /home/tech-lab'' * Gehe in's tech-lab home directory. * ''sudo chown tech-lab .*'' * ''sudo chgrp tech-lab .*'' * WLAN credentials löschen? <code lang=bash> #!/bin/bash read -p "Do you wish to remove all files from '/home/tech-lab'?" yn case $yn in [Yy]* ) echo "Refresh user profile tech-lab" cd /home/tech-lab; if [[ $PWD/ != /home/tech-lab/ ]]; then echo "$PWD not /home/tech-lab !"; exit; fi rm -rdf *; rm -rdf .*; cd /etc/skel/; cp -r . /home/tech-lab; cd /home/tech-lab; sudo chown tech-lab .*; sudo chgrp tech-lab .*; exit;; [Nn]* ) echo "Nothing done"; exit;; * ) echo "Input not recognized": exit;; esac echo "finished." </code> lehrkraefte/snr/informatik/glf22/python-schullaptops.txt Last modified: 2023/06/09 19:08by Karlheinz Schubert