2019-04-14 14:43:33 +01:00
# ⚡️ Alternative platforms for the RaspiBlitz ⚡️
Minimum requirements:
2021-12-11 13:03:45 +00:00
* ARMv8 or x86 processor (64 bit)
2019-04-14 14:43:33 +01:00
* 1 GB RAM
2021-12-11 13:03:45 +00:00
* 500 GB HDD
2021-12-26 22:22:33 +00:00
* Python >=3.9 (see [how to upgrade below ](#python-upgrade ) )
2019-04-14 17:56:21 +01:00
Desirable:
2021-12-11 13:03:45 +00:00
* \> 2GB DDR3 ECC RAM (8GB+ if using ZFS)
* USB 3.0 / SATA / PCIE / NVME connectors
* SSD - multiple disks for redundancy
2019-04-14 14:43:33 +01:00
Specifications of the tested hardware: [hw_comparison.md ](hw_comparison.md )
All testers are welcome. Open an issue for your specific board to collaborate and share your experience.
---
2021-12-11 13:03:45 +00:00
## Virtual Machine
Tested with:
* Ubuntu image in VirtualBox and linux virt-manager / [cockpit-machines ](https://github.com/cockpit-project/cockpit-machines )
* Debian image in VirtualBox https://github.com/rootzoll/raspiblitz/issues/2756#issuecomment -983532237
* TrueNAS (FreeBSD bhyve) with an Ubuntu VM: https://github.com/rootzoll/raspiblitz/issues/2104#issuecomment -917444238
2021-12-26 22:22:33 +00:00
To just experiment can load a virtualbox image from: https://www.osboxes.org/ubuntu (does not need installation)
Password: `osboxes.org`
2021-12-11 13:03:45 +00:00
Can carry on straight to building the OS:
```
# download the build script
wget https://raw.githubusercontent.com/rootzoll/raspiblitz/dev/build_sdcard.sh
2022-01-25 13:28:57 +00:00
2021-12-11 13:03:45 +00:00
# run
2022-01-25 13:28:57 +00:00
sudo bash build_sdcard.sh -f true -b dev -d headless -t false -w off
# Options:
# -h, --help this help info
# -i, --interaction [0|1] interaction before proceeding with exection (default: 1)
# -f, --fatpack [0|1] fatpack mode (default: 1)
# -u, --github-user [rootzoll|other] github user to be checked from the repo (default: rootzoll)
# -b, --branch [v1.7|v1.8] branch to be built on (default: v1.7)
# -d, --display [lcd|hdmi|headless] display class (default: lcd)
# -t, --tweak-boot-drive [0|1] tweak boot drives (default: 1)
# -w, --wifi-region [off|US|GB|other] wifi iso code (default: US) or 'off'
2021-12-11 13:03:45 +00:00
```
2021-12-26 22:22:33 +00:00
Switch off when ready
2021-12-11 13:03:45 +00:00
and attach an other disk (can be even small if you prune or [stop bitcoind ](https://github.com/rootzoll/raspiblitz/issues/1500#issuecomment-982779830 ) ).
The second virtual disk will be used as the BLOCKCHAIN drive.
This makes that data portable and independent from the OS similar to the combination of the SDcard and separate SSD.
---
## Armbian
2019-04-14 14:43:33 +01:00
Many SBC-s are supported:
https://www.armbian.com/download/
2019-09-07 21:12:29 +01:00
To verify the downloaded image follow: https://docs.armbian.com/User-Guide_Getting-Started/#how -to-check-download-authenticity
2019-04-14 14:43:33 +01:00
Tested on:
2019-09-07 21:12:29 +01:00
* Odroid XU4 / HC1 / HC2 with the Armbian Buster image from https://www.armbian.com/odroid-xu4/
2019-04-14 14:43:33 +01:00
2019-09-07 21:12:29 +01:00
Burn the image to the SDcard with [Etcher ](https://www.balena.io/etcher/ ).
2019-04-14 14:43:33 +01:00
2019-09-07 21:12:29 +01:00
Assemble and boot.
2019-04-14 14:43:33 +01:00
2019-05-11 16:59:22 +01:00
`ssh root@192.168.x.x`
2019-04-14 14:43:33 +01:00
2021-12-26 22:22:33 +00:00
password: `1234`
2019-04-14 14:43:33 +01:00
2019-09-07 21:12:29 +01:00
Follow the instructions in the terminal. Set the new password to `raspiblitz` and name the new user `admin` to keep in line with the rest of the setup.
2019-04-14 14:43:33 +01:00
Continue with building the SDcard: https://github.com/rootzoll/raspiblitz#build -the-sd-card-image
---
2021-12-11 13:03:45 +00:00
## Ubuntu
2019-04-14 14:43:33 +01:00
A common distro to be supplied by the manufacturer for various boards.
Tested on:
* Odroid XU4 with ubuntu-18.04.1-4.14-minimal image from https://de.eu.odroid.in/ubuntu_18.04lts/XU3_XU4_MC1_HC1_HC2
2019-06-12 19:07:31 +01:00
* Nvidia Jetson Nano with Ubuntu Bionic image from https://developer.nvidia.com/embedded/learn/get-started-jetson-nano-devkit#write
2019-04-14 14:43:33 +01:00
Burn the image to the SDCard with [Etcher ](https://www.balena.io/etcher/ ).
Assemble and boot.
2019-05-11 16:59:22 +01:00
`ssh root@192.168.x.x`
2019-04-14 14:43:33 +01:00
password: odroid
`apt-get update`
`apt-get upgrade`
if there is an error:
>E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
>E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
run:
`reboot` and update as above
Continue with building the SDcard: https://github.com/rootzoll/raspiblitz#build -the-sd-card-image
---
2021-12-26 22:22:33 +00:00
## Python upgrade
2019-04-14 14:43:33 +01:00
2021-12-26 22:22:33 +00:00
```
# select version
pythonVersion="3.10.1"
majorPythonVersion=$(echo "$pythonVersion" | awk -F. '{print $1"."$2}' )
# update and upgrade
sudo apt update
sudo apt upgrade -y
# dependencies
sudo apt install wget software-properties-common build-essential libnss3-dev zlib1g-dev libgdbm-dev libncurses5-dev libssl-dev libffi-dev libreadline-dev libsqlite3-dev libbz2-dev -y
# download
wget https://www.python.org/ftp/python/${pythonVersion}/Python-${pythonVersion}.tgz
# optional signature for verification
wget https://www.python.org/ftp/python/${pythonVersion}/Python-${pythonVersion}.tgz.asc
# get PGP pubkey of Pablo Galindo Salgado
gpg --recv-key CFDCA245B1043CF2A5F97865FFE87404168BD847
# check for: Good signature from "Pablo Galindo Salgado <pablogsal@gmail.com>"
gpg --verify Python-${pythonVersion}.tgz.asc
# unzip
tar xvf Python-${pythonVersion}.tgz
cd Python-${pythonVersion}
# configure
./configure --enable-optimizations
# install
sudo make altinstall
# move the python binary to the expected directory
sudo mv $(which python${majorPythonVersion}) /usr/bin/
# check
ls -la /usr/bin/python${majorPythonVersion}
```