Raspberry Pi Guide
Before setting up Raspberry Pi, check requirements here.

1. UPS Device

Connect the UPS to the power supply and let it charge.

2. Connect the Modem to the UPS and Set it up

Plug in the modem, the swith and the Raspberry into the UPS and access the Modem. Later we need to set up a fixed IP address and port forwarding (TCP 6000/9000/9500) for the Rasperry.

3. Prepare the Raspberry

3.1. Install Heatsinker on Raspberry
3.2. Install Fan
3.3. Connect Mini HDMI -> HDMI cable (if you like, otherwise you can use SSH)
3.4. Connect the keyboard (if you like, otherwise you can use SSH)
3.5. Connect Ethernet
3.6. Install Ubuntu Server 20.04 LTS on MircoSD and on SSD. Click here for instructions
3.7. Start the UPS Power for the Raspberry

4. Update Raspberry Pi

4.1. Access via Powershell, Terminal or directly via Keyboard and Monitor
1
ssh [email protected] address
Copied!
4.2. Login: ubuntu / Password: ubuntu
For security reasons Linux requires to change the default ubuntu password.
4.3. Update & Upgrade
1
sudo apt update && sudo apt upgrade
Copied!
During update we can set up a static IP on the Modem and set up Port forwarding.
4.4. Restart
1
sudo reboot
Copied!

5. Install SSD

Code is adapted from an Instruction, check here if you need further information’s.
5.1. Download Eeprom
1
sudo apt install rpi-eeprom
Copied!
5.2. Restart
1
sudo reboot
Copied!
5.3. Connect the hard disk and check
1
lsblk
Copied!
5.4. Read out the SSD ID via and write it down
1
sudo lsusb
Copied!
5.5. Mount the hard disk
1
sudo mkdir /mnt/boot
2
sudo mkdir /mnt/writable
3
sudo mount /dev/sda1 /mnt/boot
4
sudo mount /dev/sda2 /mnt/writable
Copied!
5.6. Check again with point 5.3 if mount has worked
5.7. Automatically boot from SSD using this script
1
sudo curl https://raw.githubusercontent.com/TheRemote/Ubuntu-Server-raspi4-unofficial/master/BootFix.sh | sudo bash
2
sudo umount /mnt/boot
3
sudo umount /mnt/writable
4
sudo shutdown now
Copied!
5.8. Create Quirks driver
In point 5.4. the SSD ID was read out via sudo lsusb xxxx:xxxx Now connect the hard disk to a computer and add in /boot/firmware/cmdline.txt “usb-storage.quirks=xxxx:xxxx:u” in the first place, without the quotation marks and save. For example for the Samung T7, usb-storage.quirks=04e8:4001:u
5.9. Remove the MicroSD and boot from SSD
Now it should start from the SSD, let it around 20 Minutes so settle down everything, special if you have a bigger SSD.
In case it searches still for MicroSD, write with the Pi Imager «Misc utility images -> Bootloader -> USB Boot to the MicroSD, put it in and start the Rasperry, wait around 15 seconds, remove power and MicroSD and try again.

6. Set up the Raspberry again

By starting from the SSD, the password must be changed again. Upon logging in for the first time if the Pi is connected to the internet Ubuntu will immediately/soon start a lengthy update process via snapd and apt.
Make sure you give the system enough time (20 Minutes at least) to finish this process before doing going forward.

7. Change basic settings

Code is adapted from an Instruction, check here if you need further information’s).
7.1. Update by command
1
sudo apt update && sudo apt upgrade
Copied!
7.2. Restart by command
1
sudo reboot
Copied!
7.3. Change the keyboard to your Language (if wished)
1
sudo dpkg-reconfigure keyboard-configuration
Copied!
7.4. Restart by command
1
sudo reboot
Copied!
7.5. Set the time zone
1
sudo dpkg-reconfigure tzdata
Copied!
7.6. Restart by command
1
sudo reboot
Copied!
7.7. Speed testing of SSD via
1
sudo hdparm -tT /dev/sda && sudo hdparm -tT --direct /dev/sda
Copied!

8. System optimization

8.1. Minimize GPU, deactivate Bluetooth, deactivate Wifi and overclocking
1
sudo nano /boot/firmware/config.txt
Copied!
Add the following in the config file under [all]
1
over_voltage=5
2
arm_freq=1800
3
force_turbo=1
4
gpu_mem=16
5
gpu_freq=300
6
dtoverlay=disable-bt
7
dtoverlay=disable-wifi
Copied!
Save via ctrl + x and confirm.

9. Final Establishment

9.1. Change host name
Code is adapted from an Instruction, check here if you need further information’s).
1
hostnamectl set-hostname NEWHOSTNAME
Copied!
9.2. Create user
Code is adapted from an Instruction, check here if you need further information’s).
1
sudo -i
2
sudo adduser NEWUSER
Copied!
Enter your new password and confirm again.
9.3. Give sudo permission
1
sudo usermod -aG sudo NEWUSER
Copied!
9.4. Check and even extend authorization
1
groups NEWUSER && groups ubuntu
2
sudo usermod -G ubuntu, adm, dialout, cdrom, floppy, sudo, audio, dip, video, plugdev, netdev, lxd, root NEWUSER
Copied!
9.5. Add the entry for the new user in Visudo
1
visudo
Copied!
1
root ALL = (ALL: ALL) ALL
2
NEWUSER ALL = (ALL: ALL) ALL
Copied!
Save via ctrl + x and confirm.
9.6. Terminate old processes and block users
1
sudo pkill -u ubuntu
2
sudo usermod -L ubuntu
Copied!
9.7. Change to new User
1
sudo su -NEWUSER
Copied!

10. Firewall Setup

Code is adapted from an Instruction, check here if you need further information’s).
10.1. Install & activate the firewall
1
sudo apt install ufw
2
sudo ufw enable
Copied!
10.2. Open the corresponding TCP ports for Harmony & local SSH from another PC
1
sudo ufw allow from LOCALIP to any port 22
2
sudo ufw allow 6000/tcp
3
sudo ufw allow 9000/tcp
4
sudo ufw allow 9500/tcp
Copied!
10.3. Check Firewall
1
sudo ufw status
Copied!
Congratulation you set up your Raspberry Pi and it is ready for setting up as Node!
Since HMY CLI is not natively supported ARM systems yet, install it on a x86_64 system to setup the BLS Keys. After that, copy them to the same .hmy/blskeys folder on Raspberry Pi.

11. Continue Node Setup

Continue node setup from Rclone onwards.
Last modified 2mo ago