lehrkraefte:snr:informatik:glf22:python-schullaptops

This is an old revision of the document!


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.

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?
#!/bin/bash
 
echo "Do you wish to remove all files from '/home/tech-lab'?"
select yn in "Yes" "No"; do
    case $yn in
        Yes ) 
            echo "Refresh user profile tech-lab"
            # rm -rdf *
            # rm -rdf .*
            # cd /etc/skel/
            # cp -r . /home/tech-lab
            # cd /home/tech-lab
            # sudo chown tech-lab .*
            # sudo chgrp tech-lab .*
            break;;
        No ) 
            echo "Nothing done"
            exit;;
    esac
done
  • lehrkraefte/snr/informatik/glf22/python-schullaptops.1686324902.txt.gz
  • Last modified: 2023/06/09 17:35
  • by Karlheinz Schubert