0% found this document useful (0 votes)
140 views2 pages

Octoprint Code

This document provides instructions for setting up multiple instances of Octoprint on a Raspberry Pi to control multiple 3D printers. It describes downloading Octoprint software, flashing an SD card with the Raspberry Pi OS, and using terminal commands to configure four instances of Octoprint that run on ports 5000 through 5003 and log to separate directories. After rebooting, the four Octoprint instances will be accessible via the Raspberry Pi's IP address on each respective port.

Uploaded by

wesley pilchard
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
140 views2 pages

Octoprint Code

This document provides instructions for setting up multiple instances of Octoprint on a Raspberry Pi to control multiple 3D printers. It describes downloading Octoprint software, flashing an SD card with the Raspberry Pi OS, and using terminal commands to configure four instances of Octoprint that run on ports 5000 through 5003 and log to separate directories. After rebooting, the four Octoprint instances will be accessible via the Raspberry Pi's IP address on each respective port.

Uploaded by

wesley pilchard
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Raspberry Pi I use:

http://www.microcenter.com/product/463674/Raspberry_Pi_3_Model_B_Basic_Kit

Octoprint software:

http://octoprint.org/download/

Win32 disk image software:

https://sourceforge.net/projects/win32diskimager/

Putty software:

http://www.putty.org/

You can run this whole block at the same time:

sudo su
cd /etc/init.d
sed s/octoprint/octoprint2/ < octoprint | sed s/OctoPrint/OctoPrint2/ | sed
s/bin\\/octoprint2/bin\\/octoprint/ > octoprint2
chmod 755 octoprint2
sed s/octoprint/octoprint3/ < octoprint | sed s/OctoPrint/OctoPrint3/ | sed
s/bin\\/octoprint3/bin\\/octoprint/ > octoprint3
chmod 755 octoprint3
sed s/octoprint/octoprint4/ < octoprint | sed s/OctoPrint/OctoPrint4/ | sed
s/bin\\/octoprint4/bin\\/octoprint/ > octoprint4
chmod 755 octoprint4
cd /etc/default
sed s/PORT=5000/PORT=5001/ < octoprint | sed s/HOST=127.0.0.1/HOST=0.0.0.0/ | sed
s/\$PORT/\$PORT\ --basedir\ \\/home\\/pi\\/.octoprint2/ > octoprint2
sed s/PORT=5000/PORT=5002/ < octoprint | sed s/HOST=127.0.0.1/HOST=0.0.0.0/ | sed
s/\$PORT/\$PORT\ --basedir\ \\/home\\/pi\\/.octoprint3/ > octoprint3
sed s/PORT=5000/PORT=5003/ < octoprint | sed s/HOST=127.0.0.1/HOST=0.0.0.0/ | sed
s/\$PORT/\$PORT\ --basedir\ \\/home\\/pi\\/.octoprint4/ > octoprint4

sed s/PORT=5000/PORT=5001/ < octoprint | sed s/HOST=127.0.0.1/HOST=0.0.0.0/ | sed


s/\$PORT/\$PORT\ --basedir\ \\/home\\/chris\\/.octoprint2/ > octoprint2
sed s/PORT=5000/PORT=5002/ < octoprint | sed s/HOST=127.0.0.1/HOST=0.0.0.0/ | sed
s/\$PORT/\$PORT\ --basedir\ \\/home\\/chris\\/.octoprint3/ > octoprint3
sed s/PORT=5000/PORT=5003/ < octoprint | sed s/HOST=127.0.0.1/HOST=0.0.0.0/ | sed
s/\$PORT/\$PORT\ --basedir\ \\/home\\/chris\\/.octoprint4/ > octoprint4
sudo update-rc.d octoprint2 defaults 99
sudo update-rc.d octoprint3 defaults 99
sudo update-rc.d octoprint4 defaults 99

Now reboot:
sudo reboot now

The four instance addresses will be:


your-ip
your-ip:5001
your-ip:5002
your-ip:5003

Check the messages log:

cd /var/log
sudo cat messages

Edit this file and add entries with the numbers found in the log file for all your printers:

sudo nano /etc/udev/rules.d/99-usb.rules

This is what the rules file entry looks like:


SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523",
SYMLINK+="ANETA2"

SUBSYSTEM=="tty", ATTRS{idVendor}=="2c99", ATTRS{idProduct}=="0002",


SYMLINK+="PRUSA"
SUBSYSTEM=="tty", ATTRS{idVendor}=="2974", ATTRS{idProduct}=="0503",
SYMLINK+="MPSM"

Reboot again:
sudo reboot now

Check your USB symlinks with this:

ls -l /dev

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy