Setting up OctoPrint on a Raspberry Pi running Raspbian

i have a problem with the webcam.i use the guide from here, but my camera will not start. I also read all posts here. no result.
User pi, Bananapi A20, Image Armbian (debian10), Video device ist /dev/video1
i have a webcam and a WebcamDaemon (green) in ./scripts
if i enter the mjpg_streamer by hand it will work. I think i have a problem with the autostart of mjpg_streamer.
Can anybody help?
And what do you want me to show you?

Did you change the pi related stuff to your username / directories ?
Are the scripts executable (chmod +x)?
Did you put them into /etc/rc.local as the guide said?

Yes both. and my user is pi

Hi, i think my problem is that mjpg_streamer should start at boot.


when i start me a20 i see that webcam ist started.
if i enter
./mjpg_streamer -i "./ -d /dev/video1 -r 1920x1080 -f 15" -o "./"
my camera works fine. but it dosn´t start after reboot.

no idea what i can do?

Sry I was quite busy today. I'll try to look at it tomorrow.

Hey it's going to be another day or two.. It's too hot for me right now. Can't think straight :sweat:

No problem.
Thanks 4 your help.

do you need some Files or other details?

hi, nobody here who can help?



I made it

No Ideas?
Need Help.

Regards Alero

good evening ... excellent guide, perfect even for beginners
I have a problem, I can't find the octopi.txt file, it looks like it hasn't been installed and if I download one from github, it doesn't let me save it in the root folder

As its name implies, the octopi.txt file is OctoPi specific. If you don't use OctoPi (and if you are using this guide you probably aren't or you wouldn't be using the guide) you won't have it.

I need some help/direction pointing...
OctoPrint 1.4.2 on Raspberry Pi 4, fully updated\upgraded
fresh install of Octo everything Octo-wise works fine, but when attempting to get the Raspberry Pi Cam to auto start, I get notta!
I can manually start the cam, and it works as expected, just not as a daemon
followed the instructions here to a TEE..

I created a directory </home/pi/scripts> as it didn't exist, I then created to blank files, an cut\paste the corresponding contents from this page in to the files "webcam" & " webcamDaemon", I also applied executable permissions. and Finely edited the rc.local file as instructed as well!
I get no love!

this is the working manual command I can use...
<./mjpg_streamer -i "./ -vs -x 1280 -y 720 -fps 32" -o "./" >

as a side note, I have looked all over attempting to use all kinds of different configurations

IMHO, the "Optional: Webcam" section is more complicated than it needs to be especially for the latest Raspberry Pi OS based off Debian using systemd.

Build mjpg-streamer

cd ~
git clone
cd mjpg-streamer-experimental

Start it automatically

Create the systemd service by sudo nano /etc/systemd/system/mjpg-streamer.service and add this inside the file

Description=mjpg streamer for octoprint webcam

# Adjust the CLI params (see
# Replace `pi` with your raspberry pi username if different
# For camera plugged via USB cable (i.e. webcam)
ExecStart=/home/pi/mjpg-streamer/mjpg-streamer-experimental/mjpg_streamer -o "/home/pi/mjpg-streamer/mjpg-streamer-experimental/ -p 8080 -w /home/pi/mjpg-streamer/mjpg-streamer-experimental/www" -i "/home/pi/mjpg-streamer/mjpg-streamer-experimental/ -f 15"
# For camera connected via the dedicated camera port using the ribbon cable
# ExecStart=/home/pi/mjpg-streamer/mjpg-streamer-experimental/mjpg_streamer -o "/home/pi/mjpg-streamer/mjpg-streamer-experimental/ -p 8080 -w /home/pi/mjpg-streamer/mjpg-streamer-experimental/www" -i "/home/pi/mjpg-streamer/mjpg-streamer-experimental/ -fps 15"


Then enable, start with the following commands

sudo systemctl daemon-reload 
sudo systemctl enable mjpg-streamer 
sudo systemctl start mjpg-streamer
sudo systemctl status mjpg-streamer

This is WAY more direct than all the unnecessary bash scripts that make it more fragile.

I request the instructions be updated to reflect this simplicity.

hello I am trying to install octopring manually, on the other hand the above described manipulation uses phyton 2.7 which is obsolete so I can not do the installation.