I know it’s not directly Debian, but…
I’m currently running a Zorin 17 x86_64 vm (in virtualbox, windows 11 host), which uses wayland.
In it i have a Debian 9 stretch aarch64 chroot, which comes with X.
I’d like to test the GUI app i compiled in that chroot, how is that feasible?
For reference, this is how i setup initially:
$ sudo apt install debootstrap qemu-user-static
$ sudo mkdir -p /opt/deb9/sysroot && sudo chown -R myuser:myuser /opt/deb9
$ sudo /usr/sbin/debootstrap --arch=arm64 --foreign --variant=minbase stretch /opt/deb9/sysroot http://archive.debian.org/debian-archive/debian/
$ sudo cp /usr/bin/qemu-aarch64-static /opt/deb9/sysroot/usr/bin/
$ sudo chroot /opt/deb9/sysroot qemu-aarch64-static /bin/bash
# /debootstrap/debootstrap --second-stage
# echo 'APT::Install-Recommends "0";' >> /etc/apt/apt.conf.d/99noExtras
# echo 'APT::Install-Suggests "0";' >> /etc/apt/apt.conf.d/99noExtras
# echo 'deb http://archive.debian.org/debian-archive/debian/ stretch main contrib' > /etc/apt/sources.list
# echo 'deb-src http://archive.debian.org/debian-archive/debian/ stretch main contrib' >> /etc/apt/sources.list
# uname -nm | sed -e 's/ /-/' > /etc/debian_chroot
# apt update
# apt install -y g++ make cmake automake autoconf libtool git vim pax-utils tree
# adduser myuser
$ su myuser
> do stuff
Network isn’t really configured so any git push or similar is done outside the chroot.
Sure, don’t run X in the chroot, instead bind the socket for XWayland inside the chroot.
As long as the socket is available, and the environment variables are set, the app will be none the wiser.
If you want run your app in Wayland, you could use waypipe. Similarly you’ll want to bind the socket into the chroot.