• Stars
    star
    2,461
  • Rank 18,689 (Top 0.4 %)
  • Language
    Shell
  • License
    GNU General Publi...
  • Created over 11 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Scripts to build OctoPi, a Raspberry PI distro for controlling 3D printers over the web

OctoPi

https://raw.githubusercontent.com/guysoft/OctoPi/devel/media/OctoPi.png

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?

Download the latest stable build via this button:

https://i.imgur.com/NvUOGfS.png

Official mirror is here

Second mirror is here

Nightly builds are available here

64bit Nightly builds are available here

How to use it?

  1. Unzip the image and install it to an sd card like any other Raspberry Pi image

  2. Configure your WiFi by editing octopi-wpa-supplicant.txt on the root of the flashed card when using it like a thumb drive

  3. Boot the Pi from the card

  4. Log into your Pi via SSH (it is located at octopi.local if your computer supports bonjour or the IP address assigned by your router), default username is "pi", default password is "raspberry". Run sudo raspi-config. Once that is open:

    1. Change the password via "Change User Password"
    2. Optionally: Change the configured timezone via "Localization Options" > "Timezone".
    3. Optionally: Change the hostname via "Network Options" > "Hostname". Your OctoPi instance will then no longer be reachable under octopi.local but rather the hostname you chose postfixed with .local, so keep that in mind.

    You can navigate in the menus using the arrow keys and Enter. To switch to selecting the buttons at the bottom use Tab.

    You do not need to expand the filesystem, current versions of OctoPi do this automatically.

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.

To install plugins from the commandline instead of OctoPrint's built-in plugin manager, pip may be found at /home/pi/oprint/bin/pip. Thus, an example install cmd may be: /home/pi/oprint/bin/pip install <plugin-uri>

If a USB webcam or the Raspberry Pi camera is detected, MJPG-streamer will be started automatically as webcam server. OctoPrint on OctoPi ships with correctly configured stream and snapshot URLs pointing at it. If necessary, you can reach it under http://octopi.local/webcam/?action=stream and SSL respectively, or directly on its configured port 8080: http://octopi.local:8080/?action=stream.

Features

Developing

Requirements

  1. qemu-arm-static
  2. CustomPiOS
  3. Downloaded Raspbian image.
  4. root privileges for chroot
  5. Bash
  6. git
  7. sudo (the script itself calls it, running as root without sudo won't work)
  8. jq (part of CustomPiOS dependencies)

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 gawk util-linux qemu-user-static git p7zip-full python3

git clone https://github.com/guysoft/CustomPiOS.git
git clone https://github.com/guysoft/OctoPi.git
cd OctoPi/src/image
wget -c --trust-server-names 'https://downloads.raspberrypi.org/raspios_lite_armhf_latest'
cd ..
../../CustomPiOS/src/update-custompios-paths
sudo modprobe loop
sudo bash -x ./build_dist

Building OctoPi Variants

OctoPi supports building variants, which are builds with changes from the main release build. An example and other variants are available in CustomPiOS, folder src/variants/example.

docker exec -it mydistro_builder:

sudo docker exec -it mydistro_builder build [Variant]

Or to build a variant inside a container:

sudo bash -x ./build_dist [Variant]

Building Using Docker

See Building with docker entry in wiki

Building Using Vagrant

There is a vagrant machine configuration to let build OctoPi in case your build environment behaves differently. Unless you do extra configuration, vagrant must run as root to have nfs folder sync working.

Make sure you have a version of vagrant later than 1.9!

If you are using older versions of Ubuntu/Debian and not using apt-get from the download page.

To use it:

sudo apt-get install vagrant nfs-kernel-server virtualbox
sudo vagrant plugin install vagrant-nfs_guest
sudo modprobe nfs
cd ../OctoPi
git clone https://github.com/guysoft/CustomPiOS.git
cd OctoPi/src
../../CustomPiOS/src/update-custompios-paths
cd OctoPi/src/vagrant
sudo vagrant up
run_vagrant_build.sh

After provisioning the machine, its also possible to run a nightly build which updates from devel using:

cd OctoPi/src/vagrant
run_vagrant_build.sh

To build a variant on the machine simply run:

cd src/vagrant
run_vagrant_build.sh [Variant]

Usage

  1. If needed, override existing config settings by creating a new file src/config.local. You can override all settings found in src/modules/octopi/config. If you need to override the path to the Raspbian image to use for building OctoPi, override the path to be used in ZIP_IMG. By default the most recent file matching *-raspbian.zip found in src/image will be used.
  2. Run src/build_dist as root.
  3. The final image will be created at the src/workspace

Code contribution would be appreciated!

More Repositories

1

FullPageOS

A raspberrypi distro to display a full page browser on boot
Shell
3,857
star
2

CustomPiOS

A Raspberry Pi and other ARM devices distribution builder
Shell
502
star
3

MagicMirrorOS

MagicMirrorOS out-of-the-box distro
Shell
224
star
4

RealtimePi

An out-of-the-box raspebrrypi/raspbian distro with a realtime kernel
Shell
138
star
5

OctoKlipperPi

OctoPi klipper using the CustoPiZer distro builder
Shell
84
star
6

UbuntuDockerPi

Ready to use 64bit ARM Docker for Raspberry Pi running on Ubuntu
Shell
44
star
7

ElectricSheepPi

A Raspberry Pi distribution to to run Electric Sheep
Shell
37
star
8

PleromaPi

RaspberryPi / CustomPiOS distro that run Pleroma out of the box
Shell
35
star
9

HotSpotOS

Raspberry Pi OS that starts a hotspot, if no wifi was found to conenct to
Shell
34
star
10

PhotoPrismPi

An out of the box Raspberry distro based on Ubuntu with PhotoPrism installed
Shell
25
star
11

AlarmBot

A telegram bot that serves as an alarm clock, runs best on a RaspberryPi
Python
23
star
12

SMS-Twitter-Gate

SMS to twitter gate server, using only cheap phones and a computer
Python
21
star
13

ZynthianOS

Disto to build a Zynthian image ready to ship
Shell
19
star
14

MtigOS

Raspberry Pi distro that lets you receive, store and graph sensor information from ESP8266 chips
Shell
14
star
15

fedigroup

A federated simple group
Python
13
star
16

3arabi

A translator for arabic chat
10
star
17

BackupFriendPi

A raspsberrypi distro you can put in your friend's house, or anywhere else, and it will let you backup your computer with history
Shell
9
star
18

LibrePhotosOS

An out of the box Raspberry Pi distro with LibrePhotos installed.
Shell
9
star
19

AlarmPi

A Raspberry Pi distribution that turns your Pi in to an IOT telegram-controlled alarm clock
Shell
9
star
20

BackupFriend-docker

Docker for RaspberryPi distro that lets backup your stuff to a friend
Shell
8
star
21

backupfriend-client

Backupfriend wx widgets client
Python
8
star
22

Raspbian64

An out of the box Raspbian distro with a 64bit chroot with docker.
Shell
8
star
23

midistrum

An app to use android's native midi system to create an omnichord/auto harp-like strum instrument. It also made me port native midi to kivy
Python
7
star
24

mod-ui-docker

Docker container that attaches to jack and runs mod-ui
Dockerfile
6
star
25

Mqtt_Wifi_manager

End to end, working moisture sensor, no need to solder, no hardcoded stuff, can be configured by pressing the reset button sevral times
C++
6
star
26

aax_to_mp3_splitter

Take mp3 files created from AAX2MP2, and text created from AudibleChapters and split accordingly
Python
5
star
27

PowerBeatsVR_song_writer

Convert a beats saber song to a powerbeats vr song
Python
5
star
28

Twitter-Status

Set your pidgin status from your twitter feed
Perl
4
star
29

pytorch-docker-armv7

pytorch for RaspberryPi
Dockerfile
4
star
30

pi-imager-web

Serve the pi-imager images list
Python
4
star
31

thedoorks

Hackathon project to detect doors in construction plans
Python
4
star
32

OctoPi-Klipper-CustomPiOS

Scripts to build OctoPi-Klipper, a Raspberry PI distro for controlling 3D printers over the web using OctoPrint and the Klipper firmware
Shell
4
star
33

EnergySource

Energy Source Godot Jam project
GDScript
4
star
34

unofficialpi

unofficialpi CI/CD scripts
Python
3
star
35

DiagHam

Port form svn repo of DiagHam from http://www.nick-ux.org/diagham/
C++
3
star
36

GPageCache

A small simple webpage cacher for webservers
PHP
3
star
37

shapedo

3D diff engine
JavaScript
3
star
38

SvxLinkWrapper

Wrapper for SvxLink to provide additional functionally, which is easy to extend
Python
3
star
39

Chrome-Extension-Modifier

A program used to patch Chrome extensions. For now it patches TweetDeck to support Right-to-Left languages
Python
3
star
40

guysoft

2
star
41

ownphotos-proxy

Simple proxy to handle ownphotos backend and frontend
Dockerfile
2
star
42

pi-gen-nightly

Scripts to make nightly builds Raspbian-lite image
Shell
2
star
43

Group-SMS-Manager

A system to send and handle incoming SMS on a range of Israeli service suppliers, and also cheap hardware
2
star
44

kivy-external-storage-permission

test kivy new external storage permission
Python
2
star
45

CraftBeerPiOS

RaspberryPi distro that runs CraftBeerPi out of the box
Shell
2
star
46

pyTwitterBot

A twitter bot written in python
Python
2
star
47

recycle_app_israel

This is a simple app to view all the electronics recycle location in israel
Python
2
star
48

ownphotos-client

A python package to interact with ownphotos api backend
Python
2
star
49

cyborg_ear_trainer

A tool to train people to hear using a cochlear implant
Python
2
star
50

Ockle

An autumated extendable PDUs and servers management system
Python
2
star
51

pytorch-build-arm

Docker container ot build pytorch for arm used in LibrePhotos
Shell
1
star
52

picturfy

Turn HTML webpages to PNG images
Python
1
star
53

docker-mtig

MTIG - Docker compose stack for Mosquitto Telegraf Influxdb and Grafana
1
star
54

p4a-build-spaces

A script for build & test environments to be used for building python-for-android apps. Uses docker.
Python
1
star
55

stale_mount_checker

Shameless copy of python-spam-module example in python docs modified to check if a filesystem is stale
C++
1
star
56

wikipedia_read_bot

A telegram bot that lets you look up wikipedia articles
Python
1
star
57

Twitter-Hivemind

A source to build a hivemind twitter service, that retweets a single acocunt
Python
1
star
58

abusive-internet

An access point that abuses the user, uses a raspberry pi and geekcon magic
1
star