Small fixes
This commit is contained in:
@@ -9,11 +9,16 @@ The web UI is accessible at `https://agent0.glitch.university` via a persistent
|
|||||||
## Day 1 setup
|
## Day 1 setup
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone <this repo>
|
git clone https://ramanujan.glitch.university/glitch-university/agent0.git
|
||||||
cd Agent0
|
cd agent0
|
||||||
bash bootstrap.sh
|
bash bootstrap.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> **Note:** This repo must be **public** on Gitea for the clone to work on a fresh machine
|
||||||
|
> before SSH keys exist. Set it in Gitea → Settings → Make Public.
|
||||||
|
> If you prefer to keep it private, clone with a token instead:
|
||||||
|
> `git clone https://<user>:<token>@ramanujan.glitch.university/glitch-university/agent0.git`
|
||||||
|
|
||||||
The script handles everything it can automatically. When it finishes, it prints two SSH public keys and two copy-paste commands — that's all that's left to do manually.
|
The script handles everything it can automatically. When it finishes, it prints two SSH public keys and two copy-paste commands — that's all that's left to do manually.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
+17
-4
@@ -55,15 +55,28 @@ if command -v ollama >/dev/null 2>&1; then
|
|||||||
else
|
else
|
||||||
info "Installing Ollama..."
|
info "Installing Ollama..."
|
||||||
curl -fsSL https://ollama.com/install.sh | sh
|
curl -fsSL https://ollama.com/install.sh | sh
|
||||||
info "Ollama installed and started as systemd service"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Verify the systemd service is running
|
# Ensure the Ollama server is running
|
||||||
if systemctl is-active --quiet ollama 2>/dev/null; then
|
if [[ "$OS" == "Linux" ]]; then
|
||||||
|
if systemctl is-active --quiet ollama 2>/dev/null; then
|
||||||
info "Ollama service running"
|
info "Ollama service running"
|
||||||
else
|
else
|
||||||
info "Starting Ollama service..."
|
info "Starting Ollama service..."
|
||||||
sudo systemctl enable --now ollama
|
sudo systemctl enable --now ollama
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
# macOS — check if server is already answering, otherwise start in background
|
||||||
|
if curl -sf http://localhost:11434/api/tags >/dev/null 2>&1; then
|
||||||
|
info "Ollama server already running"
|
||||||
|
else
|
||||||
|
info "Starting Ollama server..."
|
||||||
|
ollama serve >/tmp/ollama.log 2>&1 &
|
||||||
|
sleep 2
|
||||||
|
curl -sf http://localhost:11434/api/tags >/dev/null 2>&1 \
|
||||||
|
&& info "Ollama server started" \
|
||||||
|
|| echo " Warning: Ollama server didn't respond — start it manually with: ollama serve"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Reference in New Issue
Block a user