251 的魔法实验室

您要的页面找不到了,但我们不能停止斗争。

Update(2023-12-11): 更新第 5 代,补了第 3 代的图。

记录一下我的 homelab 2023 改变了什么,顺便这里面整合了一篇去年写的草稿(因为太短就没有发布)。

阅读更多

其实是因为自己重装系统次数过多所以想自己记录一下。以及好久没有写博客了。

阅读更多

结果别的坑没有填先来填这个了。警告一下,这里面的图超级多。

阅读更多

简短的个人经验记录 (Update: 2023-07-05)

阅读更多

也就是 3D Pinball Space Cadet

阅读更多

多图预警。

国产信创(信息技术应用创新产业)产品究竟怎么样?

阅读更多

R.I.P. MU5735, 徐州铁链女

差不多一年前写下了 2021 的总结,是时候写 2022 年的总结了!

阅读更多

示例于 Ubuntu 22.04 LTS 上. 对于中国大陆的小伙伴来说,所有的 github.com 可以用 kgithub.com 代替.

Step 01: 准备 osc 编译环境

sudo apt install python3-rpm rpm
git clone https://github.com/openSUSE/osc.git
cd osc
chmod +x setup.py
./setup.py build
sudo ./setup.py install
git clone https://github.com/openSUSE/obs-build.git
cd obs-build
sudo make install

Step 02: 编译 QEMU

中国大陆用户编译 QEMU 可以用 curl https://mirrors.tuna.tsinghua.edu.cn/git/qemu/qemu.sh | bash 这个脚本来一键 clone.

apt install ninja-build pkg-config libglib2.0-dev
git clone https://github.com/qemu/qemu.git
cd qemu
./configure \
  --static \
  --enable-attr \
  --enable-tcg \
  --enable-linux-user \
  --target-list=riscv64-linux-user \
  --without-default-devices \
  --without-default-features \
  --disable-install-blobs \
  --disable-debug-info \
  --disable-debug-tcg \
  --disable-debug-mutex
make -j$(nproc)
sudo make install
sudo apt install zstd systemd-container
sudo ./scripts/qemu-binfmt-conf.sh --persistent yes --credential yes --systemd riscv64
sudo systemctl restart systemd-binfmt

Step 03: 大功告成

最后就是编译时间!

osc build 22.09 riscv64 --vm-type=nspawn

不要忘记把 osc 的设置内容写入 .config/osc/oscrc 下!


如果喜欢本文,欢迎点击下方的「鼓掌」按钮!

如果上面没有加载出任何东西,可以点击这里

示例于 Ubuntu 22.04 LTS 上. 对于中国大陆的小伙伴来说,所有的 github.com 可以用 kgithub.com 代替.

阅读更多

很简单的一个解决方法就是了,用不到拷贝文件。

Read more...