To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 3ade3c3e authored by Aline Abler's avatar Aline Abler

add intro course

parent fd63277c
#!/bin/bash
echo "Building pdf..."
pandoc -t beamer --template template.tex --listings slides.md -o slides.pdf --pdf-engine pdflatex \
&& echo "Build successful"
xfce4 xfce4-whiskermenu-plugin plasma kde-applications gnome gnome-tweaks
\usepackage[T1]{fontenc} %pipes don't display properly without this
\usepackage[utf8]{inputenc}
\usepackage{listings}
\usepackage{color}
\usepackage{datapie}
\usepackage{multicol}
\usepackage{siunitx} %pretty measurement unit rendering
\usepackage{hyperref} %enable hyperlink for urls
\usepackage{caption} % needed to tweak caption size
\usefonttheme[onlymath]{serif}
\setcounter{MaxMatrixCols}{20}
\DeclareSIUnit\pixel{px}
\usecolortheme[RGB={37,68,113}]{structure}
\usetheme{Dresden}
\newenvironment{figurehere}
{\def\@captype{figure}}
{}
\makeatother
%commands to exclude sections from miniframes
\makeatletter
\let\beamer@writeslidentry@miniframeson=\beamer@writeslidentry
\def\beamer@writeslidentry@miniframesoff{%
\expandafter\beamer@ifempty\expandafter{\beamer@framestartpage}{}% does not happen normally
{%else
% removed \addtocontents commands
\clearpage\beamer@notesactions%
}
}
\newcommand*{\miniframeson}{\let\beamer@writeslidentry=\beamer@writeslidentry@miniframeson}
\newcommand*{\miniframesoff}{\let\beamer@writeslidentry=\beamer@writeslidentry@miniframesoff}
\beamer@compresstrue
\makeatother
%various gray colors
\definecolor{slg}{gray}{0.25}
\definecolor{lg}{gray}{0.55}
\definecolor{vlg}{gray}{0.73}
\definecolor{tlg}{gray}{0.9}
%TheAlt colors
\definecolor{ldorange}{HTML}{F18A20}
\colorlet{ldbright}{ldorange!70!white} % tinted version of orange, used in miniframes
\definecolor{ldblue}{HTML}{254471}
%reduce caption font size:
\captionsetup{font={scriptsize,color=lg}}
%do not prepend numbering/lettering to figures/subfigures
\captionsetup{labelformat=empty} %do not prepend letters to figure captions
%Apply TheAlt colors to theme
% section titles in top navigation bar
\setbeamercolor{section in head/foot}{parent=palette tertiary,fg=ldorange}
\setbeamertemplate{section in head/foot shaded}{\color{ldbright}\usebeamertemplate{section in head/foot}}
% miniframes (little navigation circles)
\setbeamercolor*{mini frame}{fg=ldorange,bg=ldbright}
\setbeamertemplate{mini frame in other section}[default][0]
\setbeamertemplate{mini frame in other subsection}[default][0]
% others
\setbeamercolor{author in head/foot}{fg=white}
\setbeamercolor{subsection in head/foot}{fg=white}
\setbeamercolor{caption name}{fg=vlg}
\setbeamercolor{caption}{fg=vlg}
\setbeamercolor{frametitle}{fg=ldblue}
\setbeamertemplate{caption}{\raggedright\insertcaption\par}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{bibliography item}[text]
\definecolor{mygreen}{rgb}{0,0.6,0}
\definecolor{mygray}{rgb}{0.5,0.5,0.5}
\definecolor{mymauve}{rgb}{0.58,0,0.82}
\lstdefinestyle{custombash}{
belowcaptionskip=1\baselineskip,
captionpos=,
breaklines=true,
frame=L,
xleftmargin=\parindent,
language=bash,
showstringspaces=false,
basicstyle=\scriptsize\ttfamily,
rulecolor=\color{tlg},
backgroundcolor=\color{tlg},
fillcolor=\color{tlg},
rulesepcolor=\color{tlg},
commentstyle=\itshape\color{purple!60!black},
keywordstyle=\bfseries\color{ldorange!80!black},
%keywordstyle=\bfseries\color{green!40!black},
identifierstyle=\color{blue},
stringstyle=\color{orange},
}
\lstset{language=Bash,style=custombash,caption={Descriptive Caption Text},label=DescriptiveLabel}
\title{Bash Workshop}
\author{Aline Abler}
\institute{\includegraphics[width=0.35\textwidth]{img/logo_blue.pdf}}
\renewcommand{\emph}[1]{\textcolor{ldorange}{#1}}
\newcommand{\soft}[1]{\textcolor{lg}{#1}}
\newcommand{\textt}[1]{\textcolor{blue}{\texttt{#1}}}
\newcommand{\bigtext}[1]{\centering\Huge \textbf{\textcolor{ldorange}{#1}}}
%shortcut to insert small logo in footline
\def\logo{%
\resizebox{!}{3ex}{\includegraphics{img/logo_white.pdf}}
}
% Define a custom footline that includes our logo
\setbeamertemplate{footline}
{%
\begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}
\usebeamerfont{title in head/foot}%
\insertshorttitle\hfill\insertframenumber
\end{beamercolorbox}
\begin{beamercolorbox}[wd=\paperwidth,ht=3.5ex,dp=1.625ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot}
\usebeamerfont{author in head/foot}
\raisebox{0.5ex}{\insertshortauthor}\hfill\raisebox{-0.5ex}{\logo}
\end{beamercolorbox}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="110.87321mm"
height="104.95685mm"
viewBox="0 0 110.87321 104.95685"
version="1.1"
id="svg8"
inkscape:version="0.92.2 2405546, 2018-03-11"
sodipodi:docname="VLCdeps.svg"
inkscape:export-filename="/home/alinea/files/thealt/hs18/intro_course/img/VLCdeps.png"
inkscape:export-xdpi="300"
inkscape:export-ydpi="300">
<defs
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.7"
inkscape:cx="1.1629888"
inkscape:cy="162.29024"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1278"
inkscape:window-height="986"
inkscape:window-x="1680"
inkscape:window-y="18"
inkscape:window-maximized="0"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0" />
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-58.547652,-54.244368)">
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.58333302px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="109.07856"
y="61.631535"
id="text817"><tspan
sodipodi:role="line"
id="tspan815"
x="109.07856"
y="61.631535"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10.58333302px;font-family:Vegur;-inkscape-font-specification:'Vegur, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;stroke-width:0.26458332">VLC</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.58333302px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="58.145485"
y="95.021622"
id="text817-3"><tspan
sodipodi:role="line"
id="tspan815-8"
x="58.145485"
y="95.021622"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10.58333302px;font-family:Vegur;-inkscape-font-specification:'Vegur, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;stroke-width:0.26458332">qt5</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.58333302px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="101.90688"
y="110.04896"
id="text817-0"><tspan
sodipodi:role="line"
id="tspan815-5"
x="101.90688"
y="110.04896"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10.58333302px;font-family:Vegur;-inkscape-font-specification:'Vegur, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;stroke-width:0.26458332">ffmpeg</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.58333302px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="145.08002"
y="98.801384"
id="text817-6"><tspan
sodipodi:role="line"
id="tspan815-6"
x="145.08002"
y="98.801384"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10.58333302px;font-family:Vegur;-inkscape-font-specification:'Vegur, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;stroke-width:0.26458332">taglib</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.58333302px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="79.501144"
y="137.54396"
id="text817-5"><tspan
sodipodi:role="line"
id="tspan815-69"
x="79.501144"
y="137.54396"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10.58333302px;font-family:Vegur;-inkscape-font-specification:'Vegur, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;stroke-width:0.26458332">alsa</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.58333302px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="141.67822"
y="137.73294"
id="text817-8"><tspan
sodipodi:role="line"
id="tspan815-7"
x="141.67822"
y="137.73294"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10.58333302px;font-family:Vegur;-inkscape-font-specification:'Vegur, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;stroke-width:0.26458332">vorbis</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.58333302px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="102.95757"
y="159.09538"
id="text817-8-2"><tspan
sodipodi:role="line"
id="tspan815-7-8"
x="102.95757"
y="159.09538"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10.58333302px;font-family:Vegur;-inkscape-font-specification:'Vegur, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;stroke-width:0.26458332">avcodec</tspan></text>
<path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 82.601228,81.397007 104.90182,64.38808"
id="path887"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 117.17262,100.0744 0.37797,-32.505948"
id="path889"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 130.77976,65.67857 21.16667,21.166667"
id="path891"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 93.360117,127.28869 108.10119,115.19345"
id="path893"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 119.13522,118.7328 0.11071,27.80581"
id="path895"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 131.15774,115.57143 11.33928,11.33928"
id="path897"
inkscape:connector-curvature="0" />
</g>
</svg>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
#!/bin/bash
echo Hello World
echo Bash is awesome
# Now some fun stuff:
sudo zypper update
notify-send "Update complete"
feh --bg-fill "pictures/fancy_wallpaper.jpg"
youtube-dl -o "Video.%(ext)s" "https://www.youtube.com/watch?v=lAIGb1lfpBw"
---
author:
- Aline Abler
title: Introduction to Linux
---
# Linux, what's that?
## What even is Linux?
###
\bigtext{So you want to use Linux?}
###
\hskip 3em \includegraphics[height=0.9\textheight]{img/cardreader.jpg}
###
\hskip 3em \includegraphics[height=0.9\textheight]{img/ticketautomat.jpg}
###
\hskip 3em \includegraphics[height=0.9\textheight]{img/internet.jpg}
### Linux, what does it mean?
* A *Linux system* is a system that uses the Linux *Kernel*.
\vskip 1em
\hskip 4em \includegraphics[width=0.8\textwidth]{img/linux_kernel.pdf}
###
\bigtext{Linux}
\vskip 1em
\hskip 4em \includegraphics[width=0.8\textwidth]{img/puzzlepiece.pdf}
###
\bigtext{GNU/Linux}
\vskip 1em
\hskip 4em \includegraphics[width=0.8\textwidth]{img/linux_kernel_blank.pdf}
# The pieces of a Linux system
## It's like LEGO
###
\hskip 3em \includegraphics[height=0.9\textheight]{img/desktop-computer.jpg}
###
\includegraphics[width=\textwidth]{img/pc-components.jpg}
### System components
* Kernel \soft{the core of your OS that manages all other programs and your devices}
* Bootloader \soft{a tiny program that runs first when you power your PC and takes care of starting up the kernel}
* Init system \soft{a program that takes care of starting and stopping background tasks}
* Package manager \soft{a program that allows you to install other programs}
* Graphics framework \soft{a basic software that allows other programs to draw stuff on the screen}
* Shell \soft{the program that powers the console}
### System components you care about
* Desktop Environment and/or Window Manager
* Editor
* Browser
* Mail client
### My system
\hskip 6em \includegraphics[height=0.8\textheight]{img/my_system.pdf}
### Standard Ubuntu system
\hskip 6em \includegraphics[height=0.8\textheight]{img/ubuntu_system.pdf}
# Linux Concepts
##
### <!-- WMP vs VLC -->
\includegraphics[width=0.4\textwidth]{img/wmp.jpg}
\raisebox{4em}{\bigtext{vs.}}
\hskip 1em
\includegraphics[width=0.4\textwidth]{img/vlc.pdf}
### <!-- WMP vs VLC -->
\includegraphics[width=0.4\textwidth]{img/wmp.jpg}
\raisebox{4em}{\bigtext{vs.}}
\hskip 1em
\includegraphics[width=0.4\textwidth]{img/vlcdeps.pdf}
<!-- pacvis -->
### {.plain}
\includegraphics[width=\textwidth]{img/pacvis.png}
### The Unix Philosophy
\bigtext{Do one thing, and do it right}
###
\includegraphics[width=\textwidth]{img/SUSE-community-photo.jpg}
<!-- pacvis -->
### {.plain}
\includegraphics[width=\textwidth]{img/pacvis.png}
### Package Managers
* Your best friend when it comes to dependency management
* Installs and removes software
* Updates all your programs with one click
### Package Managers
\hskip 7em \includegraphics[height=0.85\textheight]{img/package-manager-blank.pdf}
### Refresh
\hskip 7em \includegraphics[height=0.85\textheight]{img/package-manager-refresh.pdf}
### Upgrade or Install
\hskip 7em \includegraphics[height=0.85\textheight]{img/package-manager-upgrade.pdf}
# Distributions
##
###
\hskip 6em \includegraphics[height=0.8\textheight]{img/my_system.pdf}
### <!-- Choose all the things? -->
\hskip 2em \includegraphics[height=0.9\textheight]{img/choose-all-the-things.pdf}
### Fear not!
\hskip 2em \includegraphics[height=0.8\textheight]{img/logos.png}
### My system (Arch Linux)
\hskip 6em \includegraphics[height=0.8\textheight]{img/my_system_arch.pdf}
### Standard Ubuntu system
\hskip 6em \includegraphics[height=0.8\textheight]{img/ubuntu_system_orange.pdf}
### Distributions
\hskip 9em \includegraphics[height=0.8\textheight]{img/distro-timeline.jpg}
### Ubuntu (and forks)
\begin{minipage}{0.6\textwidth}
\begin{itemize}
\item Simplicity and ease of use
\item Provide a complete package that "just works"
\item Polished experience
\end{itemize}
\end{minipage}\begin{minipage}{0.4\textwidth}
\includegraphics[width=\textwidth]{img/ubuntu_logo.png}
\end{minipage}
### OpenSUSE
\begin{minipage}{0.6\textwidth}
\begin{itemize}
\item Customisability
\item Provide a complete package that you can adapt to suit your needs
\item Focus on free software
\end{itemize}
\end{minipage}\begin{minipage}{0.4\textwidth}
\includegraphics[width=\textwidth]{img/opensuse_logo.png}
\end{minipage}
### Fedora
\begin{minipage}{0.6\textwidth}
\begin{itemize}
\item Innovation and being on the leading edge
\item Provide a complete package with all the most recent software
\item Polished experience with just free software
\end{itemize}
\end{minipage}\begin{minipage}{0.4\textwidth}
\hskip 1em \includegraphics[width=0.9\textwidth]{img/fedora_logo.png}
\end{minipage}
### Outlook: Arch Linux
\begin{minipage}{0.6\textwidth}
\begin{itemize}
\item Keeping to the bare minimum
\item Provide just the basics, let the user choose all components
\item Make a system that is truly yours
\end{itemize}
\end{minipage}\begin{minipage}{0.4\textwidth}
\includegraphics[width=\textwidth]{img/arch_logo.png}
\end{minipage}
### Choose Your Distribution
* They may have different puzzle pieces but there's also a big overlap
* Pick whichever sounds cool to you
* At the install event, we will help you with whichever choice you make
# Desktop environments
## DEs DEs DEs
###
\bigtext{Desktop Environments}
### Puzzle time
\hskip 6em \includegraphics[height=0.8\textheight]{img/gnome.pdf}
### KDE
\hskip 8em \includegraphics[height=0.8\textheight]{img/kde.png}
### KDE
* Rich in features
* Very customisable
* Similar to Windows UI
### Gnome