Skip to content

Commit

Permalink
update 2024年 03月 25日 星期一 00:31:47 CST
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrysisa committed Mar 24, 2024
1 parent 97d7f8d commit a521761
Show file tree
Hide file tree
Showing 40 changed files with 264 additions and 192 deletions.
10 changes: 10 additions & 0 deletions content/posts/operating-systems/deepin20.9.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,16 @@ $ rustup update

个人偏向于使用 nightly toolchain

## tldr

> The tldr-pages project is a collection of community-maintained help pages for command-line tools, that aims to be a simpler, more approachable complement to traditional man pages.
安装 tldr:

```bash
$ sudo apt install tldr
```

## 效果展示

{{< image src="/images/tools/deepin-terminal-vim.png" caption="Deepin Terminial Vim" >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,26 +50,46 @@ repost:

<!--more-->

[2022 年的 OS 课程](https://jyywiki.cn/OS/2022/index.html) 作为主线学习,辅以 [2023 年课程](https://jyywiki.cn/OS/2023/index.html)[2024 年课程](https://jyywiki.cn/OS/2024/index.html) 的内容加以补充、扩展。
---

## 操作系统概述 (为什么要学操作系统)
时隔一年,在跟随 B 站 up 主 [@踌躇月光](https://space.bilibili.com/491131440/) 从零编写一个基于 x86 架构的内核 [Txics](https://github.com/vanJker/TXOS) 后,终于可以跟得上 [@绿导师](https://space.bilibili.com/202224425) 的课程了 :rofl: 这次以 [2022 年的 OS 课程](https://jyywiki.cn/OS/2022/index.html) 作为主线学习,辅以 [2023 年课程](https://jyywiki.cn/OS/2023/index.html)[2024 年课程](https://jyywiki.cn/OS/2024/index.html) 的内容加以补充、扩展。

一个 Talk 的经典三段式结构: Why? What? How? (这个真是汇报的大杀器 :rofl:)
{{< image src="https://jyywiki.cn/pages/OS/img/tux-source.jpg" >}}

## 操作系统概述 (为什么要学操作系统)

### 1950s 的计算机
{{< link href="https://www.bilibili.com/video/BV1Cm4y1d7Ur/" content="直播录影" external-icon=true >}}
|
{{< link href="https://jyywiki.cn/OS/2022/slides/1.slides.html" content="讲义页面" external-icon=true >}}
|
{{< link href="https://jyywiki.cn/OS/2022/notes/1.html" content="阅读材料" external-icon=true >}}

I/O 设备的速度已经严重低于处理器的速度,中断机制出现 (1953)
---

一个 Talk 的经典三段式结构: Why? What? How? (这个真是汇报的大杀器 :rofl:)

希望使用计算机的人越来越多;希望调用 API 而不是直接访问设备
1950s 的计算机
- I/O 设备的速度已经严重低于处理器的速度,中断机制出现 (1953)
- 希望使用计算机的人越来越多;希望调用 API 而不是直接访问设备
- 批处理系统 = 程序的自动切换 (换卡) + 库函数 API
- 操作系统中开始出现 *设备**文件**任务* 等对象和 API

“批处理系统” = 程序的自动切换 (换卡) + 库函数 API
1960s 的计算机
- 可以同时载入多个程序而不用 “换卡” 了
- 能载入多个程序到内存且灵活调度它们的管理程序,包括程序可以调用的 API
- 既然操作系统已经可以在程序之间切换,为什么不让它们定时切换呢?

操作系统中开始出现 “设备”、“文件”、“任务” 等对象和 API
操作系统机制出现和发展的原因,不需要死记硬背,这些机制都是应需求而诞生、发展的,非常的自然。

### 1960s 的计算机
实验环境:

可以同时载入多个程序而不用 “换卡” 了
```bash
$ uname -a
Linux cai-PC 5.15.77-amd64-desktop #2 SMP Thu Jun 15 16:06:18 CST 2023 x86_64 GNU/Linux
```

能载入多个程序到内存且灵活调度它们的管理程序,包括程序可以调用的 API
安装 tldr:

既然操作系统已经可以在程序之间切换,为什么不让它们定时切换呢?
```bash
$ sudo apt install tldr
```
4 changes: 2 additions & 2 deletions content/posts/operating-systems/openeuler-riscv-qemu.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ $ echo $?

## Neofetch

根据 [neofetch wiki](https://github.com/dylanaraps/neofetch/wiki/Installation#latest-git-master-bleeding-edge) 从 git 拉取最新数据进行构建:
由于工作内容是对软件包进行: 编译 -> 失败 -> 定位问题 -> 修复 -> 重新编译,所以我们倾向于直接从源码编译,根据 [neofetch wiki](https://github.com/dylanaraps/neofetch/wiki/Installation#latest-git-master-bleeding-edge) 从 git 拉取最新数据进行构建:

```bash
$ git clone https://github.com/dylanaraps/neofetch
Expand All @@ -306,7 +306,7 @@ $ neofetch

{{< image src="/images/oerv/openEuler-RISC-V-neofetch.png" >}}

## OBS/OSC
## Open Build Service (OBS)

OBS 的 Package 中 _service 配置文件,revision 字段是对应与 Git 仓库的 commit id (如果你使用的 Source Code Management (SCM) 方式是 Git 托管的话)

Expand Down
4 changes: 2 additions & 2 deletions docs/categories/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ <h3 class="card-item-title">
</h3><article class="archive-item">
<a href="/posts/rust-tcp/" class="archive-item-link">Impl Rust: TCP/IP</a>
</article><article class="archive-item">
<a href="/posts/nthu-computer-network/" class="archive-item-link">清大计算机网络 重点提示</a>
<a href="/posts/nthu-computer-network/" class="archive-item-link">国立清华大学 计算机网络概论 重点提示</a>
</article><article class="archive-item">
<a href="/posts/network/" class="archive-item-link">计算机网络学习指引</a>
</article></div>
Expand Down Expand Up @@ -270,7 +270,7 @@ <h3 class="card-item-title">
Mathematics&nbsp;<sup>2</sup>
</a>
</h3><article class="archive-item">
<a href="/posts/nycu-statistics/" class="archive-item-link">交大统计学 重点提示</a>
<a href="/posts/nycu-statistics/" class="archive-item-link">国立阳明交通大学 统计学 重点提示</a>
</article><article class="archive-item">
<a href="/posts/math/" class="archive-item-link">数学开放式课程学习指引</a>
</article></div>
Expand Down
2 changes: 1 addition & 1 deletion docs/categories/mathematics/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
<div id="search-dropdown-mobile"></div>
</div><main class="container"><div class="page archive"><h2 class="single-title animate__animated animate__pulse animate__faster"><i class="fa-regular fa-folder-open fa-fw" aria-hidden="true"></i>
Mathematics&nbsp;<sup>2</sup></h2><h3 class="group-title">2024</h3><article class="archive-item">
<a href="/posts/nycu-statistics/" class="archive-item-link">交大统计学 重点提示</a>
<a href="/posts/nycu-statistics/" class="archive-item-link">国立阳明交通大学 统计学 重点提示</a>
<span class="archive-item-date" title='2024-01-20 17:20:09'>01-20</span>
</article><h3 class="group-title">2023</h3><article class="archive-item">
<a href="/posts/math/" class="archive-item-link">数学开放式课程学习指引</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/categories/mathematics/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<description>Mathematics - 分类 - KZnight&#39;s Blog</description>
<generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>[email protected] (ccrysisa)</managingEditor>
<webMaster>[email protected] (ccrysisa)</webMaster><lastBuildDate>Sat, 20 Jan 2024 17:20:09 &#43;0800</lastBuildDate><atom:link href="https://ccrysisa.github.io/categories/mathematics/" rel="self" type="application/rss+xml" /><item>
<title>交大统计学 重点提示</title>
<title>国立阳明交通大学 统计学 重点提示</title>
<link>https://ccrysisa.github.io/posts/nycu-statistics/</link>
<pubDate>Sat, 20 Jan 2024 17:20:09 &#43;0800</pubDate>
<author>ccrysisa</author>
Expand Down
2 changes: 1 addition & 1 deletion docs/categories/network/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
<a href="/posts/rust-tcp/" class="archive-item-link">Impl Rust: TCP/IP</a>
<span class="archive-item-date" title='2024-02-17 19:01:53'>02-17</span>
</article><article class="archive-item">
<a href="/posts/nthu-computer-network/" class="archive-item-link">清大计算机网络 重点提示</a>
<a href="/posts/nthu-computer-network/" class="archive-item-link">国立清华大学 计算机网络概论 重点提示</a>
<span class="archive-item-date" title='2024-01-14 12:09:38'>01-14</span>
</article><article class="archive-item">
<a href="/posts/network/" class="archive-item-link">计算机网络学习指引</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/categories/network/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</blockquote>]]></description>
</item>
<item>
<title>清大计算机网络 重点提示</title>
<title>国立清华大学 计算机网络概论 重点提示</title>
<link>https://ccrysisa.github.io/posts/nthu-computer-network/</link>
<pubDate>Sun, 14 Jan 2024 12:09:38 &#43;0800</pubDate>
<author>ccrysisa</author>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/page/5/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
<a href="/posts/deepin-dragonos/">阅读全文</a><div class="post-tags"><i class="fa-solid fa-tags fa-fw me-1" aria-hidden="true"></i><a href='/tags/deepin/' class="post-tag">Deepin</a><a href='/tags/linux/' class="post-tag">Linux</a><a href='/tags/dragonos/' class="post-tag">DragonOS</a></div></div>
</article>
<article class="single summary" itemscope itemtype="http://schema.org/Article"><h1 class="single-title" itemprop="name headline">
<span title="转载" class="icon-repost"><i class="fa-solid fa-share fa-fw" aria-hidden="true"></i></span><a href="/posts/nycu-statistics/">交大统计学 重点提示</a>
<span title="转载" class="icon-repost"><i class="fa-solid fa-share fa-fw" aria-hidden="true"></i></span><a href="/posts/nycu-statistics/">国立阳明交通大学 统计学 重点提示</a>
</h1><div class="post-meta"><span class="post-author"><a href="https://github.com/vanJker" title="作者"target="_blank" rel="external nofollow noopener noreferrer author" class="author"><img loading="lazy" src="https://avatars.githubusercontent.com/u/88960102?s=96&amp;v=4" data-title="vanJker" data-alt="vanJker" class="avatar" style="background: url(/svg/loading.min.svg) no-repeat center;" onload="this.title=this.dataset.title;this.alt=this.dataset.alt;for(const i of ['style', 'data-title','data-alt','onerror','onload']){this.removeAttribute(i);}this.dataset.lazyloaded='';" onerror="this.title=this.dataset.title;this.alt=this.dataset.alt;for(const i of ['style', 'data-title','data-alt','onerror','onload']){this.removeAttribute(i);}"/>&nbsp;vanJker</a></span>&nbsp;<span class="post-publish" title='2024-01-20 17:20:09'>发布于 <time datetime="2024-01-20">2024-01-20</time></span>&nbsp;<span class="post-category">收录于 <a href="/categories/mathematics/"><i class="fa-regular fa-folder fa-fw" aria-hidden="true"></i> Mathematics</a></span></div><div class="content"><p>随机变量 (Random Variable) 是概率 (Probability) 和统计 (Statistics) 的“灵魂”,从数学上讲,Random Variable 是连接 Probability 和 Statistics 的桥梁;从实际上讲,Random Variable 表示我们所关心、期望的东西。例如一批产品的硬度,每个产品的硬度显然是不同的、是随机的,尽管硬度是随机的,但产品的硬度遵循一定的概率规律,这种随机、但却遵循一定概率规律的东西,就是 Random Value。</p></div><div class="post-footer">
<a href="/posts/nycu-statistics/">阅读全文</a><div class="post-tags"><i class="fa-solid fa-tags fa-fw me-1" aria-hidden="true"></i><a href='/tags/mathematics/' class="post-tag">Mathematics</a><a href='/tags/statistics/' class="post-tag">Statistics</a><a href='/tags/probility/' class="post-tag">Probility</a><a href='/tags/random-variable/' class="post-tag">Random Variable</a></div></div>
</article>
Expand Down
2 changes: 1 addition & 1 deletion docs/page/6/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
<a href="/posts/c-pointer/">阅读全文</a><div class="post-tags"><i class="fa-solid fa-tags fa-fw me-1" aria-hidden="true"></i><a href='/tags/sysprog/' class="post-tag">Sysprog</a><a href='/tags/c/' class="post-tag">C</a><a href='/tags/pointer/' class="post-tag">Pointer</a></div></div>
</article>
<article class="single summary" itemscope itemtype="http://schema.org/Article"><h1 class="single-title" itemprop="name headline">
<span title="转载" class="icon-repost"><i class="fa-solid fa-share fa-fw" aria-hidden="true"></i></span><a href="/posts/nthu-computer-network/">清大计算机网络 重点提示</a>
<span title="转载" class="icon-repost"><i class="fa-solid fa-share fa-fw" aria-hidden="true"></i></span><a href="/posts/nthu-computer-network/">国立清华大学 计算机网络概论 重点提示</a>
</h1><div class="post-meta"><span class="post-author"><a href="https://github.com/vanJker" title="作者"target="_blank" rel="external nofollow noopener noreferrer author" class="author"><img loading="lazy" src="https://avatars.githubusercontent.com/u/88960102?s=96&amp;v=4" data-title="vanJker" data-alt="vanJker" class="avatar" style="background: url(/svg/loading.min.svg) no-repeat center;" onload="this.title=this.dataset.title;this.alt=this.dataset.alt;for(const i of ['style', 'data-title','data-alt','onerror','onload']){this.removeAttribute(i);}this.dataset.lazyloaded='';" onerror="this.title=this.dataset.title;this.alt=this.dataset.alt;for(const i of ['style', 'data-title','data-alt','onerror','onload']){this.removeAttribute(i);}"/>&nbsp;vanJker</a></span>&nbsp;<span class="post-publish" title='2024-01-14 12:09:38'>发布于 <time datetime="2024-01-14">2024-01-14</time></span>&nbsp;<span class="post-category">收录于 <a href="/categories/network/"><i class="fa-regular fa-folder fa-fw" aria-hidden="true"></i> Network</a></span></div><div class="content"><p>之前学校的计网理论课学得云里雾里,对于物理层和数据链路层并没有清晰的逻辑框架,而这学期的计网课设内容为数据链路层和网络层的相关内容,写起来还是云里雾里。虽然最终艰难地把课设水过去了,但是个人认为网络对于 CSer 非常重要,特别是在互联网行业,网络知识是必不可少的。
所以决定寒假重学计网,于是在 <a href="https://hackmd.io/"target="_blank" rel="external nofollow noopener noreferrer">HackMD</a> 上冲浪寻找相关资料。然后发现了这篇笔记 <a href="https://hackmd.io/@0xff07/network/https%3A%2F%2Fhackmd.io%2F%400xff07%2FByADDQ57Y"target="_blank" rel="external nofollow noopener noreferrer">110-1 計算機網路 (清大開放式課程)</a>,里面提到清大计网主要介绍 L2 ~ L4 一些著名的协议和算法,这完美符合个人的需求,而且该笔记还补充了一些额外的内容,例如 IPv6,所以当即决定搭配这篇笔记来学习清大的计算机网络概论。</p></div><div class="post-footer">
<a href="/posts/nthu-computer-network/">阅读全文</a><div class="post-tags"><i class="fa-solid fa-tags fa-fw me-1" aria-hidden="true"></i><a href='/tags/network/' class="post-tag">Network</a></div></div>
Expand Down
Loading

0 comments on commit a521761

Please sign in to comment.