You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: presentation/linux_bash_metacentrum_course.tex
+74-26Lines changed: 74 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -2170,20 +2170,25 @@ \subsection{Loops}
2170
2170
2171
2171
\section{Software}
2172
2172
2173
-
\begin{frame}{Package management}
2174
-
\begin{itemize}
2175
-
\item Package -- an application or its part (documentation, plug-ins, translations, \ldots)
2176
-
\item Packages are available in repositories on the internet
2173
+
\begin{frame}[allowframebreaks]{Package management}{Installation of software}
2177
2174
\begin{itemize}
2178
-
\item System has list of applications available
2179
-
\item Updates, bug fixes are installed for all applications using one interface (GUI or command line) -- very reliable
2180
-
\item Packages are digitally signed -- security
2181
-
\item User can set custom repositories to get new packages
2175
+
\item Package -- an application or its part (documentation, plug-ins, translations, \ldots)
2176
+
\item Packages are available in repositories (directories) on the internet
2177
+
\begin{itemize}
2178
+
\item System has list of applications available
2179
+
\item Updates and bug fixes are installed for all applications using one interface (GUI or command line) -- very reliable
2180
+
\item Packages are digitally signed -- security
2181
+
\item User can set custom repositories to get new packages
2182
+
\end{itemize}
2183
+
\item The most different task among distributions
2184
+
\item Packages have dependencies -- required shared libraries and so on -- use package manager and try to avoid downloading packages from the internet
2185
+
\item\alert{Read manual for your distribution!}
2186
+
\item Package is basically an archive and system has configured directories where to unpack it -- binaries are commonly in \texttt{/usr/bin/}, shared libraries in \texttt{/lib} and \texttt{/lib64} and rest in \texttt{/var}
2187
+
\item User should not care where parts of packages go to -- system is taking the care -- user can only damage it
2188
+
\item Shared libraries are installed automatically whenever some application needs them
2189
+
\item As all files are placed in standard defined directories, it is very simple to use them also for another applications
2190
+
\item Applications not available in repositories, neither as distributional package should be installed into \texttt{$\sim$/bin} for current user or \texttt{/usr/local} for all users (binaries then go into \texttt{bin} and so on)
2182
2191
\end{itemize}
2183
-
\item The most different task among distributions
2184
-
\item Packages have dependencies -- required shared libraries and so on -- use package manager and try to avoid downloading packages from the internet
2185
-
\item\alert{Read manual for your distribution!}
2186
-
\end{itemize}
2187
2192
\end{frame}
2188
2193
2189
2194
\begin{frame}{Package management in command line in openSUSE and Debian/Ubuntu}
@@ -2271,6 +2276,12 @@ \section{Software}
2271
2276
\end{bashcode}
2272
2277
\end{frame}
2273
2278
2279
+
% \begin{frame}{Launching of Windows and DOS applications in Linux}
2280
+
% \begin{itemize}
2281
+
% \item
2282
+
% \end{itemize}
2283
+
% \end{frame}
2284
+
2274
2285
\section{MetaCentrum}
2275
2286
2276
2287
\begin{frame}[allowframebreaks]{CESNET and MetaCentrum}
@@ -2415,8 +2426,11 @@ \section{MetaCentrum}
2415
2426
2416
2427
\section{Administration}
2417
2428
2418
-
\begin{frame}{Creation and control of FS}
2429
+
\subsection{File systems}
2430
+
2431
+
\begin{frame}[allowframebreaks]{Creation and control of FS}
2419
2432
\begin{itemize}
2433
+
\item\texttt{fdisk -l} lists disks and partitions
2420
2434
\item To manage disk partitioning use \texttt{fdisk /dev/sdX} (doesn't support GPT very well yet) or \texttt{gdisk /dev/sdX}
2421
2435
\item When hard drive is partitioned, partitions must be formatted
2422
2436
\item Commands \texttt{mkfs.*} create various FS, common syntax is \texttt{mkfs.XXX -parameters /dev/sdXY}, where sdXY is particular disk partition
@@ -2425,13 +2439,26 @@ \section{Administration}
2425
2439
\item\texttt{tune2fs -parameters /dev/sdXY} can set various parameters to influence behavior of disk partition
2426
2440
\item\texttt{hdparm -parameters /dev/sdX} can set advanced hardware parameters of hard drive
2427
2441
\item The most convenient is using graphical tools available in all distributions\ldots
2442
+
\begin{itemize}
2443
+
\item in openSUSE there is YaST administrative module -- from command line launch \texttt{yast --qt disk} for graphical or \texttt{yast disk} for text-based version
2444
+
\item All distributions have graphical tools like \href{http://gparted.org/}{GParted} where it is possible to comfortable manage disks
2445
+
\end{itemize}
2446
+
\item\texttt{df -h} shows available/occupied space on disks/partitions, but because of special features of Btrfs it doesn't show every time correct values for this FS -- it is better to use \texttt{btrfs fi df /mount/point} (\texttt{/mount/point} use to be the most commonly \texttt{/})
2428
2447
\end{itemize}
2429
2448
\end{frame}
2430
2449
2450
+
% \begin{frame}{Btrfs and Snapper}
2451
+
% \begin{itemize}
2452
+
% \item
2453
+
% \end{itemize}
2454
+
% \end{frame}
2455
+
2456
+
\subsection{System services}
2457
+
2431
2458
\begin{frame}[fragile]{Managing system services}
2432
2459
\begin{itemize}
2433
2460
\item Different among distributions -- several main methods
2434
-
\item Most common is SystemD, less common older init scripts and RC scripts
2461
+
\item Most common is \href{https://wiki.freedesktop.org/www/Software/systemd/}{SystemD}, less common older init scripts and RC scripts
2435
2462
\item Used to manage services like web server, database, \ldots
2436
2463
\item\alert{Read documentation for your distribution!}
0 commit comments