Compare commits

..

2 commits

Author SHA1 Message Date
Hippolyte Chauvin
c6e878e9d4 glurp : erreur nom de la variable XDG_RUNTIME_DIR 2023-12-01 22:28:43 +01:00
Hippolyte Chauvin
89ac27367f qemush : mise à jour les scripts de lancement de machines virtuelles 2023-12-01 22:22:25 +01:00
4 changed files with 6 additions and 5 deletions

View file

@ -66,7 +66,7 @@ case "$1" in
grim_args+=(-)
;;
file)
grim_args+=("$(screenshot_path "${XDG_RUN_TIME_DIR:-/tmp/$(whoami)}/screenshots")")
grim_args+=("$(screenshot_path "${XDG_RUNTIME_DIR:-/tmp/$(whoami)}/screenshots")")
;;
*)
false

View file

@ -1,6 +1,7 @@
#!/bin/sh -ex
#!/bin/sh -x
qemu-system-x86_64 \
-enable-kvm \
-M q35 \
-cpu host -smp "$(("$(nproc)" / 2))" \
-m "$(("$(free | awk '($1 == "Mem:") { print $2 }')" / 2))K" \
-net nic \

View file

@ -4,7 +4,7 @@ exec qemu-system-x86_64 \
-M q35 \
-cpu host -smp "$(("$(nproc)" / 2))" \
-m "$(("$(free | grep '^Mem:\s' | awk '{ print $NF }')" / 2))K" \
-device ich9-intel-hda -device hda-duplex \
-netdev user,id=net0 -device e1000,netdev=net0 \
-device e1000,netdev=net0 \
-device nec-usb-xhci,id=xhci \
-device ich9-intel-hda -device hda-duplex \
"$@"

View file

@ -1,4 +1,4 @@
#!/bin/sh -ex
exec redox \
-vga qxl -spice port=5900,addr=127.0.0.1,disable-ticketing=on \
-vga qxl -spice port="$(first-free-port 5900)",addr=127.0.0.1,disable-ticketing=on \
"$@"