I installed debian with
On FreeBSD I did, since long ago, I do not remember why:
And then, on FreeBSD, before any new chroot:
I installed xterm, but I get:
Any clue?
# pkg install debootstrap
# mkdir /compat/debian
# kldload linux64
# debootstrap bullseye /compat/debian http://deb.debian.org/debian/
# chroot /compat/debian /bin/bash
.. Work as in debian ..
# mkdir /home/deb
# useradd deb
# apt-get update
# apt-get install man
# apt-get install gnupg
On FreeBSD I did, since long ago, I do not remember why:
cd /compat/debian/lib64/
mv ld-linux-x86-64.so.2 ld-linux-x86-64.so.2-UR
ln -s ../lib/x86_64-linux-gnu/ld-2.31.so /compat/debian/lib64/ld-linux-x86-64.so.2
And then, on FreeBSD, before any new chroot:
kldload linux64
sysctl compat.linux.emul_path=/compat/debian
mount -t devfs devfs /compat/debian/dev/
mount -t tmpfs tmpfs /compat/debian/dev/shm/
mount -t fdescfs -o linrdlnk null /compat/debian/dev/fd
mount -t linprocfs linprocfs /compat/debian/proc/
mount -t linsysfs linsysfs /compat/debian/sys/
chroot /compat/debian /bin/bash
I installed xterm, but I get:
root# xterm
Warning: locale not supported by C library, locale unchanged
xterm: Error 32, errno 2: No such file or directory
Reason: get_pty: not enough ptys
Any clue?