mjpg-streamer/scripts
wuqiyang 3e9b34d9a4 fork 2024-10-15 15:50:29 +08:00
..
README.md fork 2024-10-15 15:50:29 +08:00
make_deb.sh fork 2024-10-15 15:50:29 +08:00
mjpg-streamer.default fork 2024-10-15 15:50:29 +08:00
mjpg-streamer.init fork 2024-10-15 15:50:29 +08:00
mjpg-streamer.service fork 2024-10-15 15:50:29 +08:00

README.md

Script files for mjpg-streamer.

Assumes mjpg-streamer is installed at /usr/local/bin/mjpg_streamer and that there is a user account webcam for running these scripts.

If you have a different setup you'll need to adjust mjpg-streamer.default (init) or mjpg-streamer.service (systemd) accordingly.

The webcam user will need access to /dev/video*. To add this run:

sudo adduser webcam video
sudo usermod -a -G video webcam

init

mjpg-streamer.default   => /etc/default/mjpg-streamer
mjpg-streamer.init      => /etc/init.d/mjpg-streamer

After copying the above files run:

sudo update-rc.d mjpg-streamer defaults
sudo systemctl daemon-reload

systemd

mjpg-streamer.service   => /etc/systemd/system/mjpg-streamer.service