安卓6.0安装Linux系统
0x001 安装termux
0x002 编辑源
vi工具是使用应该不用说了吧?i编辑,esc=>q退出、w保存(编辑完成后可以用ZZ保存并退出)
编辑源
vi $PREFIX/etc/apt/sources.list.d/game.list
使用源
deb https://packages.termux.org/apt/termux-games games stable
编辑源
vi $PREFIX/etc/apt/sources.list.d/science.list
使用源
deb https://packages.termux.org/apt/termux-science science stable
0x003 更新源
pkg updata -y
0x004安装Debian
echo "deb [trusted=yes arch=all] https://yadominjinta.github.io/files/ termux extras" >> $PREFIX/etc/apt/sources.list.d/atilo.list
apt update && apt install atilo-cn
atilo pull debian
0x005进入Debian
atilo run debian
0x006 更新源
cat /etc/debian_version #查看版本
选择合适的版本更新源
0x007 安装SSH
可以安装openssh,以便更方便输入命令
pkg install openssh
sshd
echo "sshd" >> ~/.bashrc #开机自启动
termux-setup-storage #存储访问