Install Termux on Android - eliranwong/UniqueBible Wiki

Install Termux on Android

You can run UniqueBible.app via Termux on Android

This wiki page briefly describe how to install Termux on Android device.

Do NOT use Play Store to Install Termux

The play store version of Termux no longer work on latest Android versions.

We prefer the following method to install Termux

FIRST, Give Permission to Chrome App

We will describe how to install the Termux apk file via Chrome app, but first you need to enable your Chrome app to install unknown app.

  1. Go to "Settings > Apps and notifications > Special app access > Install unknown apps"

  2. Select Chrome

  3. Enable "Allow from this source"

Remarks: You may disable this feature after you install Termux app.

Install Termux App

  1. Launch Chrome on your Android device.

  2. Go to official Termux GitHub release page: https://github.com/termux/termux-app/releases

  3. Download the "universal" version from the list under "Assets"

  4. After the file is downloaded, select it from Chrome download list

  5. Select "Install"

Install Repositories

Launch Termux and run,

pkg install root-repo

pkg install x11-repo

Update and Upgrade

  1. Launch the newly installed Termux app

  2. Run "apt update && apt full-upgrade"

  3. Answer "Y" in all prompts until finish

Install Basic Packages

To install packages, required for setting up UBA, launch Termux and run:

pkg install python git binutils libxslt libjpeg-turbo libpng build-essential clang make pkg-config curl wget lynx w3m elinks vlc xclip xsel

Run Unique Bible App via Termux

You can run Unique Bible App in the following modes:

  • HTTP/Web mode - UBA acts as a web server and can be accessed by browsers.

    python uba.py http-server

  • Terminal mode - A command line mode, running locally, where all input and output is text based, without Qt library.

    python uba.py terminal

  • Telnet mode - UBA acts as a telnet server and can be accessed by telnet clients.

    python uba.py telnet-server

Automate UBA

You may place the following line in file '/data/data/com.termux/files/home/.bashrc':

python /data/data/com.termux/files/home/UniqueBible/uba.py http-server & disown

alias uba="python /data/data/com.termux/files/home/UniqueBible/uba.py terminal"

With these two lines in place, http-server automatically starts when you start a Termux session.

In addition, you can simply run commands like below to launch terminal mode:

uba

uba John 3

Change Text Size

"... text size can be adjusted by pinch zooming ..."

References

https://wiki.termux.com/wiki/Package_Management

https://wiki.termux.com/wiki/Python