A simple guide on how to install llama on your system using termux and proot-distro
recorded video of running llama at the end of the page
Install termux from Fdroid or from github
https://f-droid.org/en/packages/com.termux/
Update all the pakages in termux
pkg update Now install git and curl on termux
pkg install git
pkg install curlNow clone the proot-distro repository to your home folder
git clone https://github.com/termux/proot-distro.gitMove to the proot folder and run the installation script
cd proot-distro
./install.shAfter installation of proot list the available distro by
proot-distro listThen install ubuntu from the list and then login to ubuntu
proot-distro install ubuntu
proot-distro login ubunutfor more info use following command
proot-distro helpollama client software helps you to run local LLM on your device
Install ollama by running the command in ubuntu by proot-distro
curl -fsSL https://ollama.com/install.sh | shAfter installing ollama client start the service
ollama serve & - runs in backround
ollama serve - open new sessionInstall LLM according to the ram availablility of yout phone
now use this command to list all the available LLMs in the s/m
ollama listFor me there was an error due to time not syncing up with the current time so the LLM was not getting downloaded from their server
Install NTPDATE to sync the time of the ubuntu with actual time
apt install ntpdate ollama run llama3.2:1b this installs and runs the smallest and lightest LLM in your phone and automatically runs it for you
some commands
/bye - exits from llama
/clear - clears current memory top
kill <pid-code>for more LLM go to https://ollama.com/library
We are going to use open-WebUI for connecting llama API , install the open-WebUI using python or run on docker
python --versionNow install the open-webui
pip install open-webuiStart the webUI server
open-webui serveafter sucessfull installation run the open-webUI web interface
localhost:8080the first login will be the deafault admin and you can customise a lot on the webui
- run multiple model at the same time
- customise your own model based on other existing one
- make new user account , restrict acess and a lot more
- integrate mistral and other AI to include more features
proot-distros installed
ollama sucesffuly installed
sample output from ollama
sample video
ollama.mp4
For support, email adisplash@gmx.com or labzmad44@gmail.com



