@@ -109,7 +109,6 @@ \section{Introduction}
109109\end {frame }
110110
111111\begin {frame }{The course information}
112- \label {materials }
113112 \begin {itemize }
114113 \item The course page: \url {https://trapa.cz/en/course-linux-command-line-2021}
115114 \begin {itemize }
@@ -134,6 +133,7 @@ \section{Introduction}
134133\end {frame }
135134
136135\begin {frame }{Materials to help you\ldots }
136+ \label {materials }
137137 \begin {itemize }
138138 \item Download the presentation from \url {https://soubory.trapa.cz/linuxcourse/linux_bash_metacentrum_course.pdf}
139139 \item Download the scripts and toy data from \url {https://soubory.trapa.cz/linuxcourse/scripts_data.zip}
@@ -2144,7 +2144,7 @@ \subsection{Network}
21442144 \end {itemize }
21452145\end {frame }
21462146
2147- \begin {frame }[fragile]{Basic network information and testing I }
2147+ \begin {frame }[fragile]{Basic network information and testing}
21482148 \begin {bashcode }
21492149 hostname # Get name of the computer
21502150 ping web.natur.cuni.cz # Ping host. Is it alive? Cancel by Ctrl+C
@@ -2166,32 +2166,6 @@ \subsection{Network}
21662166 \end {bashcode }
21672167\end {frame }
21682168
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 USER@vyuka.natur.cuni.cz:/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-
21952169\begin {frame }[fragile]{Transferring files from/to remote server}
21962170 \label {transfers }
21972171 \begin {itemize }
@@ -2224,9 +2198,9 @@ \subsection{Network}
22242198 \item It transmits only changes --- very efficient
22252199 \item Suitable for local as well as network backup
22262200 \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
22302204 \item For incremental backups use e.g. \texttt {duplicity }
22312205 \end {itemize }
22322206 \vfill
@@ -2237,6 +2211,32 @@ \subsection{Network}
22372211 \end {bashcode }
22382212\end {frame }
22392213
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 USER@vyuka.natur.cuni.cz:/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+
22402240\begin {frame }[allowframebreaks]{SSH keys}{Secure way how to connect to multiple servers with single key and more}
22412241 \begin {itemize }
22422242 \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}
23992399 reference.fasta '{}' > '{.}' .stats.txt"
24002400 # Note that 'find' searches also in subdirectories
24012401 parallel --help # Basic help for GNU Parallel
2402+ man parallel # More information about GNU Parallel parameters
24022403 \end {bashcode }
24032404 \vfill
24042405 \begin {block }{Tasks}
@@ -4862,7 +4863,7 @@ \subsection{}
48624863 \item See history of changes, who did what, etc.
48634864 \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}.
48644865 \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.
48664867 \end {enumerate}
48674868\end {frame}
48684869
0 commit comments