From d3dd743e79c19e354c07b1081a6e8c4644a442d8 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Tue, 1 Apr 2025 23:44:50 +0800 Subject: feat(www): update. --- www/content/notes/cheat-sheet.md | 14 ++++ www/content/notes/cheat-sheet/_index.md | 4 - www/content/notes/cheat-sheet/index.md | 14 ---- www/content/notes/hurd.md | 133 ++++++++++++++++++++++++++++++++ www/content/notes/hurd/_index.md | 4 - www/content/notes/hurd/index.md | 119 ---------------------------- 6 files changed, 147 insertions(+), 141 deletions(-) create mode 100644 www/content/notes/cheat-sheet.md delete mode 100644 www/content/notes/cheat-sheet/_index.md delete mode 100644 www/content/notes/cheat-sheet/index.md create mode 100644 www/content/notes/hurd.md delete mode 100644 www/content/notes/hurd/_index.md delete mode 100644 www/content/notes/hurd/index.md (limited to 'www/content/notes') diff --git a/www/content/notes/cheat-sheet.md b/www/content/notes/cheat-sheet.md new file mode 100644 index 0000000..efb3b35 --- /dev/null +++ b/www/content/notes/cheat-sheet.md @@ -0,0 +1,14 @@ +--- +title: "Cheat Sheet" +date: 2025-04-01T23:09:53+08:00 +lastmod: 2025-04-01T23:09:53+08:00 +--- + +Update GRUB after `grub` package is updated. Replace `/boot` with your mount +point of the EFI partition in `--efi-directory=/boot`. Replace `GRUB` with your +bootloader id in `--bootloader-id=GRUB`. + +```bash-session +grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB +grub-mkconfig -o /boot/grub/grub.cfg +``` diff --git a/www/content/notes/cheat-sheet/_index.md b/www/content/notes/cheat-sheet/_index.md deleted file mode 100644 index ff72c3d..0000000 --- a/www/content/notes/cheat-sheet/_index.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -title: "Cheat Sheet" ---- - diff --git a/www/content/notes/cheat-sheet/index.md b/www/content/notes/cheat-sheet/index.md deleted file mode 100644 index efb3b35..0000000 --- a/www/content/notes/cheat-sheet/index.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -title: "Cheat Sheet" -date: 2025-04-01T23:09:53+08:00 -lastmod: 2025-04-01T23:09:53+08:00 ---- - -Update GRUB after `grub` package is updated. Replace `/boot` with your mount -point of the EFI partition in `--efi-directory=/boot`. Replace `GRUB` with your -bootloader id in `--bootloader-id=GRUB`. - -```bash-session -grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB -grub-mkconfig -o /boot/grub/grub.cfg -``` diff --git a/www/content/notes/hurd.md b/www/content/notes/hurd.md new file mode 100644 index 0000000..67b8df9 --- /dev/null +++ b/www/content/notes/hurd.md @@ -0,0 +1,133 @@ +--- +title: "Hurd" +date: 2025-03-03T15:34:41+08:00 +lastmod: 2025-03-03T23:28:46+08:00 +--- + +{{< mono >}} + +[TODOS](/notes/hurd/todos) + +{{< /mono >}} + +## links + +{{< mono >}} + +| name | link | +| --- | --- | +| kernel-list-archive | | +| debian-list-archive | | +| irc-archive | | +| kernel-home | | +| debian-home | | + +{{< /mono >}} + +refs: + +{{< mono >}} + +| name | link | +| --- | --- | +| c | | +| posix latest | | +| posix 2013 | | +| posix 2008 | | +| glibc | | + +{{< /mono >}} + +## *_MAX patch + +See [this](posts/c-func-ext.md) + +## git repos + +Clone all at once: + +```sh +# glibc is too big, so not clone here. +for repo in hurd gnumach mig web; do + if [ ! -d $repo ]; then + git clone "https://crupest.life/git/hurd/$repo.git" + pushd $repo + git remote add upstream "https://git.savannah.gnu.org/git/hurd/$repo.git" + popd + fi +done +``` + +{{< link-group >}} +hurd +cru: +upstream: +debian: +{{< /link-group >}} + +{{< link-group >}} +gnumach +cru: +upstream: +debian: +{{< /link-group >}} + +{{< link-group >}} +mig +cru: +upstream: +debian: +{{< /link-group >}} + +{{< link-group >}} +glibc +cru: +upstream: +debian: +mirror: +{{< /link-group >}} + +{{< link-group >}} +web +cru: +upstream: +{{< /link-group >}} + +## cheatsheet + +Start qemu + +```sh +qemu-system-x86_64 -enable-kvm -m 4G \ + -net nic -net user,hostfwd=tcp::3222-:22 \ + -vga vmware -drive cache=writeback,file=[...] +``` + +Configure/Setup network + +```sh +settrans -fgap /servers/socket/2 /hurd/pfinet \ + -i /dev/eth0 -a 10.0.2.15 -g 10.0.2.2 -m 255.255.255.0 +fsysopts /servers/socket/2 /hurd/pfinet \ + -i /dev/eth0 -a 10.0.2.15 -g 10.0.2.2 -m 255.255.255.0 +fsysopts /server/socket/2 -a 10.0.2.15 -g 10.0.2.2 -m 255.255.255.0 +``` + +Setup apt + +```sh +apt-get --allow-unauthenticated --allow-insecure-repositories update +apt-get --allow-unauthenticated upgrade +``` + +## mailing lists / irc + +{{< mono >}} + +| name | address | +| --- | --- | +| hurd | | +| debian | | +| irc | librechat #hurd | + +{{< /mono >}} diff --git a/www/content/notes/hurd/_index.md b/www/content/notes/hurd/_index.md deleted file mode 100644 index 3c031e1..0000000 --- a/www/content/notes/hurd/_index.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -title: "Hurd" ---- - diff --git a/www/content/notes/hurd/index.md b/www/content/notes/hurd/index.md deleted file mode 100644 index c48ed86..0000000 --- a/www/content/notes/hurd/index.md +++ /dev/null @@ -1,119 +0,0 @@ ---- -title: "Hurd" -date: 2025-03-03T15:34:41+08:00 -lastmod: 2025-03-03T23:28:46+08:00 ---- - -{{< mono >}} - -[TODOS](/notes/hurd/todos) - -{{< /mono >}} - -## links - -{{< mono >}} - -| name | link | -| --- | --- | -| kernel-list-archive | | -| debian-list-archive | | -| irc-archive | | -| kernel-home | | -| debian-home | | - -{{< /mono >}} - -refs: - -{{< mono >}} - -| name | link | -| --- | --- | -| c | | -| posix latest | | -| posix 2013 | | -| posix 2008 | | -| glibc | | - -{{< /mono >}} - -## *_MAX patch - -See [this](posts/c-func-ext.md) - -## git repos - -{{< link-group >}} -hurd -cru: -upstream: -debian: -{{< /link-group >}} - -{{< link-group >}} -gnumach -cru: -upstream: -debian: -{{< /link-group >}} - -{{< link-group >}} -mig -cru: -upstream: -debian: -{{< /link-group >}} - -{{< link-group >}} -glibc -cru: -upstream: -debian: -mirror: -{{< /link-group >}} - -{{< link-group >}} -web -cru: -upstream: -{{< /link-group >}} - -## cheatsheet - -Start qemu - -```sh -qemu-system-x86_64 -enable-kvm -m 4G \ - -net nic -net user,hostfwd=tcp::3222-:22 \ - -vga vmware -drive cache=writeback,file=[...] -``` - -Configure/Setup network - -```sh -settrans -fgap /servers/socket/2 /hurd/pfinet \ - -i /dev/eth0 -a 10.0.2.15 -g 10.0.2.2 -m 255.255.255.0 -fsysopts /servers/socket/2 /hurd/pfinet \ - -i /dev/eth0 -a 10.0.2.15 -g 10.0.2.2 -m 255.255.255.0 -fsysopts /server/socket/2 -a 10.0.2.15 -g 10.0.2.2 -m 255.255.255.0 -``` - -Setup apt - -```sh -apt-get --allow-unauthenticated --allow-insecure-repositories update -apt-get --allow-unauthenticated upgrade -``` - -## mailing lists / irc - -{{< mono >}} - -| name | address | -| --- | --- | -| hurd | | -| debian | | -| irc | librechat #hurd | - -{{< /mono >}} -- cgit v1.2.3