mirror of https://github.com/Nofated095/blog
20210701
This commit is contained in:
parent
6e383bc039
commit
eca7e685cd
|
@ -1 +1 @@
|
||||||
Subproject commit b5601e5a83408c31771279e4bf257bb07341074c
|
Subproject commit fb89b9aceac1228703b50057e21ad3a375460c5b
|
|
@ -289,19 +289,6 @@ plugins:
|
||||||
id:
|
id:
|
||||||
# CNZZ website id
|
# CNZZ website id
|
||||||
web_id:
|
web_id:
|
||||||
# Alerting users about the use of cookies
|
|
||||||
# https://www.osano.com/cookieconsent/
|
|
||||||
cookie_consent:
|
|
||||||
# The compliance type. Can be "info", "opt-in", or "opt-out"
|
|
||||||
type: info
|
|
||||||
# Theme of the popup. Can be "block", "edgeless", or "classic"
|
|
||||||
theme: edgeless
|
|
||||||
# Whether the popup should stay static regardless of the page scrolls
|
|
||||||
static: false
|
|
||||||
# Where on the screen the consent popup should display
|
|
||||||
position: bottom-left
|
|
||||||
# URL to your site's cookie policy
|
|
||||||
policyLink: 'https://www.cookiesandyou.com/'
|
|
||||||
# Enable the lightGallery and Justified Gallery plugins
|
# Enable the lightGallery and Justified Gallery plugins
|
||||||
gallery: true
|
gallery: true
|
||||||
# Google Analytics plugin settings
|
# Google Analytics plugin settings
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Ubuntu To Go 制作教程
|
title: Ubuntu To Go 制作教程
|
||||||
date: 2021-05-05 06:31:04
|
date: 2021-07-01 18:37:04
|
||||||
cover: https://assets.ubuntu.com/v1/9d42b2ab-3B-embedded-linux_AW.svg
|
cover: https://assets.ubuntu.com/v1/9d42b2ab-3B-embedded-linux_AW.svg
|
||||||
tags:
|
tags:
|
||||||
- Ubuntu
|
- Ubuntu
|
||||||
|
@ -110,9 +110,11 @@ mount --options bind /run /mnt/run
|
||||||
chroot /mnt
|
chroot /mnt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
``` bash 安装 grub-efi
|
||||||
|
apt-get install grub-efi
|
||||||
```
|
```
|
||||||
root@ubuntu:/# apt-get install grub-efi
|
|
||||||
|
|
||||||
|
``` bash 报错
|
||||||
正在读取软件包列表...
|
正在读取软件包列表...
|
||||||
完成正在分析软件包的依赖关系树
|
完成正在分析软件包的依赖关系树
|
||||||
正在读取状态信息... 完成
|
正在读取状态信息... 完成
|
||||||
|
@ -122,4 +124,48 @@ grub-efi :
|
||||||
依赖: grub-common (= 2.04-1ubuntu26.2) 但是 2.04-1ubuntu26.8 正要被安装
|
依赖: grub-common (= 2.04-1ubuntu26.2) 但是 2.04-1ubuntu26.8 正要被安装
|
||||||
依赖: grub-efi-amd64 (= 2.04-1ubuntu26.2) 但是它将不会被安装
|
依赖: grub-efi-amd64 (= 2.04-1ubuntu26.2) 但是它将不会被安装
|
||||||
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
|
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
|
||||||
```
|
```
|
||||||
|
>如上,我在安装 `grub-efi` 时发生了报错,其实这个问题很好解决
|
||||||
|
|
||||||
|
``` bash BASH
|
||||||
|
sudo apt-get purge grub-common
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get upgrade
|
||||||
|
sudo apt-get install grub-efi
|
||||||
|
```
|
||||||
|
通过这个指令一般可以解决依赖关系的问题。
|
||||||
|
``` bash 换源
|
||||||
|
cp /etc/apt/sources.list /etc/apt/sources.list.bak
|
||||||
|
sed -i 's/archive.ubuntu.com/mirrors.163.com/g' /etc/apt/sources.list
|
||||||
|
# 你需要根据你的时区来更换 archive.ubuntu.com,比如中国的时区是 cn.archive.ubuntu.com
|
||||||
|
```
|
||||||
|
|
||||||
|
``` bash 安装引导
|
||||||
|
grub-install --target=x86_64-efi --boot-directory=/boot/efi --efi-directory=/boot/efi --removable
|
||||||
|
```
|
||||||
|
|
||||||
|
``` bash 退出 chroot
|
||||||
|
umount /proc
|
||||||
|
umount /dev
|
||||||
|
umount /sys
|
||||||
|
umount /run
|
||||||
|
sync
|
||||||
|
exit
|
||||||
|
```
|
||||||
|
|
||||||
|
``` 复制配置文件
|
||||||
|
cp '/mnt/boot/grub/grub.cfg' '/mnt/boot/efi/grub'
|
||||||
|
```
|
||||||
|
重启即可看到,已经引导到 Ubuntu To Go 启动而不是光驱了。你可以再次关机,更改虚拟机设置中的启动模式设置项来分别测试在 Legacy BIOS 和 EFI 下的运行情况。你也可以关闭物理机,然后在 BIOS 中将第一启动设备设为 Ubuntu To Go 系统盘,即可在实体机上运行 Ubuntu To Go 系统盘中的 Ubuntu。
|
||||||
|
|
||||||
|
>大功告成!欢迎使用 Ubuntu To Go!拔下你的 U 盘,插到其他电脑上试试吧!
|
||||||
|
|
||||||
|
![](https://pic.rmb.bdstatic.com/bjh/0218be0cd19f61fd98644c28a272dd6a.png)
|
||||||
|
|
||||||
|
## 一些小问题
|
||||||
|
|
||||||
|
有的同志说开机之后执行了 `sudo apt-get upgrade` 导致重启后无法开机。我判断是 vmlinuz 更新导致了问题
|
||||||
|
|
||||||
|
![开机后在这个页面按 e 键](https://pic.rmb.bdstatic.com/bjh/ac1c5579734fff0b15598a108786f6cc.png)
|
||||||
|
|
||||||
|
![将这两个文件名命名为 /boot 下对应的文件名](https://pic.rmb.bdstatic.com/bjh/3c9de21f40ecd6724826fec1cf318669.png)
|
|
@ -9,11 +9,46 @@ date: 2007-06-09 00:00:00
|
||||||
|
|
||||||
## 关于博客
|
## 关于博客
|
||||||
|
|
||||||
眼前的这个不起眼的小博客大致始于 2019 年年末到 2020 年年初。历经了很多次改版。原定的是一个基于 WordPress 的软件资源站或者开源镜像站。但是后来认清事实后还是老老实实用了静态页面+Pages。最开始使用 Gridea 进行写作,但最终因为没有我喜欢的主题并且我不会构建重新写的 Gridea,我最终选择了 Hexo + Icarus 进行写作并沿用至今。一般这个博客用来记录一些我在网络上学会的或者自己总结的一些东西。偶尔也会记录一些生活上学习上的故事。
|
眼前的这个不起眼的小博客大致始于 2019 年年末到 2020 年年初。历经了很多次改版。原定的是一个基于 WordPress 的软件资源站或者开源镜像站。但是后来认清事实后还是老老实实用了静态页面+Pages。目前最早可以追溯到 **2020-05-07** 最开始使用 Gridea 进行写作,但最终因为没有我喜欢的主题并且我不会构建重新写的 Gridea,我最终选择了 Hexo + Icarus 进行写作并沿用至今。一般这个博客用来记录一些我在网络上学会的或者自己总结的一些东西。偶尔也会记录一些生活上学习上的故事。
|
||||||
|
|
||||||
2020年年末时由于种种原因,原先写博客的电脑坏了,虽然文件没有丢失,但是我没有给博客的源文件做备份,我也暂时碰不到它,于是在2021年初的寒假,我开始着手进行博客的重写恢复工作。这期间一开始使用一台 Samsung Galaxy S6,但又因为这个手机后来也坏了,我没备份,我就又用 Ubuntu To Go 和我爸爸原来的老电脑重新写博客。现在,博客的主力军主要徘徊在原先写博客的电脑和一个 Windows To Go。毕竟 Ubuntu 等 Linux 系的系统我没有办法驾驭地很好。
|
2020年年末时由于种种原因,原先写博客的电脑坏了,虽然文件没有丢失,但是我没有给博客的源文件做备份,我也暂时碰不到它,于是在2021年初的寒假,我开始着手进行博客的重写恢复工作。这期间一开始使用一台 Samsung Galaxy S6,但又因为这个手机后来也坏了,我没备份,我就又用 Ubuntu To Go 和我爸爸原来的老电脑重新写博客。现在,博客的主力军主要徘徊在原先写博客的电脑和一个 Windows To Go。毕竟 Ubuntu 等 Linux 系的系统我没有办法驾驭地很好。
|
||||||
|
|
||||||
目前博客有两个域名 https://nofated095.github.io 和 http://nofated.gitee.io 这两个站点分别架设在国际的 Github Pages 和国内的 Gitee Pages上。虽然说我一直很想去给自己找一个域名,可奈何不了域名都很贵,而且申请域名的繁杂步骤让我很烦,目前以 Gitee Pages 为主力军,我尽量将部署在 Github 上的博客尽可能做一些加速。
|
目前博客有两个域名 https://nofated095.github.io 和 http://nofated.gitee.io 这两个站点分别架设在国际的 Github Pages 和国内的 Gitee Pages上。虽然说我一直很想去给自己找一个域名,可奈何不了域名都很贵,而且申请域名的繁杂步骤让我很烦,目前以 Github Pages 为主力军。
|
||||||
|
|
||||||
|
### 最早的一篇文章
|
||||||
|
``` markdown guo-chan-cao-zuo-xi-tong-deepin-shi-wan.md
|
||||||
|
---
|
||||||
|
title: '国产操作系统 Deepin 11.15 试玩'
|
||||||
|
date: 2020-05-07 08:38:18
|
||||||
|
tags: [Deepin 系列]
|
||||||
|
published: false
|
||||||
|
hideInList: false
|
||||||
|
feature:
|
||||||
|
isTop: false
|
||||||
|
---
|
||||||
|
>其实很早以前就已经听说 Deepin 操作系统的大名了。在很多镜像站里都能看到。但是我已知就用 Ubuntu 和 CentOS ,以为这是最好的两个 Linux 操作系统。
|
||||||
|
|
||||||
|
本来就是想下载 Deepin 玩玩,但是后来它真的给我了非常巨大的惊喜
|
||||||
|
|
||||||
|
## Deepin 的优点
|
||||||
|
- UI效果炸裂
|
||||||
|
![UI](https://static.oschina.net/uploads/space/2017/1115/183335_Dqpi_2720166.png)
|
||||||
|
- 我觉得设计师用心了,非常好看,堪比我的垃圾 macOS
|
||||||
|
- 流畅度很高
|
||||||
|
- 1.4 GB + 单核CPU = 虚拟机鼠标滑动60帧
|
||||||
|
- 安装
|
||||||
|
- Ubuntu 有几次安装失败,不知道是什么原因
|
||||||
|
- 我是拿 15.11 测试的,没问题
|
||||||
|
- 软件
|
||||||
|
- Deepin 对第三方软件支持很好
|
||||||
|
|
||||||
|
## Deepin 的缺点
|
||||||
|
- 根据一些人的说法,Deepin 对一些硬件的支持还待加强
|
||||||
|
- Deepin 的bug多「但是我没测试出来」
|
||||||
|
- Deepin 适合开发,但不适合当服务器,因为它安装就必须有UI和WPS全家桶
|
||||||
|
|
||||||
|
我觉得可能 Deepin 很快就会成为我最喜欢的 Linux 操作系统了。
|
||||||
|
```
|
||||||
|
|
||||||
## 关于我
|
## 关于我
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,11 @@ date: 2020-10-01 00:00:00
|
||||||
|
|
||||||
## 我喜欢的音乐
|
## 我喜欢的音乐
|
||||||
|
|
||||||
{% meting "5299711328" "netease" "playlist" %}
|
{% meting "6836867274" "netease" "playlist" %}
|
||||||
|
|
||||||
## 随便收藏的歌
|
## 随便收藏的歌
|
||||||
|
|
||||||
{% meting "2893951019" "netease" "playlist" %}
|
{% meting "6836862300" "netease" "playlist" %}
|
||||||
|
|
||||||
## 来玩游戏啊awa
|
## 来玩游戏啊awa
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue