diff --git a/3.编程思维体系构建/3.Y.1Linux概念普及.md b/3.编程思维体系构建/3.Y.1Linux概念普及.md index 25a572c..80203d0 100644 --- a/3.编程思维体系构建/3.Y.1Linux概念普及.md +++ b/3.编程思维体系构建/3.Y.1Linux概念普及.md @@ -127,7 +127,7 @@ user@computer:~$ pwd Linux 在设计之初就是一个多用户操作系统,不像潜伏在多用户操作系统里面的纯正单用户操作系统 Windows。 -![](./static/windows-single-user.jpeg) +![](https://cdn.xyxsw.site/windows-single-user.jpeg) 因此,Linux 对于用户和权限的管理比较严格,可能经常要你输 root 密码。 diff --git a/3.编程思维体系构建/3.Y.2双系统安装和发行版推荐.md b/3.编程思维体系构建/3.Y.2双系统安装和发行版推荐.md index 49f5186..00117f6 100644 --- a/3.编程思维体系构建/3.Y.2双系统安装和发行版推荐.md +++ b/3.编程思维体系构建/3.Y.2双系统安装和发行版推荐.md @@ -56,7 +56,7 @@ Mint 对很多需要打命令的操作都做了 GUI,这样新手更容易使用 如果有 Windows 存在的情况下,Mint 可以自动选择一个最大的分区,让你划出一定大小的空间用来安装。如果你分了很多盘,你可以在 Windows 下提前使用 Diskgenius 之类的分区软件整理你的分区,把剩余空间集中到一个盘上面,好让 Mint 自动缩小你想要缩小的盘,而不是手动指定。操作页面就像这样。 -![mint windows size](./static/mint-windows-size.png) +![mint windows size](https://cdn.xyxsw.site/mint-windows-size.png) ##### 安装 @@ -64,53 +64,53 @@ Mint 对很多需要打命令的操作都做了 GUI,这样新手更容易使用 首先要启动到 U 盘,这个请自行查阅你们的电脑的启动方法。如果成功,你就可以看到这个页面。按下回车,耐心等待,就可以进入安装页面了。在这个页面按下回车。 -![boot](./static/mint-install-1.png) +![boot](https://cdn.xyxsw.site/mint-install-1.png) 不久就进入这个页面。打开左上角的安装程序可以进行安装。如果使用 Ventoy 让你 umount 什么点确定就可以了。 -![live](./static/mint-install-2.png) +![live](https://cdn.xyxsw.site/mint-install-2.png) 建议使用英文进行安装,以后自己手动设置中文,这样配置不容易出错。所以这里点击 Continue 就行 -![language](./static/mint-install-3.png) +![language](https://cdn.xyxsw.site/mint-install-3.png) continue -![keyboard](./static/mint-install-4.png) +![keyboard](https://cdn.xyxsw.site/mint-install-4.png) 勾选,然后 continue. 这样 mp4 一类的格式就可以默认正常打开。 -![multimedia](./static/mint-install-5.png) +![multimedia](https://cdn.xyxsw.site/mint-install-5.png) 由于我这里是虚拟机,只有清空磁盘的选项。你们如果已经有 Windows 的机子可以选择 install alongside Windows。 -![install type](./static/mint-install-6.png) +![install type](https://cdn.xyxsw.site/mint-install-6.png) 在地图上找到中国,点击。 -![location](./static/mint-install-7.png) +![location](https://cdn.xyxsw.site/mint-install-7.png) 输入你的用户名和密码。密码建议别太简单,以后如果要跑公网服务给打烂了就不好了。这里的密码就是反面教材,字典两分钟打爆的那种。 -![user](./static/mint-install-8.png) +![user](https://cdn.xyxsw.site/mint-install-8.png) 等待安装。 -![installing](./static/mint-install-9.png) +![installing](https://cdn.xyxsw.site/mint-install-9.png) 你可以查看安装程序的输出。 -![still installing](./static/mint-install-10.png) +![still installing](https://cdn.xyxsw.site/mint-install-10.png) 准备重启。 -![install complete](./static/mint-install-11.png) +![install complete](https://cdn.xyxsw.site/mint-install-11.png) ##### 配置 第一次启动。可以看到画风还是很贴近 Windows 的。 -![first boot](./static/mint-install-12.png) +![first boot](https://cdn.xyxsw.site/mint-install-12.png) 默认使用的软件源在国外,下载很慢,我们要换成国内源。 @@ -118,75 +118,75 @@ Linux Mint 的很多操作都是有对应的软件的的,非常方便。通过 在左下角搜索 software sources, 进入换源页面。其他软件也可以用这样的方式打开。 -![software source](./static/mint-install-13.png) +![software source](https://cdn.xyxsw.site/mint-install-13.png) 输入密码。 -![opening](./static/mint-install-14.png) +![opening](https://cdn.xyxsw.site/mint-install-14.png) 分别将 Main 和 Base 的源都换成国内源。我这里换成中科大的源,你们也可以换其他的。 -![initial source](./static/mint-install-15.png) +![initial source](https://cdn.xyxsw.site/mint-install-15.png) 换源的页面长这样,可以点击选择,然后 右下角 Apply 即可 -![select mirror](./static/mint-install-16.png) +![select mirror](https://cdn.xyxsw.site/mint-install-16.png) 这里选 Main 的源。 -![USTC](./static/mint-install-17.png) +![USTC](https://cdn.xyxsw.site/mint-install-17.png) Base 的源。 -![next mirror](./static/mint-install-18.png) +![next mirror](https://cdn.xyxsw.site/mint-install-18.png) 可以看到源换好了,按下 OK 就可以保存更改。 -![mirror](./static/mint-install-19.png) +![mirror](https://cdn.xyxsw.site/mint-install-19.png) 接下来就是安装输入法。打开 Synaptic 包管理器,这是一个 apt 的 GUI 页面,比较适合新手。点开 Search, 输入 fcitx5,搜索。 -![install fcitx5](./static/mint-install-20.png) +![install fcitx5](https://cdn.xyxsw.site/mint-install-20.png) 勾选 fcitx5, 在弹出的窗口点击确定。然后勾选 fcitx5-chinese-addons。因为 fcitx5 只是一个框架,输入法在 fcitx5-chinese-addons 里面,所以两个都要安装。 点击左上方的 Apply 就可以安装了。 -![select fcitx5 and install](./static/mint-install-21.png) +![select fcitx5 and install](https://cdn.xyxsw.site/mint-install-21.png) 安装完成之后,打开 input method,将输入法从 none 切换到 fcitx5, 保存。 -![change input method](./static/mint-install-22.png) +![change input method](https://cdn.xyxsw.site/mint-install-22.png) 现在已经切换成功了。 -![fcitx5](./static/mint-install-23.png) +![fcitx5](https://cdn.xyxsw.site/mint-install-23.png) 打开 Fcitx5 Configuration,在右侧的可用输入法页面中搜索 Pinyin,选中,点击两个分页面中间的左箭头即可添加 pinyin 到 fcitx5. 然后点击下方 Apply 即可。 -![add pinyin](./static/mint-install-24.png) +![add pinyin](https://cdn.xyxsw.site/mint-install-24.png) 可以点击 Global Options 的标签页来修改快捷键。 -![global options](./static/mint-install-25.png) +![global options](https://cdn.xyxsw.site/mint-install-25.png) 下一步,在 Language Settings 里面修改当前的语言为中文。 -![langauge settings](./static/mint-install-26.png) +![langauge settings](https://cdn.xyxsw.site/mint-install-26.png) 如果你是 Nvidia 显卡,现在可以打开 Driver Manager 安装 Nvidia 的驱动。我因为是虚拟机截不到图。建议 40 系显卡使用 525 版本的驱动,而不是他的推荐的 535,亲测崩溃。 -![setting up driver](./static/mint-install-27.png) +![setting up driver](https://cdn.xyxsw.site/mint-install-27.png) 这些都完成了就可以重启了。重启之后会问你要不要更新路径,选择保留就的名称(Keep Old Names).这很重要,如果你不想在 bash 中 cd 来 cd 去的时候切换输入法的话。 -![next boot](./static/mint-install-28.png) +![next boot](https://cdn.xyxsw.site/mint-install-28.png) -![fcitx5 font size](./static/mint-install-29.png) +![fcitx5 font size](https://cdn.xyxsw.site/mint-install-29.png) -![flatpak change mirror](./static/mint-install-30.png) +![flatpak change mirror](https://cdn.xyxsw.site/mint-install-30.png) -![boot](./static/mint-install-31.png) +![boot](https://cdn.xyxsw.site/mint-install-31.png) 剩下就是一些安装后常用的操作了。Mint 默认自带 Flatpak,所以也不需要手动安装了。 @@ -206,7 +206,7 @@ wiki 已有安装教程,我就不自己写了。 打开 Software Update(软件与更新),修改 ppa,从 `http://ppa.launchpad.net` 换成 `https://launchpad.proxy.ustclug.org`。这是为了后面安装 Firefox 做准备 -![](./static/ubuntu-ppa.png) +![](https://cdn.xyxsw.site/ubuntu-ppa.png) 关闭这个窗口,打开终端,输入 @@ -289,29 +289,29 @@ distrowatch 上面排名挺高,但是结合发行版实际情况感觉很有 安装过程如图。 -![](./static/manjaro-1.png) +![](https://cdn.xyxsw.site/manjaro-1.png) -![](./static/manjaro-2.png) +![](https://cdn.xyxsw.site/manjaro-2.png) -![](./static/manjaro-3.png) +![](https://cdn.xyxsw.site/manjaro-3.png) -![](./static/manjaro-4.png) +![](https://cdn.xyxsw.site/manjaro-4.png) -![](./static/manjaro-5.png) +![](https://cdn.xyxsw.site/manjaro-5.png) 这里要留意一下 -![](./static/manjaro-6.png) +![](https://cdn.xyxsw.site/manjaro-6.png) 如果有 Windows 这么选 -![](./static/manjaro-install-alongside.png) +![](https://cdn.xyxsw.site/manjaro-install-alongside.png) -![](./static/manjaro-7.png) +![](https://cdn.xyxsw.site/manjaro-7.png) -![](./static/manjaro-8.png) +![](https://cdn.xyxsw.site/manjaro-8.png) -![](./static/manjaro-9.png) +![](https://cdn.xyxsw.site/manjaro-9.png) 安装完成,重启。 @@ -344,13 +344,13 @@ Deepin 的本土化做的很不错,支持一些国内常用的软件。 反正不是给我们用的。毕竟 root 权限还要注册他们的账号登陆,没绷住。 -![](./static/uos-3.png) +![](https://cdn.xyxsw.site/uos-3.png) -![](./static/uos-4.png) +![](https://cdn.xyxsw.site/uos-4.png) 顺便说下我至今没找到 UOS 的源码,只看到[一篇干巴巴的新闻](https://www.zgswcn.com/article/202212/202212211344581036.html)声称“开源了开源了真的在开源了”。也就欺负 Linux Foundation 不打跨国官司。本来不想挂人的,但是[如果 UOS 用户就这素质](https://bbs.chinauos.com/post/7543)我真忍不了: -![troll](./static/uos-troll.png) +![troll](https://cdn.xyxsw.site/uos-troll.png) ## Advanced(Debian, Arch Linux, etc.) @@ -374,47 +374,47 @@ Debian 的兼容性非常优秀,在其他发行版挂掉的情况下面都能 首先是祖传的选择系统。直接回车。 -![](./static/debian-live-1.png) +![](https://cdn.xyxsw.site/debian-live-1.png) 进来之后是不是很懵?哪里有 Install 呢?多半因为打包的志愿者忘了放快捷方式,自己左下角菜单点出来就好了。 -![](./static/debian-live-2.png) +![](https://cdn.xyxsw.site/debian-live-2.png) 这样点出来。 -![](./static/debian-live-3.png) +![](https://cdn.xyxsw.site/debian-live-3.png) 还要输入密码,密码也没告诉你。我去网上搜了一下,这个密码是 `live`。 -![](./static/debian-live-4.png) +![](https://cdn.xyxsw.site/debian-live-4.png) 这样就打开了安装页面了。一路下一步吧。 -![](./static/debian-live-5.png) +![](https://cdn.xyxsw.site/debian-live-5.png) -![](./static/debian-live-6.png) +![](https://cdn.xyxsw.site/debian-live-6.png) -![](./static/debian-live-7.png) +![](https://cdn.xyxsw.site/debian-live-7.png) 到这里,我们需要选择安装方式。我这里是虚拟机,只能看到 Erase disk 这个选项。如果有是 Windows 会出现别的选项。 -![](./static/debian-live-8.png) +![](https://cdn.xyxsw.site/debian-live-8.png) 在已经有 Windows 安装好的情况下面是这样的。 -![](./static/debian-live-alongside.png) +![](https://cdn.xyxsw.site/debian-live-alongside.png) 用户名和密码 -![](./static/debian-live-9.png) +![](https://cdn.xyxsw.site/debian-live-9.png) 双系统的用户在这一页面检查一下,别把 Windows 干掉了。 -![](./static/debian-live-10.png) +![](https://cdn.xyxsw.site/debian-live-10.png) 重启吧。 -![](./static/debian-live-11.png) +![](https://cdn.xyxsw.site/debian-live-11.png) #### 传统安装 @@ -468,11 +468,11 @@ flatpak install flathub io.github.<不知道是谁>.<猫头>_for_windows Gnome 会弹出一个窗口,全勾起来保存就行。 -![sources.list](./static/sources.png) +![sources.list](https://cdn.xyxsw.site/sources.png) KDE 会用 Kate 打开它,每行都加上 `non-free contrib`,保存,Over. -![sources.list](./static/debian-kde-source.png) +![sources.list](https://cdn.xyxsw.site/debian-kde-source.png) 接下来打开命令行,执行: @@ -487,69 +487,69 @@ sudo apt install nvidia-driver firmware-misc-nonfree 安装完大概是这样的。 -![](./static/debian-live-12.png) +![](https://cdn.xyxsw.site/debian-live-12.png) 打开 input method,修改输入法。注意不要开错了。 -![](./static/debian-live-13.png) +![](https://cdn.xyxsw.site/debian-live-13.png) OK -![](./static/debian-live-14.png) +![](https://cdn.xyxsw.site/debian-live-14.png) YES -![](./static/debian-live-15.png) +![](https://cdn.xyxsw.site/debian-live-15.png) 选中 fcitx5 -![](./static/debian-live-16.png) +![](https://cdn.xyxsw.site/debian-live-16.png) OK -![](./static/debian-live-17.png) +![](https://cdn.xyxsw.site/debian-live-17.png) 打开 Fcitx 5 的设置。 -![](./static/debian-live-18.png) +![](https://cdn.xyxsw.site/debian-live-18.png) 现在还没自动运行。平时也可以在这里启动设置。 -![](./static/debian-live-19.png) +![](https://cdn.xyxsw.site/debian-live-19.png) 点击右下角 Add Input Method -![](./static/debian-live-20.png) +![](https://cdn.xyxsw.site/debian-live-20.png) 搜索 Pinyin,选中,Add。 -![](./static/debian-live-21.png) +![](https://cdn.xyxsw.site/debian-live-21.png) 默认的字体非常小,建议更改。点击 Configure addons,因为 UI 属于 Addon。至于快捷键可以在另一个设置里面改。 -![](./static/debian-live-22.png) +![](https://cdn.xyxsw.site/debian-live-22.png) 设置 Classic User Interface -![](./static/debian-live-23.png) +![](https://cdn.xyxsw.site/debian-live-23.png) 这里可以更改字体。 -![](./static/debian-live-24.png) +![](https://cdn.xyxsw.site/debian-live-24.png) 然后就能使用了。 -![](./static/debian-live-25.png) +![](https://cdn.xyxsw.site/debian-live-25.png) 可以更改 Language 为中文了。 -![](./static/debian-live-26.png) +![](https://cdn.xyxsw.site/debian-live-26.png) Flathub 上面的软件可以通过 KDE 自带的 Discover 应用中心安装。 这里我们看到 flatpak 已经启用了。 -![](./static/debian-live-27.png) +![](https://cdn.xyxsw.site/debian-live-27.png) ##### Gnome @@ -557,13 +557,13 @@ Gnome 开箱状态就是残废,本来应该是官方做的事情,结果 Gnom Gnome 一上来就让你改语言,改中文就行,然后一路下一步。下次重启可能会问你是否更改文件名称,选择否。 -![](./static/debian-live-gnome1.png) +![](https://cdn.xyxsw.site/debian-live-gnome1.png) 然后按下 Win 键进入菜单,呼出 Terminal, 安装一些插件。 -![](./static/debian-live-gnome2.png) +![](https://cdn.xyxsw.site/debian-live-gnome2.png) -![](./static/debian-live-gnome3.png) +![](https://cdn.xyxsw.site/debian-live-gnome3.png) ```bash sudo apt install gnome-shell-extension-dashtodock gnome-shell-extension-desktop-icons-ng gnome-shell-extension-kimpanel @@ -571,25 +571,25 @@ sudo apt install gnome-shell-extension-dashtodock gnome-shell-extension-desktop- 我们之前已经装好 fcitx5, 所以这里启用就行。 -![](./static/debian-live-gnome4.png) +![](https://cdn.xyxsw.site/debian-live-gnome4.png) -![](./static/debian-live-gnome5.png) +![](https://cdn.xyxsw.site/debian-live-gnome5.png) 一切完成,重启。 -![](./static/debian-live-gnome6.png) +![](https://cdn.xyxsw.site/debian-live-gnome6.png) 打开 Extension,启用任务栏,桌面图标和输入法面板的拓展。 -![](./static/debian-live-gnome10.png) +![](https://cdn.xyxsw.site/debian-live-gnome10.png) -![](./static/debian-live-gnome7.png) +![](https://cdn.xyxsw.site/debian-live-gnome7.png) 打开 tweaks, 启用最大化和最小化按钮。当然 2k 屏幕也可以改改缩放。 -![](./static/debian-live-gnome8.png) +![](https://cdn.xyxsw.site/debian-live-gnome8.png) -![](./static/debian-live-gnome9.png) +![](https://cdn.xyxsw.site/debian-live-gnome9.png) 差不多能用了,剩下可以自己折腾。