termux script fix

This commit is contained in:
Concedo
2025-04-27 17:56:00 +08:00
parent 37060f54da
commit f77574765e
2 changed files with 12 additions and 6 deletions
+7 -5
View File
@@ -127,12 +127,14 @@ when you can't use the precompiled binary directly, we provide an automated buil
### Compiling on Android (Termux Installation)
- [First, Install and run Termux from F-Droid](https://f-droid.org/en/packages/com.termux/)
## Termux Quick Setup Script
You can use this auto-installation script to quickly install and build everything and launch KoboldCpp with a model.
## Termux Quick Setup Script (Easy Setup)
- You can use this auto-installation script to quickly install and build everything and launch KoboldCpp with a model.
Simply run:
`curl -sSL https://raw.githubusercontent.com/LostRuins/koboldcpp/concedo/android_install.sh | sh`
and follow the prompts displayed on screen.
## Termux Manual Instructions
```
curl -sSL https://raw.githubusercontent.com/LostRuins/koboldcpp/concedo/android_install.sh | sh
```
and it will install everything required. Alternatively, you can download the above `android_install.sh` script to file, then do `chmod +x` and run it interactively.
## Termux Manual Instructions (DIY Setup)
- Open termux and run the command `apt update`
- Install dependency `apt install openssl`
- Install other dependencies with `pkg install wget git python`
+5 -1
View File
@@ -11,7 +11,11 @@ fi
echo "--------------------------------------------"
echo "KoboldCPP Quick Installer for Termux (Android only!)"
echo "--------------------------------------------"
if [ -t 0 ]; then
if [ $# -ge 1 ]; then
choice="$1"
echo "Using command-line argument: $choice"
# Check if running interactively (terminal input)
elif [ -t 0 ]; then
# Running interactively
echo "[1] - Proceed to install and launch with default model Gemma3-1B"
echo "[2] - Proceed to install without a model, you can download one later."