@@ -109,7 +109,6 @@ \section{Introduction}
109
109
\end {frame }
110
110
111
111
\begin {frame }{The course information}
112
- \label {materials }
113
112
\begin {itemize }
114
113
\item The course page: \url {https://trapa.cz/en/course-linux-command-line-2021}
115
114
\begin {itemize }
@@ -134,6 +133,7 @@ \section{Introduction}
134
133
\end {frame }
135
134
136
135
\begin {frame }{Materials to help you\ldots }
136
+ \label {materials }
137
137
\begin {itemize }
138
138
\item Download the presentation from \url {https://soubory.trapa.cz/linuxcourse/linux_bash_metacentrum_course.pdf}
139
139
\item Download the scripts and toy data from \url {https://soubory.trapa.cz/linuxcourse/scripts_data.zip}
@@ -2144,7 +2144,7 @@ \subsection{Network}
2144
2144
\end {itemize }
2145
2145
\end {frame }
2146
2146
2147
- \begin {frame }[fragile]{Basic network information and testing I }
2147
+ \begin {frame }[fragile]{Basic network information and testing}
2148
2148
\begin {bashcode }
2149
2149
hostname # Get name of the computer
2150
2150
ping web.natur.cuni.cz # Ping host. Is it alive? Cancel by Ctrl+C
@@ -2166,32 +2166,6 @@ \subsection{Network}
2166
2166
\end {bashcode }
2167
2167
\end {frame }
2168
2168
2169
- \begin {frame }[fragile]{Connecting file systems on remote servers}
2170
- \label {netfs }
2171
- \begin {itemize }
2172
- \item Target mount point must exist before mounting
2173
- \item Servers can be accessed by IP address or hostname
2174
- \end {itemize }
2175
- \vfill
2176
- \begin {bashcode }
2177
- # Mounting remote server over SSH (sshfs package must be installed)
2178
- sshfs [email protected] :/some/dir /local/mount/point
2179
- fusermount -u /local/mount/point # Disconnect SSHF
2180
- # Mount Windows server (requires packages samba and cifs)
2181
- mount.cifs //windows.server.cz/Some/Directory /mnt/win -o \
2182
- credentials=/path/to/password.file,uid=USER,gid=GROUP
2183
- # "password.file" contains login credentials to Windows server:
2184
- username=user.name
2185
- password=TopSecretPassword1
2186
- domain=DOMAINNAME
2187
- # Mount NFS share (NFS is common protocol in UNIX world)
2188
- mount -t nfs some.server.cz:/shared/directory /local/directory
2189
- # Mount webDAV folder (requires package davfs2 to be installed)
2190
- mount -t davfs https://owncloud.cesnet.cz/remote.php/webdav/ /local/dir
2191
- umount /mount/point # Disconnect CIFS/SAMBA, NFS, webDAV, ...
2192
- \end {bashcode }
2193
- \end {frame }
2194
-
2195
2169
\begin {frame }[fragile]{Transferring files from/to remote server}
2196
2170
\label {transfers }
2197
2171
\begin {itemize }
@@ -2224,9 +2198,9 @@ \subsection{Network}
2224
2198
\item It transmits only changes --- very efficient
2225
2199
\item Suitable for local as well as network backup
2226
2200
\item Network address for rsync is written in same way as for \texttt {scp }
2227
- \item -{-}\texttt { delete } delete in target location files which are not in source location anymore
2228
- \item -{-}\texttt { progress } show progress percentage for every file
2229
- \item -{-}\texttt { exclude=*.jpg } skip JPG files
2201
+ \item \texttt { -{-}delete } delete in target location files which are not in source location anymore
2202
+ \item \texttt { -{-}progress } show progress percentage for every file
2203
+ \item \texttt { -{-}exclude=*.jpg } skip JPG files
2230
2204
\item For incremental backups use e.g. \texttt {duplicity }
2231
2205
\end {itemize }
2232
2206
\vfill
@@ -2237,6 +2211,32 @@ \subsection{Network}
2237
2211
\end {bashcode }
2238
2212
\end {frame }
2239
2213
2214
+ \begin {frame }[fragile]{Connecting file systems on remote servers}
2215
+ \label {netfs }
2216
+ \begin {itemize }
2217
+ \item Target mount point must exist before mounting
2218
+ \item Servers can be accessed by IP address or hostname
2219
+ \end {itemize }
2220
+ \vfill
2221
+ \begin {bashcode }
2222
+ # Mounting remote server over SSH (sshfs package must be installed)
2223
+ sshfs [email protected] :/some/dir /local/mount/point
2224
+ fusermount -u /local/mount/point # Disconnect SSHF
2225
+ # Mount Windows server (requires packages samba and cifs)
2226
+ mount.cifs //windows.server.cz/Some/Directory /mnt/win -o \
2227
+ credentials=/path/to/password.file,uid=USER,gid=GROUP
2228
+ # "password.file" contains login credentials to Windows server:
2229
+ username=user.name
2230
+ password=TopSecretPassword1
2231
+ domain=DOMAINNAME
2232
+ # Mount NFS share (NFS is common protocol in UNIX world)
2233
+ mount -t nfs some.server.cz:/shared/directory /local/directory
2234
+ # Mount webDAV folder (requires package davfs2 to be installed)
2235
+ mount -t davfs https://owncloud.cesnet.cz/remote.php/webdav/ /local/dir
2236
+ umount /mount/point # Disconnect CIFS/SAMBA, NFS, webDAV, ...
2237
+ \end {bashcode }
2238
+ \end {frame }
2239
+
2240
2240
\begin {frame }[allowframebreaks]{SSH keys}{Secure way how to connect to multiple servers with single key and more}
2241
2241
\begin {itemize }
2242
2242
\item Secure way how to connect to multiple servers via SSH with single (or no) password using asymmetric encryption
@@ -2399,6 +2399,7 @@ \subsection{Parallelisation}
2399
2399
reference.fasta '{}' > '{.}' .stats.txt"
2400
2400
# Note that 'find' searches also in subdirectories
2401
2401
parallel --help # Basic help for GNU Parallel
2402
+ man parallel # More information about GNU Parallel parameters
2402
2403
\end {bashcode }
2403
2404
\vfill
2404
2405
\begin {block }{Tasks}
@@ -4862,7 +4863,7 @@ \subsection{}
4862
4863
\item See history of changes, who did what, etc.
4863
4864
\item Use at least \texttt {git} commands \texttt {clone},\texttt {diff}, \texttt {status}, \texttt {add}, \texttt {commit}, \texttt {push}, \texttt {fetch}, \texttt {pull}, \texttt {log} and \texttt {gitk}.
4864
4865
\item You can try to play with branches --- \texttt {branch}, \texttt {checkout}, \texttt {merge}.
4865
- \item communicate with others to avoid conflicting edits.
4866
+ \item Communicate with others to avoid conflicting edits.
4866
4867
\end {enumerate}
4867
4868
\end {frame}
4868
4869
0 commit comments