1、下载termux
1 | https: //f-droid .org /packages/com .termux/
|
2、更换tuna源
3、安装openssh、查看ip地址、查看账户、设置密码、设置端口、启动ssh
1 2 3 4 5 6 | apt install openssh
ifconfig
passwd
whoami
sshd -p 9000
sshd &
|
4、ssh工具连接上,允许访问本机存储、apt更新、安装proot、安装vim、python
1 2 3 4 5 6 | termux-setup-storage
apt update
apt upgrade
apt install proot
apt install vim
apt install python
|
5、安装、运行proxy
1 2 | pip install proxy.py
proxy.py
|
6、安装centos
1 | mkdir CentOS && cd CentOS && pkg install wget openssl-tool proot -y && hash -r && wget https: //raw .fastgit.org /EXALAB/AnLinux-Resources/master/Scripts/Installer/CentOS/centos .sh && sed -i 's/githubusercontent.com/fastgit.org/' centos.sh && bash centos.sh && rm centos.sh
|
1 2 3 | git clone https: //github .com /sqlsec/termux-install-linux
cd termux- install -linux
python termux-linux- install .py
|