Skip to content

Create BerryNet Image

Bofu Chen edited this page Jan 12, 2020 · 16 revisions

Steps to release BerryNet image

  1. Download and install Raspbian to SD card.

    host $ unzip -p 2019-07-15-raspbian-buster-berrynet.zip | sudo dd of=/dev/sdc bs=4M conv=fsync status=progress
    

    Note: Filesystem will be auto-resized in booting.

  2. Ensure BerryNet packages for the release have been pushed and are available on BerryNet repository.

  3. Boot system and install BerryNet.

  4. Raspbian configurations.

    rpi $ sudo raspi-config
    
    • Enable SSH
    • Enable Camera
    • Enable OpenGL fake kms
    • Change locale to en_US.UTF-8
    • Change keyboard layout to US
  5. Install berrynet-wallpapers package and use BerryNet wallpaper

    • Choose /usr/share/backgrounds/berrynet-blue.png
  6. Add dashboard to browser bookmark.

  7. Remove unused files.

    • Delete the registered WiFi access point configurations in /etc/wpa_supplicant/wpa_supplicant.conf

    • Recover sdcard:/boot/config.txt if needed.

    • Delete package cache

      rpi $ sudo apt-get clean
      rpi $ sudo apt-get autoclean
      
    • Delete $HOME/.bash_history

    • Delete /var/log/berrynet/*

  8. Create BerryNet image.

    $ sudo dd if=/dev/sdc bs=4M conv=fsync status=progress | zip -9 > /tmp/2019-07-15-raspbian-buster-berrynet.zip
    
  9. Upload BerryNet image to data hosting (S3).

Clone this wiki locally