Skip to content

Instantly share code, notes, and snippets.

Last active September 23, 2023 12:18
  • Star 10 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?

Virtualenv + Termux Installation Guide


  1. Install Termux from Github:
  2. Download the apk and install it -> Note that installing termux from Play Store is highly discouraged.

In Termux:

pkg update
pkg upgrade

pkg install python

python -m pip install virtualenv
pip install --upgrade pip

Install yt-dlp (originated from youtube-dl) inside a virtual environment

Note: Technically speaking, a virtual environment is optional. In spite of that, it has various advantages.

# let's allow termux to access the phone's storage, it will ease our workflow:
pkg install termux-api

More info why this is needed here

This simlinks ~/storage to the default home directory.

# yt-dlp action Now we can download videos and music through yt-dlp. LIke

cd  ~/storage/downloads # note: this points to  /storage/emulated/0/Download

virtualenv venv
source venv/bin/activate
# yt-dlp depends on ffmpeg
pkg install ffmpeg
pip install -U yt-dlp


Other useful packages

pgk install neofetch

pkg install imagemagick
pkg install git
pkg install vim 
pgk install zsh
# set zsh to be the default shell
chsh -s zsh
# oh-my-zsh
sh -c "$(curl -fsSL"

ZSH plugins

pgk install build-essential 
pgk install file
pgk install curl 

cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
git clone ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

git clone ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

Edit the ~/.zshrc file to include the newly installed plugins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment