Last active
July 11, 2023 02:51
-
-
Save paigeadelethompson/ad522225c4c4f7dc1bfb2b7d93e4b03d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[General] | |
cleanup=true | |
noauth=false | |
unpack=true | |
bootstrap=Debian | |
aptsources=Debian | |
[Debian] | |
packages=wine wine32 | |
source=http://deb.debian.org/debian | |
keyring=debian-archive-keyring | |
suite=stable | |
components=main contrib non-free |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@debian:/home/linux/i386-debian/bin# cat /proc/sys/fs/binfmt_misc/i386 | |
enabled | |
interpreter /usr/bin/qemu-i386-static | |
flags: | |
offset 0 | |
magic 7f454c46010000000000000000000000020003 | |
mask fffffffffffefefffffffffffffffffffbffff | |
root@debian:/home/linux/i386-debian/bin# which /usr/bin/qemu-i386-static/usr/bin/qemu-i386-static | |
root@debian:/home/linux/i386-debian/bin# echo "7f454c46010000000000000000000000020003" | wc -c | |
39 | |
root@debian:/home/linux/i386-debian/bin# xxd -p ls | head -c 39 | |
7f454c460101010000000000000000000300030root@debian:/home/linux/i386-debian/bin# xxd -p ls | head -c 39 | wc -c | |
39 | |
root@debian:/home/linux/i386-debian/bin# echo ':i386:M::\x7fELF\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x03:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff:/usr/bin/qemu-i386-static:' > /proc/sys/fs/binfmt_misc/register | |
root@debian:/home/linux/i386-debian# chroot . /bin/bash | |
I have no name!@debian:/# | |
I have no name!@debian:/# ls | |
bin boot dev etc home lib lib64 proc root run sbin sys tmp usr var | |
I have no name!@debian:/# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo ':i386:M::\x7fELF\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x03:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff:/usr/bin/qemu-i386-static:' > /proc/sys/fs/binfmt_misc/register | |
multistrap -a i386 -f multistrap.conf -d i386-debian | |
cp /usr/bin/qemu-i386-static i386-debian/usr/bin/qemu-i386-static | |
cd i386-debian | |
tar -cvf - . | docker import - wine:i386 | |
xhost + | |
docker run -it --rm -v /media/psf/MS_Agent:/MS_Agent -v /tmp:/tmp -e "DISPLAY=:0" 4696f2c1bb45 /bin/bash |
Author
paigeadelethompson
commented
Jul 11, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment