1. Install Termux if you haven't already.
- Get Termux from F-Droid or Github. Never install Termux from a third-party source! Play Store releases are depreciated and a security risk.
2. Allow termux to download files into your phone's storage
termux-setup-storage
3. Update all packages
pkg update && pkg upgrade
4. Install additional tools
pkg install neofetch fish
5. Install Proot Distro
pkg install proot-distro
6. Install Arch Linux
proot-distro install archlinux
7. Log into Arch Linux as root
proot-distro login archlinux
8. Upgrade Arch Linux packages
pacman -Syu
9. Install Ollama on Arch Linux
curl -fsSL https://ollama.com/install.sh | sh
10. Start the Ollama Server
ollama serve &
- if it fails to start try the command again without the
&
11. Install and run Deepseek R1
ollama run deepseek-r1:1.5b
- Takes a second the first time because the model has to download
To exit the chat type /bye
To exit arch after leaving the chat type exit
To exit termux type exit
again
To start again after exiting use steps 7, 10, and 11.
You can verify ollama is running by visiting http://127.0.0.1:11434
after running the ollama serve command.
Other models can also be downloaded using Ollama.
You can use app with the ollama api to have a pretty interface to chat with instead of a terminal.
## 1. Install Termux if you haven't already.
- Get Termux from F-Droid or Github. Never install Termux from a third-party source! Play Store releases are depreciated and a security risk.
## 2. Allow termux to download files into your phone's storage
`termux-setup-storage`
## 3. Update all packages
`pkg update && pkg upgrade`
## 4. Install additional tools
`pkg install neofetch fish`
## 5. Install Proot Distro
`pkg install proot-distro`
## 6. Install Arch Linux
`proot-distro install archlinux`
## 7. Log into Arch Linux as root
`proot-distro login archlinux`
## 8. Upgrade Arch Linux packages
`pacman -Syu`
## 9. Install Ollama on Arch Linux
`curl -fsSL https://ollama.com/install.sh | sh`
## 10. Start the Ollama Server
`ollama serve &`
- if it fails to start try the command again without the `&`
## 11. Install and run Deepseek R1
`ollama run deepseek-r1:1.5b`
- Takes a second the first time because the model has to download
---
---
To exit the chat type `/bye`
To exit arch after leaving the chat type `exit`
To exit termux type `exit` again
---
---
To start again after exiting use steps 7, 10, and 11.
You can verify ollama is running by visiting `http://127.0.0.1:11434` after running the ollama serve command.
Other models can also be downloaded using Ollama.
---
---
You can use [this](https://github.com/JHubi1/ollama-app) app with the ollama api to have a pretty interface to chat with instead of a terminal.
(post is archived)