3D Printing

Installing OctoPrint w/Docker on Pi3

I always found it a pain to deal with Python libraries and virtual environments on my Raspberry Pis. I decided to give Docker a try as it would completely isolate my OctoPrint environment from the other stuff I had running on the PI.

Step 1 – Installing Docker

curl -fsSL https://get.docker.com -o get-docker.sh

sudo sh ./get-docker.sh 

sudo usermod -aG docker pi

#remember to logout and back in

docker info

docker run hello-world

You should get an output like this:

Step 2 – Install and Run OctoPrint

# find your serial port
ls -latr /dev/tty

# create a volume
docker volume create octoprint

# run your container
docker run -d --restart unless-stopped -v octoprint:/octoprint \
-p 5000:80 --device /dev/ttyUSB1:/dev/ttyUSB1 --name octoprint \ octoprint/octoprint

Replace 5000 with the port you want it on and ttyUSB1 with your serial port identifier.

Now you can browser to your PI’s IP address http://ipaddress:5000

That’s it. Happy Printing!

Installing OctoPrint w/Docker on Pi3 Read More »

Installing Octoprint – Raspberry PI Sketch

As usual, instructions are not complete. I thought I’d share exactly what I did from bash history fresh install. I’ve excluded the fatal errors, with those and repeats excluded this is what I did:

sudo apt-get install git python2.7-dev libyaml-dev libpython2.7-dev
python -v
git clone https://github.com/foosel/OctoPrint.git
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py --user
~/.local/bin/pip install --user virtualenv
cd OctoPrint
~/.local/bin/virtualenv venv
venv/bin/python setup.py install
venv/bin/octoprint daemon start

 

Installing Octoprint – Raspberry PI Sketch Read More »

Scroll to Top