1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| # 使用 proot-distro 安装 Ubuntu
pkg update
pkg install proot-distro
# 安装 Ubuntu
proot-distro install ubuntu
# ubuntu挂载termux家目录
echo 'alias ubl="proot-distro login ubuntu --bind /data/data/com.termux/files/home:/termux"' >> ~/.bashrc
source ~/.bashrc
# 执行 ubl 登录ubuntu系统
ubl
# 如果需要解决中文乱码问题
echo 'export LANG=C.UTF-8' >> ~/.profile
echo 'export LC_ALL=C.UTF-8' >> ~/.profile
source ~/.profile
|