This is the second half of setting up an Orange Pi Zero.  These are the steps I followed to configure Octoprint.  I’m annoyed that it has to be started manually, but it does work and stay running.

—- OctoPrint Config —- (adapted from
**add user and configure permissions
sudo adduser octoprint
sudo usermod -a -G tty octoprint
sudo usermod -a -G dialout octoprint
sudo adduser octoprint sudo
sudo visudo

**clear password for user
sudo passwd octoprint -d
** install packages
sudo apt-get install python-pip python-dev git python-setuptools psmisc

set memory on Python otherwise you can have issues: (or create 256M of swap, see above)

sudo su octoprint

** setup pyserial
cd ~
tar -zxf pyserial-2.7.tar.gz
cd pyserial-2.7
sudo python install

** Obtain Octoprint
cd ~
git clone
cd OctoPrint
sudo python install

exit (stop being SUDO)

cd ~/OctoPRint (you should still be there, so this is just in case you did something else)
./run (it should start)


2 Responses

  1. I managed to start octoprint at boot by adding the following line to /etc/rc.local :
    sudo start-stop-daemon –start –quiet -c octoprint -g octoprint –exec /usr/local/bin/octoprint serve

Comments are closed.