Skip to content

Instantly share code, notes, and snippets.

@minhoolee
Last active January 11, 2017 08:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minhoolee/8d46c74d87edb1877f33 to your computer and use it in GitHub Desktop.
Save minhoolee/8d46c74d87edb1877f33 to your computer and use it in GitHub Desktop.
install-mjpg-streamer.sh
#! /bin/sh
# Install script for mjpg-streamer
# Written by Min Hoo Lee
# March 27, 2016 (3/27/16)
# Install dependencies
sudo apt-get install imagemagick libv4l-dev libjpeg-dev
git clone https://github.com/codewithpassion/mjpg-streamer.git
cd mjpg-streamer/mjpg-streamer
make USE_LIBV4L2=true clean all
sudo make DESTDIR=/usr/local install
# Add the installation location to the linker path
echo "export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/usr/local/lib" >> ~/.bashrc
echo "\n\nDone installing mjpg-streamer\n\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment