diff options
Diffstat (limited to 'linux-basics')
6 files changed, 125 insertions, 14 deletions
diff --git a/linux-basics/filesystems/handout_filesystems_en.tex b/linux-basics/filesystems/handout_filesystems_en.tex new file mode 100644 index 0000000..8446cb2 --- /dev/null +++ b/linux-basics/filesystems/handout_filesystems_en.tex @@ -0,0 +1,16 @@ +\input{confighandout} + +\subsection{Filesystems} + +\subsubsection{block, flash, network} + +Different kinds of memory, need different filesystems. The Linux kernel basicly +distinguishes between these types: + +\begin{description} +\item[Block Devices] Hard-disk Drives, Compact-Flash Cards, USB Sticks, \dots +\item[Flash Devices] NAND, NOR, oneNAND, \dots +\item[Network Shares] SMB, CIFS, NFS, \dots +\end{description} + +\input{tailhandout} diff --git a/linux-basics/fromscratch_vs_debian/Makefile b/linux-basics/fromscratch_vs_debian/Makefile new file mode 100644 index 0000000..d641258 --- /dev/null +++ b/linux-basics/fromscratch_vs_debian/Makefile @@ -0,0 +1,9 @@ +all: + for pdf in `ls -1 *.tex` ; do \ + TEXINPUTS=`pwd`/../..:.:..:$(TEXINPUTS) pdflatex $$pdf; \ + TEXINPUTS=`pwd`/../..:.:..:$(TEXINPUTS) pdflatex $$pdf; \ + done + +clean: + rm -f *.aux *.log *.pdf *.log *.snm *.toc *.vrb *.nav *.out + diff --git a/linux-basics/fromscratch_vs_debian/deb.sh b/linux-basics/fromscratch_vs_debian/deb.sh new file mode 100755 index 0000000..3a3457f --- /dev/null +++ b/linux-basics/fromscratch_vs_debian/deb.sh @@ -0,0 +1,36 @@ +#fist stage, on host (pc) +sudo rm -rf debian-rfs + +sudo /usr/sbin/debootstrap --verbose \ + --arch armel \ + --include=mtd-utils \ + --foreign \ + squeeze \ + debian-rfs \ + http://debian.tu-bs.de/debian + +cd debian-rfs/ dev +mknod -m 622 console c 5 1 +mknod -m 622 tty0 c 4 0 +mknod -m 666 null c 1 3 +mknod -m 666 zero c 1 5 +mknod -m 666 ptmx c 5 2 +mknod -m 666 tty c 5 0 +mknod -m 444 random c 1 8 +mknod -m 444 urandom c 1 9 +cd - + +sudo mkfs.ext2 /dev/sdb2 +sudo mount /dev/sdb2 /mnt/usb +sudo cp -a debian-rfs/* /mnt/usb/ + +exit 0 + +#second stage, on target (beagleboard) +mkdir /proc /sys +mount -t proc none /proc +mount -t sysfs none /sys +/debootstrap/debootstrap --second-stage +passwd +echo "T0:23:respawn:/sbin/getty -L ttyO2 115200 vt100" >> /etc/inittab +mount -o remount,ro /dev/mmcblk0p2 / diff --git a/linux-basics/fromscratch_vs_debian/pres_fromscatch_vs_debian_en.tex b/linux-basics/fromscratch_vs_debian/pres_fromscatch_vs_debian_en.tex new file mode 100644 index 0000000..6500966 --- /dev/null +++ b/linux-basics/fromscratch_vs_debian/pres_fromscatch_vs_debian_en.tex @@ -0,0 +1,55 @@ +\input{configpres} + +\title{Rootfilesystem from scratch vs. Debian based system} +\maketitle + +\subsection{Rootfilesystem from scratch} + +\subsubsection{Overview} +\begin{frame} +\frametitle{RFS from scratch} +Advantage: +\begin{itemize} +\item smallest footprint +\end{itemize} +Disadvantages: +\begin{itemize} +\item manual dependency tracking +\item hard to maintain (track bugs for each source) +\end{itemize} +Okay for systems that have less than 16 MB flash. +\end{frame} + +\begin{frame} +\frametitle{RFS from scratch} +HOWTO: see app-devel/cross-devel section +\end{frame} + + +\subsection{Debian based system} + +\subsubsection{Overview} +\begin{frame} +\frametitle{Debian based system} +Advantages +\begin{itemize} +\item Bugtracking is made by Debian +\item Dependencytracking is made by Debian +\item easy to add new packages +\end{itemize} +Disadvantages +\begin{itemize} +\item standard system is about 100 MB +\end{itemize} +\end{frame} + +\subsubsection{HOWTO} +\begin{frame}[containsverbatim] +\frametitle{cross debootstrap} +\lstinputlisting[language=sh]{./linux-basics/fromscratch_vs_debian/deb.sh} +\end{frame} + + + + +\input{tailpres} diff --git a/linux-basics/what-is-linux/handout_what-is-linux_de.tex b/linux-basics/what-is-linux/handout_what-is-linux_de.tex index a6c3a8e..2ae9b03 100644 --- a/linux-basics/what-is-linux/handout_what-is-linux_de.tex +++ b/linux-basics/what-is-linux/handout_what-is-linux_de.tex @@ -1,13 +1,8 @@ -\documentclass{lxarticle} -\usepackage{german} -\usepackage[utf8]{inputenc} -\usepackage{lxheaders} +\input{confighandout} -\begin{document} +\subsection{Was ist Linux?} -\section*{Was ist Linux?} - -\subsection*{Geschichtlicher Hintergrund} +\subsubsection{Geschichtlicher Hintergrund} Frühe elektronische Rechner, wie der in Abbildung \ref{img:eniac} gezeigte ENIAC, waren nicht frei programmierbar. Sie wurden für einen bestimmten @@ -112,7 +107,7 @@ Der Begriff ``Linux'' bezeichnet also streng genommen nur den Kernel. Allerdings hat es sich mittlerweile im Sprachgebrauch eingebürgert, das komplette System aus Programmen und Kernel als ``Linux'' zu bezeichnen. -\subsection*{Ein Betriebssystem für Großrechner} +\subsubsection{Ein Betriebssystem für Großrechner} Unix war von Anfang an ein Betriebssystem, das für den Betrieb auf Großrechnern ausgelegt ist. Das verwundert nicht weiter, den zur Zeit @@ -133,7 +128,7 @@ selben Source-Code kann ein Kernel für einen Server mit 1024 CPU-Kernen oder ein Kernel für ein kleines Embedded-System konfiguriert und erzeugt werden. -\subsection*{Multiuser-Betrieb} +\subsubsection{Multiuser-Betrieb} Eine weitere wichtige Eigenschaft von Linux, die sich aus der Großrechner-Tradition ergibt, ist die Multitasking- und Multiuser-Fähigkeit. @@ -159,7 +154,7 @@ von Linux hier ebenfalls von Vorteil. Proprietäre Betriebssysteme haben schon aus Lizenzgründen ein Problem damit, wenn mehrere Anwender einen Rechner nutzen können. -\subsection*{Login} +\subsubsection{Login} Beim Hochfahren eines Linux-Systems werden üblicherweise alle für den Systemstart vorgesehenen Programme automatisch gestartet, ohne dass dazu @@ -207,7 +202,7 @@ und nicht etwa auf dem Rechner, an dem Sie gerade sitzen. \newpage -\subsection*{Kontrollfragen} +\subsubsection{Kontrollfragen} \begin{enumerate} \item Wie alt ist das Unix-Konzept mittlerweile? @@ -217,4 +212,4 @@ und nicht etwa auf dem Rechner, an dem Sie gerade sitzen. \item Was passiert beim Login-Vorgang? \end{enumerate} -\end{document} +\input{tailhandout} diff --git a/linux-basics/what-is-linux/pres_what-is-linux_de.tex b/linux-basics/what-is-linux/pres_what-is-linux_de.tex index 4283349..873d807 100644 --- a/linux-basics/what-is-linux/pres_what-is-linux_de.tex +++ b/linux-basics/what-is-linux/pres_what-is-linux_de.tex @@ -93,7 +93,7 @@ komplette Liste: http://directory.fsf.org/GNU/ \begin{itemize} \item wenig Bandbreite notwendig \item scriptbar -\item resourcenschonend +\item ressourcenschonend \end{itemize} \end{description} \end{frame} |
