Berrylium0078's Blog

Berrylium0078's Blog

Arch Linux 安装记
发表于2025-09-29
前言 本文假设读者已充分阅读过安装指南,重复内容不再赘述。 本文假设读者具有 Linux 基础,熟悉终端操作。 本文假设电脑引导模式为 64 位 x64 UEFI,具备 Intel CPU。 本文使用 GRUB 引导,BTRFS 文件系统,使用 NetworkManager 连接互联网,图形界面为 SDDM + KDE Plasma 桌面,输入法管理 fcitx5,声音管理使用 pipewire。 基础安装 获取安装镜像 逃课:Arch Linux GUI 准备安装介质 强推 Ventoy 联网 个人建议连网线,或者通过数据线连接手机并在手机里开启 USB 网络共享(安卓大概都支持)。 分区并挂载 文件系统选择 笔者使用过 ext4 和 btrfs。 - ext4 更加成熟稳定。 - btrfs 支持快照和数据校验等多种高级功能,并且 CoW 机制能保证数据一致性。(注:请确保硬件可靠,据说 btrfs 数据恢复比较困难) - 如果希望创建额外数据分区用于多系统互通,使用 (ex)FAT 或 NTFS(仅与 Windows 互通) 设计分区方案 将 EFI 分区挂载于 /efi...
C 调试工具使用小记
发表于2025-09-26
从文档里摘抄一些比较有用的 gdb 12gdb [options] [executable-file [core-file or process-id]]gdb [options] --args executable-file [inferior-arguments ...] 以下为常用命令的用法: break 12345678910111213break [LOCATION] [thread THREADNUM] [if CONDITION]LOCATION may be a linespec, address.Linespecs are colon-separated lists of location parameters, such assource filename, function name, label name, and line number.Example: To specify the start of a label named "the_top" in thefunction "fact" in the file...
ssh 使用小记
发表于2025-09-10|linux
创建密钥对 由于远程主机需要确认所要执行的命令确实发自你,需要进行签名,详见 Digital signature - Wikipedia 1ssh-keygen [-t ed25519 | rsa] [-C comment] [-f keyfile] 其中 -t 参数指定加密算法,常见的有 ed25519 和 rsa,更推荐前者因为可以用更短的密钥长度获得相同加密强度。 个人习惯将密钥对存放在 ~/.ssh,命名 id_${algorithm}-${hostname}。 例如,在 ~/.ssh 目录下创建 keyfile 和 keyfile.pub 文件,分别对应私钥和公钥,可以通过命令: 1ssh-keygen -t ed25519 -f ~/.ssh/keyfile 在创建过程中会让你输入 passphrase(可选),这个是用来加密私钥的,可以多一层防护。 将公钥 keyfile.pub 追加到远程主机 hostname 的 ~/.ssh/authorized_keys 文件(或者,云服务器管理面板应该有导入密钥界面)。 hostna...
Some Tips Collection for Arch Linux
发表于2025-07-26
Remove spam log info from acpid /etc/acpi/events/buttons12event=button/.*action=<drop>
Hello World
发表于2025-07-20|build site
Welcome to Hexo! This is your very first post.
Test Page for Math Fomulas
发表于2025-07-20|build site
This blog uses MathJax v3.2 as math display engine. This page tests macro definition, equation labeling, and the physics extension pack
Test Page for Pandoc's Markdown
发表于2025-07-20|build site
This page test functionality of pandoc flavored markdown syntax, including fancy ordered lists, grid tables, footnotes, etc.
Arch Linux 下 Btrfs 使用小记
发表于2025-05-13|Linux
BTRFS 介绍 官网链接 {B|Bug}-TRee File System 是一个支持{写时复制|Copy on Write}、子卷快照、数据校验、透明压缩等多种高级功能的现代文件系统。 - 写时复制 - 修改不是原地覆盖,而是先写入到空白区域,再修改指针,可保证数据一致性。 - 支持{快速复制|reflink},简单来说就是副本之间尽量共用数据块,通过 CoW 机制只需额外存储改动部分。 - 可以避免对统一区域的反复写入,对闪存友好。 - 快照和子卷地位相当,也可以修改和创建快照。有人认为将其称作“分支”更加贴切。 - 数据校验可以发现 silent corruption 等数据损坏。 - 发现损坏时,会尝试用通过校验的备份修复,失败则报告 IO 错误。 - 默认配置中,数据只存一份,元数据复制两份1。 - 重要数据需要在其他设备上备份2。 - 透明压缩: - 通过牺牲一定的 CPU 时间,减少实际写入硬盘的数据,提高存储容量与 IO 速度。 - 文件系统内部行为,用户无感。 - 顾名思义,该文件系统使用数据结构 B 树维护元数据。 - 为了支持其先进的快照功能,实际使用的是...
avatar
Berrylium0078
文章
8
标签
7
分类
3
Follow Me
最新文章
Arch Linux 安装记2025-09-29
C 调试工具使用小记2025-09-26
ssh 使用小记2025-09-10
Some Tips Collection for Arch Linux2025-07-26
Hello World2025-07-20
分类
  • Linux1
  • build site3
  • linux1
标签
snapper linux btrfs grub-btrfs ssh swap hibernation
归档
  • 九月 2025 3
  • 七月 2025 4
  • 五月 2025 1
网站信息
文章数目 :
8
最后更新时间 :
© 2025 By Berrylium0078框架 Hexo 7.3.0|主题 Butterfly 5.5.0