Skip to content

Instantly share code, notes, and snippets.

@rezamarzban
Last active January 13, 2023 20:31
Show Gist options
  • Save rezamarzban/e4bdbca167c68649deb46d140eac8ca5 to your computer and use it in GitHub Desktop.
Save rezamarzban/e4bdbca167c68649deb46d140eac8ca5 to your computer and use it in GitHub Desktop.
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
@rezamarzban
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment