Setting Up OctoPrint on a Raspberry Pi as a Headless Print Server
raspberry pioctoprint3d printingprint serverheadless
OctoPrint turns a Raspberry Pi into a dedicated 3D print server — web interface, remote monitoring, print queue, plugin ecosystem. Here's the no-monitor headless setup.
What You Need
- Raspberry Pi 3B+, 4, or 5 (3B+ is sufficient)
- MicroSD card (16GB+ Class 10 or better)
- USB cable to connect to your printer
- Same WiFi network as your computer
Step 1 — Flash OctoPi
OctoPi is Raspberry Pi OS pre-loaded with OctoPrint.
- Download Raspberry Pi Imager (rpi.imager)
- Click Choose OS → Other specific-purpose OS → 3D printing → OctoPi
- Select your SD card
- Click the ⚙️ settings icon (gear) — configure:
- WiFi SSID and password
- Hostname:
octopi.local - Enable SSH
- Username:
pi, set a password - Click Write
Step 2 — First Boot
- Insert SD card into Pi, connect printer via USB, power on Pi
- Wait 2–3 minutes for first boot (resizes filesystem)
- On your computer, go to:
http://octopi.local - OctoPrint setup wizard appears
Step 3 — Setup Wizard
- Access control: Create your admin username and password
- Connectivity check: Let it check for updates
- Printer profile:
- Name: Kobra 3 V2
- Bed: 250 × 250 × 260mm
- Baud rate: 250000 (try 115200 if issues)
- Click through remaining steps
Step 4 — Connect to Printer
In OctoPrint dashboard:
- Connection panel (top left)
- Port:
/dev/ttyUSB0or/dev/ttyACM0(auto-detect if unsure) - Baud rate: 250000
- Click Connect
- Terminal tab should show printer response
Essential Plugins
Install via Settings → Plugin Manager → Get More:
| Plugin | Purpose |
|---|---|
| Bed Visualizer | 3D bed mesh visualization |
| PrintTimeGenius | Better time estimates |
| Obico (The Spaghetti Detective) | AI failure detection |
| OctoEverywhere | Remote access from anywhere |
| Firmware Updater | Flash Klipper/Marlin updates |
| Themeify | Dark theme |
Remote Access Without Port Forwarding
Install OctoEverywhere plugin — provides a secure tunnel so you can access OctoPrint from outside your home network without exposing your Pi to the internet.
Webcam (Optional)
Connect a USB webcam or Pi camera. OctoPi includes mjpg-streamer. Access stream at: http://octopi.local/webcam/?action=stream
Configure in OctoPrint: Settings → Webcam & Timelapse