The CO2AS device prototype is using Raspberry Pi Zero 2 W. Please follow these steps to prepare the working prototype device:
- Windows:
https://downloads.raspberrypi.org/imager/imager_latest.exe
- Linux:
https://downloads.raspberrypi.org/imager/imager_latest_amd64.deb
- MacOS:
https://downloads.raspberrypi.org/imager/imager_latest.dmg
- Raspberry Pi OS, do this command on 'terminal':
sudo apt install rpi-imager
- Direct download:
https://downloads.raspberrypi.org/raspios_oldstable_armhf/images/raspios_oldstable_armhf-2022-01-28/2022-01-28-raspios-buster-armhf.zip
- Torrent download:
https://downloads.raspberrypi.org/raspios_oldstable_armhf/images/raspios_oldstable_armhf-2022-01-28/2022-01-28-raspios-buster-armhf.zip.torrent
1.3. Deploy ('burn') the legacy version of Raspberry Pi OS into a 32GB micro SD using Raspberry Pi Imager application
- Extract (UnZip) the
2022-01-28-raspios-buster-armhf.zip
file - Use 32GB Micro SD Class-10 (better using a High Endurance type; usually used for CCTV / live camera purposes)
- Run the Raspberry Pi Imager application as administrator
- Operating System > CHOOSE OS > Use custom > select
2022-01-28-raspios-buster-armhf.img
file - SD Card > CHOOSE SD CARD > select SDHC SCSI Disk Device - 31.9 GB
- Click WRITE and please wait until writing and verification process finish
- Prepare the Raspberry Pi Zero 2 W
- Please use the 5V 3A power adapter with Micro USB connector
- Plug in the "Mini HDMI to HDMI" converter into Raspberry Pi's HDMI port
- Plug in the HDMI cable into "Mini HDMI to HDMI" and connect it to display monitor
- Plug in the "Micro USB male to USB Type A female" into Raspberry Pi's Micro USB port
- Plug in the USB Keyboard into "Micro USB male to USB Type A female" port
- Plug in the power adapter to AC electrical socket
- Choose the appropriate configuration for: setting country, location / region, language, keyboard layout, user password, etc
- Connect to wireless network using WiFi to available Access Point
- Activate
SSH
andVNC
for easy access (so you can copy paste from other computer); select from start menu (Raspberry pi's logo at upper left screen) > Preferences > Raspberry Pi Configuration > Interfaces tab > enable SSH and VNC
After connected to the internet using WiFi, using the "terminal" application give the following commands:
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo apt autoremove
mkdir /home/pi/.config/lxsession
mkdir /home/pi/.config/lxsession/LXDE-pi
sudo cp /etc/xdg/lxsession/LXDE-pi/autostart /home/pi/.config/lxsession/LXDE-pi/
sudo chown -R pi.pi .config/*
Add @bash /home/pi/CO2AS/co2.sh
line at the end:
nano /home/pi/.config/lxsession/LXDE-pi/autostart