新手配置termux(一些自动化的基本且必要的东西)

该文指导如何在Termux中更换软件源为清华大学镜像,使用sed命令编辑sources.list,接着执行aptupdate和升级系统。然后列出了一些基础软件(如clang、wget、python等)的安装步骤,并建议将更新源的脚本添加到初始化文件termux-login.sh中,以自动化此过程。
摘要由CSDN通过智能技术生成

首先先换源

sed -i 's@^\(deb.*stable main\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux/apt/termux-main stable main@' $PREFIX/etc/apt/sources.list

apt update && apt upgrade

下载基本软件:

pkg install clang wget python texinfo git curl nmap vim cmake openjdk-17 -y

其他的看着下载。

之后,为了防止你每次都手动更新换源,把相关的代码写到初始化代码里面去。

cd data/data/com.termux/files/usr/etc

vim termux-login.sh

加写东西进去比如:

termux-wake-unlock

sed -i 's@^\(deb.*stable main\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux/apt/termux-main stable main@' $PREFIX/etc/apt/sources.list

apt update && apt upgrade -y

clear

termux-chroot

基本的就配置好了。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值