Compare commits
2 Commits
e537501f34
...
ca27fcc030
Author | SHA1 | Date | |
---|---|---|---|
ca27fcc030 | |||
01fcf0ad07 |
33
homepage
33
homepage
@ -525,6 +525,39 @@ 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
|
||||
|
16
niceties/weisu
Executable file
16
niceties/weisu
Executable file
@ -0,0 +1,16 @@
|
||||
#!/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 \
|
||||
"$@"
|
Loading…
Reference in New Issue
Block a user