- Based on Raspbian Wheezy image 2014-01-07
- New Raspberry install should follow:
- Install image on SD card
- First boot on ethernet
- To find out the Pi's IP address: nmap -sS -p 22 192.168.1.0/24 | grep Rasp -B 4
- ssh on it and do: sudo raspi-config to expand filesystem
- Reboot
- Install a ssh public key in authorized_key
Look at (https://github.com/pinterb/bootstrap/tree/master/provisioning/ansible/roles/vertx)
- Based on raspbian image: 2014-01-07-wheezy-raspbian <=> MD5(6d8e5a48ff7c6bdc0bc0983bc32f75b8)
- On first boot, ssh as pi user and do:
- sudo raspi-config
- 1 - Expand Filesystem
- Finish
- Reboot ? Yes
- In /etc/ansible, at the beginning of the file, add the following line :
[kouign-amann]
- Then add all the IPs of the pis, just below the first line written before
- Then run the command :
ansible-playbook ansible/init_pi.yaml
- Change password for user pi
- Add every public key you need in
.ssh/authorized_keys
- Copy the script directory to the raspberry :
scp -r scripts pi@rpi:
- Connect and:
sudo sh scripts/sysconf.sh
- To get the wifi up and running:
wpa_passphrase ssid mdp >> /etc/wpa_supplicant/wpa_supplicant.conf
- /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
auto eth0
allow-hotplug eth0
auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
- Add to /etc/profile:
export NUKE_SERVER=<SERVER_IP>
- Add network interface listing to cron:
crontab -e
* * * * * sh /home/pi/scripts/send_ip.sh
gradle modzip
scp conf.json pi@rpi:/home/pi/vertx_mods_conf/kouign-amann.conf
scp build/libs/pi-1.0.zip pi@rpi:
ssh pi@rpi "sudo sh scripts/apply_version.sh"