this post was submitted on 11 Apr 2025
2 points (100.0% liked)

Debian operating system

3161 readers
1 users here now

Debian is a free operating system (OS) for your computer. An operating system is the set of basic programs and utilities that make your computer run. Debian provides more than a pure OS: it comes with over 59000 packages, precompiled software bundled up in a nice format for easy installation on your machine.

founded 6 years ago
MODERATORS
 

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.

top 3 comments
sorted by: hot top controversial new old
[–] wildbus8979@sh.itjust.works 4 points 9 months ago* (last edited 9 months ago)

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.

[–] iThreepwood@social.vivaldi.net -3 points 9 months ago (1 children)

@0x0 why would anyone use a deprecated, outdated and unsupported version of Debian?

[–] 0x0@lemmy.zip 3 points 9 months ago

Perhaps to support a customer's specific hardware.