Turning the Android Andre phone into a computer program and game.

Introduction

TermuxIt’s one.AndroidNext advanced terminal emulator, open source and not requiredrootSupportaptManage packages that are easily equipped to install packages, which are perfectly supportedPython,PHP,Ruby,Go,Nodejs,MySQLWait. With the spread of smart devices and increasing performance, today ‘ s hardware standards for mobile phones, tablets, etc. have been brought up to the standard of primary desktop computers, so that they can be built into a powerful tool.

Google Play downloads newer versions than Cool Anne, and is capable of recommending downloading Google Play.

Basic Operations

Modify the input keyboard Add directions keys mkdir $HOME/.termux; cho “extra-keys”=[[‘ESC’,’/’,’-‘, ‘Home’,’UP’,’END’,’PGUP’], [`TAB’,’CTRL’,’ALT’,’LEFT’,’DOWN’,’RIGHT’,’PgdN’]] >> $HOME/.termux/termux.propertiers input exit exit environment and manually exit the termux program reset to take effect again

Long Press Screen

Show menu entry (including copying, pasting, more) when optional copy cursors appear on the screen

 

长按屏幕
├── COPY:复制
├── PASTE:更多
├── More:更多
   ├── Select URL: 选择网址
   └── Share transcipt: 分享命令脚本
   └── Reset: 重置
   └── Kill process: 杀掉当前终端会话进程
   └── Style: 风格配色
   └── Help: 帮助文档

Slide from left to right

Show hidden navigation bar to create, switch, rename sessions session and call for pop-up input

 

Show Extension Keys

What’s the extended key? The keys used at the PC level are: ESC, CTR, TAB, but some buttons that can’t be operated on a cell phone.

Impact Chart

 

 

Method I

Slide from left to right, show hidden navigation bar long to lower leftKEYBOARD.

Methodology II

UseTermuxShortcut:音量++QKeys

Common Shortcut Keys

CtrlKeys are the keys that end users usually use – but most touch keyboards do not have this key. For this reason, Termux uses音量减小按钮To simulate.CtrlKey. For example, press on the touch keyboard音量减小+ LSend and press on the hardware keyboardCtrl + LSame input.

  • Ctrl+A -> Move cursor to the beginning of line
  • Ctrl+C -> Abort the current process
  • Ctrl+D -> Cancel terminal session
  • Ctrl+E -> Move cursor to end of line
  • Ctrl+K -> Remove cursor to end of line
  • Ctrl+L -> Clear Terminal
  • Ctrl+Z -> Suspend (SIGSTP to) the current process

音量加键It can also be used as a source of specific input.特殊键.

  • 音量加+E -> Esc
  • 音量加+T -> Tab Key
  • 音量加+1 -> F1 (and volume increase + 2 ⁇ F2 etc.)
  • 音量加+0 -> F10
  • 音量加+B -> Alt + B, return a word when using Readline
  • 音量加+F -> Alt + F, forward a word using Readline
  • 音量加+X -> Alt+X
  • 音量加+W -> Arrow Up
  • 音量加+A -> Left Arrow
  • 音量加+S -> Arrow Down
  • 音量加+D -> Right Arrow Key
  • 音量加+L -> ⁇ (pipe characters)
  • 音量加+H -> ⁇ (wave characters)
  • 音量加+U -> _ (underlined characters)
  • 音量加+P -> Previous Page
  • 音量加+N -> Next Page
  • 音量加+. -> Ctrl + \(SIGQUIT)
  • 音量加+V -> Show Volume Control
  • 音量加+Q -> Show additional key view

Basic Commands

TermuxExcept for the support.aptThey’re sealed on that basis.pkgOrders,pkgCommands are compatible downaptOrders.aptI think you’re all familiar with the orders.pkgCommand:

pkg search <query>              搜索包
pkg install <package>           安装包
pkg uninstall <package>         卸载包
pkg reinstall <package>         重新安装包
pkg update                      更新源
pkg upgrade                     升级软件包
pkg list-all                    列出可供安装的所有包
pkg list-installed              列出已经安装的包
pkg shoe <package>              显示某个包的详细信息
pkg files <package>             显示某个包的相关文件夹路径

Directory environmental structure

~ > echo $HOME
/data/data/com.termux/files/home

 ~ > echo $PREFIX
/data/data/com.termux/files/usr

 ~ > echo $TMPPREFIX
/data/data/com.termux/files/usr/tmp/zsh

Friends who have long-term Linux may find that this HOME path may look different for convenience.Termux A special environmental variable is provided:PREFIX

 

Replacement of domestic sources

ReplacementTermuxQinghua University, speed up the download.

Set Default Editor

export EDITOR=vi

Edit Source File

apt edit-sources

Originalhttps://termux.netReplace official source withhttp://mirrors.tuna.tsinghua.edu.cn/termux

Save & Quit

 

Edit Source File Directly

This is an officially recommended method, but it’s a simpler way to edit the source under Linux:

vi  $PREFIX/etc/apt/sources.list

Install basic tools

pkg update
pkg install vim curl wget git unzip unrar

Termux Optimization

Terminal Colour

It’s mostly used.zshTo replace it.bashAs Defaultshell…to install a foot with a single key that would have been installed, put in place one step at a time and activated the external storage to access directly the directory under the SD card.

I’m gonna execute this order to make sure that the curl is installed.

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

 

Android 6.0 or more will be able to check whether the authorization is granted.允许After authorizationTermuxAccess to SD card files is easy. Script allows for two options in order:

 

Enter a number, leave blank to not to change: 14
Enter a number, leave blank to not to change: 6

Separate Selection背景色and字体
If you want to continue changing the selection colour, you can continue running your feet again:

$ ~/termux-ohmyzsh/install.sh

exitRestartsessionsSession Effective Configuration

Access to external storage optimization

I’ve been up there.zshWhen you configure a script and give access to the file, it is generated in your home directory.storageDirectory, and generate several directories where soft connections point to the corresponding directory of an external memory card

 

Create QQQ Folder Soft Connection

It’s usually on the phone that QQ.storageCreate soft link under directory.
QQ

ln -s /data/data/com.termux/files/home/storage/shared/tencent/QQfile_recv QQ

TIM

ln -s /data/data/com.termux/files/home/storage/shared/tencent/TIMfile_recv TIM

The final results are as follows:

That’s how it works.homeThe directory goes down to access the QQ folder, which is very convenient for the transfer of files and greatly improves working efficiency.
http://mirrors.tuna.tsinghua.edu.cn/termux

 

Oh my zsh theme colour

Edit.zshrcProfile

$ vim .zshrc

As you can see in the first line, the default theme isagnosterSubject:

Yes..oh-my-zsh/themesThe directory is decentralised.oh-my-zshHere are some of the themes that Luang thinks they’re good.

 

agnoster

 

 

robbyrussell

 

 

jaischeema

 

 

re5et

 

 

junkfood

 

 

cloud

 

 

random

Of course, if you’re a pervert, you can try.randomThe theme, every session that opens is random.

ZSH_THEME="random"

Modify startup greeting

The default start-up greeting is as follows:

It’s a little helpful to beginners in the early stages, as it is.TermuxAnd as you know, the default greeting is a bit thicker.

 

vim $PREFIX/etc/motd

The effect of the modification was as follows:

It’ll look much simpler when you start a new session.

 

Administrator Identity

The phone doesn’t have root.

UtilizationprootTools to simulate certain environments that require root

pkg install proot

And then the terminal enters below:

termux-chroot

It’s a simulation.rootThe environment is here.prootUnder the environment, it’s like entering.homeDirectory, some configurations can easily be made.

Under the administrator, enter.exitYou can return to your normal user identity.

 

Cell phone’s rooted.

Installtsu♪ That’s asuThe termux version, which replaces the termux.su:

pkg install tsu

And then the terminal enters below:

tsu

SwitchablerootUsers, pop up at this timerootMandated hints, givenrootPermissions, effect graphs as follows:

Under the administrator, enter.exitYou can return to your normal user identity.

 

Information security

Because…termuxIt’ll be a good support.PythonSo it’s almost all used.PythonThe security tools that were created were perfectly operational, and generally funable or better.

Metasploit

Install Metasploit

The installation of autotelephone scripts provided by the official Termux is as follows:

cd ~
pkg install wget
wget https://Auxilus.github.io/metasploit.sh
bash metasploit.sh

Note Automation failed under x86 platform and reference intended for installation under x86 platform Official documents Manually.

This process takes about three minutes on average.

Configure msf database cache

We’ve got a database set up.msfconsole会Automatically connected to the database.

 

 

Rebuild database caches next

msf > db_rebuild_cache

It’s time to search the cache and find that it is still unestablished, but only at a slow pace.

This place was tested before, and the average time for Cache is about three minutes.

And then it’ll happen.msfIt’s a second search. You don’t have to wait. It feels faster than on the computer.

 

 

 

Cannot connect to database after solving metasploit startup

Installed using automated scriptsMetasploitUse afterdb_statusFinds that the database is connected and then in usedb_rebuild_cacheRe-established the cache, waiting for about three minutes, so that it can be searched quickly.

 

msfconsole
[-] Failed to connect to the database: could not connect to server: Connection refused
        Is the server running on host "127.0.0.1" and accepting
        TCP/IP connections on port 5432?

I’m sorry.postgresqlThe database was not activated. The solution is to activate the database:

This method only installs msf using automated scripts on termux

pg_ctl -D $PREFIX/var/lib/postgresql start

Re-enter database after startupmsfconsoleI’ll find out that the startup was not misreported.db_statusCheck the database connection and it’s normal:

 

Nmap

Port scanning requirement

pkg install nmap

 

 

hydra

Hydra is an open-source violent decomposition tool for the well-known hacker organization THC, a validation tool whose main purpose is to demonstrate that security researchers have remote access to a system certification.

pkg install hydra

 

 

sslscan

SSLscan primarily detect ssl-based services, such as https.SSLscan is a SSL encryption algorithm supported by the target detection server.Github

pkg install sslscan

 

 

whatportis

Whatportis is a tool that can be used to query the default port through service, or the default service via port. During an penetration test, you can use what sort of server you want to bind at one port, or what kind of default port you can use for application.

pip2 install whatportis

 

 

SQLmap

SQLmap is a free open source tool for detecting and using SQL to inject holes. Official project address

Directgit cloneSource

git clone https://github.com/sqlmapproject/sqlmap.git
cd sqlmap
python2 sqlmap.py

Sqmap supports pip installation, so it’s recommended that you install directly, and then the bottom of the terminal is a direct sqlmap.

 

 

RouterSploit

The RouteSploit framework is the framework for detection and use of embedded equipment leaks, such as an open source router.

pip2 install requests
git clone https://github.com/reverse-shell/routersploit
cd routersploit
python2 rsf.py

 

 

Slowloris

DoS tool for low bandwidth

git clone https://github.com/gkbrk/slowloris.git
cd slowloris
chmod +x slowloris.py

 

 

RED_HAWK

A multi-dimensional penetration test tool developed in the PHP language could help us to accomplish tasks such as information gathering, SQL gap scanning and resource crawling.

pkg install php
git clone https://github.com/Tuhinshubhra/RED_HAWK.git
cd RED_HAWK
php rhawk.php

 

 

Cupp

Cupp is an interactive dictionary written in Python. This is especially good for social engineering, and when you gather specific information about the target, you can use this tool to intellectually generate a dictionary on the goal.

git clone https://github.com/Mebus/cupp.git
cd cupp
python2 cupp.py

 

 

Hash-Buster

Hash Buster is a python-based online script to decipher Hash. Officially, it’s broken in five seconds.

git clone https://github.com/UltimateHackers/Hash-Buster.git
cd Hash-Buster
python2 hash.py

 

 

D-TECT

D-TECT is an advanced penetration test tool developed by Python, which has been used in the field of human trafficking.

  • WordPress User Name
  • Sensitivity document detection
  • Sub-domain Name Blast
  • Port Scan
  • Wordpers scan
  • XSS scan
  • SQL injection scan, etc.
git clone https://github.com/shawarkhanethicalhacker/D-TECT.git
cd D-TECT
python2 d-tect.py

 

 

WPSeku

WPSeku is a simple WordPress loophole scanner written in Python that can be used to scan local and remotely installed WordPress for safety problems. The top 10 open source hackers were rated as the most popular tool in 2017.

git clone https://github.com/m4ll0k/WPSeku.git
cd WPSeku
pip3 install -r requirements.txt
python3 wpseku.py

 

 

XSStrike

XSstrike is an advanced XSS detection tool. It has a powerful fuzzy testing engine.

git clone https://github.com/UltimateHackers/XSStrike.git
cd XSStrike
pip2 install -r requirements.txt
python2 xsstrike

 

 

Summary

Because Termux is perfect for support.PythonandPerlI’ll give you a list of all the good information security tools that you can find.

Python environmental deployment

Install python2.7

pkg install python2

Once installed, usepython2Commands are activated.python 2.7.14Environment

 

Install python3

pkg install python

Once installed, usepythonCommands are activated.python 3.6.5Environment

 

Upgrade pip version

python2 -m pip install --upgrade pip
python -m pip install --upgrade pip

These two orders have been upgraded.pip2andpip3To the latest edition.
Pip Version View

 

ipython

ipython is an interactive shell of python that supports automatic completion of variables, autoindents, supports bash shell commands with many useful features and functions. Learnipython will allow us to use python in a more efficient way. Install firstclang, otherwise directly usedpipInstallipythonYou’ll fail and you’ll lose.

pkg install clang
pip install ipython
pip3.6 install ipython

And then it’s used separately.ipythonandipython2Enterpy2andpy3Console:

 

Editor

It’s down at the terminal.vimIt’s a sacred object and it’s officially sealed.vim-pythonYeah.vimPython-related optimization.

pkg install vim-python

Solve the vim grams under termux

New under Home Directory.vimrcDocumentation

vim .vimrc

Add the following text:

set fileencodings=utf-8,gb2312,gb18030,gbk,ucs-bom,cp936,latin1
set enc=utf8
set fencs=utf8,gbk,gb2312,gb18030

And then…sourceDown Variable:

source .vimrc

Impact Chart

 

nodejs

Install nodejs

pkg install nodejs

It’s easier to install, but it was wrong at the time of installation

Cannot read property 'length' of undefined

Checked out this is the version.

The official solution is as follows:
disabled competition in case of libuv/libuv#1459

 

Address error at npm installation

vim $PREFIX/lib/node_modules/npm/node_modules/worker-farm/lib/farm.js

What I’m doing here is changing Length.4This one seems to have something to do with the CPU, but anyway, Length here has to specify a number.

And then re-installed.npm install hexo-cli -gSuccess.

 

MariaDB (MySQL) installation

The MariaDB database management system is a branch of MySQL, maintained mainly by the open-source community and licensed with GPL.

Installation of mariadb

pkg install mariadb

Install Basic Data

mysql_install_db

Start the mariadb service.

mysqld

After startup, this session will survive. Like the debug debugs, only new sessions can be used.

The hidden session can be usednohupCommands andtmuxOrders, here I suggest.tmuxCommand

 

New termux Session

Because no password was set when the mariadb was installed, currentmariadbPassword as空.

mysql

Direct access.mariadbDatabases. InputsexitExit database.

 

Change Password

Enter the command and make a password-related security setup:

mysql_secure_installation

Enter the current input password
Because it is.空Password, default here 回车

Enter current password for root (enter for none):

Set New Password
Set here the new root password

Set root password? [Y/n] y
New password:
Re-enter new password:

Other Settings
Here’s a setup based on personal preferences. There’s no absolute requirement.

Remove anonymous users? [Y/n] Y                #是否移除匿名用户
Disallow root login remotely? [Y/n] n          #是否不允许root远程登录
Remove test database and access to it? [Y/n] n #是否移除test数据库
Reload privilege tables now? [Y/n] y           #是否重新加载表的权限

Use password to login the database

$ mysql -uroot -p
Enter password: ***apache2

 

 

tmux

Tmux is an excellent end-use software, similar to GNU Screen, but from OpenBSD, using BSD authorization. Once you know the tmix, it accelerates your work as fast as an accelerator.

Install tmux

pkg install tmux

New Mysql Session

It’s what it says.mysqldIt’s gonna be stuck there, and it’s not gonna take it.重启手机, now try to usetmuxTo manage the session.

tmux new -s mysql

You can see the bottom tip, which means it’s on now.mysqlOperations below Sessions

 

Start mysqld and break the meeting.

Start Mysqld

mysqld

Let Session Backstage run
Use shortcuts to groupCtrl+b + d, with three buttons to break the current session.

Use mysql

Now that.mysqldThe sessions are running in the back. The whole interface looks brief, it’s used.

mysql -uroot -p

It’s an elegant database.
Impact Chart

AbouttmuxMore progress is not much of an introduction here.

 

php

termuxThe php version of the envelope is:php 7.2.5

Installation of PHP

pkg install php

View Next Version

 

FromPHP5.4PHP then built a Web server to come intermuxTry the simple PHP Web Server.

Preparation of test files

Build one under the home directory.wwwSynchronising foldermkdir www
Yes.wwwCreate a new one under folderindex.phpDocument, which reads:

<?php phpinfo();?>

 

 

Start WebServer

php -S 127.0.0.1:8080 -t www/

Browser access has the following effects:

 

nginx

Nginx is a high-performance Web and reverse proxy server, which has many very superior features.

Install nginx package

pkg install nginx

Toggle root user

Try to understand the default.index.htmlHome page, this file is intermuxThe default position above is/data/data/com.termux/files/usr/share/nginx/html/index.html
Toggle root user

Default normal permissions cannot start nginx. Simulation is requiredrootPermission to do so.

If you don’t have this order, install it manually.pkg install prootPackage

termux-chroot

Enter simulated root environment

Start nginx

Start in simulated root environmentnginx

nginx

termuxLet’s go.nginxThe default port is8080
Check8080Whether the port is running

netstat -an |grep 8080

 

And then the cell phone directly visited locally:http://127.0.0.1:8080 ChecknginxIs it normal to start.
Impact Chart

Such a default.nginxThe service is up, but it doesn’t mean much.phpIt’ll make more sense.

 

Stop nginx Service

This is the process of directly killing the occupied port, which depends on the actual situation.

fuser -k 8080/tcp

Restart nginx service

nginx -s reload

nginx parsing PHP

nginxParsingPHPHere’s a single level one heading, if you can solve it successfully. Set up below.wordpressnginx can’t handle PHP by itself, it is a web server. Send the php interpreter when requested, and gnix usually processes the request with a fastcgi management process. PHP-FPM is a PHP FastCGI manager, so we have to install it first.php-fpm.

nginx and php have been installed here, if not installed.pkg install php nginxTo install, to configure the above.

Install and configure php-fpm

Install php-fpm

pkg install php-fpm

Configure php-fpm
EnterprootEnvironment, and then edit the profilewww.conf(Advanced Proot can more easily handle the preparation of relevant profiles)

termux-chroot
vim /etc/php-fpm.d/www.conf

Location SearchlistenFound it.

listen = /data/data/com.termux/files/usr/var/run/php-fpm.sock

Replace the text with the following:

listen = 127.0.0.1:9000

Configure nginx

Yes.prootenvironment, then edit the profilenginx.conf

vim /etc/nginx/nginx.conf

Below is a list of the configured template files, which can be replaced by editing directly:


worker_processes  1;
events {
    worker_connections  1024;
}


http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;


    server {

        listen       8080;
        server_name  localhost;
        root   /data/data/com.termux/files/usr/share/nginx/html;
        index  index.html index.htm;


        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   /data/data/com.termux/files/usr/share/nginx/html;
        }


        location ~ \.php$ {
            root           html;
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  /usr/share/nginx/html$fastcgi_script_name;
            include        fastcgi_params;
        }
    }

}

The default path to the site is…nginxDefault web root directory:

root   /data/data/com.termux/files/usr/share/nginx/html;
fastcgi_param  SCRIPT_FILENAME  /usr/share/nginx/html$fastcgi_script_name;

If you want to change the default path of your website, you need only modify both.

Create php test file

Yes./usr/share/nginx/htmlCreate a new one under directoryphpinfo.phpThe document, which reads:<?php phpinfo();?>

Went

 

Start pp-fpm and nginx

Yes.prootIt’s under the environment.php-fpmandnginxHere.nginxNo, I’m not.prootThere’s something that happens when you get started. You can study it yourself.

php-fpm
nginx

Browser Access Test

Browser Accesshttp://127.0.0.1:8080/phpinfo.php QueryphpWhether the file is resolved or not.

 

Build WordPress

It’s just used here.wordpressIt’s a classic Angli, it can be installed in similar ways.Discuz,DeDecmsWaiting for the mainstream PHP application in the country.

Method I Use Web Server embedded in PHP

Ensure installed and configuredphpandmariadb, if not installed, refer to the details in this document.
New Database

*** This is mysql’s password.

mysql -uroot -p*** -e"create database wordpress;show databases;"

Download depressurewordpress

wget https://cn.wordpress.org/wordpress-4.9.4-zh_CN.zip
pkg install unzip
unzip wordpress-4.9.4-zh_CN.zip

Start PHP Web Server
After depression,wordpressTable of contents, Implementation

cd wordpress
php -S 127.0.0.1:8080

Then the browser accesses.127.0.0.1:8080Start.wordperssThe installation.
Impact Chart

 

Method II nginx+PHP+Mariadb

One of the methods used is to use PHP directly.PHP Web ServerIt doesn’t look strict enough to run, so here it is.nginxTo deploy.wordpressEnsured installationPHP,php-fpm,mariadb, without installation, refer to the details in this document for installation and configuration …
New DataandWordPress DownloadReference to above方法一This is the main introduction.nginxTo parse.wordpressSource file. Current decompressionwordpressThe absolute path is:

/data/data/com.termux/files/home/wordpress

Edit nginx.conf

vim /etc/nginx/nginx.conf

Amend to read as follows:

root   /data/data/com.termux/files/home/wordpress;
        index  index.html index.htm index.php;

fastcgi_param  SCRIPT_FILENAME  /data/data/com.termux/files/home/wordpress$fastcgi_script_name;

 

Start pp-fpm and nginx
Yes.prootIt’s under the environment.php-fpmandnginxHere.nginxNo, I’m not.prootThere’s something that happens when you get started. You can study it yourself.

 

php-fpm
nginx

Install WordPress
Browser access:http://127.0.0.1:8080/wp-admin/setup-config.phpI’m going to install it.
Impact Chart

It’s easy to install other blogs. They’re much more fun.

 

I’m going to build a blog on Hexa.

Install hexa

npm install hexo-cli -g

Deployment of the hexo blog environment

Then create a directory, then initialize the hexa environment under this directory.

mkdir hexoblog  #手动创建一个目录
cd hexoblog  
hexo init   #初始化hexo环境
hexo g      #生成静态文件
hexo s      #启动hexo

 

And then I ran up to a basic hexa blog about the details of histo blog, and suggested that we build a reference to the official file of hisgo, which I’m focusing on here is termux and other without too much description.
Impact Chart

 

intermux ssh connect computer

Sometimes you have to operate a computer.termuxYou can run the computer on your bed, right?openssh

pkg install openssh

Then you can connect your computer directly to ssh.

If the computer has a ssh service.

$ ssh [email protected]

Computer Impact Chart for Cellular Connection:

 

Computer ssh connection to Termux

Well, ummmm, that’s a lot of demand, but you have to write it all.

Install openssh

And so do I.opensshI’ll do it.

pkg install openssh

Start sshd

After the installation,sshdThe service default was not activated, so it had to be started manually:

sshd

There’s a security limit on the lower end of the phone, so here.opensshDefaultsshdThe default service is8022Port.
ssh_Other OrganiserwhoamiOrders to see.

You can see it.sshdAfter start-up, the port will see.

 

PCend Generate Public Keys

sshLogin is a key login in the key mode, which first generates the key at the PC end:

sqlsec@ubuntu:-> ssh-keygen -t rsa

3 files will be created in the home directory after execution
id_rsa, id_rsa.pub , known_hosts

 

Copy Public Key to Cell Phone

Then put the public key.id_rsa.pubI got a copy of the phone.data\data\com.termux\files\home\.sshSynchronising folder

Copy Public Keys to Authentication File

Yes.TermuxOperation Down

cat id_rsa.pub > authorized_keys

 

 

PC-end connection to phone termux

sqlsec@ubuntu-> ssh -p8022 [email protected]

Impact Chart

Pc-phone connection, real chicken.

 

Build your own download tool using Aria2

Aria2 is a practical tool for downloading lightweight multi-quantity protocols and multiple source command lines. It supports HTTP / HTTPS, FTP, SFTP, bt and Metalink. Aria2 allows the operation of json -rpc and xml -rpc. When configured, it also allows high speed to download hundreds of cloud files.

Installation of aria2

pkg install aria2

Local Start Service

aria2c --enable-rpc --rpc-listen-all

Here.rpcThe default wiretapping of the service is6800Port, facilitate Web interface connection down there after startup.

webui-aria2

It’s a popular Aria2 project, with Aria2 encapsulated on Web platform and made it easier to operate.

git clone https://github.com/ziahamza/webui-aria2.git
cd webui-aria2
node node-server.js

Node is needed to run without installed wordspkg install nodejsTo install

Use the effect map, it’s fast. Interested people can study how to use it.aria2We’ll download the 100-degree cloud files and wait for you to explore them.

 

 

Multifunctional File Sharing

Official project address

Install caddy

Official: So far, there are two ways to run Caddy on Android:TermuxandadbSo let’s take a look at it.

cd ~
curl https://getcaddy.com | bash -s personal http.filemanager

This step may be executed.3Just wait and see.

Prepare profile

cd ~
vim Caddyfile

It reads as follows:

:8080 {
filemanager / /sdcard
timeouts none
gzip
}

Here.8080Port numbers can be specified at random because mobile phones have low access and are generally set1024Overports.8080and{There’s one in between.空格

Attention./ / sdcard There’s also a space between the slants.

Start caddy.

caddy

 

 

Effects

Browser access:http://127.0.0.1:8080The default account number and password isadmin,admin.

 

 

It’s in the settings interface. 设置简体中文, you can modify更新默认密码… that can directly view the file, and support it.LinuxCommand search.

 

 

 

 

Termux-api

Termux: API, which is used to access mobile hardware and achieve more funability, can perform the following functions:

  • Access battery information
  • Get Camera Device Information
  • Access to in-house equipment information
  • Get set clipboard information
  • Getting Address Book Information
  • Get Set Cellular Texts
  • Call the number.
  • Vibration equipment

Install Termux-api

Termux-api Google Play download address

 

 

Add a link.How do you download Google Play on your computer?

Installation of the Termux-api package

Installation complete.Termux-apiPhoto by Flickr user @Appo.TermuxIt has to have the right package in it before we can get to the bottom of the operating phone.

pkg install termux-api

Here’s just a list of things that might be used. I want to get more about it.Termux-apiIf so, go to the official files.

Get Battery Information

termux-battery-status

You can see batteries – state of health – percentage of electricity – temperature, etc.

{
  "health": "GOOD",
  "percentage": 67,
  "plugged": "UNPLUGGED",
  "status": "DISCHARGING",
  "temperature": 24.600000381469727
}

Get Camera Information

termux-camera-info

Get and set the clipboard

View the current clipboard contents

termux-clipboard-get

Set New Clipboard Contents

termux-clipboard-set PHP是世界上最好的语言

Effect Presentation

 

 

Get List of Address Books

termux-contact-list

 

 

View the text list

termux-sms-inbox

 

 

Sending messages

termux-sms-send

Support for the simultaneous transmission of multiple numbers to achieve the effects of grouping, as described below:

termux-sms-send -n number(s)  recipient number(s) - separate multiple numbers by commas

Send Test

termux-sms-send -n 10001 cxll

 

 

Call.

termux-telephony-call

Call.10001Chinese telecommunications, check if the phone bill is in arrears?

termux-telephony-call 10001

 

 

WiFi Related

Fetch current WiFi connection information

termux-wifi-connectioninfo

Get the latest WiFi scan information.

termux-wifi-scaninfo

 

 

Summary

Directly operating the bottom of the movement system, you can program to get automatic timed text messages, voice reports and so on.

Some boring attempt.

Some boring and interesting piece, if you’re a serious man, you can skip the plate to save your reading time.

nyanat, rainbow cat.

Rainbow Cat.[English:Nyan CatThe video was uploaded on YouTube in April 2011 and quickly exploded into the Internet, ranking fifth among the top YouTube viewers in 2011.

pkg install nyancat
nyancat

 

 

What the hell? It’s not like people from abroad have fun.

Terminal 2D code

The main focus of the two-dimensional code under Linux command is this site:http://qrenco.de/

echo "http://www.sqlsec.com" |curl -F-=\<- qrenco.de

 

If you’re not bored, you can scan this two-dimensional code and open my blog.

 

Terminal map

A basis fornodejsA map under the command line.

npm install mapscii -g
mapscii

Access to terminal map

Method of operation

 

  • Keys Move
  • aandzZoom in.
  • qKey Quit

The map under the terminal! It’s a good idea if you’re bored enough to try and find your place on this map.

Other things not written

Install Linux

It’s even possible.TermuxThere’s something else in there.LinuxIt’s too long, it’s not here.TermuxReleases that can be successfully installed:

  • Ubuntu
  • Arch
  • Fedora
  • Kali Nethunter

Ubuntu

 

 

Fedora

 

 

Inside.

UsengrokOr…frpI can do it.TermuxThe site was created to map it on the outside.手机建站It’s not impossible.

Python Jupyter Notebook

Cupyter notebook (also known as IPython notebook), supports the running of more than 40 programming languages.caddy♪ And the effect, the supportwebThe following terminal operations, supporting high-profile operation of the code. Because there is a large number of files that need to be installed here, and because user needs are low, this section can explore itself if it’s interested.

 

 

Download Tool

  • you-get

It is a command line tool for downloading videos, audio and pictures from web pages that support many websites, including 41 mainstream national videos, music sites such as Cyber Cloud Music, AB Station, Pikes, Peaches, Pandas, Achie art, Phoenix Video, Cool Dog Music, Music, Music, Leany FM, Seconds, Tempo Videos, Hot Potatoes, Orient Network, Mango TV, etc., with only one order to download them directly, audio and images back and automatically merge them. For sites with a screen, such as B Station, you can also download the screen back.

  • BaiduPCS-Go

A 100-degree Internet command line client i.e. a Linux shell file processing order.

Project Address

It could be perfect.TermuxRun on.

 

 

Summary

The atmosphere of Termux DIY abroad is relatively much better than in the country, and YouTube has a very high number of videos:

 

 

The past is like a smoke, and it’s getting worse with the distance. The future is fogier, and the wind is moving forward, making the Android Andreuer phone into a computer.

未经允许不得转载:萌萌Apprentissage » Turning the Android Andre phone into a computer program and game.

Like (0) 打赏

Comments 0

Protected with IP Blacklist CloudIP Blacklist Cloud
  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏

//下一个脚本特效
//下一个脚本