Does anyone run Linux desktop apps that require several shared libraries (such as gtk) on FreeBSD? If so, how do you do it? (Linuxulator, Linux jail, VM?)

Background: I'm trying to run the Linux binary for Zotero because the ports are for an old version. But it has lots of libraries that in turn need lots of shared libraries.
I did try to use debootstrap to install a Debian system and install libraries via chroot, but the lack of systemd prevented library installation.

#freebsd #BSD #zotero

So far I've been able to:

1) bootstrap a Ubuntu jammy system to /compat/ubuntu

2) update sysctl compat.linux.emul_path=/compat/ubuntu

3) chroot into /compat/ubuntu to
a) create a user with the same id as my FreeBSD user
b) install dependencies (e.g. libgtk)

4) fix ELF interpreter /lib64/ld-linux-x86-64.so.2 not found, error 2

# cd /compat/ubuntu/lib64/
# rm ./ld-linux-x86-64.so.2
# ln -s ../lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 ld-linux-x86-64.so.2

5) install the Zotero standalone binaries into the chrooted user's home directory

I know that I am able to call the executable from the host by running /compat/ubuntu/home/brendan/Zotero_linux-x86_64/zotero-bin, but then I get some firefox dbus errors.

So, I'm getting closer...

#bsd #runbsd #zotero #freebsd