Skip to content

Instantly share code, notes, and snippets.

@brentru
Created May 19, 2017 16:16
Show Gist options
  • Save brentru/574c2c6299d22c4ecabe8e5954ec8db6 to your computer and use it in GitHub Desktop.
Save brentru/574c2c6299d22c4ecabe8e5954ec8db6 to your computer and use it in GitHub Desktop.
Two Octoprint Instances on 1x Raspberry Pi
** INSTRUCTIONS FROM A MEMBER OF THE 3D PRINTING CLUB ON FACEBOOK (https://www.facebook.com/groups/3Dprintingclub/) **
sudo cp /etc/init.d/octoprint /etc/init.d/octoprint2
sudo cp /etc/default/octoprint /etc/default/octoprint2
sudo nano /etc/init.d/octoprint2
change the following.
Provides: octoprint to Provides: octoprint2
NAME="Octoprint" to NAME="Octoprint2"
PKGNAME=octoprint to PKGNAME=octoprint2
save
exit
sudo nano /etc/default/octoprint2
Change
DAEMON_ARGS="--host=$HOST --port=$PORT"
to
DAEMON_ARGS="--port=5001 --config /home/pi/.octoprint2/config.yaml --basedir /home/pi/.octoprint2"
save (Ctrl + O) - Y - Enter
exit (Ctrl + X)
sudo update-rc.d octoprint2 defaults 99
sudo service octoprint2 start
exit putty
restart pi
and your done.
to access each instance of octopi log into them via the browser with the ip address and for the new one do the ip address followed by :5001
for example
instance 1 .... XXX.XXX.X.X
instance 2 .... XXX.XXX.X.X:5001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment