Currently, some Python3 packages cannot be installed on Termux. We need to use ubuntu-in-termux.
1. Install ubuntu-in-termux
Installation steps as mentioned in https://github.com/MFDGaming/ubuntu-in-termux
Here is an instruction from its website:
# Update termux:
apt-get update && apt-get upgrade -y
# Install wget:
apt-get install wget -y
# Install proot:
apt-get install proot -y
# Install git:
apt-get install git -y
# Go to HOME folder:
cd ~
# Download script:
git clone https://github.com/MFDGaming/ubuntu-in-termux.git
# Go to script folder:
cd ubuntu-in-termux
# Give execution permission:
chmod +x ubuntu.sh
# Run the script:
./ubuntu.sh -y
# Now just start ubuntu:
./startubuntu.sh
2. Install dependencies
Once you have successfully login into Ubuntu run these commands:
apt update
apt upgrade -y
apt install -y apt-utils
apt install -y nano
apt install -y sqlite3 git curl wget aria2
apt install -y ssh git
apt install -y python3
apt install -y python3-pip
pip3 install pyglossary
pip3 install numpy scipy
pip3 install pandas
pip3 install jupyterlab
pip3 install notebook
pip3 install -U scikit-learn
pip3 show scikit-learn
apt install -y nodejs npm
npm --version
npm install -g [email protected]
npm install --global webdav-cli
npm i -g http-server
npm audit fix
apt install -y zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
apt install -y aptitude
apt install -y openssh-server
# These pkgs will allow export or save as PDF
apt install -y texlive-xetex
pip3 install pyppeteer
pyppeteer-install
pip3 install pandoc
apt install -y apksigner
# aptitude install -f
apt install -y aptitude
apt install -y openssh-server
3. Create command shortcuts (alias)
We will create an alias in ~/.bashrc
for jupyter notebook
and webdav-cli
alias jjj='jupyter notebook --allow-root'
echo 'wwww: start webdav'
Restart ubuntu. Now type jjj
to open the Jupyter notebook.
4. Bonus: fix global npm not found
Nee to export this export NODE_PATH=/usr/local/lib/node_modules
You append the below command to your Terminal .bashrc
so that it will automatically export this whenever you run Termux:
export NODE_PATH=/usr/local/lib/node_modules