Laptop Configuration Scripts
May 16, 2026 · View on GitHub
Scripts to configure your local laptop to connect to a remote DevBox server running Ollama.
Prerequisites
- A running DevBox server with Ollama configured
- Tailscale installed on both server and laptop
- Server's Tailscale IP address (run
tailscale ip -4on server)
Available Scripts
| Script | Purpose |
|---|---|
ollama-setup.sh | Add shell functions for quick AI queries |
zed-setup.sh | Configure Zed editor for remote Ollama |
shell-config.txt | Shell configuration snippet (copy-paste) |
Usage
Quick Shell Setup
# Set your server's Tailscale IP
export OLLAMA_SERVER_IP="100.x.x.x"
# Run the setup script
bash scripts/laptop/ollama-setup.sh
After running, you have these commands available:
ask "What is Python?" # Quick answer
askcode "Write hello world" # Code-focused answer
chat "Explain Docker" # Streaming response
ollamals # List remote models
Zed Editor Setup
export OLLAMA_SERVER_IP="100.x.x.x"
bash scripts/laptop/zed-setup.sh
This creates ~/.config/zed/settings.json with Ollama configuration.
Manual Setup
If you prefer manual configuration, copy the contents of shell-config.txt to your ~/.bashrc or ~/.zshrc and update the OLLAMA_SERVER_IP variable.
Finding Your Server IP
# On your server
tailscale ip -4
# Or from your laptop via SSH
ssh your-server "tailscale ip -4"
See Also
- Remote IDE Setup — Complete IDE configuration guide
- Ollama Optimization — Server-side performance tuning