Summary Files Commits Branches @commit @diff @stats
path: root / src / slides / linuxgraphy-by-strabo / index.du
diff options
context:
space:
mode:
1 files changed, 363 insertions, 356 deletions
-rw-r--r--src/slides/linuxgraphy-by-strabo/index.du719
diff --git a/src/slides/linuxgraphy-by-strabo/index.du b/src/slides/linuxgraphy-by-strabo/index.du
index 19d18c1..a2535b9 100644
--- a/src/slides/linuxgraphy-by-strabo/index.du
+++ b/src/slides/linuxgraphy-by-strabo/index.du
@@ -1,53 +1,53 @@
-# Linuxgraphy by Strabo
+'def title Linuxgraphy by Strabo
+'def desc A history and feature showcase of Linux-based distributions.
+
+# {title}
-'define expected-reading 38 min
-'define created 19 January 2023
-'define edited 04 March 2023
-[$pagenav]
+{pagenav 38 min;19 January 2023;04 March 2023}
### Custom assets
-[*Licensing information in the last slide, at the bottom of the page*]
+{i Licensing information in the last slide, at the bottom of the page}
.bulleted
-- [url ./img/unix-layers.png UNIX layers image]
-- [url ./img/unix-dir-tree.png UNIX directory tree]
-- [url ./mll-set.sh mll-set.sh]
+- {url UNIX layers image;./img/unix-layers.png}
+- {url UNIX directory tree;./img/unix-dir-tree.png}
+- {url mll-set.sh;./mll-set.sh}
### Presented at
:defs
-; [$bg] Unofficial [url https://fmi.uni-sofia.bg/en FMI] Computer Science Discord server   [*04.03.2023 || 14:50 - 17:20*]
-: In front of a tiny audience of other uni students. Exact revision [url https://gitlab.com/Syndamia/syndamiadotcom/-/blob/6feed223ff48fe00cf12fcd63f3f56179c298cae/src/talks/linuxgraphy-by-strabo/index.md here].
+; {bg} Unofficial {url FMI;https://fmi.uni-sofia.bg/en} Computer Science Discord server   {i 04.03.2023 || 14:50 - 17:20}
+: In front of a tiny audience of other uni students. Exact revision {url here;https://gitlab.com/Syndamia/syndamiadotcom/-/blob/6feed223ff48fe00cf12fcd63f3f56179c298cae/src/talks/linuxgraphy-by-strabo/index.md}.
-; [$bg] Unofficial [url https://fmi.uni-sofia.bg/en FMI] Computer Science Discord server   [*22.01.2023 || 18:00 - 21:00*]
-: In front of a tiny audience of other uni students. Exact revision [url https://gitlab.com/Syndamia/syndamiadotcom/-/blob/6eb7a8fff01c6814253a0e738efb53734d297be9/src/talks/linuxgraphy-by-strabo/index.md here].
+; {bg} Unofficial {url FMI;https://fmi.uni-sofia.bg/en} Computer Science Discord server   {i 22.01.2023 || 18:00 - 21:00}
+: In front of a tiny audience of other uni students. Exact revision {url here;https://gitlab.com/Syndamia/syndamiadotcom/-/blob/6eb7a8fff01c6814253a0e738efb53734d297be9/src/talks/linuxgraphy-by-strabo/index.md}.
-[$presentation-controller]
+{presentation-controller}
:title_slide
# Linuxgraphy by Strabo
-[*Made by [url https://syndamia.com Syndamia]*]
+{i Made by {url Syndamia;https://syndamia.com}}
-[$br4]
+{br4}
:sqrow
- [$br1]
+ {br1}
:font22
- 2000 years ago [url https://en.wikipedia.org/wiki/Strabo Strabo] published [url https://en.wikipedia.org/wiki/Geography Geography], in which he laid out the world as it was known to the Romans and Greeks.
+ 2000 years ago {url Strabo;https://en.wikipedia.org/wiki/Strabo} published {url Geography;https://en.wikipedia.org/wiki/Geography}, in which he laid out the world as it was known to the Romans and Greeks.
- [$br1]
+ {br1}
Today, I'll lay out Linux as it is known to me.
- [image https://upload.wikimedia.org/wikipedia/commons/thumb/e/ed/Strabo.jpg/199px-Strabo.jpg]
+ {img https://upload.wikimedia.org/wikipedia/commons/thumb/e/ed/Strabo.jpg/199px-Strabo.jpg}
- [$br1]
+ {br1}
@@ -65,7 +65,7 @@
2. UNIX-style file system
2. Kernel
- [$br2]
+ {br2}
3. Linux from the inside
.numbered
@@ -88,7 +88,7 @@
4. Desktop manager
6. War on distros
- [$br4]
+ {br4}
7. Demos - virtual machine and setup from zero
@@ -100,7 +100,7 @@
# 1. Historical context
-[$br1]
+{br1}
#### 1945 - 1955
@@ -117,8 +117,8 @@ This process was labor intensive: a qualified operator loaded your program, dump
Computers became faster, but a lot of time was spend on managing jobs.
.p
-[url https://en.wikipedia.org/wiki/Resident_monitor resident monitors]: very small programs, which always [*resided*] in memory, and [*monitored*] what the state of the current job was.\n
-Jobs were loaded in series ([url https://en.wikipedia.org/wiki/Batch_processing batches]).
+{url resident monitors;https://en.wikipedia.org/wiki/Resident_monitor}: very small programs, which always {i resided} in memory, and {i monitored} what the state of the current job was.\n
+Jobs were loaded in series ({url batches;https://en.wikipedia.org/wiki/Batch_processing}).
When the current job finished, memory would be dumped and the next one would automatically be loaded and started.
@@ -126,14 +126,14 @@ When the current job finished, memory would be dumped and the next one would aut
#### 1960s
-[$br1]
+{br1}
.p
Peripherals (tapes, punch cards, ...) were extremely slow.\n
-[url https://en.wikipedia.org/wiki/Computer_multitasking#Multiprogramming Multiprogramming]: the current job is waiting for a peripheral, another job would be started.
+{url Multiprogramming;https://en.wikipedia.org/wiki/Computer_multitasking#Multiprogramming}: the current job is waiting for a peripheral, another job would be started.
.p
-[url https://en.wikipedia.org/wiki/Sabre_%28travel_reservation_system%29 Travel reservation system] by American Airlines: where travel agents would search, price and book services.
+{url Travel reservation system;https://en.wikipedia.org/wiki/Sabre_%28travel_reservation_system%29} by American Airlines: where travel agents would search, price and book services.
A computer system now had to support:
.bulleted
@@ -142,10 +142,10 @@ A computer system now had to support:
- Storage organization, also following the rise of disks
- Data communication links (often phone lines)
-[$br1]
+{br1}
.p
-More and more business started using computers, thanks to [url https://en.wikipedia.org/wiki/Minicomputer minicomputers], so demand for OS software increased.
+More and more business started using computers, thanks to {url minicomputers;https://en.wikipedia.org/wiki/Minicomputer}, so demand for OS software increased.
:slide
@@ -153,27 +153,27 @@ More and more business started using computers, thanks to [url https://en.wikipe
#### 1964 - 1969
.p
-IBM's [url https://en.wikipedia.org/wiki/IBM_System/360 System/360] line of computers, each with expansion capabilities, backwards compatibility, all under one instruction set and operating system.
+IBM's {url System/360;https://en.wikipedia.org/wiki/IBM_System/360} line of computers, each with expansion capabilities, backwards compatibility, all under one instruction set and operating system.
.p
-[url https://en.wikipedia.org/wiki/Multics Multics], an influential operating system that was designed for a General Electric mainframe.
+{url Multics;https://en.wikipedia.org/wiki/Multics}, an influential operating system that was designed for a General Electric mainframe.
Some of it's novel ideas include, but are not limited to:
:bulleted
-- [url https://en.wikipedia.org/wiki/Time-sharing Time-sharing]:
+- {url Time-sharing;https://en.wikipedia.org/wiki/Time-sharing}:
sharing resources of a singular machine among many users
- (via [url https://en.wikipedia.org/wiki/Multiprogramming multiprogramming] and [url https://en.wikipedia.org/wiki/Computer_multitasking multi-tasking])
+ (via {url multiprogramming;https://en.wikipedia.org/wiki/Multiprogramming} and {url multi-tasking;https://en.wikipedia.org/wiki/Computer_multitasking})
-- [url https://en.wikipedia.org/wiki/Single-level_store Single level store] (aka [url https://en.wikipedia.org/wiki/Virtual_memory virtual memory]):
+- {url Single level store;https://en.wikipedia.org/wiki/Single-level_store} (aka {url virtual memory;https://en.wikipedia.org/wiki/Virtual_memory}):
Processes would write into contiguous memory, but in reality it is scattered and managed by the operating system.
-- [url https://en.wikipedia.org/wiki/Protection_ring Protection rings]:
+- {url Protection rings;https://en.wikipedia.org/wiki/Protection_ring}:
Allowing different levels of access to different resources (programs).
- In general, this also often requires a [url https://en.wikipedia.org/wiki/Protected_mode CPU protected mode].
+ In general, this also often requires a {url CPU protected mode;https://en.wikipedia.org/wiki/Protected_mode}.
-- [url https://en.wikipedia.org/wiki/Directory_%28computing%29 Hierarchical file system]:
+- {url Hierarchical file system;https://en.wikipedia.org/wiki/Directory_%28computing%29}:
Arbitrary directories with subdirectories, rather than just having files next to each other or having directories which could only contain files.
-- [url https://en.wikipedia.org/wiki/Shell_%28computing%29 Command processor] (that is separated from the OS):
+- {url Command processor;https://en.wikipedia.org/wiki/Shell_%28computing%29} (that is separated from the OS):
More on that later
@@ -184,21 +184,21 @@ Some of it's novel ideas include, but are not limited to:
.p
Ultimately Multics grew too large, becoming unusable and unmaintainable.\n
-In the beginning, programming was done mostly by [url https://en.wikipedia.org/wiki/Bell_Labs Bell Labs], with [url https://en.wikipedia.org/wiki/Ken_Thompson Ken Thompson] being one of the developers.
+In the beginning, programming was done mostly by {url Bell Labs;https://en.wikipedia.org/wiki/Bell_Labs}, with {url Ken Thompson;https://en.wikipedia.org/wiki/Ken_Thompson} being one of the developers.
-[$br1]
+{br1}
:sqrow
.font18
- [image https://upload.wikimedia.org/wikipedia/commons/f/f8/Ken-Thompson-2019.png]\n
- [*Ken Thompson image by National Inventors Hall of Fame*]
- [image https://upload.wikimedia.org/wikipedia/commons/1/1b/Ken_Thompson_and_Dennis_Ritchie--1973.jpg ]\n
- [*Ken Thompson and Dennis Ritchie in 1973*]
+ {img https://upload.wikimedia.org/wikipedia/commons/f/f8/Ken-Thompson-2019.png}\n
+ {i Ken Thompson image by National Inventors Hall of Fame}
+ {img ;https://upload.wikimedia.org/wikipedia/commons/1/1b/Ken_Thompson_and_Dennis_Ritchie--1973.jpg}\n
+ {i Ken Thompson and Dennis Ritchie in 1973}
:column
.p
Thompson still had some desire to work on operating systems, after Bell Labs pulled out.
- The tools he made while rewriting [url https://en.wikipedia.org/wiki/Space_Travel_%28video_game%29 his own video game] on a PDP-7 lead to a whole operating system: UNIX.
+ The tools he made while rewriting {url his own video game;https://en.wikipedia.org/wiki/Space_Travel_%28video_game%29} on a PDP-7 lead to a whole operating system: UNIX.
.p
Based, expanded on and improved upon many of Multic's ideas, UNIX became the father of modern OSs.
@@ -211,38 +211,38 @@ In the beginning, programming was done mostly by [url https://en.wikipedia.org/w
# 2. Structure of UNIX-likes
.p
-Ignoring [url https://unix.stackexchange.com/questions/14368/difference-between-posix-single-unix-specification-and-open-group-base-specifi/14415 standards] and [url https://unix.stackexchange.com/questions/87686/what-makes-an-operating-system-unix-like specifications], in my opinion, from the point of a user, a UNIX-like OS has the following components:
+Ignoring {url standards;https://unix.stackexchange.com/questions/14368/difference-between-posix-single-unix-specification-and-open-group-base-specifi/14415} and {url specifications;https://unix.stackexchange.com/questions/87686/what-makes-an-operating-system-unix-like}, in my opinion, from the point of a user, a UNIX-like OS has the following components:
-[$br2]
+{br2}
.ordered
-1. [=shell=]: A programmable replaceable command-line interpreter, with utilities for managing the whole system and support for pipelines and I/O redirection
-2. [=UNIX-style file system=]: [url https://en.wikipedia.org/wiki/Unix_filesystem Filesystem] as a single rooted tree, objects (nodes) in the file system are [url https://en.wikipedia.org/wiki/Inode inodes] and an inode can be [url https://en.wikipedia.org/wiki/Unix_file_types (at least)] either a regular file, directory or devices. Permissions per users and group.
-3. [=kernel=]: Program that manages all communication and operations between the hardware and software
+1. {b shell}: A programmable replaceable command-line interpreter, with utilities for managing the whole system and support for pipelines and I/O redirection
+2. {b UNIX-style file system}: {url Filesystem;https://en.wikipedia.org/wiki/Unix_filesystem} as a single rooted tree, objects (nodes) in the file system are {url inodes;https://en.wikipedia.org/wiki/Inode} and an inode can be {url (at least);https://en.wikipedia.org/wiki/Unix_file_types} either a regular file, directory or devices. Permissions per users and group.
+3. {b kernel}: Program that manages all communication and operations between the hardware and software
-[$br2]
+{br2}
-.font18 [*For now we'll generally just look over some of the common stuff and go into detail later, while in Linux.*]
+.font18 {i For now we'll generally just look over some of the common stuff and go into detail later, while in Linux.}
:slide35
## 2.1. shell
-[$br1]
+{br1}
:sqrow
:column
- The operating system is divided into layers, [url https://youtu.be/-FtCTW2rVFM?t=57 like an onion].\n
+ The operating system is divided into layers, {url like an onion;https://youtu.be/-FtCTW2rVFM?t=57}.\n
Only the kernel has access to the hardware.\n
shells and executables (binaries) have access to the kernel.
.p
- shells provide user interfaces, [url http://en.wikipedia.org/wiki/Shell_%28computing%29 both] command-line and graphical.
+ shells provide user interfaces, {url both;http://en.wikipedia.org/wiki/Shell_%28computing%29} command-line and graphical.
While on the topic of UNIX, we'll only discuss the former.
- .centered [image ./img/unix-layers.png]
+ .centered {img ./img/unix-layers.png}
@@ -260,18 +260,18 @@ Usually connecting to a computer (to the shell) is said to be done with either a
.width25%
.font18
- [image https://upload.wikimedia.org/wikipedia/commons/thumb/d/df/ASR-33_at_CHM.agr.jpg/1280px-ASR-33_at_CHM.agr.jpg]\n
- [*Teletype Model 33 by [url https://commons.wikimedia.org/wiki/User:ArnoldReinhold Arnold Reinhold]*]
+ {img https://upload.wikimedia.org/wikipedia/commons/thumb/d/df/ASR-33_at_CHM.agr.jpg/1280px-ASR-33_at_CHM.agr.jpg}\n
+ {i Teletype Model 33 by {url Arnold Reinhold;https://commons.wikimedia.org/wiki/User:ArnoldReinhold}}
- [$newrow]
+ {newrow}
.p
With the advent of computer displays, teleprinters were replaced with terminals, video display-keyboard combo.
- Thanks to the widely popular [url https://en.wikipedia.org/wiki/VT100 VT100], almost all terminals support [url https://en.wikipedia.org/wiki/ANSI_escape_code ANSI escape codes].
+ Thanks to the widely popular {url VT100;https://en.wikipedia.org/wiki/VT100}, almost all terminals support {url ANSI escape codes;https://en.wikipedia.org/wiki/ANSI_escape_code}.
.font18
- [image https://upload.wikimedia.org/wikipedia/commons/thumb/9/99/DEC_VT100_terminal.jpg/675px-DEC_VT100_terminal.jpg?20131106192408]\n
- [*DEC VT100 by [url https://www.flickr.com/people/54568729@N00 Jason Scott]*]
+ {img https://upload.wikimedia.org/wikipedia/commons/thumb/9/99/DEC_VT100_terminal.jpg/675px-DEC_VT100_terminal.jpg?20131106192408}\n
+ {i DEC VT100 by {url Jason Scott;https://www.flickr.com/people/54568729@N00}}
@@ -281,16 +281,16 @@ Usually connecting to a computer (to the shell) is said to be done with either a
Today we don't usually use such specialised hardware, but the names persist with slightly different meanings.
.p
-[url https://en.wikipedia.org/wiki/Virtual_console Virtual Terminal] (Console, tty): on some modern UNIX-likes (like Linux), the kernel/OS provides special devices, where a console is directly implemented/simulated with the connected computer and display.
+{url Virtual Terminal;https://en.wikipedia.org/wiki/Virtual_console} (Console, tty): on some modern UNIX-likes (like Linux), the kernel/OS provides special devices, where a console is directly implemented/simulated with the connected computer and display.
.bulleted
-- systems that don't provide it usually expose another way to connect a console (now external hardware and/or software is required), like a [url https://en.wikipedia.org/wiki/Serial_port serial] port
+- systems that don't provide it usually expose another way to connect a console (now external hardware and/or software is required), like a {url serial;https://en.wikipedia.org/wiki/Serial_port} port
.p
-[url https://en.wikipedia.org/wiki/Terminal_emulator Terminal Emulator]: a special program that emulates a virtual terminal (within another display system)
+{url Terminal Emulator;https://en.wikipedia.org/wiki/Terminal_emulator}: a special program that emulates a virtual terminal (within another display system)
.p
-[url https://en.wikipedia.org/wiki/Pseudoterminal Pseudoterminal] (pty): a program that sits between a terminal and a shell (or other program), and makes them both think they're directly connected
+{url Pseudoterminal;https://en.wikipedia.org/wiki/Pseudoterminal} (pty): a program that sits between a terminal and a shell (or other program), and makes them both think they're directly connected
.bulleted
- ssh, a program to remotely connect to a device's shell, establishes a pseudoterminal. Your local terminal thinks it's connected to a local shell and vice versa with the remote shell, however the pty in between handles the true communication.
@@ -312,9 +312,9 @@ You can give a full or relative path, and that will be executed directly.
Each command can be given parameters, separated by spaces, each (by convention) being either text values or options (switches).
.p
-Options usually start with a hyphen [`-`] (like [`-c`] or [`-current-time`]) and often support abbreviations ([`-a -b -c`] to [`-abc`]).
-Newer conventions also allow start with two hyphens [`--`] ([`--current-time`]), though if shown as-is indicate the rest is a string.
-More rarely you might see [`--OPTION=VALUE`] or just [`OPTION=VALUE`].
+Options usually start with a hyphen {` -} (like {` -c} or {` -current-time}) and often support abbreviations ({` -a -b -c} to {` -abc}).
+Newer conventions also allow start with two hyphens {` --} ({` --current-time}), though if shown as-is indicate the rest is a string.
+More rarely you might see {` --OPTION=VALUE} or just {` OPTION=VALUE}.
:middle_slide
@@ -322,7 +322,7 @@ More rarely you might see [`--OPTION=VALUE`] or just [`OPTION=VALUE`].
### Thompson shell
.p
-The first UNIX shell is the [url https://en.wikipedia.org/wiki/Thompson_shell Thompson shell].
+The first UNIX shell is the {url Thompson shell;https://en.wikipedia.org/wiki/Thompson_shell}.
The two major features that every other shell supports are:
:bulleted
@@ -345,10 +345,10 @@ command1 [args...] | command2 [args...] | ...
.bulleted
- Rooted singular tree of directories (the root folder of which is called "root", denoted with a "/")
-- Each tree object (node) is an [url https://en.wikipedia.org/wiki/Inode i(ndex)node], containing type, ownership, access, internal data and any other metadata, but [=not=] name!
-- Directory inodes (files) contain a table with rows of names and inode numbers, mapping a file name to it's contents. Each row is called a [url https://en.wikipedia.org/wiki/Hard_link hard link]. Every directory has a hard link to itself, called ".", and a hard link to it's parent, called "..".
+- Each tree object (node) is an {url i(ndex)node;https://en.wikipedia.org/wiki/Inode}, containing type, ownership, access, internal data and any other metadata, but {b not} name!
+- Directory inodes (files) contain a table with rows of names and inode numbers, mapping a file name to it's contents. Each row is called a {url hard link;https://en.wikipedia.org/wiki/Hard_link}. Every directory has a hard link to itself, called ".", and a hard link to it's parent, called "..".
-.p [image ./img/unix-dir-tree.png ]
+.p {img ;./img/unix-dir-tree.png}
:middle_slide
@@ -356,16 +356,16 @@ command1 [args...] | command2 [args...] | ...
### Attributes of an inode
:bulleted
-- [url https://en.wikipedia.org/wiki/Unix_file_types file type]:
+- {url file type;https://en.wikipedia.org/wiki/Unix_file_types}:
Each inode represents some sort of file (data), but a "file" can also be a directory or device, so we need to know how to handle it.\n
There are 7 main types (but there can exist more, depending on OS):
- [$br2]
+ {br2}
.bulleted
- - [=regular=]: just a plain old file
- - [=directory=]: as explained, a file containing hard links to other files. Each directory is allowed to appear [*only once*] in a single parent.
- - [=symbolic link=]: points to any file (or directory). It contains the (relative) path to that object (as a simple string), so a symlink not could even be valid.
+ - {b regular}: just a plain old file
+ - {b directory}: as explained, a file containing hard links to other files. Each directory is allowed to appear {i only once} in a single parent.
+ - {b symbolic link}: points to any file (or directory). It contains the (relative) path to that object (as a simple string), so a symlink not could even be valid.
Think of a C++ pointer (pseudocode).
```
@@ -376,19 +376,19 @@ exec(/bin/mprog); -> Executes /usr/local/bin/mprog
:slide
:bulleted
- - [=FIFO special=]: aka [url https://en.wikipedia.org/wiki/Named_pipe named pipe], a special type of regular file, where at any moment only one process can read from it and one can write to it. It takes the concept of shell pipes to inter-process communication.
+ - {b FIFO special}: aka {url named pipe;https://en.wikipedia.org/wiki/Named_pipe}, a special type of regular file, where at any moment only one process can read from it and one can write to it. It takes the concept of shell pipes to inter-process communication.
```
[Process] --write-> [FIFO] x-write-- [Process]
[ A ] x--read-- [ ] --read--> [ B ]
- - [=block special=]: a device which is randomly accessible, like a hard drive or cdrom drive.
+ - {b block special}: a device which is randomly accessible, like a hard drive or cdrom drive.
Think of a C++ array (pseudocode):
```
BlockSpecial[438] = 1 ; var = BlockSpecial[438]
- - [=character special=]: devices which are accessed via serial streams of input or output, like keyboards, mice, graphics cards and teletypes.\n
+ - {b character special}: devices which are accessed via serial streams of input or output, like keyboards, mice, graphics cards and teletypes.\n
Think of a C++ stream (pseudocode):
```
@@ -398,9 +398,9 @@ CharacterSpecial << 1 ; CharacterSpecial >> var
:middle_slide
:bulleted
- - [=sockets=]: file for inter-process communication. Compared to FIFO specials, they can be used by more than two processes, used in both directions and support [url https://en.wikipedia.org/wiki/File_descriptor file descriptors] and packets
+ - {b sockets}: file for inter-process communication. Compared to FIFO specials, they can be used by more than two processes, used in both directions and support {url file descriptors;https://en.wikipedia.org/wiki/File_descriptor} and packets
- [$br1]
+ {br1}
```
[Process A] <--read&write--> [Socket 1]
@@ -415,13 +415,13 @@ CharacterSpecial << 1 ; CharacterSpecial >> var
#### Side-step into users and groups
-[$br3]
+{br3}
.p
-A user in UNIX is essentially a small collection of data, most important of it being a [=unique ID=] (number), a [=name=] (string), a [=group id=] (number; files created by the user are in that group) and a [=password=].
+A user in UNIX is essentially a small collection of data, most important of it being a {b unique ID} (number), a {b name} (string), a {b group id} (number; files created by the user are in that group) and a {b password}.
.p
-Groups are also small collections of data, but much simpler, comprised only of a [=unique ID=] (number), a [=name=] (string) and a [=list of users=] that are "in" the group. Their main purpose is to simplify access control.
+Groups are also small collections of data, but much simpler, comprised only of a {b unique ID} (number), a {b name} (string) and a {b list of users} that are "in" the group. Their main purpose is to simplify access control.
.p
User with ID 0 is called root, it is the "system administrator", all actions made by the system itself are done as that user.
@@ -430,25 +430,25 @@ Every user has their own "home" folder (under "/home/USERNAME/", except for root
:slide
:bulleted
-- [url https://en.wikipedia.org/wiki/File_system_permissions file permissions]:
+- {url file permissions;https://en.wikipedia.org/wiki/File_system_permissions}:
control the freedom of a user to read (navigate for directories), change and execute files\n
- File permissions are split into three sets: what the [=owner=] can do, what [=group=] members can do and what [=anyone else=] can do.\n
+ File permissions are split into three sets: what the {b owner} can do, what {b group} members can do and what {b anyone else} can do.\n
- Each set contains a mix of three permissions: [=r=]ead, [=w=]rite and e[=x=]ecute, and each set stores some combination of them.
+ Each set contains a mix of three permissions: {b r}ead, {b w}rite and e{b x}ecute, and each set stores some combination of them.
- [$br1]
+ {br1}
.p
- Each is represented by a bit in the order above ([`101`] means you [*can*] read, [*cannot*] write, [*can*] execute) and the overall permissions are often shown as a three digit number or character string.\n
- Example: [`111101100`] will be shown as [`754`] or [`rwxr-xr--`]
+ Each is represented by a bit in the order above ({` 101} means you {i can} read, {i cannot} write, {i can} execute) and the overall permissions are often shown as a three digit number or character string.\n
+ Example: {` 111101100} will be shown as {` 754} or {` rwxr-xr--}
- link count:
- the count of hard links that point to the inode. A file is deleted [=only when there are no hard links left to it=].
- Every directory inode has at least two - one from parent and one from itself ("."), though the latter [=isn't=] counted.
- Child and parent directories also [=add=] to the count.
+ the count of hard links that point to the inode. A file is deleted {b only when there are no hard links left to it}.
+ Every directory inode has at least two - one from parent and one from itself ("."), though the latter {b isn't} counted.
+ Child and parent directories also {b add} to the count.
- [$br1]
+ {br1}
- User ID of owner, Group ID, file size and timestamps
@@ -459,42 +459,42 @@ Every user has their own "home" folder (under "/home/USERNAME/", except for root
## 2.3. Kernel
.font18
-[$br1]
+{br1}
.p
The kernel has the core functionality of the operating system and bridges the gap between programs and hardware.
Some important subsystems include scheduling, file, device, process and memory management.
.p
-To preserve the [url https://en.wikipedia.org/wiki/Everything_is_a_file everything is a file] methodology, devices and processes can be handled as files (inside [`/dev`] and [`/proc`]).
+To preserve the {url everything is a file;https://en.wikipedia.org/wiki/Everything_is_a_file} methodology, devices and processes can be handled as files (inside {` /dev} and {` /proc}).
They (most of the time, in modern kernels) aren't actual files on a hard drive, but "virtual" files, where operations on them are handled in a different manner than normal by the kernel.
-[$br2]
+{br2}
-.font35 Linux is [=not=] an operating system, it is a kernel!!!
+.font35 Linux is {b not} an operating system, it is a kernel!!!
-[$br2]
+{br2}
.p
-Two of the important things a kernel does is manage [=processes=] and [=memory=].
+Two of the important things a kernel does is manage {b processes} and {b memory}.
:slide35
### 2.3.1 Processes
-[$br1]
+{br1}
.p
A program is some collection of code and other data, stored in a file (or noncompiled code).\n
-A process is the program in motion, the program itself [*alongside*] certain system states.
+A process is the program in motion, the program itself {i alongside} certain system states.
.p
The system states include (but are not limited to):
.bulleted
- the processor state, including the program counter and register values
- memory map, indicating what regions of memory are allocated (to the process)
-- [url https://en.wikipedia.org/wiki/File_descriptor file descriptors], unique identifiers for files
+- {url file descriptors;https://en.wikipedia.org/wiki/File_descriptor}, unique identifiers for files
:middle_slide35
@@ -503,8 +503,8 @@ The system states include (but are not limited to):
On a multitasking (multiprocessing) system, which is any modern desktop system, multiple processes are always running "at once".
.p
-In reality, constantly one process is stopped and another is ran, switching between all of them ([url https://en.wikipedia.org/wiki/Context_switch context switching]).
-All "waiting" processes are put in a prioritized queue ([url https://en.wikipedia.org/wiki/Run_queue run queue]).
+In reality, constantly one process is stopped and another is ran, switching between all of them ({url context switching;https://en.wikipedia.org/wiki/Context_switch}).
+All "waiting" processes are put in a prioritized queue ({url run queue;https://en.wikipedia.org/wiki/Run_queue}).
.p
Stopping is either done by the process itself (more on that later), or by the system when the process has been actively running for too much time.
@@ -515,18 +515,18 @@ Stopping is either done by the process itself (more on that later), or by the sy
#### Process Control Block
.p
-All process information is stored in a data structure, called a [*process control block*] (or process descriptor).
-Not to be confused with a [url https://en.wikipedia.org/wiki/Printed_circuit_board printed circuit board]!\n
+All process information is stored in a data structure, called a {i process control block} (or process descriptor).
+Not to be confused with a {url printed circuit board;https://en.wikipedia.org/wiki/Printed_circuit_board}!\n
A PCB's data can be split into three categories:
.numbered
-1. [=Process identification=] - the ID of the process itself, of it's parent process, of it's owner (user), etc.
-2. [=Process state=] - as described, the processor state, etc.\n
+1. {b Process identification} - the ID of the process itself, of it's parent process, of it's owner (user), etc.
+2. {b Process state} - as described, the processor state, etc.\n
On a context switch, values in registers are put into the stopped PCB and then are loaded from the running PCB.
-3. [=Process control information=] - process state, memory map, privileges, etc.
+3. {b Process control information} - process state, memory map, privileges, etc.
.p
-A process can be [=forked=], meaning a new process is created, with the same underlying code (but not process states and ...).
+A process can be {b forked}, meaning a new process is created, with the same underlying code (but not process states and ...).
:middle_slide35
@@ -534,11 +534,11 @@ A process can be [=forked=], meaning a new process is created, with the same und
#### Process states
.bulleted
-- [=Created=]: This is the initial state given to a new process. In this state, the process awaits a "ready" state.
-- [=Ready=] (Waiting): A process is put in the run queue and awaits being executed ("running" state).
-- [=Running=]: When the process's program is being currently executed by the CPU. The process can run in either [*kernel mode*], having access to the kernel and user addresses, or [*user mode*], having access only to it's own code and data.
-- [=Blocked=]: When a process cannot continue without external change, usually when waiting for an I/O device.
-- [=Terminated=]: The process has either completed execution or has been killed. The process itself is called a [url https://en.wikipedia.org/wiki/Zombie_process "zombie process"] (until it is removed).
+- {b Created}: This is the initial state given to a new process. In this state, the process awaits a "ready" state.
+- {b Ready} (Waiting): A process is put in the run queue and awaits being executed ("running" state).
+- {b Running}: When the process's program is being currently executed by the CPU. The process can run in either {i kernel mode}, having access to the kernel and user addresses, or {i user mode}, having access only to it's own code and data.
+- {b Blocked}: When a process cannot continue without external change, usually when waiting for an I/O device.
+- {b Terminated}: The process has either completed execution or has been killed. The process itself is called a {url "zombie process";https://en.wikipedia.org/wiki/Zombie_process} (until it is removed).
:middle_slide35
@@ -546,7 +546,7 @@ A process can be [=forked=], meaning a new process is created, with the same und
#### Exit status
.p
-Every process, before being deleted (and after being in a Terminated state) passes a small number, called the [url https://en.wikipedia.org/wiki/Exit_status exit status] (exit code), to it's parent process.
+Every process, before being deleted (and after being in a Terminated state) passes a small number, called the {url exit status;https://en.wikipedia.org/wiki/Exit_status} (exit code), to it's parent process.
For all intents and purposes, this number is an 8bit unsigned integer, meaning it's value is between 0 and 255.
.p
@@ -558,31 +558,31 @@ Different programs specify the meaning of an exit code in different ways, some a
### 2.3.2 Memory management
-[$br2]
+{br2}
.p
-In ye olde days, you would save a bit of memory for the operating system and give all of the rest to the current process ([url https://en.wiktionary.org/wiki/monoprogramming monoprogramming]), which we wait until completion.
+In ye olde days, you would save a bit of memory for the operating system and give all of the rest to the current process ({url monoprogramming;https://en.wiktionary.org/wiki/monoprogramming}), which we wait until completion.
.p
This doesn't allow for context switching (disks are slow) and a blocked state forces the CPU to wait.
.p
-Some bad ideas include: depending on the code of all processes to not use the same addresses, use only [url https://en.wikipedia.org/wiki/Position-independent_code relative addresses] ([`-fPIC`] option in [`gcc`]) or use a [url https://en.wikipedia.org//wiki/Relocation_%28computing%29#Relocation_table table] that the kernel fills out with addresses.
+Some bad ideas include: depending on the code of all processes to not use the same addresses, use only {url relative addresses;https://en.wikipedia.org/wiki/Position-independent_code} ({` -fPIC} option in {` gcc}) or use a {url table;https://en.wikipedia.org//wiki/Relocation_%28computing%29#Relocation_table} that the kernel fills out with addresses.
:slide35
### Virtual memory
-[$br2]
+{br2}
.fright
- [image ./img/virtual-memory-by-Ehamberg.png]\n
+ {img ./img/virtual-memory-by-Ehamberg.png}\n
.font18
- [*Image by [url https://commons.wikimedia.org/wiki/File:Virtual_memory.svg Ehamberg]*]
+ {i Image by {url Ehamberg;https://commons.wikimedia.org/wiki/File:Virtual_memory.svg}}
.p
-A program (process) works with some (sequential) addresses, and the OS (with the help of [url https://en.wikipedia.org/wiki/Memory_management_unit hardware]) translates/maps the process' addresses (logical/[url https://en.wikipedia.org/wiki/Virtual_address_space virtual addresses]) to real ones (physical addresses).
+A program (process) works with some (sequential) addresses, and the OS (with the help of {url hardware;https://en.wikipedia.org/wiki/Memory_management_unit}) translates/maps the process' addresses (logical/{url virtual addresses;https://en.wikipedia.org/wiki/Virtual_address_space}) to real ones (physical addresses).
.p
Simplified memory management for the program, protected address space for each process and improved flexibility.
@@ -592,29 +592,29 @@ Simplified memory management for the program, protected address space for each p
#### Segmentation (without paging)
-[$br2]
+{br2}
.p
Initially, virtual memory was implemented with segmentation, where a process' memory is divided into segments for code, stack, heap, etc.
Each segment is given a chunk of contiguous memory, which can be resized, and addresses are defined as the base segment (physical) address with an offset.
.p
-In the modern day, segmentation isn't used by itself, since resizing segments could require reordering of memory and [url https://en.wikipedia.org/wiki/Fragmentation_%28computing%29#External_fragmentation external fragmentation], where there simply isn't enough contiguous memory, could occur.
+In the modern day, segmentation isn't used by itself, since resizing segments could require reordering of memory and {url external fragmentation;https://en.wikipedia.org/wiki/Fragmentation_%28computing%29#External_fragmentation}, where there simply isn't enough contiguous memory, could occur.
:slide35
#### Paging
-[$br3]
+{br3}
.p
The virtual and physical memory is divided into fixed-sized chunks of consecutive addresses.
-A virtual memory chunk is called a [=page=], while a physical memory chunk is called a (page) [=frame=].
+A virtual memory chunk is called a {b page}, while a physical memory chunk is called a (page) {b frame}.
Usually both have the same size of (at least) 4 KiB.
.p
-Every process has a [url https://en.wikipedia.org/wiki/Page_table page table], which maps the process' pages to system frames.
+Every process has a {url page table;https://en.wikipedia.org/wiki/Page_table}, which maps the process' pages to system frames.
Thus every memory address is translated from it's page location to a frame location.
@@ -623,7 +623,7 @@ Thus every memory address is translated from it's page location to a frame locat
.p Advantages include:
.bulleted
-- elimination of [url https://en.wikipedia.org/wiki/Fragmentation_%28computing%29#External_fragmentation external fragmentation]
+- elimination of {url external fragmentation;https://en.wikipedia.org/wiki/Fragmentation_%28computing%29#External_fragmentation}
- increased flexibility, allowed sharing of memory between processes (useful for shared libraries)
- finding free memory is fast and easy, just use the first free pages you see
- frames can be scattered
@@ -633,7 +633,7 @@ Thus every memory address is translated from it's page location to a frame locat
.bulleted
- longer memory access, because of the page table
-- [url https://en.wikipedia.org/wiki/Fragmentation_%28computing%29#Internal_fragmentation internal fragmentation], where one or multiple pages might be partially empty, leaving free space that cannot be used
+- {url internal fragmentation;https://en.wikipedia.org/wiki/Fragmentation_%28computing%29#Internal_fragmentation}, where one or multiple pages might be partially empty, leaving free space that cannot be used
:slide
@@ -644,20 +644,20 @@ Thus every memory address is translated from it's page location to a frame locat
Enough theory, time to have some fun and learn Linux!
.p
-We'll be using [url https://ivandavidov.github.io/minimal/#home Linux Minimal Live] (just a bootable ISO) because it's:
+We'll be using {url Linux Minimal Live;https://ivandavidov.github.io/minimal/#home} (just a bootable ISO) because it's:
.bulleted
- very small, comprised of only the Linux kernel, GNU C library and Busybox\n
-- made by a fellow Bulgarian [$bg]
+- made by a fellow Bulgarian {bg}
.p
We're going to explore and look around the following stuff:
.bulleted
-- [=Shells=]: What a modern shell would often support on a Linux based OS
-- [=Files and directories=]: Naming conventions and commands to work with them
-- [=Common configuration files=]: Relevant configuration files, their purpose and syntax
-- [=System management=]: Other commands with which to modify your system
+- {b Shells}: What a modern shell would often support on a Linux based OS
+- {b Files and directories}: Naming conventions and commands to work with them
+- {b Common configuration files}: Relevant configuration files, their purpose and syntax
+- {b System management}: Other commands with which to modify your system
:middle_slide18
@@ -665,30 +665,30 @@ We're going to explore and look around the following stuff:
#### If you're following at home
.p
-Owing to it's size, not everything we need comes out of the box, so I created [url ./mll-set.sh a script] which installs what's needed.
+Owing to it's size, not everything we need comes out of the box, so I created {url a script;./mll-set.sh} which installs what's needed.
If you want to try it out yourself, after booting up Minimal Linux Live, type out and run:
```
wget -q http://unsecure.syndamia.com/mll-set.sh && chmod +x mll-set.sh && ./mll-set.sh
.p
-You might've noticed that the command above doesn't use the normal [url ./mll-set.sh https://syndamia.com/talks/linuxgraphy-by-strabo/mll-set.sh] link.
+You might've noticed that the command above doesn't use the normal {url https://syndamia.com/talks/linuxgraphy-by-strabo/mll-set.sh;./mll-set.sh} link.
That is because, out of the box, MLL doesn't really support secure connections (https), so I've made only that file available without it.
.p
-The script, in summary, installs bash, coreutils and shadow "packages" (from [url http://s.minos.io/archive/bifrost/x86_64 http://s.minos.io/archive/bifrost/x86\_64]) to /usr/local/bin, creates /etc/passwd, /etc/bashrc and /etc/profile with some values in them and starts bash.
+The script, in summary, installs bash, coreutils and shadow "packages" (from {url http://s.minos.io/archive/bifrost/x86\_64;http://s.minos.io/archive/bifrost/x86_64}) to /usr/local/bin, creates /etc/passwd, /etc/bashrc and /etc/profile with some values in them and starts bash.
:slide
## 3.1. Shells
-[$br2]
+{br2}
### Variables and data types
.p
-Before talking about the different features newer shells support, we'll roughly cover variables and data types (mostly [url https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Shell-Parameters bash] specifics).
+Before talking about the different features newer shells support, we'll roughly cover variables and data types (mostly {url bash;https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Shell-Parameters} specifics).
.p
A variable, also called parameter, is created with the syntax (NO spaces between the =):
@@ -697,7 +697,7 @@ A variable, also called parameter, is created with the syntax (NO spaces between
name=value
.p
-Where [`name`] is either a combination of letters (upper and lower case), numbers and the underscore character, which cannot begin with a number, or one of select few [=positional=] and [=special=] parameters.
+Where {` name} is either a combination of letters (upper and lower case), numbers and the underscore character, which cannot begin with a number, or one of select few {b positional} and {b special} parameters.
:slide35
@@ -705,20 +705,20 @@ Where [`name`] is either a combination of letters (upper and lower case), number
#### Positional and special parameters
.p
-[url https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Positional-Parameters Positional parameters] are numbers from 1 to N, where each one corresponds to a shell (or function, or script) argument.
+{url Positional parameters;https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Positional-Parameters} are numbers from 1 to N, where each one corresponds to a shell (or function, or script) argument.
.p
-Some of the [url https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Special-Parameters special parameters] are:
+Some of the {url special parameters;https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Special-Parameters} are:
.bulleted
-- [`0`], corresponding to the shell's or script's name,
-- [`@`] is all positional parameters, separated by spaces
-- [`#`] is the number of positional parameters
-- [`?`] is the last executed (foreground) process
-- [`$`] is process ID of the current shell.
+- {` 0}, corresponding to the shell's or script's name,
+- {` @} is all positional parameters, separated by spaces
+- {` #} is the number of positional parameters
+- {` ?} is the last executed (foreground) process
+- {` $} is process ID of the current shell.
.p
-[`value`], without any special surrounding characters (more on that later), is treated as a string (but it mustn't have spaces!), however it may also be omitted, in which case it is the empty string [`""`].
+{` value}, without any special surrounding characters (more on that later), is treated as a string (but it mustn't have spaces!), however it may also be omitted, in which case it is the empty string {` ""}.
:slide35
@@ -727,28 +727,29 @@ Some of the [url https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.htm
.p
In most shells, there are 3 data types: strings, integers and (one-dimensional) indexed arrays.
-[url https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#index-declare bash has more], like references and associative arrays, but those aren't universal.
+{url bash has more;https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#index-declare}, like references and associative arrays, but those aren't universal.
.p
-A value is a [=string=] when surrounded by single [`'`] or double [`"`] quotes,\n
-an [=integer=] when it isn't surrounded by anything and composed only of digits (if there are letters, it is a string; it's [url https://tldp.org/LDP/abs/html/untyped.html quite tricky] when a value is interpreted as a string or integer) and\n
-an [=array=] when surrounded by braces [`()`], where inside elements are strings or integers, separated by spaces.
+A value is a {b string} when surrounded by single {` '} or double {` "} quotes,\n
+an {b integer} when it isn't surrounded by anything and composed only of digits (if there are letters, it is a string; it's {url quite tricky;https://tldp.org/LDP/abs/html/untyped.html} when a value is interpreted as a string or integer) and\n
+an {b array} when surrounded by braces {` ()}, where inside elements are strings or integers, separated by spaces.
An indexed array can also be created by specifying the value at any index:
```
-name[index\=]value
+name[index\}value
:slide
#### Mixing types and operations
-[$br1]
+{br1}
```
name=value
-:table_4
+:table
+:4
|= Type
|= string operation
|= integer operation
@@ -771,25 +772,26 @@ name=value
+
:slide
#### Parameter expansion
.p
-With [url https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Shell-Parameter-Expansion parameter expansion], actions are done with the general variable (entity) or on strings and arrays values.
-Operations on integers are done with [url https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Arithmetic-Expansion arithmetic expansion].
+With {url parameter expansion;https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Shell-Parameter-Expansion}, actions are done with the general variable (entity) or on strings and arrays values.
+Operations on integers are done with {url arithmetic expansion;https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Arithmetic-Expansion}.
.p
-Parameter expansion is started with the character [`\$`] and either a name or curly braces.
-Retrieving a value is done with the forms [`\$name`], [`\${name}`] and [`\${name[index]}`] for arrays.
+Parameter expansion is started with the character {` \$} and either a name or curly braces.
+Retrieving a value is done with the forms {` \$name}, {` \${name}} and {` \${name[index]}} for arrays.
.p
Some parameter expansions in bash:
.bulleted
-- [`\${#parameter}`] length of characters
-- [`\${parameter:offset}`] and [`\${parameter:offset:length}`] return substring from index offset
-- [`\${parameter/pattern/string}`] return a string, where every match on pattern is replaced by string
-- [`\${name[@]}`] a (space separated) sequence of indices from 0 to length (for defined values) of array name
+- {` \${#parameter}} length of characters
+- {` \${parameter:offset}} and {` \${parameter:offset:length}} return substring from index offset
+- {` \${parameter/pattern/string}} return a string, where every match on pattern is replaced by string
+- {` \${name[@]}} a (space separated) sequence of indices from 0 to length (for defined values) of array name
:slide
@@ -797,20 +799,20 @@ Some parameter expansions in bash:
#### Arithmetic expansion
.p
-Arithmetic expansions allow evaluation of [url https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Shell-Arithmetic arithmetic expressions].
-They're in the form [`\$(( expression ))`].
+Arithmetic expansions allow evaluation of {url arithmetic expressions;https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Shell-Arithmetic}.
+They're in the form {` \$(( expression ))}.
.p
Some useful expressions are:
.bulleted
-- [`++name`], [`name++`], [`--name`], [`name++`] postfix and prefix incrementation and decrementation
-- [`+`], [`-`], [`*`], [`/`], [`%`] normal arithmetic operators, [`**`] exponentiation
-- [`~`], [`<<`], [`>>`], [`&`], [`^`], [`|`] bitwise operators
-- [`==`], [`!=`], [`>`], [`>=`], [`<`], [`<=`] logical comparison
-- [`!`], [`&&`], [`||`] logical not, and, or
-- [`expr ? exprTrue : exprFalse`] conditional
-- [`=`], [`+=`], ..., [`<<=`], ... assignment operators
-- [`expr1 , expr2`] consecutive expressions and [`(expr)`] bracing
+- {` ++name}, {` name++}, {` --name}, {` name++} postfix and prefix incrementation and decrementation
+- {` +}, {` -}, {` *}, {` /}, {` %} normal arithmetic operators, {` **} exponentiation
+- {` ~}, {` <<}, {` >>}, {` &}, {` ^}, {` |} bitwise operators
+- {` ==}, {` !=}, {` >}, {` >=}, {` <}, {` <=} logical comparison
+- {` !}, {` &&}, {` ||} logical not, and, or
+- {` expr ? exprTrue : exprFalse} conditional
+- {` =}, {` +=}, ..., {` <<=}, ... assignment operators
+- {` expr1 , expr2} consecutive expressions and {` (expr)} bracing
.p
Expressions work with both variable names and integers.
@@ -821,19 +823,19 @@ Expressions work with both variable names and integers.
### Bourne shell
.p
-Most modern shells support a lot of the more defying features of the [url https://en.wikipedia.org/wiki/Bourne_shell Bourne Shell], which include:
+Most modern shells support a lot of the more defying features of the {url Bourne Shell;https://en.wikipedia.org/wiki/Bourne_shell}, which include:
:bulleted
-- [url https://en.wikipedia.org/wiki/Job_control_%28Unix%29 Job control]: Management of currently running groups of processes\n
+- {url Job control;https://en.wikipedia.org/wiki/Job_control_%28Unix%29}: Management of currently running groups of processes\n
:bulleted
- - [`&`]: A process can be ran in the background with an ampersand (&) at the end of the command:
+ - {` &}: A process can be ran in the background with an ampersand (&) at the end of the command:
```
command [args...] &
- - [`Ctrl+z`]: suspend the currently running (foreground) job
- - [`bg`]: start a suspended job in the background
- - [`fg`]: resume the last job to be put in the background and make it the current job with which we're interacting
- - [`jobs`]: list all active (background) jobs
+ - {` Ctrl+z}: suspend the currently running (foreground) job
+ - {` bg}: start a suspended job in the background
+ - {` fg}: resume the last job to be put in the background and make it the current job with which we're interacting
+ - {` jobs}: list all active (background) jobs
@@ -842,28 +844,28 @@ command [args...] &
:bulleted
- &emsp;
:bulleted
- - Every job is identified with a [=Job ID=] (number), which you can use by prepending a percentage sign. Example, to resume the job with JID 4:
+ - Every job is identified with a {b Job ID} (number), which you can use by prepending a percentage sign. Example, to resume the job with JID 4:
```
fg %4
- - For managing everything, usually there is a [*job table*].
+ - For managing everything, usually there is a {i job table}.
Upon shell termination, the shell tells all jobs in that table to terminate and waits for them.\n
- [`disown`]: remove a job from the job table
+ {` disown}: remove a job from the job table
- - [`kill`]: send a signal to the process or job. Then that process will have to handle it accordingly.\n
- Common ones are [`-KILL`] to immediately stop the process, [`-QUIT`] to quit it, [`-ABRT`] to cancel the current action, [`-TERM`] shut down (orderly), [`-STOP`] shut down (forcefully)
+ - {` kill}: send a signal to the process or job. Then that process will have to handle it accordingly.\n
+ Common ones are {` -KILL} to immediately stop the process, {` -QUIT} to quit it, {` -ABRT} to cancel the current action, {` -TERM} shut down (orderly), {` -STOP} shut down (forcefully)
:middle_slide27
:bulleted
-- [url https://en.wikipedia.org/wiki/Here_document heredoc]: File literal, meaning it is a user "string" which is interpreted as a file
+- {url heredoc;https://en.wikipedia.org/wiki/Here_document}: File literal, meaning it is a user "string" which is interpreted as a file
.bulleted
- - start with [`<< NAME`], where NAME can be anything you want, it is used to mark the beginning and end of a heredoc. [`<<`] is also a redirection symbol
+ - start with {` << NAME}, where NAME can be anything you want, it is used to mark the beginning and end of a heredoc. {` <<} is also a redirection symbol
- on every new line write out your text, all characters will be preserved
- - to end it, write out [`NAME`] on the beginning of a new empty line. Example:
+ - to end it, write out {` NAME} on the beginning of a new empty line. Example:
```
cat << MYFILE
This is
@@ -871,65 +873,65 @@ This is
text
MYFILE
-- control operators: Control what command is executed, depending on [url https://en.wikipedia.org/wiki/Exit_status exit status]
+- control operators: Control what command is executed, depending on {url exit status;https://en.wikipedia.org/wiki/Exit_status}
.bulleted
- - [`expr1 && expr2`]: Run expr2, only if expr1 exited successfully
- - [`expr1 || expr2`]: Run expr2 if expr1 exited unsuccessfully
- - [`expr1 ; expr2`]: Run expr2 after expr1 (sequential execution)
+ - {` expr1 && expr2}: Run expr2, only if expr1 exited successfully
+ - {` expr1 || expr2}: Run expr2 if expr1 exited unsuccessfully
+ - {` expr1 ; expr2}: Run expr2 after expr1 (sequential execution)
:middle_slide27
:bulleted
-- [url https://en.wikipedia.org/wiki/Redirection_%28computing%29 redirection]: Outside of having [`<`] and [`>`] for I/O redirection, often there is also
+- {url redirection;https://en.wikipedia.org/wiki/Redirection_%28computing%29}: Outside of having {` <} and {` >} for I/O redirection, often there is also
:bulleted
- - [`>>`]: Acts like [`>`], putting text into a file, but rather than overwriting everything, it appends it
- - [`<<`]: As explained, for heredocs
- - [`<<<`]: To the right is a string ([url https://en.wikipedia.org/wiki/Here_document#Here_strings herestring]), and it is interpreted as a file
+ - {` >>}: Acts like {` >}, putting text into a file, but rather than overwriting everything, it appends it
+ - {` <<}: As explained, for heredocs
+ - {` <<<}: To the right is a string ({url herestring;https://en.wikipedia.org/wiki/Here_document#Here_strings}), and it is interpreted as a file
```
cat <<< "Hello World!"
- - [=Standard input=], [=standard output=] and [=standard error=] are all [=files=] with which the shell works.
+ - {b Standard input}, {b standard output} and {b standard error} are all {b files} with which the shell works.
Typing text in the shell puts it into stdin, command output are put into stdout (and shown to the user) and errors are put into stderr (also shown to the user).
.p
Each one of them is numbered from 0 to 2, and you can specify redirection by appending or prepending it to the redirection symbol.\n
.p
.bulleted
- - [`N>outputfile`]: redirects the output from standard stream N into outputfile
- - [`N>&M`]: redirects the output from standard stream N into standard stream M
- - [`N&lt;inputfile`]: redirects input file contents to standard stream N
- - [`N&lt;&M`]: redirects standard stream M to standard stream N
+ - {` N>outputfile}: redirects the output from standard stream N into outputfile
+ - {` N>&M}: redirects the output from standard stream N into standard stream M
+ - {` N&lt;inputfile}: redirects input file contents to standard stream N
+ - {` N&lt;&M}: redirects standard stream M to standard stream N
:middle_slide27
:bulleted
-- [url https://en.wikipedia.org/wiki/Test_%28Unix%29 built-in test command]: With [`test`] you can do conditional expressions. You can also often use brackets [`[ args... ]`] instead of [`test args...`]
+- {url built-in test command;https://en.wikipedia.org/wiki/Test_%28Unix%29}: With {` test} you can do conditional expressions. You can also often use brackets {` [ args... ]} instead of {` test args...}
:p
:bulleted
- Some of the available file checks
.bulleted
- - [`-e FILENAME`]: FILENAME exists
- - [`-d FILENAME`]: if FILENAME is a directory
- - [`-h FILENAME`]: if FILENAME is a symbolic link
- - [`-w FILENAME`]: you can write in FILENAME
+ - {` -e FILENAME}: FILENAME exists
+ - {` -d FILENAME}: if FILENAME is a directory
+ - {` -h FILENAME}: if FILENAME is a symbolic link
+ - {` -w FILENAME}: you can write in FILENAME
- Some of the available string checks
.bulleted
- - [`-n STR`]: string STR has nonzero length
- - [`-z STR`]: string STR has length zero
- - [`STR1 = STR2`] and [`STR1 != STR2`]: self explanatory
+ - {` -n STR}: string STR has nonzero length
+ - {` -z STR}: string STR has length zero
+ - {` STR1 = STR2} and {` STR1 != STR2}: self explanatory
- Some of the available number checks
.bulleted
- - [`INT1 -eq INT2`]: equal integers
- - [`INT1 -gt INT2`]: INT1 > INT2
- - [`INT1 -gt INT2`]: INT1 >= INT2
+ - {` INT1 -eq INT2}: equal integers
+ - {` INT1 -gt INT2}: INT1 > INT2
+ - {` INT1 -gt INT2}: INT1 >= INT2
- - Operators: [`!`] - negation, [`-a`] - binary AND, [`-o`] - binary OR, parentheses for grouping (escaped with [`\\`])
+ - Operators: {` !} - negation, {` -a} - binary AND, {` -o} - binary OR, parentheses for grouping (escaped with {` \\})
@@ -937,14 +939,14 @@ cat <<< "Hello World!"
:slide
:bulleted
-- [url https://en.wikipedia.org/wiki/Shell_script scripting support]: Running commands from top to bottom of a file
+- {url scripting support;https://en.wikipedia.org/wiki/Shell_script}: Running commands from top to bottom of a file
.p
.bulleted
- - [`#`]: Everything between a # and the end of the line denotes a comment
- - [`#!`]: If on the first line of the file, is treated as a [url https://en.wikipedia.org/wiki/Shebang_%28Unix%29 shebang], which specifies what interpreter to be used for the script
+ - {` #}: Everything between a # and the end of the line denotes a comment
+ - {` #!}: If on the first line of the file, is treated as a {url shebang;https://en.wikipedia.org/wiki/Shebang_%28Unix%29}, which specifies what interpreter to be used for the script
- compound commands: Structures for flow control\n
- In all examples, [`test-command`] is any command (or combination with control operators), and logic is based on exit code.
+ In all examples, {` test-command} is any command (or combination with control operators), and logic is based on exit code.
:p
:bulleted
@@ -956,7 +958,7 @@ elif test-command ; then commands-if-true
else commands-if-true
fi
- [`elif`] statements can appear multiple times, both elif and else are optional
+ {` elif} statements can appear multiple times, both elif and else are optional
@@ -965,7 +967,7 @@ fi
:slide
:bulleted
- &emsp;
- [$br1]
+ {br1}
:bulleted
- conditional (case)
@@ -975,7 +977,7 @@ case word in (pattern | ...) commands-if-true ;; ... esac
.p
Where the beginning brace can be ommited.\n
- Patterns are according to [url https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Pattern-Matching bash's pattern matching]
+ Patterns are according to {url bash's pattern matching;https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Pattern-Matching}
- loops
@@ -985,7 +987,7 @@ while test-command; do commands-if-true; done
```
for name in words...; do commands-if-true; done
- If [`in words...`] is ommited, positional arguments are used
+ If {` in words...} is ommited, positional arguments are used
@@ -995,17 +997,17 @@ for name in words...; do commands-if-true; done
## 3.2. Files and directories
.bulleted
-- [`/dev`]: devices
-- [`/proc`]: process information
+- {` /dev}: devices
+- {` /proc}: process information
-[$br3]
+{br3}
.bulleted
-- [`/bin`]: main command programs (binaries), used by users
-- [`/sbin`]: command programs, used for the system operation
-- [`/usr`]: other system resources
+- {` /bin}: main command programs (binaries), used by users
+- {` /sbin}: command programs, used for the system operation
+- {` /usr}: other system resources
.bulleted
- - [`/usr/bin`]: all other user command binaries
+ - {` /usr/bin}: all other user command binaries
:slide
@@ -1013,24 +1015,24 @@ for name in words...; do commands-if-true; done
#### Everyday file system commands
.bulleted
-- [`mkdir`]: create directories
-- [`rm`]: remove a (hardlink to) file or directory
-- [`mv`]: move file (or directory) to another directory
-- [`cp`]: copy a file
-- [`ln`]: create hard (or soft, with [`-s`]) links to files (inodes)
-- [`ls`]: list directory contents
+- {` mkdir}: create directories
+- {` rm}: remove a (hardlink to) file or directory
+- {` mv}: move file (or directory) to another directory
+- {` cp}: copy a file
+- {` ln}: create hard (or soft, with {` -s}) links to files (inodes)
+- {` ls}: list directory contents
#### Other useful file system commands
.bulleted
-- [`shred`]: overwrite file contents
-- [`dd`]: do many things with files, like modifying and duplicating data across devices and partitions, (basic) data recovery and generating files
-- [`du`]: estimate file usage
-- [`stat`]: display status for file or file system
-- [`chwon`]: change owner of an inode
-- [`chgrp`]: change group of an inode
-- [`chmod`]: change file modes
-- [`find`]: search for a file inside a directory (recursively)
+- {` shred}: overwrite file contents
+- {` dd}: do many things with files, like modifying and duplicating data across devices and partitions, (basic) data recovery and generating files
+- {` du}: estimate file usage
+- {` stat}: display status for file or file system
+- {` chwon}: change owner of an inode
+- {` chgrp}: change group of an inode
+- {` chmod}: change file modes
+- {` find}: search for a file inside a directory (recursively)
:slide
@@ -1038,23 +1040,23 @@ for name in words...; do commands-if-true; done
#### Everyday text (file) commands
.bulleted
-- [`echo`]: prints a given string to standard output
-- [`cat`]: sequentially prints files to standard output
-- [`less`]: view files with support for scrolling
-- [`head`]: print the first lines (or characters) of a file
-- [`tail`]: print the last lines (or characters) of a file
+- {` echo}: prints a given string to standard output
+- {` cat}: sequentially prints files to standard output
+- {` less}: view files with support for scrolling
+- {` head}: print the first lines (or characters) of a file
+- {` tail}: print the last lines (or characters) of a file
#### Other useful text (file) commands
.bulleted
-- [`grep`]: searches for matches in a file, using simplified regular expressions. [`egrep`] for extended regex and [`fgrep`] for string match (as-is).
-- [`sed`]: filter and transform text from files, according to regex
-- [`tr`]: translate, map (more than one to one for example) and delete characters
-- [`cut`]: remove parts of text from each line
-- [`strings`]: find embedded text inside binary files
-- [`truncate`]: shrink or extend the size of a file
-- [`wc`]: count words inside file
-- [`diff`]: compare files and show their differences
+- {` grep}: searches for matches in a file, using simplified regular expressions. {` egrep} for extended regex and {` fgrep} for string match (as-is).
+- {` sed}: filter and transform text from files, according to regex
+- {` tr}: translate, map (more than one to one for example) and delete characters
+- {` cut}: remove parts of text from each line
+- {` strings}: find embedded text inside binary files
+- {` truncate}: shrink or extend the size of a file
+- {` wc}: count words inside file
+- {` diff}: compare files and show their differences
:middle_slide
@@ -1062,17 +1064,17 @@ for name in words...; do commands-if-true; done
#### Device commands
.bulleted
-- [`mount`]: bind another file system to a location in the file system
-- [`umount`]: remove binding to a file system
-- [`lsusb`]: lists USB devices
-- [`lspci`]: lists PCI devices
+- {` mount}: bind another file system to a location in the file system
+- {` umount}: remove binding to a file system
+- {` lsusb}: lists USB devices
+- {` lspci}: lists PCI devices
#### System information commands
.bulleted
-- [`date`]: display current date and time
-- [`hostname`]: show (or set) the systems hostname (network name)
-- [`free`]: display free memory on the system
+- {` date}: display current date and time
+- {` hostname}: show (or set) the systems hostname (network name)
+- {` free}: display free memory on the system
:slide
@@ -1080,44 +1082,44 @@ for name in words...; do commands-if-true; done
#### User and group management
.bulleted
-- [`useradd`]: creates a new user (with a password)
-- [`userdel`]: remove a user and all of his files
-- [`usermod`]: modify a user account, including his name and groups
-- [`passwd`]: change password of a user. With [`-l`] user could be locked (impossible to log in)
+- {` useradd}: creates a new user (with a password)
+- {` userdel}: remove a user and all of his files
+- {` usermod}: modify a user account, including his name and groups
+- {` passwd}: change password of a user. With {` -l} user could be locked (impossible to log in)
-[$br3]
+{br3}
.bulleted
-- [`groupadd`]: create a new group
-- [`groupdel`]: remove a group
-- [`groupmod`]: modify an existing group
+- {` groupadd}: create a new group
+- {` groupdel}: remove a group
+- {` groupmod}: modify an existing group
-[$br3]
+{br3}
.bulleted
-- [`w`]: show who is logged in and what they are doing
-- [`who`]: show who is logged in
-- [`whomai`]: print username
-- [`login`]: establish a new connection to the system
+- {` w}: show who is logged in and what they are doing
+- {` who}: show who is logged in
+- {` whomai}: print username
+- {` login}: establish a new connection to the system
:slide
:bulleted
-- [`/etc`]: system configuration files
- [$br2]
+- {` /etc}: system configuration files
+ {br2}
:bulleted
- - [`/etc/group`]: the data for all groups is stored here, in the format
+ - {` /etc/group}: the data for all groups is stored here, in the format
```
GROUPNAME:PASSWORD:GID:USERS...
- - [`/etc/passwd`]: the data for all users is stored here, in the format
+ - {` /etc/passwd}: the data for all users is stored here, in the format
```
USERNAME:PASSWORD:UID:GID:USERINFO:HOMEDIR:SHELL
- - [`/etc/shadow`]: stores other user data, especially the password as an encrypted string, in the format
+ - {` /etc/shadow}: stores other user data, especially the password as an encrypted string, in the format
```
USERNAME:PASSWORD:LASTCHANGED:MINBETWEENCHANGES:MAXBETWEENCHANGES:WARNEXPIRE:INACTIVEDAYS:EXPIRE
@@ -1129,40 +1131,44 @@ USERNAME:PASSWORD:LASTCHANGED:MINBETWEENCHANGES:MAXBETWEENCHANGES:WARNEXPIRE:INA
:bulleted
- &emsp;
:bulleted
- - [`/etc/fstab`]: read on boot by mount to setup devices in fs
+ - {` /etc/fstab}: read on boot by mount to setup devices in fs
```
+'emplace
# device-spec mount-point fs-type options dump pass
/dev/sda1 / ext4 defaults 1 1
UUID=123A-456B /boot vfat noauto,noatime 1 2
LABEL=Vault /mnt/Vault auto nosuid,nodev,nofail 0 0
+'endemplace
- - [`/etc/hosts`]: list of host names (domain names) and their corresponding IP address, when a DNS server doesn't do the job
+ - {` /etc/hosts}: list of host names (domain names) and their corresponding IP address, when a DNS server doesn't do the job
```
+'emplace
# ipaddress domains
127.0.0.1 localhost mywebsite.com something.else
62.44.101.138 my.uni
+'endemplace
- - [`/etc/bashrc`]: global defaults and aliases used by the bash shell
- - [`/etc/motd`]: message of the day (unexecuted text), shown after login but before the shell is ran
+ - {` /etc/bashrc}: global defaults and aliases used by the bash shell
+ - {` /etc/motd}: message of the day (unexecuted text), shown after login but before the shell is ran
:middle_slide35
:bulleted
-- [`/usr`]: other system resources
+- {` /usr}: other system resources
.bulleted
- - [`/usr/lib`]: library files
- - [`/usr/local`]: local, system software
- - [`/usr/share`]: architecture independent data, like manuals
+ - {` /usr/lib}: library files
+ - {` /usr/local}: local, system software
+ - {` /usr/share}: architecture independent data, like manuals
-- [`/var`]: variable data, like logs and cache
-- [`/home`]: home directories of all users
-- [`/lib`]: libraries and kernel modules
-- [`/mnt`]: mounted temporary filesystems
-- [`/root`]: home directory for the root user
+- {` /var}: variable data, like logs and cache
+- {` /home}: home directories of all users
+- {` /lib}: libraries and kernel modules
+- {` /mnt}: mounted temporary filesystems
+- {` /root}: home directory for the root user
@@ -1179,9 +1185,9 @@ For software, such a license is applied to the source code from which the origin
Some commonly used ones, with a (NON-LEGALLY BINDING) summary include:
.bulleted
-- [url https://en.wikipedia.org/wiki/MIT_License MIT]: the author is not responsible for anything that the code does
-- [url https://en.wikipedia.org/wiki/BSD_licenses BSD-3-Clause]: use the same license (copyleft), the author is not responsible for anything that the code does
-- [url https://en.wikipedia.org/wiki/GNU_General_Public_License GNU GPL]: disclose the original project and use the same license ([url https://en.wikipedia.org/wiki/Copyleft copyleft])
+- {url MIT;https://en.wikipedia.org/wiki/MIT_License}: the author is not responsible for anything that the code does
+- {url BSD-3-Clause;https://en.wikipedia.org/wiki/BSD_licenses}: use the same license (copyleft), the author is not responsible for anything that the code does
+- {url GNU GPL;https://en.wikipedia.org/wiki/GNU_General_Public_License}: disclose the original project and use the same license ({url copyleft;https://en.wikipedia.org/wiki/Copyleft})
.p
This is important, since pretty much everything can be freely modified by anyone (for the better or worse, but generally better).
@@ -1191,19 +1197,19 @@ This is important, since pretty much everything can be freely modified by anyone
# 5. What makes up a useful OS
-[$br1]
+{br1}
.p
A Linux-based operating system is nothing more than the Linux kernel, combined with an assortment of programs.\n
-Overall, the main elements that make up a useful [*desktop*] operating system (alongside a command-line shell) are:
+Overall, the main elements that make up a useful {i desktop} operating system (alongside a command-line shell) are:
-[$br1]
+{br1}
.numbered
-1. [=Bootloader=]: load the kernel and operating system
-2. [=Init system=]: well managed way to start everything inside the OS
-3. [=Package manager=]: way to manage our binaries
-4. [=Desktop manager=]: graphical shell
+1. {b Bootloader}: load the kernel and operating system
+2. {b Init system}: well managed way to start everything inside the OS
+3. {b Package manager}: way to manage our binaries
+4. {b Desktop manager}: graphical shell
:slide
@@ -1221,10 +1227,10 @@ BIOS -> Master Boot Record -> Active Parition -> Bootloader ->
-> Boot menu (optional) -> Kernel -> Everything else
.bulleted
-- [url https://en.wikipedia.org/wiki/BIOS BIOS]: a small chip with code that is ran upon power up
-- [url https://en.wikipedia.org/wiki/Master_boot_record MBR]: small amount of space at the very start of the disk, that contains some (bootstrap) code and partition information. The BIOS hands off execution to the bootstrap code.
+- {url BIOS;https://en.wikipedia.org/wiki/BIOS}: a small chip with code that is ran upon power up
+- {url MBR;https://en.wikipedia.org/wiki/Master_boot_record}: small amount of space at the very start of the disk, that contains some (bootstrap) code and partition information. The BIOS hands off execution to the bootstrap code.
- Active partition: MBR loads and runs code from the beginning of the partition (boot sector), which starts the bootloader
-- [url https://en.wikipedia.org/wiki/Bootloader Bootloader]: the first complex program, which manages kernels, shows a menu, allows for debugging and so on
+- {url Bootloader;https://en.wikipedia.org/wiki/Bootloader}: the first complex program, which manages kernels, shows a menu, allows for debugging and so on
:middle_slide
@@ -1234,10 +1240,10 @@ The BIOS is baked into the motherboard, the MBR is pretty universal (and it's le
.p
That leaves us with the need for a bootloader.
-On Linux, the most used one is called [url https://en.wikipedia.org/wiki/GNU_GRUB GRUB].
+On Linux, the most used one is called {url GRUB;https://en.wikipedia.org/wiki/GNU_GRUB}.
.p
-It's config is found in [`/etc/default/grub`] (which is then fully generated with [`grub-mkconfig`]) and can be "installed in the partition" with [`grub-install`].
+It's config is found in {` /etc/default/grub} (which is then fully generated with {` grub-mkconfig}) and can be "installed in the partition" with {` grub-install}.
```
GRUB_DEFAULT=0
@@ -1257,12 +1263,13 @@ Now we need to load the user stuff, like a network manager, the graphical user i
In Minimal Linux Live, this is done by some hard written scripts, which aren't very modular or extensible.
.p
-[url https://en.wikipedia.org/wiki/Init Init systems] use configuration files, called service, to start a program in some way.
+{url Init systems;https://en.wikipedia.org/wiki/Init} use configuration files, called service, to start a program in some way.
:bulleted
-- [url https://en.wikipedia.org/wiki/Systemd systemd], which also aims to also provide easy system configuration
+- {url systemd;https://en.wikipedia.org/wiki/Systemd}, which also aims to also provide easy system configuration
- ```ini
+ 'def LANG ini
+ ```
[Unit]
Description=Service
[Service]
@@ -1272,7 +1279,7 @@ ExecStart=/usr/local/sbin/script.sh
[Install]
WantedBy=multi-user.target
-- [url https://en.wikipedia.org/wiki/OpenRC openrc], a simple and modern system
+- {url openrc;https://en.wikipedia.org/wiki/OpenRC}, a simple and modern system
@@ -1280,10 +1287,10 @@ WantedBy=multi-user.target
## 5.3. Package manager
-[$br1]
+{br1}
.p
-Programs are just executable files, usually placed in a specific folder, like [`/usr/bin`].
+Programs are just executable files, usually placed in a specific folder, like {` /usr/bin}.
.bulleted
- MLL comes with ~100 executables (and ~230 after my script)
@@ -1310,7 +1317,7 @@ Additional benefits of package management automation include:
- version caveats
- (indirectly) improved stability because of maintainer compatibility checks
-[$br1]
+{br1}
```
apt install PKG
@@ -1326,18 +1333,18 @@ apt upgrade
A widow system is your graphical shell: the graphical way to interact with your computer (the kernel).
It's main components are:
-[$br1]
+{br1}
:bulleted
-- [=Window manager=]: the overall system with which you create, remove, resize and work with windows. They are generally separated into two types:
+- {b Window manager}: the overall system with which you create, remove, resize and work with windows. They are generally separated into two types:
.bulleted
- - [*Stacked*]: this is what you know, windows are just rectangles floating about, and can be put one over each other
- - [*Tiled*]: windows take up a predefined (but changeable) portion of the screen
+ - {i Stacked}: this is what you know, windows are just rectangles floating about, and can be put one over each other
+ - {i Tiled}: windows take up a predefined (but changeable) portion of the screen
-- [=Compositor=]: adds an unseen window buffer, allowing additional processing, before a window is shown. This powers transparency, animation effects and more.
+- {b Compositor}: adds an unseen window buffer, allowing additional processing, before a window is shown. This powers transparency, animation effects and more.
-- [=Session manager=]: graphical application that manages the window managers (outside WMs), think of it as a login window
+- {b Session manager}: graphical application that manages the window managers (outside WMs), think of it as a login window
@@ -1352,36 +1359,36 @@ A distribution is a complete set of of all applications that you might use.
Overall, there are 4-5 distributions from which 90% of all other distros are based upon:
.numbered
-1. [url http://www.slackware.com/ Slackware]:
+1. {url Slackware;http://www.slackware.com/}:
as the oldest still maintained distro, it served as inspiration for a lot of other distros.
It aims to be as simple and as close to UNIX as possible.
-2. [url https://www.debian.org/ Debian] (and [url https://ubuntu.com/ Ubuntu]):
+2. {url Debian;https://www.debian.org/} (and {url Ubuntu;https://ubuntu.com/}):
it is the most popular distribution (if we also include Ubuntu).
Ubuntu aims to be modern and fancy, while Debian aims to be as stable as possible, which makes it the most popular in server usage.
-3. [url https://www.gentoo.org/ Gentoo]:
+3. {url Gentoo;https://www.gentoo.org/}:
the distribution which defined non-binary software distribution
-4. [url https://archlinux.org/ Arch Linux]:
+4. {url Arch Linux;https://archlinux.org/}:
a very popular and modern distribution with the goal of providing the latest and greatest software.
.p
We haven't touched too much, but Linux distributions aren't limited to desktop or server computers.
.numbered
-1. [url https://en.wikipedia.org/wiki/Android_%28operating_system%29#AOSP AOSP]: the base of the whole Android operating system
-2. [url https://en.wikipedia.org/wiki/OpenWrt OpenWRT]: a router operating system
+1. {url AOSP;https://en.wikipedia.org/wiki/Android_%28operating_system%29#AOSP}: the base of the whole Android operating system
+2. {url OpenWRT;https://en.wikipedia.org/wiki/OpenWrt}: a router operating system
:slide35
# 7. Demos - virtual machine and setup from zero
-[$br2]
+{br2}
.p
Now for the best part: we'll be installing a Linux distribution on a virtual machine and then directly on a laptop, running Windows 10!
.p
-I've chosen to install [url https://linuxmint.com/ Linux Mint], since it is generally targeted towards newcomers and will feel familiar enough to Windows users.
+I've chosen to install {url Linux Mint;https://linuxmint.com/}, since it is generally targeted towards newcomers and will feel familiar enough to Windows users.
.p
Currently there won't be an official recording of the process, you should've been here live!
@@ -1401,27 +1408,27 @@ All of these contain, at most, small paraphrased sentences in the slides.
They served as personal educational and reference tools.
.bulleted
-- [url https://en.wikipedia.org/ wikipedia] and [url https://stackexchange.com/ stackexchange] have been used extensively and linked where appropriate.
-- [url https://people.cs.rutgers.edu/~pxk/416/index.html CS416 - Operating Systems Design] by [url https://people.cs.rutgers.edu/~pxk/rutgers/ Paul Krzyzanowski] at [url https://www.cs.rutgers.edu/ Rutgers State University]
-- [url https://web.archive.org/web/20220713165958/https://homepage.cs.uri.edu/~thenry/resources/unix_art/ch02s01.html Origins and History of UNIX, 1969-1995] from [url https://web.archive.org/web/20220611160552/https://homepage.cs.uri.edu/~thenry/resources/unix_art/index.html The Art of Unix Programming] by Eric Steven Raymond
-- [url https://www.youtube.com/watch?v=EY6q5dv_B-o Ken Thompson interviewed by Brian Kernighan at VCF East 2019] by [url https://vcfed.org/ Vintage Computer Federation]
-- [url http://www.cs.uah.edu/~kkeen/CS590/Pseudo%20Terminals.ppt Pseudo Terminals presentation] from [url http://www.cs.uah.edu/~kkeen/CS590/ CS590] by [url http://www.cs.uah.edu/~kkeen/kkeen.html Kevin J. Keen] at [url https://www.uah.edu/ University of Alabama in Huntsville]
-- [url https://teaching.idallen.com/dat2330/04f/notes/links_and_inodes.html Hard links and Unix file system nodes] from [url https://teaching.idallen.com/dat2330/04f/ DAT 2330 Introduction to Operating Systems] by [url http://www.idallen.com/ Ian D. Allen]
-- [url https://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html Virtual Memory, OS Course Notes] by [url https://www.cs.uic.edu/~jbell/ Dr. John T. Bell] at [url https://www.cs.uic.edu University of Illinois Chicago],\n
- which is directly based on [url https://archive.org/details/operating-system-concepts-9e Operating System Concepts, 9th Edition] by [url https://codex.cs.yale.edu/avi/ Abraham Silberschatz]
-- [url http://csapp.cs.cmu.edu/3e/home.html Chapter 9 Preview - Virtual Memory] from [url http://csapp.cs.cmu.edu/ Computer Systems: A Programmer's Perspective] by [url http://www.cs.cmu.edu/~bryant Randal E. Bryant] and [url http://www.cs.cmu.edu/~droh David R. O'Hallaron]
-- [url https://www.cse.iitb.ac.in/~mythili/teaching/cs347_autumn2016/notes/07-memory.pdf Memory Management, Lecture Notes] by [url https://www.cse.iitb.ac.in/~mythili/ Mythili Vutukuru]
-- [url http://www.cs.iit.edu/~cs561/cs351/VM/paging%20advantages%20and%20disadvantages.html Paging advantages and disadvantages] by Charles R. Bauer at [url http://www.cs.iit.edu/ Computer Science Departmemnt of Illinois Institute of Technology]
-- [url https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html Bash Reference Manual] by the [url https://www.gnu.org/ GNU project] and [url https://man.openbsd.org/ksh ksh manual] by the [url https://www.openbsd.org/ OpenBSD project]
-- [url https://www.in-ulm.de/~mascheck/bourne/v7/ Manual of the Bourne Shell on Version 7], archived by [url https://www.in-ulm.de/~mascheck/ Sven Mascheck]
-- [url https://www.linuxbase.org/betaspecs/fhs/fhs/ch04.html /usr hierarchy] from [url https://www.linuxbase.org/betaspecs/fhs/fhs/index.html Filesystem Hierarchy Standard] by [url https://www.linuxfoundation.org/ Linux Foundation], Daniel Quinlan, Paul 'Rusty' Russell, Christopher Yeoh
-- [url https://www.pathname.com/fhs/pub/fhs-2.3.pdf Filesystem Hierarchy Standard] by Rusty Russel, Daniel Quinlan and Christopher Yeoh
-- [url https://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/usernames.html#FTN.AEN26405 User & Group Names] from [url https://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/book1.html Linux Standard Base Core Specification] by [url https://en.wikipedia.org/wiki/Free_Standards_Group Free Standards Group]
-- [url https://docstore.mik.ua/orelly/linux/run/ch05_07.htm Managing User Accounts] from [url https://docstore.mik.ua/orelly/linux/run/index.htm Running Linux, Third Edition] by Matt Welsh, Matthias Kalle Dalheimer, and Lar Kaufman
-- [url https://neosmart.net/wiki/mbr-boot-process/ The BIOS/MBR Boot Process] by [url https://wiki.neosmart.net/ NeoSmart's Knowledgebase]
+- {url wikipedia;https://en.wikipedia.org/} and {url stackexchange;https://stackexchange.com/} have been used extensively and linked where appropriate.
+- {url CS416 - Operating Systems Design;https://people.cs.rutgers.edu/~pxk/416/index.html} by {url Paul Krzyzanowski;https://people.cs.rutgers.edu/~pxk/rutgers/} at {url Rutgers State University;https://www.cs.rutgers.edu/}
+- {url Origins and History of UNIX, 1969-1995;https://web.archive.org/web/20220713165958/https://homepage.cs.uri.edu/~thenry/resources/unix_art/ch02s01.html} from {url The Art of Unix Programming;https://web.archive.org/web/20220611160552/https://homepage.cs.uri.edu/~thenry/resources/unix_art/index.html} by Eric Steven Raymond
+- {url Ken Thompson interviewed by Brian Kernighan at VCF East 2019;https://www.youtube.com/watch?v=EY6q5dv_B-o} by {url Vintage Computer Federation;https://vcfed.org/}
+- {url Pseudo Terminals presentation;http://www.cs.uah.edu/~kkeen/CS590/Pseudo%20Terminals.ppt} from {url CS590;http://www.cs.uah.edu/~kkeen/CS590/} by {url Kevin J. Keen;http://www.cs.uah.edu/~kkeen/kkeen.html} at {url University of Alabama in Huntsville;https://www.uah.edu/}
+- {url Hard links and Unix file system nodes;https://teaching.idallen.com/dat2330/04f/notes/links_and_inodes.html} from {url DAT 2330 Introduction to Operating Systems;https://teaching.idallen.com/dat2330/04f/} by {url Ian D. Allen;http://www.idallen.com/}
+- {url Virtual Memory, OS Course Notes;https://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html} by {url Dr. John T. Bell;https://www.cs.uic.edu/~jbell/} at {url University of Illinois Chicago;https://www.cs.uic.edu},\n
+ which is directly based on {url Operating System Concepts, 9th Edition;https://archive.org/details/operating-system-concepts-9e} by {url Abraham Silberschatz;https://codex.cs.yale.edu/avi/}
+- {url Chapter 9 Preview - Virtual Memory;http://csapp.cs.cmu.edu/3e/home.html} from {url Computer Systems: A Programmer's Perspective;http://csapp.cs.cmu.edu/} by {url Randal E. Bryant;http://www.cs.cmu.edu/~bryant} and {url David R. O'Hallaron;http://www.cs.cmu.edu/~droh}
+- {url Memory Management, Lecture Notes;https://www.cse.iitb.ac.in/~mythili/teaching/cs347_autumn2016/notes/07-memory.pdf} by {url Mythili Vutukuru;https://www.cse.iitb.ac.in/~mythili/}
+- {url Paging advantages and disadvantages;http://www.cs.iit.edu/~cs561/cs351/VM/paging%20advantages%20and%20disadvantages.html} by Charles R. Bauer at {url Computer Science Departmemnt of Illinois Institute of Technology;http://www.cs.iit.edu/}
+- {url Bash Reference Manual;https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html} by the {url GNU project;https://www.gnu.org/} and {url ksh manual;https://man.openbsd.org/ksh} by the {url OpenBSD project;https://www.openbsd.org/}
+- {url Manual of the Bourne Shell on Version 7;https://www.in-ulm.de/~mascheck/bourne/v7/}, archived by {url Sven Mascheck;https://www.in-ulm.de/~mascheck/}
+- {url /usr hierarchy;https://www.linuxbase.org/betaspecs/fhs/fhs/ch04.html} from {url Filesystem Hierarchy Standard;https://www.linuxbase.org/betaspecs/fhs/fhs/index.html} by {url Linux Foundation;https://www.linuxfoundation.org/}, Daniel Quinlan, Paul 'Rusty' Russell, Christopher Yeoh
+- {url Filesystem Hierarchy Standard;https://www.pathname.com/fhs/pub/fhs-2.3.pdf} by Rusty Russel, Daniel Quinlan and Christopher Yeoh
+- {url User & Group Names;https://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/usernames.html#FTN.AEN26405} from {url Linux Standard Base Core Specification;https://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/book1.html} by {url Free Standards Group;https://en.wikipedia.org/wiki/Free_Standards_Group}
+- {url Managing User Accounts;https://docstore.mik.ua/orelly/linux/run/ch05_07.htm} from {url Running Linux, Third Edition;https://docstore.mik.ua/orelly/linux/run/index.htm} by Matt Welsh, Matthias Kalle Dalheimer, and Lar Kaufman
+- {url The BIOS/MBR Boot Process;https://neosmart.net/wiki/mbr-boot-process/} by {url NeoSmart's Knowledgebase;https://wiki.neosmart.net/}
# Licensing
.p
-Images on slides "2.1. shell" and "2.2. UNIX-style file system" are made by me and [url /license.html licensed as content].\n
-The script [url http://syndamia.com/talks/linuxgraphy-by-strabo/mll-set.sh mll-set.sh] is licensed under MIT (though I don't see it as substatial enough to be licensed under anything).
+Images on slides "2.1. shell" and "2.2. UNIX-style file system" are made by me and {url licensed as content;/license.html}.\n
+The script {url mll-set.sh;http://syndamia.com/talks/linuxgraphy-by-strabo/mll-set.sh} is licensed under MIT (though I don't see it as substatial enough to be licensed under anything).