Introduction to the

This is a command line interface application for Android.

Suggested application download address: https://f-droid.org/packages/com.termux/ application source: https://github.com/termux/termux-app

Read more: https://www.sqlsec.com/2018/05/termux.html

A prelude to

What you might have to do or better to do before you use it, I call it a prelude.

After the prelude, we can do many things we want to do. 🐙 🥰 🥰

The premise

The prelude is also premised. If you’ve opened it, you can see an ugly command line.

Why do you say that?

Because, if the first loop is opened, it may fail to initialize.

If that doesn’t work, try using data instead of WiFi. Try WiFi first. Or, if you can, try to use a suitable DNS. Some phones have a built-in “Use Safe DNS” switch in their network Settings, but not all of them.

In short, if the application can’t connect to its own network, it’s impossible to continue. 🤢 and line and cherish it, the Internet thing is a long story. Moreover, this is not a technical problem, or even a domestic problem in most cases. Nevertheless this respect is not said much, do not let 🙃 by community regulation.

In the source

The recommended command is termux-change-repo

It does the work of switching sources.

Source:
https://mirrors.ustc.edu.cn/help/termux.html

After implementation, you will see a graphical interface like the interface, don’t worry, it is still the character interface 🙃. Up and down can be selected, enter can be determined. The following are the recommended sources for China:

  • TsinghuaThis is the source of Tsinghua University
  • USTC: This is the source of University of Science and Technology of China

My general feeling is University of Science and Technology of China faster, but you may not see the source of University of Science and Technology of China, this time can only choose Tsinghua first.

That’s okay, this command can be renewed as long as your phone doesn’t fall into a ditch or get smashed into a brick or something. 😛 🙃. Also, if you’re a person who hasn’t heard the term “brush.
Small cute has“Then you generally don’t need to worry much about it.

Perform this after replacement: PKG UP

And then you can switch the sources again — and we’ve already shown you how to switch the sources. This time just to practice yourself! 🦎

Software installation

The software installation command will indicate this when you successfully open Termux for the first time.

It is recommended to first run this command to install these basic things: PKG install neovim ZSH git dropbear neofetch screenfetch dnsutils

Among them:

  • Neovim: This is a better Vim, it is smaller and faster.
  • ZSH: This is a SHell with more features.
  • Git: Needless to say? It’s okay not to know, but you’ll need it later.
  • Dropbear: A light SSH tool.
  • neofetch . screenfetch: After the installation of the implementation will know what it is! 🙃
  • dnsutils: A DNS tool. If not installed, executenslookupYou will be prompted to install.

PKG install rsync ZSTD Erlang elixir luajit clang make PKG install rsync ZSTD Erlang elixir luajit clang make

  • rsync: It can be used to compare traffic saving by copying files remotely or locally (overwrite by default and do not transfer the same files). The option to preserve file metadata is available-a, the option is used to display the transmission process-v, simple compression before transmission to save traffic-z, an example of a combination:rsync -avz 0.txt root@node-01:$PWD
  • ZSTD: A pretty good compression algorithm, but the ARCH team had their eye on it anyway. Compression ratio is good, decompression speed is good. It can also be turned on and compressed on Btrfs (see 1, 2).
  • erlang . elixirFor now (and for a long time to come), the latter depends on the former. I personally like to use the former to write some code for expressing logic, because I think it’s just perfect for this kind of thing. They are suitable for the services of prior communication and message transmission, with their own distributed scheme and reasonable concurrency model.
  • clang . make:erlang“Will be recommended for installation. It doesn’t matter if I don’t know these two, I don’t think I can put them in the empty space. This is an implementation of C/C++. It runs on something called LLVM. If you are interested, you can query it yourself.
  • luajit: This is the Lua JIT interpreter. It doesn’t take up much space. It is said to be the fastest JIT, but I have not verified that. (The same place that says PY’s JIT is the slowest JIT, I’ll take it for granted… The other thing is to usepkg inNo if you install itpypyIt’s a bit of a pity.

beautify

It is recommended to do this after completing the above, but it is better to install the above basic parts first.

Just beautify the implementation of this command:

sh -c "$(curl -fsSL https://github.com/Cabbagec/termux-ohmyzsh/raw/master/install.sh)"

Source:
https://www.sqlsec.com/2018/05/termux.html

If you want more details, you can type the command down, edit it, and execute it:

curl -fsSL https://github.com/Cabbagec/termux-ohmyzsh/raw/master/install.sh > 0.sh ;
nvim 0.sh

This is what I gave to the editor:

#! /data/data/com.termux/files/usr/bin/bash git clone https://github.com/Cabbagec/termux-ohmyzsh.git "$HOME/termux-ohmyzsh"  --depth 1 && mv "$HOME/.termux" "$HOME/.termux.bak.$(date +%FT%T)" && cp -R "$HOME/termux-ohmyzsh/.termux" "$HOME/.termux" && git clone git://github.com/robbyrussell/oh-my-zsh.git "$HOME/.oh-my-zsh" --depth 1 && mv "$HOME/.zshrc" "$HOME/.zshrc.bak.$(date +%FT%T)" && cp "$HOME/.oh-my-zsh/templates/zshrc.zsh-template" "$HOME/.zshrc" &&  sed -i '/^ZSH_THEME/d' "$HOME/.zshrc" && sed -i '1iZSH_THEME="agnoster"' "$HOME/.zshrc" && echo "alias chcolor='$HOME/.termux/colors.sh'" >> "$HOME/.zshrc" && echo "alias chfont='$HOME/.termux/fonts.sh'" >> "$HOME/.zshrc" && git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.zsh-syntax-highlighting" --depth 1 && echo  "source $HOME/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> "$HOME/.zshrc" && chsh -s zsh && echo need restart termux ... : \);

This can be used directly:

sh -c ' #! /data/data/com.termux/files/usr/bin/bash git clone https://github.com/Cabbagec/termux-ohmyzsh.git "$HOME/termux-ohmyzsh"  --depth 1 && mv "$HOME/.termux" "$HOME/.termux.bak.$(date +%FT%T)" && cp -R "$HOME/termux-ohmyzsh/.termux" "$HOME/.termux" && git clone git://github.com/robbyrussell/oh-my-zsh.git "$HOME/.oh-my-zsh" --depth 1 && mv "$HOME/.zshrc" "$HOME/.zshrc.bak.$(date +%FT%T)" && cp "$HOME/.oh-my-zsh/templates/zshrc.zsh-template" "$HOME/.zshrc" &&  sed -i '"'"'/^ZSH_THEME/d'"'"' "$HOME/.zshrc" && sed -i '"'"'1iZSH_THEME="agnoster"'"'"' "$HOME/.zshrc" && echo "alias chcolor='"'"'$HOME/.termux/colors.sh'"'"'" >> "$HOME/.zshrc" && echo "alias chfont='"'"'$HOME/.termux/fonts.sh'"'"'" >> "$HOME/.zshrc" && git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.zsh-syntax-highlighting" --depth 1 && echo "source $HOME/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> "$HOME/.zshrc" && chsh -s zsh && echo need restart termux ... : \); '

Then change your interface with each of these commands:

  • chcolor: Change the color. You can go back and forth a couple of times.
  • chfont: Change font. You can go back and forth a couple of times. This works for subshells as well.

[the] 🐊