Skip to content

Commit f6d64b9

Browse files
authored
Add information about SSH/VNC and running Linux at home to 03-linux (#41)
1 parent 5221db8 commit f6d64b9

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

03-linux/03-linux.tex

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,74 @@ \section{Basic Linux commands}
305305
Demo
306306
\end{frame}
307307

308+
\section{Connection to remote devices}
309+
310+
\begin{frame}{What is SSH?}
311+
\begin{itemize}
312+
\item \textbf{Secure Shell (SSH)} is a network protocol for secure remote login and command execution over untrusted networks.
313+
\item Ensures confidentiality, integrity, and authenticity via encryption and message authentication.
314+
\item Client–server model: \texttt{ssh} client connects to \texttt{sshd} on the remote host (default port 22).
315+
\item Authentication methods: public key (recommended), password, and host keys for server trust.
316+
\item Beyond shells: supports port forwarding/tunneling and file transfer (SCP/SFTP).
317+
\end{itemize}
318+
\end{frame}
319+
320+
\begin{frame}{Connecting via SSH}
321+
\begin{itemize}
322+
\item Secure Shell provides encrypted remote terminal access and tunneling.
323+
\item Ensure an SSH server is running on the remote (default port 22).
324+
\item Prefer key-based authentication over passwords.
325+
\end{itemize}
326+
\begin{exampleblock}{Examples}
327+
\begin{itemize}
328+
\item \texttt{ssh user@host} — connect using default port
329+
\item \texttt{ssh -p 2222 user@host} — use a custom port
330+
\item \texttt{ssh -i /home/user/.ssh/id\_ed25519 user@host} — specify a key
331+
\item \texttt{ssh-keygen -t ed25519 -C you@example.com} — generate a key pair
332+
\item \texttt{ssh-copy-id user@host} — install your public key on the server
333+
\end{itemize}
334+
\end{exampleblock}
335+
\end{frame}
336+
337+
\begin{frame}{Remote desktop with VNC}
338+
\begin{itemize}
339+
\item \textbf{VNC} shares a remote graphical desktop; connect with a VNC viewer.
340+
\item Server runs per-user displays like \texttt{:1}, \texttt{:2}
341+
\item Best for GUI admin and light apps; bad for using 3D.
342+
\end{itemize}
343+
\begin{exampleblock}{Examples}
344+
\begin{itemize}
345+
\item \texttt{sudo apt install tigervnc-standalone-server tigervnc-common}
346+
\item \texttt{vncpasswd} — set per-user VNC password
347+
\item \texttt{vncserver -localhost yes -geometry 1920x1080 :1} % chktex 26 % chktex 29
348+
\item \texttt{ssh -L 5901:localhost:5901 user@host} — then connect viewer to \texttt{localhost:5901}
349+
\item \texttt{vncserver -list} / \texttt{vncserver -kill :1} % chktex 26
350+
\end{itemize}
351+
\end{exampleblock}
352+
\end{frame}
353+
354+
\section{Running Linux}
355+
356+
\begin{frame}{Ways to run Linux on your home device}
357+
\begin{itemize}
358+
\item Native installation on hardware
359+
\item Virtual machines (e.g., VirtualBox, VMware)
360+
\item Subsystem for Linux (WSL) \textit{(Windows only)}
361+
\item Docker containers
362+
\item Live USB/CD
363+
\end{itemize}
364+
\end{frame}
365+
366+
\begin{frame}{Ways to run Linux: differences}
367+
\begin{itemize}
368+
\item \textbf{Native install}: Best performance and full hardware access; requires partitioning and can disrupt existing OS.\@
369+
\item \textbf{Virtual machine}: Strong isolation and easy snapshots; moderate overhead and limited direct device/GPU access.
370+
\item \textbf{WSL}: Convenient dev workflow on Windows; runs in a lightweight VM with limited low-level hardware/peripheral access.
371+
\item \textbf{Docker container}: More lightweight solution (in case of Windows/macOS also based on VM); shares host kernel (not a full OS), limited system-level control.
372+
\item \textbf{Live USB/CD}: No installation and minimal risk; slower I/O, changes may be non-persistent unless using persistence.
373+
\end{itemize}
374+
\end{frame}
375+
308376
\begin{frame}
309377
\centering
310378
\Huge{Thank You!}

03-linux/03-linux.toc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
\beamer@sectionintoc {2}{History}{7}{0}{2}
33
\beamer@sectionintoc {3}{Linux}{13}{0}{3}
44
\beamer@sectionintoc {4}{Basic Linux commands}{18}{0}{4}
5+
\beamer@sectionintoc {5}{Connection to remote devices}{24}{0}{5}
6+
\beamer@sectionintoc {6}{Running Linux}{28}{0}{6}

0 commit comments

Comments
 (0)