251 的魔法实验室

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

也就是 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...

最近在弄 openEuler 的 texlive 升级工作, 看到了它们有自己的 perl bot,并且 texlive 的升级需要的几个 perl 包的 PR 毫无动静,故打算自己提个 PR.

遇到的最大困难其实是网络问题,这里有一个小坑.

cpan shell 是不吃系统变量 http_proxyhttps_proxy 的.但是可以使用 o conf http_proxy,坑来啦!

必须要这么填写:

o conf http_proxy http://192.168.251.187:8444

不能这么填写:

o conf http_proxy 192.168.251.187:8444

否则会遇到这个错误:

Fetching with HTTP::Tiny:
https://cpan.org/authors/id/O/OA/OALDERS/HTTP-Cookies-6.10.tar.gz
Error downloading with HTTP::Tiny: generic proxy URL must be in format http[s]://[auth@]<host>:<port>/
 at /usr/share/perl5/vendor_perl/CPAN/HTTP/Client.pm line 35.

设置之后记得 o conf commit 保存一下,否则是临时的修改.

如果想跳过每次安装时询问代理的用户名和密码,可以使用 export PERL_MM_USE_DEFAULT=1 这个命令解决. 或者好好使用 o conf init /proxy/ 来完整过一遍代理的设置.


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

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

阅读更多

更多的目的是给自己备份一下过程,下次搬家就简单了。

阅读更多

包括 EAC3、tmdb 相关

阅读更多