You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
155 lines
6.9 KiB
155 lines
6.9 KiB
6 years ago
|
|
||
6 years ago
|
# ⚡️ RaspiBlitz-on-DietPi ⚡️
|
||
|
# For the Odroid HC1 / HC2 / XU3 / XU4
|
||
6 years ago
|
|
||
6 years ago
|
![](pictures/DroidBlitz.jpg)
|
||
6 years ago
|
|
||
6 years ago
|
## There are 3 options provided:
|
||
6 years ago
|
* a trusted fully prebuilt SDcard image
|
||
6 years ago
|
* Automated building process.
|
||
6 years ago
|
* Build your own SDcard from the image downloaded from [Dietpi.com](dietpi.com#download)
|
||
|
---
|
||
|
### Download the fully prebuilt RaspiBlitz-on-DietPi SDcard image
|
||
6 years ago
|
|
||
6 years ago
|
* [mega.nz link](https://mega.nz/#F!EVNAAQiB!ZyLHP2dJMRSVjZOTCQMIYA)
|
||
6 years ago
|
|
||
6 years ago
|
sha256sum RaspiBlitz1.0_OdroidHC1_DietPi6.21.1.img: 96ee8700f52a12fb5b13fab3fffcdcf5d364c6dd16c580d969e421cef2cd7cc2
|
||
6 years ago
|
|
||
|
Steps to run:
|
||
|
- download the .img file,
|
||
|
- burn to a 16 GB SD with [Etcher](https://www.balena.io/etcher/)
|
||
|
- extend the rootFS partition with a partition manager (disks, Gparted, etc.)
|
||
6 years ago
|
- boot the Odroid with the SDcard
|
||
|
- login with `ssh admin@at.your.raspiblitz.ip`
|
||
|
password: `raspiblitz`
|
||
6 years ago
|
|
||
6 years ago
|
Using this image you can skip the rest of this page.
|
||
6 years ago
|
|
||
|
The setup continues with the [RaspiBlitz Setup Process](https://github.com/rootzoll/raspiblitz/blob/master/README.md#setup-process-detailed-documentation)
|
||
|
|
||
|
---
|
||
6 years ago
|
### The automated building process:
|
||
6 years ago
|
|
||
6 years ago
|
1) Download the DietPi image for the Odroid HC1 / HC2 / XU3 / XU4:
|
||
|
https://dietpi.com/downloads/images/DietPi_OdroidXU4-ARMv7-Stretch.7z
|
||
|
2) Burn it to the SD card with [Etcher](https://www.balena.io/etcher/)
|
||
6 years ago
|
|
||
6 years ago
|
3) Right click and download the following two files: [DietPi.txt](https://raw.githubusercontent.com/rootzoll/raspiblitz/dev/dietpi/boot/dietpi.txt), [Automation_Custom_Script.sh](https://raw.githubusercontent.com/rootzoll/raspiblitz/dev/dietpi/boot/Automation_Custom_Script.sh)
|
||
6 years ago
|
|
||
6 years ago
|
4) Copy them to the /boot directory of the DietPi SDcard
|
||
6 years ago
|
|
||
6 years ago
|
[DietPi.txt](https://raw.githubusercontent.com/rootzoll/raspiblitz/dev/dietpi/boot/dietpi.txt): Overwrites the default dietpi.txt. Modified the settings to automate the DietPi setup. (see the details [here](https://github.com/rootzoll/raspiblitz/tree/dev/dietpi#excerpts-from-the-customized-dietpitxt))
|
||
|
|
||
|
[Automation_Custom_Script.sh](https://raw.githubusercontent.com/rootzoll/raspiblitz/dev/dietpi/boot/Automation_Custom_Script.sh): Runs after DietPi installation is completed. Contains the link to download and run the build_sdcard.sh from the dev branch of @rootzoll.
|
||
|
(Optionally open the file with a text editor and uncomment (remove the `#` from the front of) the line with the branch you want to build the SDcard from.)
|
||
|
|
||
|
5) Assemble and boot the Odroid
|
||
|
|
||
|
Insert the SDcard, connect the HDD, network cable and power supply to boot.
|
||
|
|
||
|
The automated setup will continue and the Odroid will restart at least twice during the process.
|
||
|
|
||
|
To follow the logs during the automated building process login with `root` and press CTRL+C.
|
||
|
`tail -n1000 -f /tmp/DietPi-Update/dietpi-update.log` - follow the dietpi-update process
|
||
|
`tail -n1000 -f /var/tmp/dietpi/logs/dietpi-automation_custom_script.log` follow the output of the build_sdcard.sh
|
||
|
|
||
6 years ago
|
Starting from a v6.14 DietPi image is causing a bootloop after the first restart. See the issue: https://github.com/MichaIng/DietPi/issues/2495. This will be sorted out once a new image version is uploaded for the Odroids to dietpi.com.
|
||
6 years ago
|
To get past it:
|
||
|
* Log in with root after the first restart (when the loop is ongoing - without any output to the HDMI screen)
|
||
|
* CTRL+C, run `dietpi-update` and update
|
||
|
* `reboot` once finished
|
||
|
* from then the Automation_Custom_Script.sh is carrying on
|
||
|
|
||
|
|
||
|
6) When the setup is finished log in as `admin`:
|
||
|
`ssh admin@[IP-OF-RASPIBLITZ]`
|
||
|
password: `raspiblitz`
|
||
|
|
||
|
The setup continues with the [RaspiBlitz Setup Process](https://github.com/rootzoll/raspiblitz/blob/master/README.md#setup-process-detailed-documentation)
|
||
6 years ago
|
|
||
|
---
|
||
6 years ago
|
|
||
|
### Build your own DietPi image:
|
||
|
|
||
6 years ago
|
Watch out this is an ardous process.
|
||
6 years ago
|
Updating from a v6.14 DietPi image is causing a bootloop after the first restart. See the issue: https://github.com/MichaIng/DietPi/issues/2495.
|
||
|
This will be sorted out once a new image version is uploaded for the Odroids to dietpi.com
|
||
6 years ago
|
|
||
6 years ago
|
* For the Odroid HC1 / HC2 / XU3 / XU4 the start is this image:
|
||
6 years ago
|
https://dietpi.com/downloads/images/DietPi_OdroidXU4-ARMv7-Stretch.7z
|
||
6 years ago
|
* Burn it to the SD with [Etcher](https://www.balena.io/etcher/)
|
||
6 years ago
|
|
||
6 years ago
|
* Insert the SD card, connect the HDD, the network cable and power supply to boot up the Odroid:
|
||
6 years ago
|
|
||
6 years ago
|
* In the desktop terminal on Linux / MacOS or Putty on Windows:
|
||
6 years ago
|
`ssh root@[IP-OF-DIETPI]`
|
||
|
password: `dietpi`
|
||
6 years ago
|
Getting started with DietPi: https://dietpi.com/phpbb/viewtopic.php?f=8&t=9#p9
|
||
6 years ago
|
|
||
6 years ago
|
* Ok > Cancel > Cancel
|
||
6 years ago
|
automatic apt update & apt upgrade and asks to reboot
|
||
|
![](pictures/dietpi_1st_reboot.png)
|
||
|
|
||
6 years ago
|
* Log back in:
|
||
6 years ago
|
`ssh root@[IP-OF-DIETPI]`
|
||
6 years ago
|
password: `dietpi`
|
||
6 years ago
|
* after the update the ssh keys might change:
|
||
6 years ago
|
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||
|
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
|
||
|
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||
|
run (can be copied from the terminal output):
|
||
6 years ago
|
`ssh-keygen -f "/home/[your-linux-username]/.ssh/known_hosts" -R "dietpi.IP"`
|
||
6 years ago
|
`ssh root@[IP-OF-DIETPI]`
|
||
|
yes >
|
||
|
password: `dietpi`
|
||
|
|
||
6 years ago
|
* At this point if the DietPi OS was not updated from 6.14 it does not manage to save settings going forward.
|
||
|
Exit the software installer (press Tab to jump to Exit)
|
||
6 years ago
|
![](pictures/dietpi-software_exit.png)
|
||
|
|
||
6 years ago
|
* in the bash prompt run:
|
||
|
`dietpi-update`
|
||
|
Ok > Cancel the recovery point
|
||
|
update > Opt out of survey > Ok
|
||
6 years ago
|
Reboots
|
||
|
|
||
6 years ago
|
* Log back in:
|
||
6 years ago
|
`ssh root@[IP-OF-DIETPI]`
|
||
|
password: `dietpi`
|
||
6 years ago
|
* In the DietPi software menu install fail2ban and make OpenSSH server the default SSH server.
|
||
6 years ago
|
Ok > Cancel > Cancel
|
||
6 years ago
|
Search `fail2ban` > Space to select > Enter
|
||
|
SSH server > switch from Dropbear to the OpenSSH-server
|
||
6 years ago
|
Install > Ok
|
||
|
Opt out of survey > Ok
|
||
6 years ago
|
Reboots again
|
||
|
|
||
6 years ago
|
* Log back in:
|
||
|
`ssh root@[IP-OF-DIETPI]`
|
||
|
password: `dietpi`
|
||
|
Changing the SSH server will change the SSH keys again. To clear:
|
||
6 years ago
|
`ssh-keygen -f "/home/[your-linux-username]/.ssh/known_hosts" -R "dietpi.IP"`
|
||
|
|
||
|
|
||
6 years ago
|
### Run the RaspiBlitz build_sdcard.sh script
|
||
6 years ago
|
|
||
6 years ago
|
* Format of the command to build the SDcard:
|
||
|
`wget https://raw.githubusercontent.com/[GITHUB-USERNAME]/raspiblitz/[BRANCH]/build_sdcard.sh && sudo bash build_sdcard.sh [BRANCH] [GITHUB-USERNAME]`
|
||
|
If you are working from a forked repo be aware of that the fork needs to be called `raspiblitz` for the git downloads to work.
|
||
6 years ago
|
|
||
6 years ago
|
* Example: run from the dev branch @rootzoll:
|
||
|
`wget https://raw.githubusercontent.com/rootzoll/raspiblitz/dev/build_sdcard.sh && sudo bash build_sdcard.sh dev rootzoll`
|
||
6 years ago
|
This will take a couple minutes depending on your internet ceonnection and the processing power of the SBC.
|
||
6 years ago
|
|
||
6 years ago
|
* Restart when done and log back in now as `admin`:
|
||
6 years ago
|
`ssh admin@[IP-OF-DROIDBLITZ]`
|
||
6 years ago
|
password: `raspiblitz`
|
||
6 years ago
|
|
||
6 years ago
|
* From here he setup continues with the [RaspiBlitz Setup Process](https://github.com/rootzoll/raspiblitz/blob/master/README.md#setup-process-detailed-documentation)
|
||
6 years ago
|
|
||
|
---
|
||
6 years ago
|
### Examples of copying the blockchain data from a HDD using a powered USB to SATA adapter
|
||
6 years ago
|
|
||
|
![example setup](pictures/HDD_copy_example.jpg)
|
||
|
![](pictures/adapterHDD_HC1.jpg)
|