Install Ollama, Codex, OpenCode, Openclaw
Install Ollama
|
1 |
curl -fsSL https://ollama.com/install.sh | sh |
You will need sudo, then
|
1 |
ollama serve |
To add Ollama as a startup service
|
1 2 |
sudo useradd -r -s /bin/false -U -m -d /usr/share/ollama ollama sudo usermod -a -G ollama $(whoami) |
Create a service file in /etc/systemd/system/ollama.service:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<span class="line">[Unit]</span> <span class="line">Description=Ollama Service</span> <span class="line">After=network-online.target</span> [Service] <span class="line">ExecStart=/usr/bin/ollama serve </span><span class="line">User=ollama</span> <span class="line">Group=ollama</span> <span class="line">Restart=always</span> <span class="line">RestartSec=3</span> <span class="line">Environment="PATH=$PATH" [Install] WantedBy=multi-user.target</span> |
Then start the service:
|
1 2 |
sudo systemctl daemon-reload sudo systemctl enable --now ollama |
Pull a coding model Ollama pulls models from the Ollama model library. For local coding agents, pull a model that is good at code and supports […]
Install Ollama, Codex, OpenCode, Openclaw Read More »