updated build release process

This commit is contained in:
Christian Rotzoll 2019-09-04 15:55:01 +02:00
parent 2d0c0fb6ea
commit ee89945d02

55
FAQ.md
View file

@ -619,9 +619,6 @@ Now to repair your RaspiBlitz Blockchain start mainmenu `./00mainMenu.sh` and ch
## What is the process of creating a new sd card image release?
4 devcies needed:
* An Ubuntu Live USB stick -
Work Nodes for the process of producing a new sd card image release:
* Start `Ubuntu LIVE` from USB stick on Build Computer (press F12 on startup)
@ -630,42 +627,48 @@ Work Nodes for the process of producing a new sd card image release:
* From browser see All-Downloads-Details and on context Copy Download-Link
* Paste download link into new browser tab and add ".sig" at the end (also download)
* From browser see All-Downloads-Details and on context open target folder in file manager
* On file manager (white sapce) from context menu: Open in Terminal
* compare checksum on https download site with `shasum -a 256 ./[DOWNLOADED-RASPBIAN]`
* Now to check the signature run the command:
```
sudo apt-get update && sudo apt-get install -f curl && curl https://www.raspberrypi.org/raspberrypi_downloads.gpg.key | gpg --import && gpg --verify *.sig
```
* On that file manager (white sapce) from context menu: Open in Terminal
* compare checksum on https download site with `shasum -a 256 *.zip`
* Install curl if needed `sudo apt-get update && sudo apt-get install -f curl net-tools`
* Check signature`curl https://www.raspberrypi.org/raspberrypi_downloads.gpg.key | gpg --import && gpg --verify *.sig`
* The result should say "correct signature" and fingerprint should end with `8738 CD6B 956F 460C`
* Now insert the NTFS formatted USB stick and use file manager to move all files to there
* Use in file manager context on NTFS USB stick `extract here` to unzip
* Connect sd card reader with 8GB sd card
* Use in file manager context on img-file `write image` write to sd card
* Use in file manager context on `boot` drive free space `open in terminal`
* Run command `touch ssh`
* Close terminal and eject `boot`
* Run command `touch ssh` and `exit`
* Eject the `boot` and the `NTFS` volume
* Connect a RaspiBlitz (without HDD) to network, insert sd card and power up
* Find IP if RaspiBlitz (arp -a or check router)
* In terminal `ssh pi@[IP-OF-RASPIBLITZ]`
* Password is `raspberry`
* `wget https://raw.githubusercontent.com/rootzoll/raspiblitz/master/build_sdcard.sh && sudo bash build_sdcard.sh`
* Check output for warnings/errors - install LCD
* Run the following command BUT REPLACE `[BRANCH]` with the branch-string of your latest version
* `wget https://raw.githubusercontent.com/rootzoll/raspiblitz/[BRANCH]/build_sdcard.sh && sudo bash build_sdcard.sh '[BRANCH]'`
* Monitior/Check outputs for warnings/errors - install LCD
* Login new with `ssh admin@[IP-OF-RASPIBLITZ]` (pw:raspiblitz) and run `./XXprepareRelease.sh`
* Deconnect Wifi on build laptop (hardware switch off) and shutdown
* Remove `Ubuntu LIVE` USB stick and replace with `Ubuntu AIRGAP`
* Diconnect Wifi/LAN on build laptop (hardware switch off) and shutdown
* Remove `Ubuntu LIVE` USB stick and cut power on RaspberryPi
* Connect USB stick with latest `TAILS` (make it stays offline)
* PowerOn Build Laptop (press F12 for boot menu)
* Cut Power of RaspiBlitz, remove sd card and connect with sd card reader to build laptop
* Connect and open in Filemenager NTFS - context on white scace -> open terminal
* run `df`to check on sd card reader device name
* `sudo dd if=/dev/[sdcarddevice] | gzip > ./raspiblitz-vX.X-YEAR-MONTH-DAY.img.gz`
* Delete all IMG files from NTFS (just keep zips/gzs)
* Context on white space, `Open in Terminal`, run `shasum -a 256 [NEW-ZIP] > sha256.txt`
* [Do future author signing here with tools from airgap build machine]
* Connect USB stick with GPG signing keys
* Open that USB stick in filemanager and on white space context menu --> open terminal
* Run `gpg --import ./sub.key`, check and `exit`
* Disconnect USB stick with GPG keys
* Take sd card from RaspberryPi and connect with a external sd card reader to aptop
* Click on `boot` volume once in the filemanger
* Connect and open in Filemenager NTFS and delete old files
* In that file manager in context menu on white scace -> open terminal
* Run `df` to check on card device name (`boot` - ignore last partition number)
* `dd if=/dev/[sdcarddevice] | gzip > ./raspiblitz-vX.X-YEAR-MONTH-DAY.img.gz`
* When finshed you should see that more then 7GB were copied
* Then run `shasum -a 256 *.gz > sha256.txt`
* Sign with `gpg --output raspiblitz-vX.X-YEAR-MONTH-DAY.img.gz.sig --detach-sign *.gz`
* Shutdown build computer
* Connect NTFS USB stick to MacOS (its just readonly)
* Check if file can be unzipped on OSX
* Run tests with new image
* Upload new image to Download Server
* Upload new image to Download Server - put sig-file next to it
* Copy SHA256-String into GutHub README and update downloadlink
## Can I run RaspiBlitz on other computers than RaspberryPi?