This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NGINX, php | |
sudo apt-get install nginx | |
sudo apt-get install php5-fpm | |
sudo sed -i 's|index index.html index.htm|index index.php index.html index.htm|g' /etc/nginx/sites-enabled/default | |
sudo sed -i 's|#location ~ \\\.php$ {|location ~ \\\.php$ {|' /etc/nginx/sites-enabled/default | |
sudo sed -i 's|#\tinclude snippets/fastcgi-php.conf;|\tinclude snippets/fastcgi-php.conf;|g' /etc/nginx/sites-enabled/default | |
sudo sed -i 's|#\tfastcgi_pass unix:/var/run/php5-fpm.sock;|\tfastcgi_pass unix:/var/run/php5-fpm.sock; }|g' /etc/nginx/sites-enabled/default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MJPEG-streamer | |
# http://www.hiramine.com/physicalcomputing/raspberrypi/webcamstreaming.html | |
sudo apt-get install subversion libjpeg-dev imagemagick | |
svn co https://svn.code.sf.net/p/mjpg-streamer/code/mjpg-streamer mjpg-streamer | |
cd mjpg-streamer | |
make | |
cd .. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NTFS | |
sudo apt-get install fuse ntfs-3g | |
# usb automount | |
# | |
# http://raspberrypi.stackexchange.com/questions/41959/automount-various-usb-stick-file-systems-on-jessie-lite | |
sudo apt-get install usbmount | |
sudo sed -i 's|FILESYSTEMS="vfat ext2|FILESYSTEMS="vfat ntfs fuseblk ext2|g' /etc/usbmount/usbmount.conf | |
sudo sed -i 's|FS_MOUNTOPTIONS=""|FS_MOUNTOPTIONS="-fstype=ntfs-3g,nls=utf8,umask=007,gid=46 -fstype=fuseblk,nls=utf8,umask=007,gid=46 -fstype=vfat,gid=1000,uid=1000,umask=007"|g' /etc/usbmount/usbmount.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Redis | |
sudo apt-get install redis-server | |
sudo pip install redis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://qiita.com/kwi/items/36a5233d4ab31c015f8a | |
sudo apt-get update -y | |
sudo apt-get dist-upgrade -y | |
sudo apt-get install gstreamer1.0 gstreamer1.0-tools | |
# confirm using omx | |
gst-inspect-1.0 | grep omx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c_path=`pwd` | |
# x264 | |
git clone git://git.videolan.org/x264 | |
cd x264 | |
#./configure --prefix=${c_path}/output --enable-static --disable-opencl | |
#./configure --prefix=${c_path}/output --enable-shared --disable-opencl | |
./configure --enable-shared --disable-opencl | |
make -j4 | |
sudo make install | |
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://www.zedt.eu/tech/hardware/using-ds1302-real-time-clock-module-raspberry-pi/ | |
wget http://www.zedt.eu/storage/2014/07/rtc-pi-20140727.zip | |
unzip rtc-pi-20140727.zip | |
cc rtc-pi.c -o rtc-pi | |
sudo cp rtc-pi /usr/local/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-raspbian-jessie-opencv-3/ | |
c_path=`pwd` | |
sudo apt-get install libv4l-dev | |
cd /usr/include/linux | |
sudo ln -s ../libv4l1-videodev.h videodev.h | |
cd ${c_path} | |
sudo apt-get install build-essential cmake pkg-config | |
sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Welcome to nginx on Debian!</title> | |
<style> | |
body { | |
width: 35em; | |
margin: 0 auto; | |
font-family: Tahoma, Verdana, Arial, sans-serif; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -f v4l2 -input_format yuv420p -i /dev/video0 -an -c:v h264_omx -f segment -segment_format mpegts -segment_time 5 -segment_list stream/playlist.m3u8 stream/a%03d.ts |