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/25 09:13]
Ivo Blöchliger [git]
lehrkraefte:blc:informatik:glf22:technisches [2022/08/25 09:43] (current)
Ivo Blöchliger [Konfiguration der git-bash]
Line 1: Line 1:
-====== git ======+====== 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]]   * [[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 ;-) 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 ======
  
-==== Headline ==== +==== Konfiguration der git-bash==== 
-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   * git-bash starten
   * klick auf Icon in der Fensterleiste -> Options   * klick auf Icon in der Fensterleiste -> Options
Line 12: Line 20:
   * Character-Set auf "UTF-8" einstellen.   * Character-Set auf "UTF-8" einstellen.
   * Speichern   * 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.
  
-====== Python ====== +Dann öffnen wir die Datei mit Visual Studio Code und hängen folgende Zeile am Schluss der Datei an (bzwals erster Eintrag, wenn die Datei noch leer war)
-Python kann über den Windows App Store (z.Z. Version 3.10installiert werden. +<code bash> 
 +alias python='winpty python' 
 +</code>
  
-Tweaks for git-bash: +Hinweis zur Benutzung von git-bash:
-  * run pyton with ''winpty python'' https://stackoverflow.com/questions/32597209/python-not-working-in-the-command-line-of-git-bash+
   * Ctrl-D ist «Ctrl-Z Enter»   * Ctrl-D ist «Ctrl-Z Enter»
-  * Encoding auf UTF-8 einstellen (-> Klick auf Icon oben links, Optionen -> Text) 
  
- 
-====== Visual Studio Code ====== 
-Installation via Windows App Store. 
 ====== Python im Browser ====== ====== Python im Browser ======
   * Brython   * Brython
   * Pyodine   * Pyodine
  • lehrkraefte/blc/informatik/glf22/technisches.1661411610.txt.gz
  • Last modified: 2022/08/25 09:13
  • by Ivo Blöchliger