Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
97a0c18
Published with https://stackedit.io/
Jun 20, 2015
3722ad3
Published with https://stackedit.io/
Jun 20, 2015
5c05a9a
Published with https://stackedit.io/
Jun 20, 2015
ce6d45b
Update readme.MD
Jun 20, 2015
e088bf6
Update readme.MD
Jun 21, 2015
c035448
Merge pull request #1 from bigjosh/local
Jun 24, 2015
8f31c38
Update readme.MD
Jun 29, 2015
b857b23
Update readme.MD
Jun 29, 2015
c3e79cd
Update readme.MD
Jun 29, 2015
bf75c15
Update readme.MD
Jun 29, 2015
1a0382a
Update readme.MD
Jun 29, 2015
4cdc1dc
Update readme.MD
Jun 30, 2015
82892bb
Update readme.MD
Jun 30, 2015
754339c
Delete README.md
Jun 30, 2015
656ab57
Update readme.MD
Jun 30, 2015
98f8af3
Update readme.MD
Jun 30, 2015
8bee049
Updates
Jul 2, 2015
568105b
Switched UDP to TCP becuase packet too big for UDP
Jul 2, 2015
b8ba728
Working but non optimal full white
Jul 5, 2015
f59724c
more
Jul 6, 2015
2808713
no logging, check glow with tolower()
Jul 6, 2015
9719eb9
working ver
Jul 6, 2015
59c6e66
/etc dir
Aug 18, 2015
6ec820c
/www directory
Aug 18, 2015
43ea3c7
update ledscape config
Aug 18, 2015
5af423e
Move Ledscape under /root
Aug 18, 2015
c503f16
apache config
Aug 18, 2015
bb7131c
apache and dnsmasq config
Aug 18, 2015
0cdd3aa
/etc/defaualt and network
Aug 18, 2015
e2c2894
rename local files to filesystem
Aug 18, 2015
e2cf9d4
Update pin mapping
Aug 18, 2015
cd3944a
added makefile for leds
Aug 18, 2015
893debe
update control.html to work with new leds utility
Aug 18, 2015
a34e1f1
Working with new leds command, no new demo functionality yet
Aug 18, 2015
bc1f706
Works finally, thanks god!
Aug 19, 2015
df4e089
Shrunk buttons so new features fit on phone screen
Aug 19, 2015
67be13e
Clean up cgi dir
Aug 19, 2015
3c1aef7
Final cleanup
Aug 20, 2015
a15832b
Merge pull request #3 from bigjosh/update-to-match-actual-BBB-on-demo…
Aug 22, 2015
e5cec2c
Update readme.MD
Mar 31, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Pin Mapping.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
115 changes: 0 additions & 115 deletions README.md

This file was deleted.

26 changes: 26 additions & 0 deletions filesystem/etc/apache2/ports.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz

NameVirtualHost *:8080
Listen 8080

NameVirtualHost *:80
Listen 80

<IfModule mod_ssl.c>
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
# to <VirtualHost *:443>
# Server Name Indication for SSL named virtual hosts is currently not
# supported by MSIE on Windows XP.
Listen 443
</IfModule>

<IfModule mod_gnutls.c>
Listen 443
</IfModule>

34 changes: 34 additions & 0 deletions filesystem/etc/apache2/sites-available/digit57.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<VirtualHost *:80>
RedirectMatch temp / http://digit57.com/control.html
ErrorLog ${APACHE_LOG_DIR}/redirect.error.log
</VirtualHost>

<VirtualHost *:80>

ServerAdmin webmaster@localhost

ServerName digit57.com
DocumentRoot /www/digit57.com
<Directory /www/digit57.com >
AllowOverride None
Order allow,deny
allow from all
</Directory>


ScriptAlias /cgi-bin/ /www/digit57.com/cgi-bin/
<Directory "/www/digit57.com/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/digit57.error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
33 changes: 33 additions & 0 deletions filesystem/etc/default/dnsmasq
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This file has five functions:
# 1) to completely disable starting dnsmasq,
# 2) to set DOMAIN_SUFFIX by running `dnsdomainname`
# 3) to select an alternative config file
# by setting DNSMASQ_OPTS to --conf-file=<file>
# 4) to tell dnsmasq to read the files in /etc/dnsmasq.d for
# more configuration variables.
# 5) to stop the resolvconf package from controlling dnsmasq's
# idea of which upstream nameservers to use.
# For upgraders from very old versions, all the shell variables set
# here in previous versions are still honored by the init script
# so if you just keep your old version of this file nothing will break.

#DOMAIN_SUFFIX=`dnsdomainname`
#DNSMASQ_OPTS="--conf-file=/etc/dnsmasq.alt"

# Whether or not to run the dnsmasq daemon; set to 0 to disable.
ENABLED=1

# By default search this drop directory for configuration options.
# Libvirt leaves a file here to make the system dnsmasq play nice.
# Comment out this line if you don't want this. The dpkg-* are file
# endings which cause dnsmasq to skip that file. This avoids pulling
# in backups made by dpkg.
CONFIG_DIR=/etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new

# If the resolvconf package is installed, dnsmasq will use its output
# rather than the contents of /etc/resolv.conf to find upstream
# nameservers. Uncommenting this line inhibits this behaviour.
# Not that including a "resolv-file=<filename>" line in
# /etc/dnsmasq.conf is not enough to override resolvconf if it is
# installed: the line below must be uncommented.
#IGNORE_RESOLVCONF=yes
20 changes: 20 additions & 0 deletions filesystem/etc/default/hostapd
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Defaults for hostapd initscript
#
# See /usr/share/doc/hostapd/README.Debian for information about alternative
# methods of managing hostapd.
#
# Uncomment and set DAEMON_CONF to the absolute path of a hostapd configuration
# file and hostapd will be started during system boot. An example configuration
# file can be found at /usr/share/doc/hostapd/examples/hostapd.conf.gz
#
#DAEMON_CONF="/etc/hostapd/hostapd.conf"

# Additional daemon options to be appended to hostapd command:-
# -d show more debug messages (-dd for even more)
# -K include key data in debug messages
# -t include timestamps in some debug messages
#
# Note that -B (daemon mode) and -P (pidfile) options are automatically
# configured by the init.d script and must not be added to DAEMON_OPTS.
#
#DAEMON_OPTS=""
20 changes: 20 additions & 0 deletions filesystem/etc/dnsmasq.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#Have all DNS requests return this local machine
# note that we need to hard code this because despite documentation,
# 0.0.0.0 as a special address that means "this machine" does not seem to work
#Note that the wildcard address must be on a different subnet so the requesting machine
#will send to the default gateway (us) and we will intercept it and issue an HTTP redirect
address=/#/1.1.1.1
address=/digit57.com/192.168.8.1

#enable dhcp server
#only send a default gateway and dns server to captive interfaces
dhcp-range=192.168.8.50,192.168.8.250
dhcp-range=set:nocapture, 192.168.7.1,192.168.7.1

dhcp-option=tag:nocapture, option:router
dhcp-option=tag:nocapture, option:dns-server


#only listen for DNS and DHCP requests on the wifi and USB networks
interface=wlan0
interface=usb0
6 changes: 6 additions & 0 deletions filesystem/etc/hostapd/hostapd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
interface=wlan0
ssid=Digit57
hw_mode=g
channel=6
#driver=rtl871xdrv

16 changes: 16 additions & 0 deletions filesystem/etc/iptables/rules.v4
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Generated by iptables-save v1.4.14 on Tue Mar 3 01:48:56 2015
*nat
:PREROUTING ACCEPT [268:47060]
:INPUT ACCEPT [289:48160]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A PREROUTING -i wlan0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 80
COMMIT
# Completed on Tue Mar 3 01:48:56 2015
# Generated by iptables-save v1.4.14 on Tue Mar 3 01:48:56 2015
*filter
:INPUT ACCEPT [5154:1903530]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [4075:606280]
COMMIT
# Completed on Tue Mar 3 01:48:56 2015
7 changes: 7 additions & 0 deletions filesystem/etc/iptables/rules.v6
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Generated by ip6tables-save v1.4.14 on Sun Jun 28 20:44:26 2015
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
COMMIT
# Completed on Sun Jun 28 20:44:26 2015
16 changes: 16 additions & 0 deletions filesystem/etc/iptables/rules.vs.v4
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Generated by iptables-save v1.4.14 on Tue Mar 3 01:52:34 2015
*filter
:INPUT ACCEPT [32:6373]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [38:6613]
COMMIT
# Completed on Tue Mar 3 01:52:34 2015
# Generated by iptables-save v1.4.14 on Tue Mar 3 01:52:34 2015
*nat
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [4:614]
:POSTROUTING ACCEPT [4:614]
-A PREROUTING -i wlan0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 80
COMMIT
# Completed on Tue Mar 3 01:52:34 2015
38 changes: 38 additions & 0 deletions filesystem/etc/network/interfaces
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp
# Example to keep MAC address between reboots
#hwaddress ether DE:AD:BE:EF:CA:FE

# The secondary network interface
#auto eth1
#iface eth1 inet dhcp

# WiFi Example
#auto wlan0
#iface wlan0 inet dhcp
# ssid "MarcottFreeISP.COM Farm"
# wpa-psk "pietasteslikemilk1"

allow-hotplug wlan0
iface wlan0 inet static
address 192.168.8.1
netmask 255.255.255.0

post-up /usr/sbin/hostapd -B /etc/hostapd/hostapd.conf

# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
# Note on some boards, usb0 is automaticly setup with an init script
iface usb0 inet static
address 192.168.7.2
netmask 255.255.255.0
network 192.168.7.0
gateway 192.168.7.1
19 changes: 19 additions & 0 deletions filesystem/root/LEDscape/ws281x-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"outputMode": "ws281x",
"outputMapping": "rgb-123-v3",
"demoMode": "none",
"ledsPerStrip": 342,
"usedStripCount": 5,
"colorChannelOrder": "BRG",
"opcTcpPort": 7890,
"opcUdpPort": 7890,
"enableInterpolation": false,
"enableDithering": false,
"enableLookupTable": true,
"lumCurvePower": 2.0000,
"whitePoint": {
"red": 0.9000,
"green": 1.0000,
"blue": 1.0000
}
}
34 changes: 34 additions & 0 deletions filesystem/root/apache2/digit57.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<VirtualHost *:80>
RedirectMatch temp / http://digit57.com/control.html
ErrorLog ${APACHE_LOG_DIR}/redirect.error.log
</VirtualHost>

<VirtualHost *:80>

ServerAdmin webmaster@localhost

ServerName digit57.com
DocumentRoot /www/digit57.com
<Directory /www/digit57.com >
AllowOverride None
Order allow,deny
allow from all
</Directory>


ScriptAlias /cgi-bin/ /www/digit57.com/cgi-bin/
<Directory "/www/digit57.com/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/digit57.error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Loading