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

首先先换源

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

基本的就配置好了。

你可能感兴趣的:(linux,c语言)