#!/bin/bash # Script to configure Ollama on GPU VM to listen on all interfaces # Run this on the GPU VM (10.0.30.63) echo "Configuring Ollama to listen on all interfaces..." # Method 1: Set environment variable (temporary, until reboot) export OLLAMA_HOST=0.0.0.0:11434 echo "✓ Set OLLAMA_HOST=0.0.0.0:11434 (temporary)" # Method 2: Create systemd override (permanent) echo "" echo "Creating systemd override for permanent configuration..." sudo mkdir -p /etc/systemd/system/ollama.service.d sudo tee /etc/systemd/system/ollama.service.d/override.conf > /dev/null <