lehrkraefte:blc:informatik:glf22:technisches

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
lehrkraefte:blc:informatik:glf22:technisches [2022/08/18 07:12] – [git] Ivo Blöchligerlehrkraefte:blc:informatik:glf22:technisches [2022/08/25 07:43] (current) – [Konfiguration der git-bash] Ivo Blöchliger
Line 1: Line 1:
 +====== Installation ======
 +  * Screencast der Installation: [[https://fginfo.ksbg.ch/~ivo/videos/informatik/22-23/01-Installation-der-Software.mp4|Web]] oder auf [[https://web.microsoftstream.com/video/44f6d270-0fe2-46ff-ae70-f9c19247a593|Stream]]
 +===== git =====
 +  * [[https://git-scm.com/download/win|Download 64-Bit Git for Windows Setup]]
  
 +git bringt auch gleich OpenSSL und bash mit. Und die Installation von git ist viel einfacher, als jene von OpenSSL ;-)
 +
 +===== Python =====
 +Python kann über den Windows App Store (z.Z. Version 3.10) installiert werden. 
 +===== Visual Studio Code =====
 +Installation via Windows App Store.
 +
 +====== Konfiguration ======
 +
 +==== Konfiguration der git-bash====
 +Screencast auf dem [[https://fginfo.ksbg.ch/~ivo/videos/informatik/22-23/02-Konfiguration-der-git-bash.mp4|Web]] oder auf [[https://web.microsoftstream.com/video/7a2c6420-8ec8-48ef-a96a-75ea47c24722|Stream]].
 +  * git-bash starten
 +  * klick auf Icon in der Fensterleiste -> Options
 +  * Im Abschnitt "Text", Schriftgrösse nach belieben anpassen (16 ist wohl ein guter Kompromiss)
 +  * Character-Set auf "UTF-8" einstellen.
 +  * Speichern
 +Damit Python auch einfach auf der Kommandozeile läuft, schreiben wir erst eine Konfigurationsdatei, ebenfalls in der git-bash. Diese Anleitung ist inspiriert von [[https://stackoverflow.com/questions/32597209/python-not-working-in-the-command-line-of-git-bash|hier]].
 +<code bash>
 +   cd ~
 +   touch .bashrc
 +   code .bashrc
 +</code>
 +Mit den obigen Kommandozeilen wechseln wir erst in unser Home-Verzeichnis mit ''cd''. Die Tilda steht für das Home-Verzeichnis, unter Windows normalerweise ''/c/Users/hansli'', wobei das in der Windows-Kommandozeile als ''C:\Users\hansli'' geschrieben würde.
 +
 +Dann legen wir die Datei ''.bashrc'' an, bzw. aktualisieren das Datum falls diese schon existiert.
 +
 +Dann öffnen wir die Datei mit Visual Studio Code und hängen folgende Zeile am Schluss der Datei an (bzw. als erster Eintrag, wenn die Datei noch leer war):
 +<code bash>
 +alias python='winpty python'
 +</code>
 +
 +Hinweis zur Benutzung von git-bash:
 +  * Ctrl-D ist «Ctrl-Z Enter»
 +
 +====== Python im Browser ======
 +  * Brython
 +  * Pyodine