侧边栏壁纸
  • 累计撰写 80 篇文章
  • 累计创建 41 个标签
  • 累计收到 3 条评论

目 录CONTENT

文章目录

Android Termux 使用笔记

勤为径苦作舟
2024-06-08 / 0 评论 / 0 点赞 / 20 阅读 / 1480 字 / 正在检测是否收录...

简介

Termux 可以在安卓上运行 Linux 终端。

GitHub 上 termux/termux-app 已经不发新版了,但是我看代码还在更新,于是我就 Fork 了一下,加了个 .github/workflows/android.xml,通过 GitHub Action 打包下载后一键签名就可以安装了。

初始化

# 请求文件权限
termux-setup-storage

# 更新
apt update && apt upgrade

权限

GitHub 上找了一个较新启用 root 的仓库:hctilg/root-termux: install root(sudo) in the termux

# 安装 git
pkg install git -y

# 克隆项目
git clone https://github.com/hctilg/root-termux.git && cd root-termux && chmod +x *

# 安装
pkg install wget proot -y
yes | bash install.sh

# 启用 root 环境
bash start.sh  # or `./start.sh`

# 更新
apt update && apt upgrade

# 安装 sudo
apt install sudo

其他待测试:

待定

0

评论区