-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.sh
More file actions
31 lines (25 loc) · 799 Bytes
/
script.sh
File metadata and controls
31 lines (25 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
case `dpkg --print-architecture` in
aarch64) pegar="arm64"
;;
arm) pegar="armhf"
;;
i*86) pegar="i386"
;;
x86_64) pegar= "amd64"
;;
*) echo "arquitetura desconhecida/Unknown architecture"
;;
esac
pkg install debootstrap proot wget
clear
echo "Baixando Debian 9/Downloading Debian 9"
echo ""
echo ""
debootstrap --arch=$pegar stretch debian http://ftp.de.debian.org/debian
touch start.sh
chmod +x start.sh
echo "unset LD_PRELOAD
#!/data/data/com.termux/files/usr/bin/sh
proot -0 -r ~/debian -b /dev/ -b /sys/ -b /proc/ -b /data/data/com.termux/files/home /usr/bin/env -i HOME=/root TERM="xterm-256color" PS1='[root@stable \W]$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:/bin /bin/bash --login" >> start.sh
clear
echo "Rode o ./start.sh para iniciar o Debian (run the ./start.sh to start the Debian)"