summaryrefslogtreecommitdiffstats
path: root/minikrebs
diff options
context:
space:
mode:
Diffstat (limited to 'minikrebs')
-rw-r--r--minikrebs/doc/SETUP2
-rwxr-xr-xminikrebs/prepare10
-rw-r--r--minikrebs/profiles/README.md5
-rwxr-xr-xminikrebs/profiles/camkrebs_uvc/custom_make3
l---------minikrebs/profiles/camkrebs_uvc/customfiles/etc/rc.d/S91mjpg-streamer1
-rwxr-xr-xminikrebs/profiles/camkrebs_zc3xx/custom_make2
-rw-r--r--minikrebs/profiles/camkrebs_zc3xx/doc/README.md2
l---------minikrebs/profiles/heckenkrebs/customfiles/etc/dropbear/authorized_keys (renamed from minikrebs/profiles/camkrebs_uvc/customfiles/etc/dropbear/authorized_keys)0
-rw-r--r--minikrebs/profiles/heckenkrebs/doc/README.md (renamed from minikrebs/README)0
-rw-r--r--minikrebs/profiles/init_overlay10
-rwxr-xr-xminikrebs/profiles/instacam/custom_make3
-rw-r--r--minikrebs/profiles/instacam/customfiles/etc/config/mjpg-streamer (renamed from minikrebs/profiles/camkrebs_uvc/customfiles/etc/config/mjpg-streamer)0
-rw-r--r--minikrebs/profiles/instacam/customfiles/etc/config/network (renamed from minikrebs/profiles/camkrebs_uvc/customfiles/etc/config/network)0
l---------minikrebs/profiles/instacam/customfiles/etc/dropbear/authorized_keys (renamed from minikrebs/profiles/rickroller/customfiles/etc/dropbear/authorized_keys)0
-rw-r--r--minikrebs/profiles/instacam/customfiles/etc/rc.local (renamed from minikrebs/profiles/camkrebs_uvc/customfiles/etc/rc.local)0
-rw-r--r--minikrebs/profiles/instacam/customfiles/etc/shadow (renamed from minikrebs/profiles/camkrebs_uvc/customfiles/etc/shadow)0
-rw-r--r--minikrebs/profiles/instacam/doc/README.md52
-rw-r--r--minikrebs/profiles/krebs/customfiles/etc/rc.local5
-rwxr-xr-xminikrebs/profiles/krebscam/custom_make2
-rw-r--r--minikrebs/profiles/krebscam/customfiles/etc/config/network14
-rw-r--r--minikrebs/profiles/krebscam/customfiles/etc/config/system11
-rw-r--r--minikrebs/profiles/krebscam/customfiles/etc/config/tinc (renamed from minikrebs/profiles/krebs/customfiles/etc/config/tinc)0
-rw-r--r--minikrebs/profiles/krebscam/customfiles/etc/config/wireless19
l---------minikrebs/profiles/krebscam/customfiles/etc/dropbear/authorized_keys1
l---------minikrebs/profiles/krebscam/customfiles/etc/rc.d/tinc (renamed from minikrebs/profiles/krebs/customfiles/etc/rc.d/tinc)0
-rw-r--r--minikrebs/profiles/krebscam/customfiles/etc/rc.local3
-rw-r--r--minikrebs/profiles/krebscam/customfiles/etc/shadow (renamed from minikrebs/profiles/rickroller/customfiles/etc/shadow)0
-rwxr-xr-xminikrebs/profiles/krebscam/customfiles/usr/bin/autoinfest4
-rwxr-xr-xminikrebs/profiles/krebscam/customfiles/usr/bin/genhostid2
-rwxr-xr-xminikrebs/profiles/krebscam/customfiles/usr/bin/led3
-rwxr-xr-xminikrebs/profiles/krebscam/customfiles/usr/bin/tinc-update4
-rw-r--r--minikrebs/profiles/krebscam/doc/README.md8
-rwxr-xr-xminikrebs/profiles/lazorkrebs/custom_make3
-rw-r--r--minikrebs/profiles/lazorkrebs/customfiles/etc/config/mjpg-streamer7
-rw-r--r--minikrebs/profiles/lazorkrebs/customfiles/etc/config/network9
l---------minikrebs/profiles/lazorkrebs/customfiles/etc/dropbear/authorized_keys1
-rw-r--r--minikrebs/profiles/lazorkrebs/customfiles/etc/rc.local1
-rw-r--r--minikrebs/profiles/lazorkrebs/customfiles/etc/shadow5
-rw-r--r--minikrebs/profiles/rickroller/customfiles/www/flvplayer.swfbin29708 -> 0 bytes
-rw-r--r--minikrebs/profiles/rickroller/customfiles/www/index.html24
-rw-r--r--minikrebs/profiles/rickroller/customfiles/www/rickroll.flvbin1078840 -> 0 bytes
-rw-r--r--minikrebs/profiles/rickroller/doc/README.md8
-rwxr-xr-xminikrebs/profiles/rickroller_advanced/airbase-ngbin0 -> 89141 bytes
-rwxr-xr-xminikrebs/profiles/rickroller_advanced/custom_make4
-rw-r--r--minikrebs/profiles/rickroller_advanced/customfiles/etc/config/dhcp (renamed from minikrebs/profiles/rickroller/customfiles/etc/config/dhcp)0
-rw-r--r--minikrebs/profiles/rickroller_advanced/customfiles/etc/config/firewall (renamed from minikrebs/profiles/rickroller/customfiles/etc/config/firewall)0
-rw-r--r--minikrebs/profiles/rickroller_advanced/customfiles/etc/config/fstab19
-rw-r--r--minikrebs/profiles/rickroller_advanced/customfiles/etc/config/network (renamed from minikrebs/profiles/rickroller/customfiles/etc/config/network)0
-rw-r--r--minikrebs/profiles/rickroller_advanced/customfiles/etc/config/system (renamed from minikrebs/profiles/rickroller/customfiles/etc/config/system)0
-rw-r--r--minikrebs/profiles/rickroller_advanced/customfiles/etc/config/uhttpd (renamed from minikrebs/profiles/rickroller/customfiles/etc/config/uhttpd)0
-rw-r--r--minikrebs/profiles/rickroller_advanced/customfiles/etc/config/wireless (renamed from minikrebs/profiles/rickroller/customfiles/etc/config/wireless)0
l---------minikrebs/profiles/rickroller_advanced/customfiles/etc/dropbear/authorized_keys1
-rw-r--r--minikrebs/profiles/rickroller_advanced/customfiles/etc/shadow5
-rw-r--r--minikrebs/profiles/rickroller_advanced/customfiles/etc/uhttpd.crt (renamed from minikrebs/profiles/rickroller/customfiles/etc/uhttpd.crt)bin529 -> 529 bytes
-rw-r--r--minikrebs/profiles/rickroller_advanced/customfiles/etc/uhttpd.key (renamed from minikrebs/profiles/rickroller/customfiles/etc/uhttpd.key)bin609 -> 609 bytes
-rw-r--r--minikrebs/profiles/rickroller_advanced/doc/OVERLAY6
-rw-r--r--minikrebs/profiles/rickroller_advanced/doc/README.md10
-rw-r--r--minikrebs/profiles/rickroller_advanced/overlay/www/1x1.gif (renamed from minikrebs/profiles/rickroller/customfiles/www/1x1.gif)bin35 -> 35 bytes
-rwxr-xr-xminikrebs/profiles/rickroller_advanced/overlay/www/cgi-bin/rrhelper (renamed from minikrebs/profiles/rickroller/customfiles/www/cgi-bin/rrhelper)0
-rw-r--r--minikrebs/profiles/rickroller_advanced/overlay/www/index.html27
-rw-r--r--minikrebs/profiles/rickroller_advanced/overlay/www/rick.gifbin0 -> 506229 bytes
-rw-r--r--minikrebs/profiles/rickroller_advanced/overlay/www/rick.oggbin0 -> 390604 bytes
-rwxr-xr-xminikrebs/profiles/rickroller_bare/custom_make (renamed from minikrebs/profiles/rickroller/custom_make)0
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/etc/config/dhcp28
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/etc/config/firewall112
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/etc/config/network15
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/etc/config/system8
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/etc/config/uhttpd13
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/etc/config/wireless19
l---------minikrebs/profiles/rickroller_bare/customfiles/etc/dropbear/authorized_keys1
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/etc/shadow5
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/etc/uhttpd.crtbin0 -> 529 bytes
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/etc/uhttpd.keybin0 -> 609 bytes
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/www/1x1.gifbin0 -> 35 bytes
-rwxr-xr-xminikrebs/profiles/rickroller_bare/customfiles/www/cgi-bin/rrhelper15
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/www/index.html27
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/www/rick.gifbin0 -> 506229 bytes
-rw-r--r--minikrebs/profiles/rickroller_bare/customfiles/www/rick.oggbin0 -> 390604 bytes
-rw-r--r--minikrebs/profiles/rickroller_bare/doc/README.md21
-rw-r--r--minikrebs/profiles/rickroller_bare/doc/videoconvert7
-rwxr-xr-xminikrebs/profiles/streamerkrebs/custom_make2
-rw-r--r--minikrebs/profiles/streamerkrebs/doc/README.md3
-rw-r--r--minikrebs/profiles/wifibridge/.gitignore1
-rwxr-xr-xminikrebs/profiles/wifibridge/custom_make2
-rw-r--r--minikrebs/profiles/wifibridge/customfiles/etc/config/firewall104
-rw-r--r--minikrebs/profiles/wifibridge/customfiles/etc/config/fstab19
-rw-r--r--minikrebs/profiles/wifibridge/customfiles/etc/config/network17
-rw-r--r--minikrebs/profiles/wifibridge/customfiles/etc/config/wireless21
l---------minikrebs/profiles/wifibridge/customfiles/etc/dropbear/authorized_keys1
-rw-r--r--minikrebs/profiles/wifibridge/customfiles/etc/rc.local4
-rw-r--r--minikrebs/profiles/wifibridge/customfiles/etc/shadow5
-rw-r--r--minikrebs/profiles/wifibridge/customfiles/root/.ssh/authorized_keys1
-rwxr-xr-xminikrebs/profiles/wifibridge/customfiles/usr/bin/autoinfest4
-rwxr-xr-xminikrebs/profiles/wifibridge/customfiles/usr/bin/genhostid2
-rwxr-xr-xminikrebs/profiles/wifibridge/customfiles/usr/bin/led3
-rwxr-xr-xminikrebs/profiles/wifibridge/customfiles/usr/bin/tinc-update4
-rwxr-xr-xminikrebs/upgrade4
97 files changed, 718 insertions, 46 deletions
diff --git a/minikrebs/doc/SETUP b/minikrebs/doc/SETUP
deleted file mode 100644
index f8e9ca3b..00000000
--- a/minikrebs/doc/SETUP
+++ /dev/null
@@ -1,2 +0,0 @@
-make command used in image builder. files is the customfiles directory
-make image PROFILE=TLWR703 PACKAGES="tinc curl kmod-ipv6 radvd ip wireless-tools block-mount kmod-usb-core kmod-usb2 kmod-usb-storage -kmod-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe" FILES=files/
diff --git a/minikrebs/prepare b/minikrebs/prepare
index 610c1299..6b69db50 100755
--- a/minikrebs/prepare
+++ b/minikrebs/prepare
@@ -24,6 +24,7 @@ echo
echo "copying generic init:"
cp --remove-destination profiles/init builder/init
echo " profile/init -> builder/init"
+[ -e builder/overlay ] && echo "removing old overlay" && rm -rf builder/overlay
echo
echo "copying profile:"
find profiles/$PROFILE -mindepth 1 -maxdepth 1| while read file; do
@@ -34,4 +35,11 @@ done
echo
echo $PROFILE > builder/current_profile
-echo 'now run `builder/init`'
+echo "Finished Preparing Profile $PROFILE"
+echo 'run `builder/init`'
+
+if [ -e builder/overlay ];then
+ echo
+ echo "This profile also contains overlay data,"
+ echo 'run `builder/init_overlay` to copy'
+fi
diff --git a/minikrebs/profiles/README.md b/minikrebs/profiles/README.md
index fc1e8945..9e324d9e 100644
--- a/minikrebs/profiles/README.md
+++ b/minikrebs/profiles/README.md
@@ -1,4 +1,9 @@
+# Profiles
Every profile must have a `custom_make` script which builds the image for the
profile. This script also can contain which customizes the image files before
building.
+
+You may also want to include your own files into your image, adding file=customfile in your custom\_make.
+
+default password is `aidsballs`
diff --git a/minikrebs/profiles/camkrebs_uvc/custom_make b/minikrebs/profiles/camkrebs_uvc/custom_make
deleted file mode 100755
index 752a7bfe..00000000
--- a/minikrebs/profiles/camkrebs_uvc/custom_make
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-make image PROFILE=TLWR703 PACKAGES="tinc ip kmod-ipv6 radvd kmod-fs-ext4 wireless-tools kmod-usb-core kmod-usb2 -kmod-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe -dnsmasq kmod-video-uvc mjpg-streamer" FILES=customfiles/
diff --git a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/rc.d/S91mjpg-streamer b/minikrebs/profiles/camkrebs_uvc/customfiles/etc/rc.d/S91mjpg-streamer
deleted file mode 120000
index 11b1e90d..00000000
--- a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/rc.d/S91mjpg-streamer
+++ /dev/null
@@ -1 +0,0 @@
-../init.d/mjpg-streamer \ No newline at end of file
diff --git a/minikrebs/profiles/camkrebs_zc3xx/custom_make b/minikrebs/profiles/camkrebs_zc3xx/custom_make
index 8f9faf10..642513be 100755
--- a/minikrebs/profiles/camkrebs_zc3xx/custom_make
+++ b/minikrebs/profiles/camkrebs_zc3xx/custom_make
@@ -1,3 +1,3 @@
#!/bin/sh
-make image PROFILE=TLWR703 PACKAGES="tinc ip kmod-ipv6 radvd kmod-fs-ext4 wireless-tools kmod-usb-core kmod-usb2 kmod-video-gspca-zc3xx mjpg-streamer -kmod-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe -dnsmasq" FILES=customfiles/
+make image PROFILE=TLWR703 PACKAGES="tinc ip kmod-ipv6 kmod-fs-ext4 wireless-tools block-mount kmod-usb-core kmod-usb2 kmod-video-gspca-zc3xx mjpg-streamer -kmod-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe -dnsmasq -radvd" FILES=customfiles/
diff --git a/minikrebs/profiles/camkrebs_zc3xx/doc/README.md b/minikrebs/profiles/camkrebs_zc3xx/doc/README.md
index 3f93bfda..1b3d4beb 100644
--- a/minikrebs/profiles/camkrebs_zc3xx/doc/README.md
+++ b/minikrebs/profiles/camkrebs_zc3xx/doc/README.md
@@ -1,4 +1,4 @@
# Documentation
-Firmware for krebs with Logitech QuickCam Messenger attached.
+Firmware for krebs with Cheapo china webcam with zc3xx chipset attached.
The profile is derived from krebs
diff --git a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/dropbear/authorized_keys b/minikrebs/profiles/heckenkrebs/customfiles/etc/dropbear/authorized_keys
index 9c87fc52..9c87fc52 120000
--- a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/dropbear/authorized_keys
+++ b/minikrebs/profiles/heckenkrebs/customfiles/etc/dropbear/authorized_keys
diff --git a/minikrebs/README b/minikrebs/profiles/heckenkrebs/doc/README.md
index 11d6f527..11d6f527 100644
--- a/minikrebs/README
+++ b/minikrebs/profiles/heckenkrebs/doc/README.md
diff --git a/minikrebs/profiles/init_overlay b/minikrebs/profiles/init_overlay
new file mode 100644
index 00000000..3b714c39
--- /dev/null
+++ b/minikrebs/profiles/init_overlay
@@ -0,0 +1,10 @@
+#!/bin/sh
+[ ! -e overlay/ ] && echo "profile data for external overlay does not exist, bailing out"
+
+[ ! -e doc/overlay ] && echo "Profile demands the following partitioning of the overlay usb stick:" && cat doc/overlay
+
+if grep -q $PWD/mnt/overlay /etc/mtab;then
+
+else
+ echo "please mount your overlay to $PWD/overlay"
+fi
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/camkrebs_uvc/customfiles/etc/config/mjpg-streamer b/minikrebs/profiles/instacam/customfiles/etc/config/mjpg-streamer
index 298b06fe..298b06fe 100644
--- a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/config/mjpg-streamer
+++ b/minikrebs/profiles/instacam/customfiles/etc/config/mjpg-streamer
diff --git a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/config/network b/minikrebs/profiles/instacam/customfiles/etc/config/network
index c459c4e0..c459c4e0 100644
--- a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/config/network
+++ b/minikrebs/profiles/instacam/customfiles/etc/config/network
diff --git a/minikrebs/profiles/rickroller/customfiles/etc/dropbear/authorized_keys b/minikrebs/profiles/instacam/customfiles/etc/dropbear/authorized_keys
index 9c87fc52..9c87fc52 120000
--- a/minikrebs/profiles/rickroller/customfiles/etc/dropbear/authorized_keys
+++ b/minikrebs/profiles/instacam/customfiles/etc/dropbear/authorized_keys
diff --git a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/rc.local b/minikrebs/profiles/instacam/customfiles/etc/rc.local
index 3e91b57c..3e91b57c 100644
--- a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/rc.local
+++ b/minikrebs/profiles/instacam/customfiles/etc/rc.local
diff --git a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/shadow b/minikrebs/profiles/instacam/customfiles/etc/shadow
index 251abaf5..251abaf5 100644
--- a/minikrebs/profiles/camkrebs_uvc/customfiles/etc/shadow
+++ b/minikrebs/profiles/instacam/customfiles/etc/shadow
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>>
diff --git a/minikrebs/profiles/krebs/customfiles/etc/rc.local b/minik