Compare commits

..

2 Commits

Author SHA1 Message Date
5e08181199 fix: correct typo in schedule service filename
The systemd service for scheduling the screen on/off was misspelled as `kiosk-sechedule-screen.service`.

This commit renames the file to `kiosk-schedule-screen.service` and updates the build script to enable the correctly named service.
2025-07-18 13:31:44 +01:00
6a9d3fdace add hyperion support 2025-07-18 13:24:28 +01:00
5 changed files with 38 additions and 8 deletions

View File

@ -51,7 +51,7 @@ sed -i 's/vfat defaults/vfat ro,defaults/g' "${BUILD_DIR}/etc/fstab"
sed -i 's/ext4 defaults/ext4 ro,defaults/g' "${BUILD_DIR}/etc/fstab" sed -i 's/ext4 defaults/ext4 ro,defaults/g' "${BUILD_DIR}/etc/fstab"
# Include git repo version info # Include git repo version info
echo -n "N-AnotterKiosk Raspberry Pi version: " > "${BUILD_DIR}/version-info" echo -n "AnotterKiosk Raspberry Pi version: " > "${BUILD_DIR}/version-info"
git describe --abbrev=4 --dirty --always --tags >> "${BUILD_DIR}/version-info" git describe --abbrev=4 --dirty --always --tags >> "${BUILD_DIR}/version-info"
# Mount system partitions (from the build host) # Mount system partitions (from the build host)
@ -84,5 +84,5 @@ sudo umount "${BUILD_DIR}"
sudo losetup -D /dev/loop0 sudo losetup -D /dev/loop0
tag=$(git describe --abbrev=4 --dirty --always --tags) tag=$(git describe --abbrev=4 --dirty --always --tags)
mv raspikiosk.img n-anotterkiosk-${tag}-arm64-raspberrypi.img mv raspikiosk.img anotterkiosk-${tag}-arm64-raspberrypi.img
pigz -4 n-anotterkiosk-${tag}-arm64-raspberrypi.img pigz -4 anotterkiosk-${tag}-arm64-raspberrypi.img

View File

@ -3,7 +3,7 @@
apt update apt update
APT_LISTCHANGES_FRONTEND=none DEBIAN_FRONTEND=noninteractive apt dist-upgrade -y APT_LISTCHANGES_FRONTEND=none DEBIAN_FRONTEND=noninteractive apt dist-upgrade -y
DEBIAN_FRONTEND=noninteractive apt install -y lightdm openbox nginx php-fpm php-cli chromium autossh unclutter x11-xserver-utils xdotool htop nano openssh-server rsync x11vnc lm-sensors ntpdate scrot wireless-regdb fontconfig DEBIAN_FRONTEND=noninteractive apt install -y lightdm openbox nginx php-fpm php-cli chromium autossh unclutter x11-xserver-utils xdotool htop nano openssh-server rsync x11vnc lm-sensors ntpdate scrot wireless-regdb fontconfig curl gpg
rsync -a --chown=root:root "/kiosk_skeleton/." "/" rsync -a --chown=root:root "/kiosk_skeleton/." "/"
@ -78,11 +78,18 @@ systemctl enable ntpdate
systemctl enable lightdm systemctl enable lightdm
systemctl enable nginx systemctl enable nginx
systemctl enable ssh systemctl enable ssh
systemctl enable kiosk-sechedule-screen.service systemctl enable kiosk-schedule-screen.service
systemctl enable schedule-reboot.service systemctl enable schedule-reboot.service
systemctl enable setup-refresh-timer.service systemctl enable setup-refresh-timer.service
# Install Hyperion
curl -sSL https://apt.hyperion-project.org/hyperion.pub.key | gpg --dearmor -o /usr/share/keyrings/hyperion.pub.gpg
echo "deb [signed-by=/usr/share/keyrings/hyperion.pub.gpg] https://apt.hyperion-project.org/ $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/hyperion.list
apt update
apt install -y hyperiond
systemctl enable hyperiond
# generate a version info/build info file # generate a version info/build info file
echo -n "Chromium version: " >> /version-info echo -n "Chromium version: " >> /version-info
dpkg --list | grep "ii chromium " >> /version-info dpkg --list | grep "ii chromium " >> /version-info

View File

@ -0,0 +1,22 @@
{
"general": {
"name": "AnotterKiosk"
},
"grabber": {
"type": "framebuffer",
"device": "/dev/fb0",
"pixelformat": "rgb24"
},
"leds": [
{
"type": "ws281x",
"gpio": 18,
"dmanum": 10,
"freq": 800000,
"leds": 256,
"rewriteTime": 1000,
"rgbw": false,
"strip": "GRB"
}
]
}

View File

@ -7,11 +7,11 @@
# uncomment to force a console size. By default it will be display's size minus # uncomment to force a console size. By default it will be display's size minus
# overscan. # overscan.
#framebuffer_width=1280 framebuffer_width=1920
#framebuffer_height=720 framebuffer_height=1080
# uncomment if hdmi display is not detected and composite is being output # uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1 hdmi_force_hotplug=1
# uncomment to force a specific HDMI mode (this will force VGA) # uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1 #hdmi_group=1
@ -29,6 +29,7 @@ enable_uart=1
disable_splash=1 disable_splash=1
dtparam=audio=on dtparam=audio=on
gpu_mem=256 gpu_mem=256
#dtparam=spi=on
# Enable DRM VC4 V3D driver # Enable DRM VC4 V3D driver
#dtoverlay=vc4-kms-v3d #dtoverlay=vc4-kms-v3d