1
0

Compare commits

..

No commits in common. "ca27fcc0302319d9285e4a5299aa3e121deb7177" and "e537501f34f134e5008cf120cef25ab4f400725e" have entirely different histories.

2 changed files with 0 additions and 49 deletions

View File

@ -525,39 +525,6 @@ pre { /* DRY who? */
}
/blah/2024-05-15.html
: emulating windows xp on a raspberry pi
https://computernewb.com/wiki/QEMU/Guests/Windows_XP
I'm going to assume you have qemu installed, and the binaries
qemu-system-x86_64 and qemu-img in your PATH, and a Windows XP x64 installation
disc image as winxp.iso.
$ qemu-img create -f qcow2 winxp.img 20G
This will make a qcow2 disk image for qemu. It grows as Windows writes to it so
you don't have to be miserly with your bytes. I will not come close to filling
20GB. On my machine the created file is 196K.
$ qemu-system-x86_64 \
-m 1G \
-device VGA,vgamem_mb=64 \
-cpu qemu64 \
-M pc \
-netdev user,id=lan \
-device rtl8139,netdev=lan \
-usb \
-device usb-tablet \
-rtc base=localtime \
-monitor stdio \
-cdrom winxp.iso \
-hda winxp.img
Have fun.
/blah/2024-05-09.html
: poetry i wrote while high at work

View File

@ -1,16 +0,0 @@
#!/bin/sh
set -x
# https://unix.stackexchange.com/a/709811
if test -n "$SUDO"
then command -v doas \
&& SUDO=doas \
|| SUDO=sudo
fi
exec $SUDO env \
WAYLAND_DISPLAY="$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY" \
XDG_RUNTIME_DIR=/user/run/0 \
"$@"