Loading

Recent Topics

Octoprint on Armbian - (OrangePiZero)

by neiltheblue

I have a new build of the armbian based octoprint image that now supports OrangePiZeroPlus2-h3

https://github.com/neiltheblue/octopio

View Comment

Step through notes: octoprint on orangepizero

by BETLOG

I just went through the process, and after numerous image writes and much tinkering, here's my step through notes.

LOOKS LIKE RASPBIAN SERVER IS THE ONLY USEFUL IMAGE
http://www.orangepi.org/downloadresources/orangepizero/2017-05-05/orangepizero_e7c74a532b47c34968b5098.html
..../Raspbian_server_For_zero_H2+_V0_1/Raspbian_server_For_zero_H2+_V0_1.img
username(root/orangepi), password(orangepi)

get ip address from router or
arp & arp -n
OrangePi
IP=192.168.178.26

ssh root@$IP

sudo fs_resize

sudo reboot

ssh root@$IP

sudo apt-get update && sudo apt-get -y upgrade

apt-get install python-pip python-dev git virtualenv python-setuptools psmisc

deluser orangepi
rm -rf /home/orangepi
adduser pi

usermod -a -G tty pi
usermod -a -G dialout pi

visudo

pi ALL=(ALL) NOPASSWD:ALL

...at end of file

disable root login
passwd root -d

switch from root login to pi login
sudo su pi

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
cd ~
git clone https://github.com/foosel/OctoPrint.git
cd OctoPrint
virtualenv venv
./venv/bin/python setup.py install

sudo cp ~/OctoPrint/scripts/octoprint.init /etc/init.d/octoprint
sudo chmod +x /etc/init.d/octoprint
sudo cp ~/OctoPrint/scripts/octoprint.default /etc/default/octoprint

seems to work with ALL FIELDS UNCOMMENTED, and not otherwise
sudo nano /etc/default/octoprint

# Configuration for /etc/init.d/octoprint

OCTOPRINT_USER=pi

BASEDIR=/home/pi/.octoprint

CONFIGFILE=/home/pi/.octoprint/config.yaml

PORT=5000

DAEMON=/home/pi/OctoPrint/venv/bin/octoprint

DAEMON_ARGS="--port=$PORT"

UMASK=022

NICELEVEL=-2

START=yes

sudo update-rc.d octoprint defaults
sudo service octoprint start

sudo apt-get install haproxy

sudo cp /etc/haproxy/haproxy.cfg /etc/haproxy/haproxy.cfg_ORIG

sudo nano /etc/haproxy/haproxy.cfg
replaced contents

global
        maxconn 4096
        user haproxy
        group haproxy
        daemon
        log 127.0.0.1 local0 debug

defaults
        log     global
        mode    http
        option  httplog
        option  dontlognull
        retries 3
        option redispatch
        option http-server-close
        option forwardfor
        maxconn 2000
        timeout connect 5s
        timeout client  15min
        timeout server  15min

frontend public
        bind :::80 v4v6
        use_backend webcam if { path_beg /webcam/ }
        default_backend octoprint

backend octoprint
        reqrep ^([^\ :]*)\ /(.*)     \1\ /\2
        option forwardfor
        server octoprint1 127.0.0.1:5000

backend webcam
        reqrep ^([^\ :]*)\ /webcam/(.*)     \1\ /\2
        server webcam1  127.0.0.1:8080

sudo nano /etc/default/haproxy

ENABLED=1

sudo service haproxy restart
sudo service haproxy status

nmtui
setup wifi

relevant (ifconfig is no longer supported)
ip addr show
ip link set dev <interface> up
Ip link set dev <interface> down

guides installation Octoprint orange_pi_zero
View Comment

Let's get started!

by Vo_Van_163

I bought the Orange Pi and PC are very happy.
Thanks to everyone who already did something for this micro computer.
Join the group, add your model.
I made some enclosures for my PC. I will be glad to listen to suggestions and criticism, to help you.

View Comment

Has anyone ate an Orange pie before?

by Jahmez

Just wondering if orange pi should have been maybe peach pi, or apple pi, etc. I mean an orange pie sounds delicious. I just never have seen one before.

Honestly, didn't see any topics going on so figured...lets get the ball rolling :D

I'll be posting a real topic later. Currently working on a case for the Orange Pi Zero Plus2 H5

View Comment