raspiblitz/alternative.platforms/dietpi/Odroid_HC1_XU4.md

112 lines
5.4 KiB
Markdown
Raw Normal View History

2019-02-18 22:16:33 +00:00
2019-02-18 22:54:52 +00:00
# ⚡️ RaspiBlitz-on-DietPi ⚡️
2021-10-03 12:24:27 +02:00
# For the Odroid HC1 / HC2 / XU3 / XU4 / MC1
2019-02-18 22:16:33 +00:00
2019-02-18 22:54:52 +00:00
![](pictures/DroidBlitz.jpg)
2019-02-18 22:16:33 +00:00
2019-02-18 22:54:52 +00:00
## There are 3 options provided:
2019-02-19 00:28:36 +00:00
* a trusted fully prebuilt SDcard image
2019-03-27 09:36:00 +00:00
* Automated building process.
2021-10-03 12:24:27 +02:00
* Build your own SDcard from the image downloaded from [dietpi.com](https://dietpi.com/#download)
2019-02-18 22:54:52 +00:00
---
### Download the fully prebuilt RaspiBlitz-on-DietPi SDcard image
2019-03-27 11:55:26 +00:00
2019-02-18 22:54:52 +00:00
* [mega.nz link](https://mega.nz/#F!EVNAAQiB!ZyLHP2dJMRSVjZOTCQMIYA)
2019-02-18 22:16:33 +00:00
2019-02-18 22:54:52 +00:00
sha256sum RaspiBlitz1.0_OdroidHC1_DietPi6.21.1.img: 96ee8700f52a12fb5b13fab3fffcdcf5d364c6dd16c580d969e421cef2cd7cc2
2019-02-18 22:16:33 +00:00
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.)
2019-02-18 22:54:52 +00:00
- boot the Odroid with the SDcard
- login with `ssh admin@at.your.raspiblitz.ip`
password: `raspiblitz`
2019-02-18 22:16:33 +00:00
2019-03-27 11:55:26 +00:00
Using this image you can skip the rest of this page.
2019-02-18 22:16:33 +00:00
The setup continues with the [RaspiBlitz Setup Process](https://github.com/rootzoll/raspiblitz/blob/dev/README.md#setup-process-detailed-documentation)
2019-02-18 22:16:33 +00:00
---
2019-03-27 09:36:00 +00:00
### The automated building process:
2019-02-18 22:16:33 +00:00
2021-10-03 12:24:27 +02:00
1) Download the DietPi image for the Odroid HC1 / HC2 / XU3 / XU4 / MC1:
https://dietpi.com/downloads/images/DietPi_OdroidXU4-ARMv7-Buster.7z
2019-03-27 09:36:00 +00:00
2) Burn it to the SD card with [Etcher](https://www.balena.io/etcher/)
2019-02-18 22:16:33 +00:00
2021-10-03 12:24:27 +02:00
3) Right click and download the following two files: [dietpi.txt](https://raw.githubusercontent.com/rootzoll/raspiblitz/master/alternative.platforms/dietpi/boot/dietpi.txt), [Automation_Custom_Script.sh](https://raw.githubusercontent.com/rootzoll/raspiblitz/dev/alternative.platforms/dietpi/boot/Automation_Custom_Script.sh)
2019-02-18 22:16:33 +00:00
2019-03-27 09:36:00 +00:00
4) Copy them to the /boot directory of the DietPi SDcard
2019-02-18 22:16:33 +00:00
2021-10-03 12:24:27 +02:00
[dietpi.txt](https://raw.githubusercontent.com/rootzoll/raspiblitz/master/alternative.platforms/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/alternative.platforms/dietpi#excerpts-from-the-customized-dietpitxt))
2019-03-27 09:36:00 +00:00
[Automation_Custom_Script.sh](https://raw.githubusercontent.com/rootzoll/raspiblitz/dev/alternative.platforms/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.
2019-03-27 09:36:00 +00:00
(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) 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/dev/README.md#setup-process-detailed-documentation)
2019-02-18 22:54:52 +00:00
---
2019-02-18 22:16:33 +00:00
### Build your own DietPi image:
2021-10-03 12:24:27 +02:00
* For the Odroid HC1 / HC2 / XU3 / XU4 / MC1 the start is this image:
https://dietpi.com/downloads/images/DietPi_OdroidXU4-ARMv7-Buster.7z
2019-02-18 22:54:52 +00:00
* Burn it to the SD with [Etcher](https://www.balena.io/etcher/)
2019-02-18 22:16:33 +00:00
* Insert the SD card, connect the HDD, the network cable and power supply to boot up the Odroid:
2019-02-18 22:16:33 +00:00
2019-02-18 22:54:52 +00:00
* In the desktop terminal on Linux / MacOS or Putty on Windows:
2019-02-18 22:16:33 +00:00
`ssh root@[IP-OF-DIETPI]`
password: `dietpi`
2021-10-03 12:24:27 +02:00
Getting started with DietPi: https://dietpi.com/docs/install/#4-first-logon-on-dietpi
2019-02-18 22:16:33 +00:00
2019-02-19 00:28:36 +00:00
* In the DietPi software menu install fail2ban and make OpenSSH server the default SSH server.
2019-02-18 22:54:52 +00:00
Ok > Cancel > Cancel
2019-02-18 22:16:33 +00:00
Search `fail2ban` > Space to select > Enter
SSH server > switch from Dropbear to the OpenSSH-server
2019-02-18 22:54:52 +00:00
Install > Ok
2019-02-18 22:16:33 +00:00
Reboots again
2019-02-19 00:28:36 +00:00
* Log back in:
`ssh root@[IP-OF-DIETPI]`
password: `dietpi`
2021-10-03 12:24:27 +02:00
Changing the SSH server will change the SSH keys. To clear:
2019-02-18 22:16:33 +00:00
`ssh-keygen -f "/home/[your-linux-username]/.ssh/known_hosts" -R "dietpi.IP"`
2019-02-18 22:54:52 +00:00
### Run the RaspiBlitz build_sdcard.sh script
2019-02-18 22:16:33 +00:00
* Run this command to build from the master branch of @rootzoll:
`wget https://raw.githubusercontent.com/rootzoll/raspiblitz/dev/build_sdcard.sh && sudo bash build_sdcard.sh`
2021-08-27 03:59:21 -04:00
This will take a couple minutes depending on your internet connection and the processing power of the SBC.
* Format of the command to build the SDcard from an alternative branch:
2019-02-18 22:54:52 +00:00
`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.
2019-02-18 22:16:33 +00:00
2019-02-18 22:54:52 +00:00
* Restart when done and log back in now as `admin`:
2019-02-18 22:16:33 +00:00
`ssh admin@[IP-OF-DROIDBLITZ]`
2019-02-18 22:54:52 +00:00
password: `raspiblitz`
2019-02-18 22:16:33 +00:00
* From here he setup continues with the [RaspiBlitz Setup Process](https://github.com/rootzoll/raspiblitz/blob/dev/README.md#setup-process-detailed-documentation)
2019-02-18 22:16:33 +00:00
---
2019-02-18 22:54:52 +00:00
### Examples of copying the blockchain data from a HDD using a powered USB to SATA adapter
2019-02-18 22:16:33 +00:00
![example setup](pictures/HDD_copy_example.jpg)
![](pictures/adapterHDD_HC1.jpg)