PiSugar Configuration
Add a pisugar user to the PiKVM (Raspberry Pi):
Connect via ssh to the PiKVM device.
Add a pisugar user:
[root@pikvm ~]# rw
+ mount -o remount,rw /
+ mount -o remount,rw /boot
+ set +x
=== PiKVM is in Read-Write mode ===
useradd --system -s /usr/bin/bash pisugar
usermod -d /opt/pisugar -m pisugar
passwd pisugar
Add pisugar to /etc/sudoers
Download latest
pisugar-archlinux_<version>_all.tar.gz
from Releases · PiSugar/pisugar-power-manager-rs
su - pisugar
tar -xvf pisugar-archlinux_<version>_all.tar.gz
Edit the PKBUILD to support the RPi Zero 2W:
arch=('arm' 'armhf' 'armv7h' 'aarch64' 'x86_64') and change the line to say (cd armhf)
Fix the install script sed error
then move the files /etc/default/pisugar-server/pisugar-server.default to /etc/default/pisugar-server
Install i2c-tools
pacman -Sy i2c-toolsEnable the i2c kernel module
Adding one line to
/boot/config.txt
:
Adding one line to
/etc/modules-load.d/raspberrypi.conf
:
reboot