OctoPi
A Raspberry Pi distribution for 3d printers. It includes the OctoPrint host software for 3d printers out of the box and mjpg-streamer with RaspiCam support for live viewing of prints and timelapse video creation.
This repository contains the source script to generate the distribution out of an existing Raspbian distro image.
Where to get it?
Official mirror is here
There is also a torrent for 0.9.0 here
How to use it?
- unzip the image and dd it to an sd card like any other Raspberry Pi image
- boot the pi and connect it to a lan or wifi network, like any other Rasbpian installation.
- OctoPrint is located at http://octopi.local and also at https://octopi.local. Since the SSL certificate is self signed (and generated upon first boot), you will get a certificate warning at the latter location, please ignore it.
- If a webcam was plugged in, MJPG-streamer is on port 8080. You can reach it at: http://octopi.local:8080/?action=stream. It is also setup so that you can reach it under http://octopi.local/webcam/?action=stream and SSL respectively.
Developing
Requirements
- qemu-arm-static
- Downloaded Raspbian image.
- root privileges for chroot
- Bash
- realpath
Build OctoPi From within OctoPi / Raspbian / Debian / Ubuntu
OctoPi can be built from Debian, Ubuntu, Raspbian, or even OctoPi. Build requires about 2.5 GB of free space available. You can build it by issuing the following commands:
sudo apt-get install realpath qemu-user-static git clone https://github.com/guysoft/OctoPi.git cd OctoPi/src/image curl -J -O -L http://downloads.raspberrypi.org/raspbian_latest cd .. sudo bash -x ./build
Usage
- If needed, override existing config settings by creating a new file
src/config.local
. You can override all settings found insrc/config
. If you need to override the path to the Raspbian image to use for building OctoPi, override the path to be used inZIP_IMG
. By default the most recent file matching*-raspbian.zip
found insrc/image
will be used. - Run
src/build
as root. - The final image will be created at the
src/workspace
Code contribution would be appreciated!