diff --git a/README.txt b/README.txt index 084b643..49d56e7 100644 --- a/README.txt +++ b/README.txt @@ -37,8 +37,7 @@ cd wiringPi ./build git clone https://github.com/syn2cat/doorbuzz -mkdir -p /home/pi/.config/lxsession/LXDE/ -cat > /home/pi/.config/lxsession/LXDE/autostart <<"EOF" +cat > /home/pi/.config/lxsession/LXDE-pi/autostart <<"EOF" @xset s off @xset -dpms @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 ``` -sudo apt-get install python-pip redis-server -sudo pip install redis neopixel +sudo apt-get install python-pip redis-server python-redis ``` -# the redi.sh comes from here: https://github.com/crypt1d/redi.sh +* redi.sh comes from here: https://github.com/crypt1d/redi.sh ``` cd ~ @@ -77,7 +75,6 @@ git clone https://github.com/jgarff/rpi_ws281x.git cd rpi_ws281x sudo apt-get install scons swig python-dev scons -sudo scons cd python sudo python setup.py install ``` diff --git a/copy_to_final.sh b/copy_to_final.sh new file mode 100755 index 0000000..e53f3d6 --- /dev/null +++ b/copy_to_final.sh @@ -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}/ diff --git a/root_files/etc/dhcpcd.conf b/root_files/etc/dhcpcd.conf index 1a2c63f..987aa16 100644 --- a/root_files/etc/dhcpcd.conf +++ b/root_files/etc/dhcpcd.conf @@ -43,4 +43,3 @@ nohook lookup-hostname interface eth0 static ip_address=10.2.113.9/24 static routers=10.2.113.1 -static domain_name_servers=10.2.113.1 diff --git a/root_files/etc/hostname b/root_files/etc/hostname new file mode 100644 index 0000000..40c7098 --- /dev/null +++ b/root_files/etc/hostname @@ -0,0 +1 @@ +door-buzz diff --git a/root_files/etc/hosts b/root_files/etc/hosts new file mode 100644 index 0000000..d6cad09 --- /dev/null +++ b/root_files/etc/hosts @@ -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 diff --git a/root_files/etc/network/interfaces b/root_files/etc/network/interfaces deleted file mode 100644 index 5763353..0000000 --- a/root_files/etc/network/interfaces +++ /dev/null @@ -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