This guide walks you through the initial infrastructure setup for the Civilization Node.
- Ubuntu 22.04 LTS
- NVIDIA RTX 4070 (Drivers installed)
- Sudo access
Run the setup script to verify requirements and create the necessary directory structure at /opt/civilization.
chmod +x setup_env.sh
./setup_env.shNote: You will be prompted to allow sudo commands for directory creation.
Success Indicator:
- Output shows
[OK]for all checks. - Directories in
/opt/civilization/are created and owned by your user.
Start the Docker stack.
docker compose up -dSuccess Indicator:
- Docker pulls images (Ollama, Open WebUI, Kiwix).
- Containers
civ_ollama,civ_webui, andciv_librarystart.
Run the verification script to ensure systems are operational and the GPU is accessible.
chmod +x verify_deployment.sh
./verify_deployment.shSuccess Indicator:
- All services respond (HTTP 200/OK).
- GPU check inside Ollama passes.
- Open WebUI: http://localhost:3000
- Create the first admin account (this remains offline/local).
- Kiwix Library: http://localhost:8080
- Note: It will be empty until you add ZIM files to
/opt/civilization/library/zimsand restart the container.
- Note: It will be empty until you add ZIM files to
Issue: Nvidia Container Runtime Missing If Ollama fails to start with a GPU error:
- Ensure
nvidia-container-toolkitis installed. - Run:
sudo nvidia-ctk runtime configure --runtime=docker - Run:
sudo systemctl restart docker
Issue: Permission Denied on Volumes If containers crash immediately:
- Check permissions:
ls -ld /opt/civilization/models - Fix:
sudo chown -R $USER:$USER /opt/civilization