diff options
author | makefu <github@syntax-fehler.de> | 2013-01-10 14:37:10 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2013-01-10 14:37:10 +0100 |
commit | 7296c90dff5e260c6279aed071fe507a4ddedc4a (patch) | |
tree | f569e130dee7b084c1afc078e0d19e17b7578362 /minikrebs/profiles/instacam | |
parent | 9b29cf3939802ab1cf634e6185f5b0beac52e590 (diff) |
emergency commit, i am so sorry...
Diffstat (limited to 'minikrebs/profiles/instacam')
7 files changed, 78 insertions, 0 deletions
diff --git a/minikrebs/profiles/instacam/custom_make b/minikrebs/profiles/instacam/custom_make new file mode 100755 index 00000000..cfe965b2 --- /dev/null +++ b/minikrebs/profiles/instacam/custom_make @@ -0,0 +1,3 @@ +#!/bin/sh + +make image PROFILE=TLWR703 PACKAGES="ip kmod-ipv6 kmod-fs-ext4 wireless-tools block-mount kmod-usb-core kmod-usb2 kmod-video-uvc mjpg-streamer -kmod-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe -dnsmasq -radvd " FILES=customfiles/ diff --git a/minikrebs/profiles/instacam/customfiles/etc/config/mjpg-streamer b/minikrebs/profiles/instacam/customfiles/etc/config/mjpg-streamer new file mode 100644 index 00000000..298b06fe --- /dev/null +++ b/minikrebs/profiles/instacam/customfiles/etc/config/mjpg-streamer @@ -0,0 +1,7 @@ +config mjpg-streamer core + option enabled "1" + option device "/dev/video0" + option resolution "1280x720" + option fps "25" + option www "/www/webcam" + option port "80" diff --git a/minikrebs/profiles/instacam/customfiles/etc/config/network b/minikrebs/profiles/instacam/customfiles/etc/config/network new file mode 100644 index 00000000..c459c4e0 --- /dev/null +++ b/minikrebs/profiles/instacam/customfiles/etc/config/network @@ -0,0 +1,9 @@ +config interface 'loopback' + option ifname 'lo' + option proto 'static' + option ipaddr '127.0.0.1' + option netmask '255.0.0.0' + +config interface 'lan' + option ifname 'eth0' + option proto 'dhcp' diff --git a/minikrebs/profiles/instacam/customfiles/etc/dropbear/authorized_keys b/minikrebs/profiles/instacam/customfiles/etc/dropbear/authorized_keys new file mode 120000 index 00000000..9c87fc52 --- /dev/null +++ b/minikrebs/profiles/instacam/customfiles/etc/dropbear/authorized_keys @@ -0,0 +1 @@ +/root/.ssh/authorized_keys
\ No newline at end of file diff --git a/minikrebs/profiles/instacam/customfiles/etc/rc.local b/minikrebs/profiles/instacam/customfiles/etc/rc.local new file mode 100644 index 00000000..3e91b57c --- /dev/null +++ b/minikrebs/profiles/instacam/customfiles/etc/rc.local @@ -0,0 +1 @@ +insmod uvcvideo diff --git a/minikrebs/profiles/instacam/customfiles/etc/shadow b/minikrebs/profiles/instacam/customfiles/etc/shadow new file mode 100644 index 00000000..251abaf5 --- /dev/null +++ b/minikrebs/profiles/instacam/customfiles/etc/shadow @@ -0,0 +1,5 @@ +root:$1$spkPLKf6$KEM1l1DgouvYjeBfkT2wW1:0:0:99999:7::: +daemon:*:0:0:99999:7::: +ftp:*:0:0:99999:7::: +network:*:0:0:99999:7::: +nobody:*:0:0:99999:7::: diff --git a/minikrebs/profiles/instacam/doc/README.md b/minikrebs/profiles/instacam/doc/README.md new file mode 100644 index 00000000..b5da2ddb --- /dev/null +++ b/minikrebs/profiles/instacam/doc/README.md @@ -0,0 +1,52 @@ +# Project Instacam + +# Description + +The aim of the project is to reliably push a video stream directly to the internets for +everyone to see at a very low price. + +# Hardware + +## Core (Wifi / Ethernet) +- TP-Link WR703n[Amazon](https://www.amazon.de/dp/B008UNA6FS/?tag=krebsco-21)[Ebay China](http://www.ebay.de/itm/BLUE-Mini-Nano-TP-LINK-TL-WR703N-150Mbps-WiFi-for-iPhone-4S-Wireless-Router-HOT-/360501556127?pt=COMP_EN_Routers&hash=item53ef91339f ) ~ 16 Euro +- USB Webcam + - [Logitech C270 with Autofocus (AZ)](https://www.amazon.de/dp/B003PAOAWG/?tag=krebsco-21) ~ 25 Euro + - [China NoName Cam (DX)](http://dx.com/p/compact-1-3mp-pc-usb-webcam-with-built-in-microphone-black-51874?Utm_rid=93398939&Utm_source=affiliate) ~ 5++ Euro + - [\* List of UVC Supported Devices](http://www.ideasonboard.org/uvc/ ) + - [\* List of GSPCA Supported Devices](http://linuxtv.org/wiki/index.php/Gspca_devices) +## 4G / 3G / UMTS +Currently Untested: +- usb hub ~ 4 Euro + - [NoName USB 2.0 Hub (DX)](http://dx.com/p/4-port-usb-2-0-hub-7980?Utm_rid=93398939&Utm_source=affiliate) + - [NoName USB 2.0 Hub (Ebay)](http://www.ebay.de/itm/200825754462?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649#ht_2486wt_1366) +- umts stick ~ 20 Euro +- MicroSD card (optional) + +## Mobile Version +either use (easy mode): +- USB Battery Bank + - [Dealextreme](http://dx.com/p/rechargeable-2000mah-mobile-emergency-power-battery-with-6-adapters-66902?Utm_rid=93398939&Utm_source=affiliate) +or (expert mode): +- DC-DC StepDown Module + - [Ebay](http://www.ebay.de/itm/221162832094?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649#ht_3092wt_1132) +- Battery Pack + - take any battery pack you can find (car battery, model making) + +# Software + +## Build Firmware + + git clone github.com/krebscode/painload krebs + cd krebs/minikrebs + ./prepare instacam + builder/init + +## Flash + + # flash image is at: + # builder/bin/ar71xx/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin + + # either flash image directly via web interface or + # after obtaining ssh-access on the router run + + OWN_IP=<<your ip>> ./upgrade <<remote ip>> |