2021-10-12 (Bringing Newcomers Up-to-Date)#
What happened in Embedded Computing 1 (ECE 19) …
Linux/UNIX#
Linux Topics (
Linux Basics (PDF)
)Bausteine von Unix und Linux
5-7, 9-16
Die Shell (Bash - “Bourne Again Shell”)
36-45, 58-61, 63, 64
Das Filesystem
Es ist wichtig, im Filesystem navigieren zu können. Die Basic Tools müssen sitzen (
cd
,ls
,pwd
,mkdir
,rm
,cp
,mv
, etc.). (Dazu muss man natürlich verstehen, was Files, Directories etc. sind.)Das Permission-Thema ist extrem wichtig, und man kann damit rechnen, dass zur Prüfung ein paar trockene Fragen zu dem Thema kommen.
Pfade: 67-71
Directories: 72-76
Symbolische Links: 77-79
Directory Listings (
ls
): 84-87Kopieren und Verschieben (
cp
undmv
): 88-91Owner, Permissions: 92-97, 100
Die
umask
: 98-99Tools für Permissions: 100
Set-UID Bit: 101
Sticky Bit: 102
Das
find
Command: 105-109Tools für Textfiles: 113ff.
Das Kapitel wurde ansatzweise durchgegangen - jedes Tool. Wichtig ist, zu verstehen,
dass die Tools von Standard Input lesen, auf Standard Output schreiben (und auf Standard Error Fehler und Debug-Messages schreiben).
dass diese und andere Tools durch die Benutzung von Standard Input und Standard Output in der Pipe
IO Redirection und Pipes: 133ff.
Dieses Kapitel wurde in einem mit den Tools durchgemacht, ansatzweise.
Wichtig ist mir, dass die Wirkungsweise der Pipe verstanden wird, und dass man Tools mit ihrer Hilfe verknüpfen kann.
SSH#
SSH (connecting to the Raspberry)
Python#
Setup
Python Datatypes
Control Flow
Exercises
Links#
os.path
module (from the Python docs)subprocess
module (from the Python docs)Python Tutorial: Using Try/Except Blocks for Error Handling, by Corey Schafer
Python Tutorial: OS Module - Use Underlying Operating System Functionality, by Corey Schafer
Python Tutorial: Calling External Commands Using the Subprocess Module, by Corey Schafer
Git#
Project on Github
Private repository on Github: jfasch/FH-ECE-19
Create Github account, and send it to jf@faschingbauer.co.at
Clone the repository
$ cd directory-where-i-have-my-ec-work $ git clone https://github.com/jfasch/FH-ECE-19.git
If you are getting tired of entering a password for each repo transaction, you can always deploy a SSH public key to Github, and then re-clone using the SSH access method:
$ git clone git@github.com:jfasch/FH-ECE-19.git