开始
初始化
开启存储权限
有时没用
换用清华源
1 2
| 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
|
安装zsh和ohmyzsh
安装zsh
安装ohmyzsh
1
| sh -c "$(curl -fsSL https://github.com/Cabbagec/termux-ohmyzsh/raw/master/install.sh)"
|
背景颜色: 34
字体: 9
1
| git config --global http.sslVerify false
|
.zshrc需要修改的
更改导航键
1
| vim ~/.termux/termux.properties
|
在termux.properties文件上方添加
1 2 3 4 5
| extra-keys = [ \ ['ESC','<','>','BACKSLASH','=','^','$','()','{}','[]','ENTER'], \ ['TAB','&',';','/','~','%','*','HOME','UP','END','PGUP'], \ ['CTRL','FN','ALT','|','-','+','QUOTE','LEFT','DOWN','RIGHT','PGDN'] \ ]
|
之后重启termux
安装常用的
1
| pkg install curl wget git tree nmap -y
|
安装指定版本python
以python3.8为例
1
| ln -sf $PREFIX/bin/python3.8 $PREFIX/bin/python
|
1
| ln -sf $PREFIX/bin/pip3.8 $PREFIX/bin/pip
|
检查是否安装修改成功
git clone 报错
1 2 3
| git clone git@github.com:... error: cannot run ssh: No such file or directory fatal: unable to fork
|
安装发行版
安装proot
1
| apt install proot proot-distro
|
查看可用发行版
安装ubuntu
1
| proot-distro install ubuntu
|
进入
1
| proot-distro login ubuntu
|
一些好玩的
cmatrix
cowsay
figlet
1
| figlet -f future mrhblfx
|
hollywood
neofetch
nyancat
screenfetch
sl
toilet
1
| toilet -f 字体 -F 颜色参数 '基本信息'
|
1
| toilet -f mono12 -F gay 'mrhblfx'
|