t3alliance / protero-cimex

Bug squash
1 stars 0 forks source link

Update image #3

Closed clowrey closed 4 years ago

clowrey commented 4 years ago

Update Node Red Enable first boot popup to set location settings - so SSL websites work Set chrome search engine to Google - some schools block duck-duck go by default - Waiakea HS is one of them. Set chrome bookmarks bar to have t3alliance.org and a link to 127.0.0.1:1880 for node-red Change background(there are 10+ good ones already on the Pi) so it is easy to tell our custom image from the stock one. Setup wifi network called rpi with raspberry password Add start menu links to a sudo file manager Add start menu link to install Enable I2C port Enable Serial Port Do not enable serial terminal Enable camera update node-red nodes somehow?

Node-Red Nodes

node-red-contrib-camerapi npm install node-red-contrib-camerapi node-red-node-pi-neopixel curl -sS get.pimoroni.com/unicornhat | bash npm install node-red-node-pi-neopixel node-red-node-pisrf npm install node-red-node-pisrf node-red-dashboard sudo npm install install node-red-dashboard node-red-contrib-dht-sensor cd ~/ curl http://www.airspayce.com/mikem/bcm2835/bcm2835-1.56.tar.gz > bcm2835-1.56.tar.gz tar zxvf bcm2835-1.56.tar.gz cd bcm2835-1.56 ./configure make sudo make check sudo make install cd ~/ sudo npm install --unsafe-perm -g node-dht-sensor sudo npm install --unsafe-perm -g node-red-contrib-dht-sensor node-red-contrib-oled npm install node-red-contrib-oled node-red-contrib-bme280 npm install node-red-contrib-bme280 node-red-contrib-hostip npm install node-red-contrib-hostip node-red-contrib-cpu npm install node-red-contrib-cpu node-red-contrib-easybotics-led-matrix

Install library for servo? - maybe the DIO library does this already? Install many other node-red nodes we need! add to this list

Final steps

edit the cmdline.txt file on the boot partition - After the Splash command paste in this line:

init=/usr/lib/raspi-config/init_resize.sh

command: sudo dd bs=4M if=/dev/sda of=/home/pi/IMAGE_BACKUP.img SD card will be mounted as /dev/SDA or similar to find what it mounted as, run 'dmesg' immediately after mounting and look for the message saying 'mounted sd card as ... /dev/SDA if SDB then use this line to copy to another external drive modify drive name: sudo dd bs=4M if=/dev/sdb of=/media/pi/256gbSSD/IMAGE_BACKUP.img Use PiShrink https://github.com/Drewsif/PiShrink wget https://raw.githubusercontent.com/Drewsif/PiShrink/master/pishrink.sh chmod +x pishrink.sh sudo mv pishrink.sh /usr/local/bin sudo pishrink.sh -s imagefile.img newimagefile.img Tool to mass flash SD cards - use USB3 SD card readers - they offload processing vs the USB2.0 versions I have tried  https://github.com/aaronnguyen/osid-python3

DO NOT DO THIS ON NORMAL SD CARD IMAGE - ONLY FOR LEGACY KITS WITH 7" SCREEN

For 7" screen you must modify the config.txt with the following:

hdmi_group=2 hdmi_mode=87 hdmi_cvt 1024 600 60 3 0 0 0 hdmi_force_hotplug=1