Improve readme

py3
Raphaël Vinot 2016-04-01 00:09:08 +02:00
parent 910cb939e7
commit 4bec9e183d
4 changed files with 94 additions and 3 deletions

View File

@ -11,14 +11,32 @@ raspberry Pi opening the front door and playing videos the button has an RGB led
how to install
==============
* The basics
```
sudo apt-get install vim tmux
```
* If you want to chroot into the image have a look at [this script](https://github.com/CIRCL/Circlean/blob/master/proper_chroot.sh)
* Remove screensaver from `/etc/xdg/lxsession/LXDE/autostart`
``` bash
sudo vi /etc/xdg/lxsession/LXDE/autostart
remove screensaver
```
* Copy the files present in `root_files` accordingly on the file system
* Set the hostname: replace the content of `/etc/hostname` with doorbuzz
* Install the suff
``` bash
sudo apt-get install unclutter xdotool git-core screen imagemagick x11-xserver-utils
git clone git://git.drogon.net/wiringPi
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"
@xset s off
@ -48,7 +66,7 @@ when booting, the button led uses morsecode to send the low byte of the IP adres
```
sudo apt-get install python-pip redis-server
sudo pip install redis
sudo pip install redis neopixel
```
# the redi.sh comes from here: https://github.com/crypt1d/redi.sh
@ -57,9 +75,11 @@ sudo pip install redis
cd ~
git clone https://github.com/jgarff/rpi_ws281x.git
cd rpi_ws281x
sudo apt-get install scons
sudo apt-get install scons swig python-dev
scons
sudo scons
cd python
sudo python setup.py install
```
# setup watchdog

View File

@ -0,0 +1,46 @@
# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.
# Allow users of this group to interact with dhcpcd via the control socket.
#controlgroup wheel
# Inform the DHCP server of our hostname for DDNS.
hostname
# Use the hardware address of the interface for the Client ID.
clientid
# or
# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
#duid
# Persist interface configuration when dhcpcd exits.
persistent
# Rapid commit support.
# Safe to enable by default because it requires the equivalent option set
# on the server to actually work.
option rapid_commit
# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
# Most distributions have NTP support.
option ntp_servers
# Respect the network MTU.
# Some interface drivers reset when changing the MTU so disabled by default.
#option interface_mtu
# A ServerID is required by RFC2131.
require dhcp_server_identifier
# Generate Stable Private IPv6 Addresses instead of hardware based ones
slaac private
# A hook script is provided to lookup the hostname if not set by the DHCP
# server, but it should not be run by default.
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

View File

@ -0,0 +1,23 @@
# 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

View File

@ -0,0 +1,2 @@
@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE