Last active
January 13, 2023 20:31
-
-
Save rezamarzban/e4bdbca167c68649deb46d140eac8ca5 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
unset LD_PRELOAD | |
command="proot" | |
command+=" --link2symlink" | |
command+=" -0" | |
#archurl="arm64" | |
#wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Rootfs/Ubuntu/${archurl}/ubuntu-rootfs-${archurl}.tar.xz | |
#mkdir ubuntu-fs && proot --link2symlink tar -xJf ubuntu-rootfs-${archurl}.tar.xz -C ubuntu-fs | |
command+=" -r ubuntu-fs" | |
command+=" -b /dev" | |
command+=" -b /proc" | |
command+=" -b ubuntu-fs/root:/dev/shm" | |
#command+=" -b $HOME:/root" | |
#command+=" -b /sdcard" | |
command+=" -w /root" | |
command+=" /usr/bin/env -i" | |
command+=" HOME=/root" | |
command+=" PATH=/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/games:/usr/local/games" | |
command+=" TERM=$TERM" | |
command+=" LANG=C.UTF-8" | |
command+=" /bin/bash --login" | |
exec $command |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bootstrap extracted folder from "http://cdimage.ubuntu.com/ubuntu-base/releases/18.04/release/ubuntu-base-18.04.5-base-arm64.tar.gz" before proot