Due to depricated methods, this tutorial no longer works. For a new way to get OctoPrint running on your Orange Pi, along with getting your webcam to work, check this video out.
• Running OctoPrint with Cam Support in Dock...
For this tutorial, you'll need a Windows PC, a micro-sd card reader, an Orange Pi (should work on Zero, One, Lite, and PC, possibly others) , a minimum 4gb MicroSD card, and a power supply for your Pi. This tutorial also requires you to be able to network into your Pi, but you can issue all these commands from the terminal window in Ubuntu if you prefer.
Commands issued here :
Update and upgrade your OS
1. sudo apt-get update
2. sudo apt-get upgrade
Create your user and give it sudo permissions
3. sudo adduser octoprint
4. sudo usermod -a -G tty octoprint
5. sudo usermod -a -G dialout octoprint
6. sudo adduser octoprint sudo
7. sudo visudo
Scroll to the bottom of the document, and add the line at the bottom
octoprint ALL=(ALL) NOPASSWD:ALL
Ctrl + O to save, Ctrl + X to exit
Remove the password from the octoprint user
8. sudo passwd octoprint -d
Install the required support software to make this all work
9. sudo apt-get install git python3-pip python3-dev python3-setuptools psmisc virtualenv
Switch to the octoprint user and confirm your identitiy
10.sudo su octoprint
11. whoami
Now install PySerial V2.7
12. cd ~
13. wget https://pypi.python .org/packages /source/p/pyserial/ pyserial-2.7.tar.gz
(please remove the spaces in the above filepath. YouTube shortens links when it detects them.
14. tar -zxf pyserial-2.7.tar.gz
15. cd pyserial-2.7
16. sudo python setup.py install
Download and compile the latest version of OctoPrint
17. cd ~
18. git clone https://github.com/foosel/OctoPrint.git
19. cd OctoPrint
20. virtualenv venv
21. ./venv/bin/python setup.py install
Start OctoPrint for the first time
22. ~/OctoPrint/venv/bin/octoprint serve
With OctoPrint running, you should be able to access it using your local browser.
Open the page in your local browser by entering [yourorangepiipaddress]:5000
Now, all that's left to do is make OctoPrint run on startup
In putty, Control + Z to end your run. Issue a reboot to start fresh
23. sudo cp ~/OctoPrint/scripts/octoprint.init /etc/init.d/octoprint
24. sudo chmod +x /etc/init.d/octoprint
25. sudo cp ~/OctoPrint/scripts/octoprint.default /etc/default/octoprint
26. sudo nano /etc/default/octoprint
Change the user to octoprint, and then edit the DAEMON line to remove the hashtag ad the beginning, and set the proper operating directory
DAEMON=/home/octoprint/OctoPrint/venv/bin/octoprint
OCTOPRINT_USER=octoprint
Ctrl + O to save, Ctrl + X to quit
Update the defaults
27. sudo update-rc.d octoprint defaults
28. sudo service octoprint start
----
Coming soon... The Print N Play Merch Store! Buy some swag, and help the channel
http://www.printnplay.ca
If you'd like to support this channel and buy some cool stuff, please use the links bellow! Any purchases made using them gives a little kickback to me, without costing you anything extra!
Shop for all things 3D Printing related at @ Gearbest here
https://www.gearbest.com/3d-printers-...
To snag yourself some awesome Matterhackers filament, check out this link
http://www.matterhackers.com?aff=7415
Or snag one of these printers!
The FL Sun Cricket Delta Printer @ Gearbest
https://www.gearbest.com/3d-printers-...
Zonestar P802QR2 Dual Extruder @ Gearbest
https://www.gearbest.com/3d-printers-...
Creality CR-10 Print @ Gearbest
https://www.gearbest.com/3d-printers-...
Creality CR-10 Enlarged @ Gearbest
https://www.gearbest.com/3d-printers-...
Creality CR-10 500mm @ Gearbest
https://www.gearbest.com/3d-printers-...