Raspberry Pi Guide
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
ssh username@ip address4.2. Login: ubuntu / Password: ubuntu
For security reasons Linux requires to change the default ubuntu password.
4.3. Update & Upgrade
sudo apt update && sudo apt upgrade4.4. Restart
sudo reboot5. Install SSD
5.1. Download Eeprom
sudo apt install rpi-eeprom5.2. Restart
sudo reboot5.3. Connect the hard disk and check
lsblk5.4. Read out the SSD ID via and write it down
sudo lsusb5.5. Mount the hard disk
sudo mkdir /mnt/boot
sudo mkdir /mnt/writable
sudo mount /dev/sda1 /mnt/boot
sudo mount /dev/sda2 /mnt/writable5.6. Check again with point 5.3 if mount has worked
5.7. Automatically boot from SSD using this script
sudo curl https://raw.githubusercontent.com/TheRemote/Ubuntu-Server-raspi4-unofficial/master/BootFix.sh | sudo bash
sudo umount /mnt/boot
sudo umount /mnt/writable
sudo shutdown now5.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.
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
7.1. Update by command
sudo apt update && sudo apt upgrade7.2. Restart by command
sudo reboot7.3. Change the keyboard to your Language (if wished)
sudo dpkg-reconfigure keyboard-configuration7.4. Restart by command
sudo reboot7.5. Set the time zone
sudo dpkg-reconfigure tzdata7.6. Restart by command
sudo reboot7.7. Speed testing of SSD via
sudo hdparm -tT /dev/sda && sudo hdparm -tT --direct /dev/sda8. System optimization
8.1. Minimize GPU, deactivate Bluetooth, deactivate Wifi and overclocking
sudo nano /boot/firmware/config.txtAdd the following in the config file under [all]
over_voltage=5
arm_freq=1800
force_turbo=1
gpu_mem=16
gpu_freq=300
dtoverlay=disable-bt
dtoverlay=disable-wifiSave via ctrl + x and confirm.
9. Final Establishment
9.1. Change host name
hostnamectl set-hostname NEWHOSTNAME9.2. Create user
sudo -i
sudo adduser NEWUSEREnter your new password and confirm again.
9.3. Give sudo permission
sudo usermod -aG sudo NEWUSER9.4. Check and even extend authorization
groups NEWUSER && groups ubuntu
sudo usermod -G ubuntu, adm, dialout, cdrom, floppy, sudo, audio, dip, video, plugdev, netdev, lxd, root NEWUSER9.5. Add the entry for the new user in Visudo
visudoroot ALL = (ALL: ALL) ALL
NEWUSER ALL = (ALL: ALL) ALLSave via ctrl + x and confirm.
9.6. Terminate old processes and block users
sudo pkill -u ubuntu
sudo usermod -L ubuntu9.7. Change to new User
sudo su -NEWUSER10. Firewall Setup
10.1. Install & activate the firewall
sudo apt install ufw
sudo ufw enable10.2. Open the corresponding TCP ports for Harmony & local SSH from another PC
sudo ufw allow from LOCALIP to any port 22
sudo ufw allow 6000/tcp
sudo ufw allow 9000/tcp
sudo ufw allow 9500/tcp10.3. Check Firewall
sudo ufw statusCongratulation 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 updated
Was this helpful?