33.4 antiX Linux Jail
Prepare the Base System
# pkg install squashfs-tools# Download the antiX 23.2 Core ISO image
# fetch https://mirrors.tuna.tsinghua.edu.cn/mxlinux-isos/ANTIX/Final/antiX-23.2/antiX-23.2_x64-core.iso
# Mount the ISO file as a memory device
# mdconfig -a -t vnode -f antiX-23.2_x64-core.iso
# Mount the memory device to /mnt with type cd9660
# mount -t cd9660 /dev/md0 /mnt
# Create the antiX Jail root directory
# mkdir -p /usr/jails/antix
# Extract the squashfs filesystem to the Jail root directory
# unsquashfs -d /usr/jails/antix /mnt/antiX/linuxfs
# Create necessary device nodes
# touch /usr/jails/antix/dev/fd
# touch /usr/jails/antix/dev/shm
# Clean up: unmount the ISO mount point and destroy the md device
# umount /mnt
# mdconfig -d -u 0Configure Mount Files
Manage the Jail Configuration File
Allow Network Access
Update the antiX Linux System
Last updated