Some more cleanup
parent
07af5bf48a
commit
a2f99ab3c2
|
@ -37,8 +37,7 @@ cd wiringPi
|
||||||
./build
|
./build
|
||||||
|
|
||||||
git clone https://github.com/syn2cat/doorbuzz
|
git clone https://github.com/syn2cat/doorbuzz
|
||||||
mkdir -p /home/pi/.config/lxsession/LXDE/
|
cat > /home/pi/.config/lxsession/LXDE-pi/autostart <<"EOF"
|
||||||
cat > /home/pi/.config/lxsession/LXDE/autostart <<"EOF"
|
|
||||||
@xset s off
|
@xset s off
|
||||||
@xset -dpms
|
@xset -dpms
|
||||||
@xset s noblank
|
@xset s noblank
|
||||||
|
@ -65,11 +64,10 @@ when booting, the button led uses morsecode to send the low byte of the IP adres
|
||||||
# new: using redis to manage the 60 led circle
|
# new: using redis to manage the 60 led circle
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo apt-get install python-pip redis-server
|
sudo apt-get install python-pip redis-server python-redis
|
||||||
sudo pip install redis neopixel
|
|
||||||
```
|
```
|
||||||
|
|
||||||
# the redi.sh comes from here: https://github.com/crypt1d/redi.sh
|
* redi.sh comes from here: https://github.com/crypt1d/redi.sh
|
||||||
|
|
||||||
```
|
```
|
||||||
cd ~
|
cd ~
|
||||||
|
@ -77,7 +75,6 @@ git clone https://github.com/jgarff/rpi_ws281x.git
|
||||||
cd rpi_ws281x
|
cd rpi_ws281x
|
||||||
sudo apt-get install scons swig python-dev
|
sudo apt-get install scons swig python-dev
|
||||||
scons
|
scons
|
||||||
sudo scons
|
|
||||||
cd python
|
cd python
|
||||||
sudo python setup.py install
|
sudo python setup.py install
|
||||||
```
|
```
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
echo "Path to the mounted image needed."
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
CHROOT_PATH=${1}
|
||||||
|
|
||||||
|
if [ "$(id -u)" != "0" ]; then
|
||||||
|
echo "This script must be run as root" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# prepare fs archive
|
||||||
|
tar -cvpzf backup.tar.gz -C root_files/ .
|
||||||
|
tar -xzf backup.tar.gz -C ${CHROOT_PATH}/
|
|
@ -43,4 +43,3 @@ nohook lookup-hostname
|
||||||
interface eth0
|
interface eth0
|
||||||
static ip_address=10.2.113.9/24
|
static ip_address=10.2.113.9/24
|
||||||
static routers=10.2.113.1
|
static routers=10.2.113.1
|
||||||
static domain_name_servers=10.2.113.1
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
door-buzz
|
|
@ -0,0 +1,6 @@
|
||||||
|
127.0.0.1 localhost
|
||||||
|
::1 localhost ip6-localhost ip6-loopback
|
||||||
|
ff02::1 ip6-allnodes
|
||||||
|
ff02::2 ip6-allrouters
|
||||||
|
|
||||||
|
127.0.1.1 door-buzz
|
|
@ -1,23 +0,0 @@
|
||||||
# interfaces(5) file used by ifup(8) and ifdown(8)
|
|
||||||
|
|
||||||
# Please note that this file is written to be used with dhcpcd
|
|
||||||
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
|
|
||||||
|
|
||||||
# Include files from /etc/network/interfaces.d:
|
|
||||||
source-directory /etc/network/interfaces.d
|
|
||||||
|
|
||||||
auto lo
|
|
||||||
iface lo inet loopback
|
|
||||||
|
|
||||||
iface eth0 inet static
|
|
||||||
address 10.2.113.9
|
|
||||||
netmask 255.255.255.0
|
|
||||||
gateway 10.2.113.1
|
|
||||||
|
|
||||||
allow-hotplug wlan0
|
|
||||||
iface wlan0 inet manual
|
|
||||||
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
|
|
||||||
|
|
||||||
allow-hotplug wlan1
|
|
||||||
iface wlan1 inet manual
|
|
||||||
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
|
|
Loading…
Reference in New Issue