Configuring OctoPrint on an Orange Pi Zero – using Armbian Debian Jessie Distro

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 http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=594)
**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
octoprint ALL=(ALL) NOPASSWD:ALL

**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 ~
wget https://pypi.python.org/packages/source/p/pyserial/pyserial-2.7.tar.gz
tar -zxf pyserial-2.7.tar.gz
cd pyserial-2.7
sudo python setup.py install

** Obtain Octoprint
cd ~
git clone https://github.com/foosel/OctoPrint.git
cd OctoPrint
sudo python setup.py 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)

 

One thought on “Configuring OctoPrint on an Orange Pi Zero – using Armbian Debian Jessie Distro

Leave a Reply