These are scripts that allow you to install Ubuntu 23.10 or 22.04 into your Termux application without the need for a rooted device, Run things like https://ollama.ai inside of Ubuntu locally on your Android device!
- Ubuntu 23.10 (Mantic) (23.sh)
- Ubuntu 22.04 (Jammy) (22.sh)
- Update and Upgrade Termux:
apt update && apt upgrade -y
- Install wget, proot, and git:
apt install wget proot git -y
- Go to your HOME folder:
cd ~
- Download script:
git clone https://github.com/metaspartan/ubuntu
- Go to script folder:
cd ubuntu
- Give execution permission:
chmod +x 23.sh
- Run the script:
./23.sh -y
- Launch Ubuntu:
./startubuntu.sh
- Update Ubuntu:
apt update && apt upgrade -y
- Install deps:
apt install git wget curl jq
- Install Ollama:
curl -fsSL https://ollama.com/install.sh | sh
- Start Ollama:
ollama serve &
- Run a model that will work for your device like Qwen2:0.5b:
ollama run qwen2:0.5b --verbose
• If you have to use ubuntu in termux with a x86/i*86 architecture or prefer ubuntu 19.10 you can use this branch -> https://github.com/MFDGaming/ubuntu-in-termux/tree/ubuntu19.10
• If you get an error message that says "Fatal Kernel too old" you have to uncomment the line that reads "command+=" -k 4.14.81"" (remove the # that is located in front of the line) in the "startubuntu.sh" file
https://github.com/MFDGaming/ubuntu-in-termux for the original source
Carsen Klock https://x.com/carsenklock