Install octoprint on raspbian. i managed to get mjpg streamer running with my cam.