{"id":13512399,"url":"https://github.com/guysoft/OctoPi","last_synced_at":"2025-03-30T22:32:43.390Z","repository":{"id":9328933,"uuid":"11174413","full_name":"guysoft/OctoPi","owner":"guysoft","description":"Scripts to build OctoPi, a Raspberry PI distro for controlling 3D printers over the web","archived":false,"fork":false,"pushed_at":"2025-03-18T22:35:36.000Z","size":1571,"stargazers_count":2534,"open_issues_count":120,"forks_count":371,"subscribers_count":127,"default_branch":"devel","last_synced_at":"2025-03-27T05:03:00.776Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guysoft.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-07-04T10:57:56.000Z","updated_at":"2025-03-23T04:10:21.000Z","dependencies_parsed_at":"2023-02-10T22:16:14.270Z","dependency_job_id":"439a0c66-0da3-4d64-97d7-ac7f4279f407","html_url":"https://github.com/guysoft/OctoPi","commit_stats":{"total_commits":479,"total_committers":62,"mean_commits":7.725806451612903,"dds":0.4634655532359081,"last_synced_commit":"e62bada2c4e91372ace724f7839ab61e34bfb824"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guysoft%2FOctoPi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guysoft%2FOctoPi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guysoft%2FOctoPi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guysoft%2FOctoPi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guysoft","download_url":"https://codeload.github.com/guysoft/OctoPi/tar.gz/refs/heads/devel","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246390878,"owners_count":20769476,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T03:01:49.162Z","updated_at":"2025-03-30T22:32:38.379Z","avatar_url":"https://github.com/guysoft.png","language":"Shell","funding_links":[],"categories":["Shell","Software"],"sub_categories":["Other Languages"],"readme":"OctoPi\n======\n\n.. image:: https://raw.githubusercontent.com/guysoft/OctoPi/devel/media/OctoPi.png\n.. :scale: 50 %\n.. :alt: OctoPi logo\n\nA `Raspberry Pi \u003chttp://www.raspberrypi.org/\u003e`_ distribution for 3d printers. It includes the `OctoPrint \u003chttp://octoprint.org\u003e`_ host software for 3d printers out of the box and `mjpg-streamer with RaspiCam support \u003chttps://github.com/jacksonliam/mjpg-streamer\u003e`_ for live viewing of prints and timelapse video creation.\n\nThis repository contains the source script to generate the distribution out of an existing `Raspbian \u003chttp://www.raspbian.org/\u003e`_ distro image.\n\nWhere to get it?\n----------------\n\nDownload the latest stable build via this button:\n\n.. image:: https://i.imgur.com/NvUOGfS.png\n   :target: https://octopi.octoprint.org/latest\n\nOfficial mirror is `here \u003chttps://github.com/guysoft/OctoPi/releases\u003e`_\n\nSecond mirror is `here \u003chttps://octopi.gnethomelinux.com/Distros/OctoPi/\u003e`_\n\nNightly builds are available `here \u003chttp://unofficialpi.org/Distros/OctoPi/nightly/\u003e`_\n\n64bit Nightly builds are available `here \u003chttp://unofficialpi.org/Distros/OctoPi/nightly-arm64/\u003e`_\n\nYou can also access the nightly builds raspberrypi imager channel by running::\n\n    rpi-imager --repo https://unofficialpi.org/rpi-imager/rpi-imager-octopi.json\n\nor for second mirror::\n\n    rpi-imager --repo https://octopi.gnethomelinux.com/rpi-imager/rpi-imager-octopi.json\n\nHow to use it?\n--------------\n\n#. Unzip the image and install it to an sd card `like any other Raspberry Pi image \u003chttps://www.raspberrypi.org/documentation/installation/installing-images/README.md\u003e`_\n#. Configure your WiFi by editing ``octopi-wpa-supplicant.txt`` on the root of the flashed card when using it like a thumb drive\n#. Boot the Pi from the card\n#. Log into your Pi via SSH (it is located at ``octopi.local`` `if your computer supports bonjour \u003chttps://learn.adafruit.com/bonjour-zeroconf-networking-for-windows-and-linux/overview\u003e`_ or the IP address assigned by your router), default username is \"pi\", default password is \"raspberry\". Run ``sudo raspi-config``. Once that is open:\n\n   a. Change the password via \"Change User Password\"\n   b. Optionally: Change the configured timezone via \"Localization Options\" \u003e \"Timezone\".\n   c. Optionally: Change the hostname via \"Network Options\" \u003e \"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.\n  \n   You can navigate in the menus using the arrow keys and Enter. To switch to selecting the buttons at the bottom use Tab.\n   \n   You do not need to expand the filesystem, current versions of OctoPi do this automatically.\n\nOctoPrint is located at `http://octopi.local \u003chttp://octopi.local\u003e`_ and also at `https://octopi.local \u003chttps://octopi.local\u003e`_. 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.\n\nTo install plugins from the commandline instead of OctoPrint's built-in plugin manager, :code:`pip` may be found at :code:`/home/pi/oprint/bin/pip`.  Thus, an example install cmd may be:  :code:`/home/pi/oprint/bin/pip install \u003cplugin-uri\u003e`\n\nIf 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 \u003chttp://octopi.local/webcam/?action=stream\u003e`_ and SSL respectively, or directly on its configured port 8080: `http://octopi.local:8080/?action=stream \u003coctopi.local:8080/?action=stream\u003e`_.\n\n\nFeatures\n--------\n\n* `OctoPrint \u003chttp://octoprint.org\u003e`_ host software for 3d printers out of the box\n* `Raspbian \u003chttp://www.raspbian.org/\u003e`_ tweaked for maximum performance for printing out of the box\n* `mjpg-streamer with RaspiCam support \u003chttps://github.com/jacksonliam/mjpg-streamer\u003e`_ for live viewing of prints and timelapse video creation.\n\nDeveloping\n----------\n\nRequirements\n~~~~~~~~~~~~\n\n#. `qemu-arm-static \u003chttp://packages.debian.org/sid/qemu-user-static\u003e`_\n#. `CustomPiOS \u003chttps://github.com/guysoft/CustomPiOS\u003e`_\n#. Downloaded `Raspbian \u003chttp://www.raspbian.org/\u003e`_ image.\n#. root privileges for chroot\n#. Bash\n#. git\n#. sudo (the script itself calls it, running as root without sudo won't work)\n#. jq (part of CustomPiOS dependencies)\n\nBuild OctoPi From within OctoPi / Raspbian / Debian / Ubuntu\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nOctoPi can be built from Debian, Ubuntu, Raspbian, or even OctoPi.\nBuild requires about 2.5 GB of free space available.\nYou can build it by issuing the following commands::\n\n    sudo apt-get install gawk util-linux qemu-user-static git p7zip-full python3 jq\n    \n    git clone https://github.com/guysoft/CustomPiOS.git\n    git clone https://github.com/guysoft/OctoPi.git\n    cd OctoPi/src/image\n    wget -c --trust-server-names 'https://downloads.raspberrypi.org/raspios_lite_armhf_latest'\n    cd ..\n    ../../CustomPiOS/src/update-custompios-paths\n    sudo modprobe loop\n    sudo bash -x ./build_dist\n    \nBuilding OctoPi Variants\n~~~~~~~~~~~~~~~~~~~~~~~~\n\nOctoPi 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 \u003chttps://github.com/guysoft/CustomPiOS/tree/CustomPiOS/src/variants/example\u003e`_.\n\ndocker exec -it mydistro_builder::\n\n    sudo docker exec -it mydistro_builder build [Variant]\n\nOr to build a variant inside a container::\n\n    sudo bash -x ./build_dist [Variant]\n    \nBuilding Using Docker\n~~~~~~~~~~~~~~~~~~~~~~\n`See Building with docker entry in wiki \u003chttps://github.com/guysoft/CustomPiOS/wiki/Building-with-Docker\u003e`_\n    \nBuilding Using Vagrant\n~~~~~~~~~~~~~~~~~~~~~~\nThere 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.\n\nMake sure you have a version of vagrant later than 1.9!\n\nIf you are using older versions of Ubuntu/Debian and not using apt-get `from the download page \u003chttps://www.vagrantup.com/downloads.html\u003e`_.\n\nTo use it::\n    \n    sudo apt-get install vagrant nfs-kernel-server virtualbox\n    sudo vagrant plugin install vagrant-nfs_guest\n    sudo modprobe nfs\n    cd ../OctoPi\n    git clone https://github.com/guysoft/CustomPiOS.git    \n    cd OctoPi/src\n    ../../CustomPiOS/src/update-custompios-paths\n    cd OctoPi/src/vagrant\n    sudo vagrant up\n    run_vagrant_build.sh\n\nAfter provisioning the machine, its also possible to run a nightly build which updates from devel using::\n\n    cd OctoPi/src/vagrant\n    run_vagrant_build.sh\n    \nTo build a variant on the machine simply run::\n\n    cd src/vagrant\n    run_vagrant_build.sh [Variant]\n    \n\nUsage\n~~~~~\n\n#. 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.\n#. Run ``src/build_dist`` as root.\n#. The final image will be created at the ``src/workspace``\n\nCode contribution would be appreciated!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguysoft%2FOctoPi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguysoft%2FOctoPi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguysoft%2FOctoPi/lists"}