Skip to content
Snippets Groups Projects
Commit a935bbc2 authored by Peter Gerwinski's avatar Peter Gerwinski
Browse files

Vortragsfolien, Beispiele und Tafelbilder 2.11.2022

parent 791cb92c
No related branches found
No related tags found
No related merge requests found
File added
% es-20221102.pdf - Lecture Slides on Embedded Systems
% Copyright (C) 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Peter Gerwinski
%
% This document is free software: you can redistribute it and/or
% modify it either under the terms of the Creative Commons
% Attribution-ShareAlike 3.0 License, or under the terms of the
% GNU General Public License as published by the Free Software
% Foundation, either version 3 of the License, or (at your option)
% any later version.
%
% This document is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this document. If not, see <http://www.gnu.org/licenses/>.
%
% You should have received a copy of the Creative Commons
% Attribution-ShareAlike 3.0 Unported License along with this
% document. If not, see <http://creativecommons.org/licenses/>.
% README: VNC, Netzwerkprogrammierung
\documentclass[10pt,t]{beamer}
\usepackage{pgslides}
\usepackage{rotating}
\usepackage{tikz}
\newcommand{\underconstruction}{%
\begin{picture}(0,0)
\put(9,0.9){\makebox(0,0)[b]{\includegraphics[width=1.5cm]{Zeichen_123.pdf}}}
\put(9,0.6){\makebox(0,0)[t]{\shortstack{Änderungen\\vorbehalten}}}
\end{picture}}
\title{Eingebettete Systeme}
\author{Prof.\ Dr.\ rer.\ nat.\ Peter Gerwinski}
\date{2.\ November 2022}
\newcommand{\greyurl}[1]{\href{#1}{\color{gray}\nolinkurl{#1}}}
\newcommand{\ItwoC}{I\raisebox{0.5ex}{\footnotesize 2}C}
\begin{document}
\maketitleframe
\nosectionnonumber{\inserttitle}
\begin{frame}
\shownosectionnonumber
\begin{itemize}
\item[\textbf{1}] \textbf{Einführung}
\hfill\makebox(0,0)[br]{\raisebox{2.25ex}{\url{https://gitlab.cvh-server.de/pgerwinski/es}}}%
\item[\textbf{2}] \textbf{Einführung in Unix}
\item[\textbf{3}] \textbf{TCP/IP in der Praxis}
\begin{itemize}
\color{medgreen}
\item [3.1] IP-Adressen
\item [3.2] MAC-Adressen
\item [3.3] TCP- und UDP-Ports
\item [3.4] TCP-Protokolle
\item [3.5] Routing
\item [3.6] Netzwerkanalyse
\item [3.7] SSH
\item [3.8] X11 \color{red}und VNC
\item[3.9] Programmierung
\end{itemize}
\item[\textbf{\dots}]
\end{itemize}
\strut\hfill \url{https://www.peter.gerwinski.de/download/net-2013ss.tar.gz}
% \vspace*{-1cm plus 1filll}
% \underconstruction
\end{frame}
\setcounter{section}{2}
\section{TCP/IP in der Praxis}
\setcounter{subsection}{4}
\subsection{Routing}
\begin{frame}[fragile]
\showsection
\showsubsection
\begin{itemize}
\item
\lstinline[style=cmd]{ip route} (Linux)\\
\lstinline[style=cmd]{route} (MS-Windows, Unix)\\
\lstinline[style=cmd]{netstat -nr} (MacOS)
% \\[\medskipamount]
% \includegraphics[width=11cm]{../20171026/photo-20171026-162455.jpg}
\end{itemize}
\medskip
\begin{lstlisting}[style=terminal]
# route -n
Kernel-IP-Routentabelle
Ziel Router Genmask [...] Iface
0.0.0.0 192.168.42.1 0.0.0.0 [...] wlan0
169.254.0.0 0.0.0.0 255.255.0.0 [...] wlan0
192.168.42.0 0.0.0.0 255.255.255.0 [...] wlan0
\end{lstlisting}
\bigskip
Netzmaske:\\
Wenn nach Und-Verknüpfung mit IP-Adresse gleich,
\textarrow\ im gleichen Netz
\medskip
\lstinline[style=terminal]{255.255.240.0} ist dasselbe wie
\lstinline[style=terminal]{/20}\\
(20 Bit sind 1; die restlichen 12 Bit sind 0)
\end{frame}
\subsection{Netzwerkanalyse}
\begin{frame}
\showsection
\showsubsection
\begin{itemize}
\item
\lstinline[style=cmd]{tcpdump}
\item
\lstinline[style=cmd]{wireshark}
\item
\lstinline[style=cmd]{ettercap}
\end{itemize}
\end{frame}
\subsection{SSH}
\begin{frame}
\showsection
\showsubsection
\begin{itemize}
\item
\lstinline[style=cmd]{SSH <Rechner>}
\item
\lstinline[style=cmd]{-C}: Komprimierung
\item
\lstinline[style=cmd]{-L}: lokalen Port auf Remote-Port umleiten
\item
\lstinline[style=cmd]{-R}: Remote-Port auf lokalen Port umleiten
\end{itemize}
\end{frame}
\subsection{X11 und VNC}
\begin{frame}
\showsection
\showsubsection
\begin{itemize}
\item
Grafik-Bildschirm und Eingabegeräte über's Netz
\item
\lstinline[style=cmd]{DISPLAY}-Variable: X-Server: Rechner und Bildschirm
\item
\lstinline[style=cmd]{ssh -X}: X11-Forwarding
\pause
\bigskip
\item
VNC = Virtual Network Computing
\item
VNC-Server stellt Bildschirminhalt zur Verfügung
\begin{itemize}
\item entweder: eigener, virtueller X11-Server
\item oder: ruft Inhalt von anderem (X11-) Bildschirm ab
\end{itemize}
\item
VNC-Client ruft Bildschirminhalt ab und stellt ihn dar
\begin{itemize}
\item z.\,B.\ per X11
\item z.\,B.\ per Web-Interface: noVNC
\end{itemize}
\end{itemize}
\end{frame}
\subsection{Programmierung}
\begin{frame}
\showsection
\showsubsection
\begin{itemize}
\item
Shell-Skripte: \file{nc} (\file{traditional} oder \file{OpenBSD})
\item
C: Sockets, \lstinline{select()}
\item
C++: Callbacks
\end{itemize}
\pause
\bigskip
Beispiel: Programmierung eines VNC-Servers per Web-Interface
\begin{itemize}
\item
Grundlagen: RFC~6143
\item
Praxis: Untersuchung mit Wireshark
\item
Implementation: JavaScript, WebSockets, \file{websockify}, Callbacks
\end{itemize}
\end{frame}
\end{document}
../common/logo-hochschule-bochum-cvh-text-v2.pdf
\ No newline at end of file
../common/logo-hochschule-bochum.pdf
\ No newline at end of file
../common/pgslides.sty
\ No newline at end of file
File added
20221102/vnc-01-vnc-cvh-und-prof-notebook.png

219 KiB

20221102/vnc-01-vnc-cvh.png

177 KiB

20221102/vnc-01-x11-und-vnc-protokolle.png

170 KiB

20221102/vnc-01-x11-und-vnc.png

164 KiB

20221102/vnc-01-x11.png

77.9 KiB

File added
This diff is collapsed.
......@@ -9,3 +9,4 @@ Eingebettete Systeme: Termine
*** Es bleibt dabei: ab 11:30 Uhr in Heiligenhaus bzw. online ***
02.11.2022: bis 13:00 Uhr
09.11.2022: bis 18:45 Uhr
16.11.2022: bis 18:45 Uhr
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment