Skip to content

Commit d050a65

Browse files
committed
Fixing some slides for wide-screen aspect ratio of the presentation (WIP), small related updates
1 parent 9d6ece6 commit d050a65

File tree

1 file changed

+34
-41
lines changed

1 file changed

+34
-41
lines changed

presentation/linux_bash_metacentrum_course.tex

Lines changed: 34 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
\title{Linux, command line \& MetaCentrum}
9595
\subtitle{Use of Linux command line not only for CESNET's MetaCentrum}
9696
\titlegraphic{\includegraphics[width=1cm]{tux.png}}
97-
\date{January 14 to 16, 2020}
97+
\date{January 25 to 27, 2021}
9898

9999
\begin{document}
100100

@@ -164,13 +164,13 @@ \subsection{Learning machine}
164164

165165
\begin{frame}{Enjoy learning virtual machine for the course}
166166
\begin{center}
167-
\includegraphics[width=\textwidth-3cm]{opensuse_leap_course.png}
167+
\includegraphics[width=\textwidth-4.5cm]{opensuse_leap_course.png}
168168
\end{center}
169169
\end{frame}
170170

171171
\begin{frame}{VirtualBox shared folder I}{VirtualBox can be configured to share folder with host operating system}
172172
\begin{center}
173-
\includegraphics[width=\textwidth-4cm]{virtualbox_shared_folder_1.png}
173+
\includegraphics[width=\textwidth-6cm]{virtualbox_shared_folder_1.png}
174174
\end{center}
175175
\end{frame}
176176

@@ -180,7 +180,7 @@ \subsection{Learning machine}
180180
\end{bashcode}
181181
\vfil
182182
\begin{center}
183-
\includegraphics[width=\textwidth-2.5cm]{virtualbox_shared_folder_2.png}
183+
\includegraphics[width=\textwidth-5cm]{virtualbox_shared_folder_2.png}
184184
\end{center}
185185
\vfill
186186
\end{frame}
@@ -227,7 +227,7 @@ \subsection{What it is a~\enquote{UNIX}}
227227

228228
\begin{frame}{Extremely simplified UNIX phylogeny}
229229
\begin{center}
230-
\includegraphics[height=7.5cm]{unix_history-simple.png}
230+
\includegraphics[height=6.5cm]{unix_history-simple.png}
231231
\end{center}
232232
\end{frame}
233233

@@ -348,7 +348,7 @@ \subsection{Generally about Linux}
348348

349349
\begin{frame}{Linux kernel and other parts around it}
350350
\begin{center}
351-
\includegraphics[width=\textwidth-3.5cm]{linux_kernel_ubiquity.png}
351+
\includegraphics[width=\textwidth-5cm]{linux_kernel_ubiquity.png}
352352
\end{center}
353353
\vfil
354354
\url{https://en.wikipedia.org/wiki/Linux_distribution}
@@ -357,7 +357,7 @@ \subsection{Generally about Linux}
357357

358358
\begin{frame}{Extremely simplified adaptive radiation of Linux distributions}
359359
\begin{center}
360-
\includegraphics[width=\textwidth-1cm]{linux_fylogen_2.png}
360+
\includegraphics[width=\textwidth-3.5cm]{linux_fylogen_2.png}
361361
\end{center}
362362
\vfil
363363
\url{https://en.wikipedia.org/wiki/List_of_Linux_distributions} and \url{https://distrowatch.com/} ($\sim$850 distributions, $\sim$250 active)
@@ -404,43 +404,43 @@ \subsection{Choose one}
404404

405405
\begin{frame}{Ubuntu with GNOME} % TODO Update print screen, add more
406406
\begin{center}
407-
\includegraphics[width=\textwidth-2cm]{ubuntu.png}
407+
\includegraphics[width=\textwidth-4cm]{ubuntu.png}
408408
\end{center}
409409
\end{frame}
410410

411411
\begin{frame}{openSUSE with KDE --- Kubuntu is same, but blue\ldots} % TODO Update print screen, add more
412412
\begin{center}
413-
\includegraphics[height=7.5cm]{opensuse.png}
413+
\includegraphics[height=6.5cm]{opensuse.png}
414414
\end{center}
415415
\end{frame}
416416

417417
\begin{frame}{Fedora with GNOME --- GNOME is always almost same} % TODO Update print screen, add more
418418
\begin{center}
419-
\includegraphics[height=7.5cm]{fedora.png}
419+
\includegraphics[height=6.5cm]{fedora.png}
420420
\end{center}
421421
\end{frame}
422422

423423
\begin{frame}{Linux Mint with Cinnamon} % TODO Update print screen, add more
424424
\begin{center}
425-
\includegraphics[height=7.5cm]{mint.png}
425+
\includegraphics[height=6.5cm]{mint.png}
426426
\end{center}
427427
\end{frame}
428428

429429
\begin{frame}{Debian with XFCE --- Xubuntu has more \enquote{modern} design} % TODO Update print screen, add more
430430
\begin{center}
431-
\includegraphics[height=7.5cm]{debian.png}
431+
\includegraphics[height=6.5cm]{debian.png}
432432
\end{center}
433433
\end{frame}
434434

435435
\begin{frame}{XFCE in Xubuntu, openSUSE, Fedora and Linux Mint} % TODO Update print screen
436436
\begin{center}
437-
\includegraphics[width=\textwidth-2.5cm]{xfce.png}
437+
\includegraphics[width=\textwidth-4cm]{xfce.png}
438438
\end{center}
439439
\end{frame}
440440

441441
\begin{frame}{Dolphin (KDE file manager) --- default for openSUSE (inset) and after tuning in the same distribution\ldots} % TODO Update print screen
442442
\begin{center}
443-
\includegraphics[width=\textwidth-2.5cm]{dolphin.png}
443+
\includegraphics[width=\textwidth-4.5cm]{dolphin.png}
444444
\end{center}
445445
\end{frame}
446446

@@ -555,9 +555,8 @@ \subsection{Disks and file systems}
555555
\begin{itemize}
556556
\item FAT32 (including extensions) is old-fashioned and not reliable FS, but still common in various flash disks and memory cards
557557
\item NTFS (basic Windows FS) and FAT do not support UNIX permissions, so they can't be used as system partition in Linux; see also \href{https://en.wikipedia.org/wiki/Comparison_of_file_systems}{full comparison}
558-
\item Btrfs, ext4, XFS and ZFS are not accessible from Windows at all
558+
\item Btrfs, ext4, XFS and ZFS are not accessible from Windows at all (Linux mainly uses ext4)
559559
\item Btrfs, XFS and ZFS are the most advanced FS in common use
560-
\item Linux users use mainly ext4, less Btrfs or others
561560
\end{itemize}
562561
\end{frame}
563562

@@ -617,8 +616,8 @@ \subsection{Disks and file systems}
617616
\begin{frame}[fragile]{Mounting and unmounting disks and removable media}
618617
\begin{itemize}
619618
\item Mounting and unmounting of devices require root privileges
620-
\item In modern Linux distributions, mounting is done automatically and media are visible in \texttt{/media} or \texttt{/run/media}
621-
\item In Linux, physical disks are named from \texttt{sda} to \texttt{sdz}, each disk has partitions (at least one) numbered from \texttt{1}, e.g. \texttt{sda1}, \texttt{sda2}, \texttt{sdb1},~\ldots{ }--- all are accessible in \texttt{/dev} directory (\texttt{/dev/sdc3},~\ldots)
619+
\item In modern desktop Linux distributions, mounting is done automatically and media are visible in \texttt{/media} or \texttt{/run/media}
620+
\item In Linux, physical disks are named from \texttt{sda} to \texttt{sdz}, each disk has partitions (at least one) numbered from \texttt{1}, e.g. \texttt{sda1}, \texttt{sda2}, \texttt{sdb1},~\ldots{ }--- all are in \texttt{/dev} (e.g. \texttt{/dev/sdc3})
622621
\item Target mount point must exist before mounting
623622
\end{itemize}
624623
\begin{bashcode}
@@ -748,10 +747,7 @@ \subsection{Directory structure}
748747
# ssh_config(5) for more information. This file provides defaults for
749748
# users, and the values can be changed in per-user configuration files
750749
# or on the command line.
751-
# Minimum accepted size of the DH parameter p. By default this is set to
752-
# 1024 to maintain compatibility with RFC4419, but should be set higher.
753-
# Upstream default is identical to setting this to 2048.
754-
#KexDHMin 1024
750+
# ...
755751
Host *
756752
# If you do not trust your remote host (or its administrator), you
757753
# should not forward X11 connections to your local X11-display for
@@ -762,6 +758,7 @@ \subsection{Directory structure}
762758
# file if you want to have the remote X11 authentification data to
763759
# expire after twenty minutes after remote login.
764760
ForwardX11Trusted yes
761+
# ...
765762
\end{bashcode}
766763
\end{frame}
767764

@@ -797,15 +794,13 @@ \subsection{Files and directories}
797794
\item Linux allows \alert{any} character in file name, except \alert{slash} (\texttt{/}), so including anything on keyboard as well as line break (\alert{!}) --- be conservative\ldots
798795
\end{itemize}
799796
\begin{bashcode}
800-
mkdir My New Directory # Produces THREE directories (mkdir creates
801-
# directories; spaces separate parameters)
802-
# Solutions:
797+
mkdir My New Directory # Produces THREE directories (mkdir creates dirs;
798+
# spaces separate parameters). Solutions:
803799
mkdir "My New Directory" # (you can use single quotes '...' as well) or
804800
mkdir My\ New\ Directory # "\" escapes following character
805801
rmdir My\ New\ Directory # Same problem and solution when removing it
806802
touch \* # Creates new empty file named just * (yes, asterisk)
807-
rm * # What would be removed? :-)
808-
rm \* # This works... Or rm '*'
803+
rm * # What would be removed? :-) Solution: rm \* or rm '*'
809804
\end{bashcode}
810805
\begin{itemize}
811806
\item Files and directories starting by \alert{dot} (\texttt{.}) are hidden by default (typically user settings and application data in user home)
@@ -968,8 +963,7 @@ \subsection{Permissions}
968963
chmod -R # Recursive (including subdirectories)
969964
chmod +x script.sh # Make script.sh executable for everyone
970965
chmod o-r mydir # Remove read permission from others on mydir
971-
chmod 600 FILE1 FILE2 # Make both files readable and
972-
# writable only by their owner
966+
chmod 600 FILE1 FILE2 # Make both files R/W only by their owner
973967
chmod 000 FILE # No one can do anything - owner or root must add
974968
# some permissions before any other action...
975969
chmod 777 * # All permissions for everyone on everything (no recursive)
@@ -1090,7 +1084,7 @@ \subsection{Text}
10901084

10911085
\section{Command line}
10921086

1093-
\begin{frame}{Command line}
1087+
\begin{frame}[allowframebreaks]{Command line}
10941088
\tableofcontents[currentsection, sectionstyle=show/hide, hideothersubsections]
10951089
\end{frame}
10961090

@@ -1128,11 +1122,10 @@ \section{Command line}
11281122

11291123
\begin{frame}[fragile]{Working with Homebrew}
11301124
\begin{bashcode}
1131-
# Install compilation tools
1132-
xcode-select --install
1125+
xcode-select --install # Install compilation tools
11331126
# Install Homebrew
1134-
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/
1135-
Homebrew/install/master/install)"
1127+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/
1128+
install/HEAD/install.sh)"
11361129
brew help # Basic help
11371130
# Install updated basic UNIX tools
11381131
brew install coreutils gnu-sed gawk grep bash gcc make wget dos2unix
@@ -1143,9 +1136,9 @@ \section{Command line}
11431136
brew upgrade # Update all packages installed by Homebrew
11441137
brew uninstall FORMULA # Remove Homebrew package (formula)
11451138
brew cleanup # Cleaning after uninstallation
1146-
# Completely remove Homebrew (after uninstallation of all formulae)
1147-
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/
1148-
install/master/uninstall)"
1139+
# Completely remove Homebrew
1140+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/
1141+
install/master/uninstall.sh)"
11491142
\end{bashcode}
11501143
\end{frame}
11511144

@@ -1179,7 +1172,7 @@ \section{Command line}
11791172

11801173
\begin{frame}{The command line can has various look and feel\ldots}{Change colors, font size, etc. for your terminal to like it more and work comfortably}
11811174
\begin{center}
1182-
\includegraphics[width=\textwidth-2.5cm]{terminals.png}
1175+
\includegraphics[width=\textwidth-4.5cm]{terminals.png}
11831176
\end{center}
11841177
\end{frame}
11851178

@@ -1240,7 +1233,7 @@ \subsection{Screen}
12401233
\end{bashcode}
12411234
\vfill
12421235
\begin{itemize}
1243-
\item Our toy server: user names from \texttt{cu01} to \texttt{cu20}
1236+
\item Toy server: user names \texttt{cu01} --- \texttt{cu20}
12441237
\end{itemize}
12451238
\vfill
12461239
\begin{bashcode}
@@ -1252,14 +1245,14 @@ \subsection{Screen}
12521245
\item From Windows use \href{https://www.putty.org/}{Putty}
12531246
\end{itemize}
12541247
\begin{center}
1255-
\includegraphics[height=7cm]{putty.png}
1248+
\includegraphics[height=6cm]{putty.png}
12561249
\end{center}
12571250
\end{multicols}
12581251
\end{frame}
12591252

12601253
\begin{frame}{SSH and screen practice}
12611254
\begin{center}
1262-
\includegraphics[height=1.75cm]{sshterm.png}
1255+
\includegraphics[height=1cm]{sshterm.png}
12631256
\end{center}
12641257
\begin{block}{Tasks}
12651258
\begin{enumerate}

0 commit comments

Comments
 (0)