安卓搞机指南 - Termux

Termux是一款很好用的Linux模拟器,不需要root就可以在安卓设备上体验Linux系统的使用。话不多说,下面一起来试试吧。

安装

从F-droid(配置镜像源会更快)或者Github上下载安装

基础设置

配置镜像源(清华、中科大、浙大源等)

1
apt edit-sources

查看一些宏定义:

1
2
3
echo $HOME
echo $PREFIX
echo $TMPPREFIX

基础工具安装

In termux, pkg is developped for simplifying sudo apt in some circumstances.

1
2
3
pkg update
pkg install vim curl git wget unzip zsh
sh -c "$(curl -fsSL https://github.com/Cabbagec/termux-ohmyzsh/raw/master/install.sh)"

Setting default editor:

1
export EDITOR=vi

访问本机空间

termux-setup-storage
After installing the above shell script, storage directory will be created and you can access common dcim, music, videos, etc.

1
ls storage

借助本机空间的访问,写博客的时候就可以存储到本机上,然后用markdown app进行编辑,这里推荐下markor这个开源软件。

Accumulation of English writing by examples Spring Cloud 微服务注册与发现实验

评论

You forgot to set the shortname for Disqus. Please set it in _config.yml.
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×