- Archlinux aarch64 image for Orange PI Prime
- Burn the skyalarm.img to a microSD
wget https://github.com/0pcom/skyalarm/releases/download/skyalarm/skyalarm.img.tar.xz bsdtar -xpf skyalarm.img.tar.xz sudo dcfldd if='~/skyalarm.img' of=/dev/sdx
Resize the rootfs partition to take up the rest of the microSD with your preferred partitioning utility (parted, gparted, cfdisk, gnome-disks-utility, etc.)
Insert the microSD into your OrangePI Prime
ssh to the board with
Run the following at first boot:
pacman-key --init pacman-key --populate pacman -Sy pacman -Syy pacman -S archlinux-keyring pacman -Syu
- If the above step fails due to DNS resolution related errors, try disabling systemd-resolved.service
systemctl disable systemd.resolved.service systemctl stop systemd.resolved.service
- If errors persist try adding a nameserver to /etc/resolv.conf (not /etc/resolve.conf !)
cat /etc/resolv.conf #see if there's anything there with the above; then echo 'nameserver 126.96.36.199.8 >> /etc/resolv.conf echo 'nameserver 192.168.0.1 >> /etc/resolv.conf echo 'nameserver 192.168.1.1 >> /etc/resolv.conf
IF THE ABOVE DOES NOT WORK PLEASE FILE AN ISSUE!
- To avoid MAC address / hostname conflicts for multiple boards you may need to edit
& / or
- Create a user (or give sudo privelages to alarm)
su - root useradd -m user
Add the user to sudoers with
Switch to the user:
su - user
Configuring skywire, etc.
To avoid stale packages, the skycoin aarch64 repository has been depreciated & is no longer preconfigured on the image provided.
- To utilise the AUR packages for skycoin, skywire, etc. first install some make dependancies.
sudo pacman -S base-devel sudo pacman -S go-pie git
- Then install yay, an AUR package manager written in go
git clone https://aur.archlinux.org/yay.git cd yay makepkg -scif cd ~/
- Now you can install skywire with the following:
yay -S skywire
yay -S skywire-mainnet
A la carte
If you prefer to save bandwidth or processing power and avoid building in paralell; or to save some space on the nodes and avoid having to install the make dependancies, you can build any particular package you like and share it over the local network with the following:
git clone https://aur.archlinux.org/skywire-mainnet.git cd skywire-mainnet makepkg -scif darkhttpd .
Now you can find this package on your lan at <your board's IP>:8080/