mirror of
https://github.com/karl0ss/AnotterKiosk.git
synced 2025-07-28 11:10:17 +01:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
47a3da9781 | |||
9c42befea5 | |||
e17af98cfc |
@ -3,6 +3,7 @@ N-AnotterKiosk (Not-AnotterKiosk)
|
|||||||
|
|
||||||
### I have hacked this about alot from the main branch, mainly Raspberry Pi changes
|
### I have hacked this about alot from the main branch, mainly Raspberry Pi changes
|
||||||
|
|
||||||
|
- Removed x86 support
|
||||||
- Added scheduled screen on/off
|
- Added scheduled screen on/off
|
||||||
- Added scheduled chrome page refresh
|
- Added scheduled chrome page refresh
|
||||||
- Rpi3 Overclock settings
|
- Rpi3 Overclock settings
|
||||||
|
@ -15,8 +15,8 @@ sudo mkdir -p "${BUILD_DIR}"
|
|||||||
# download a modern RaspiOS build
|
# download a modern RaspiOS build
|
||||||
if [ ! -f raspios.img.xz ]
|
if [ ! -f raspios.img.xz ]
|
||||||
then
|
then
|
||||||
wget -O raspios.img.xz "https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2023-05-03/2023-05-03-raspios-bullseye-arm64-lite.img.xz"
|
wget -O raspios.img.xz "https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2024-03-15/2024-03-15-raspios-bookworm-arm64-lite.img.xz"
|
||||||
echo "bf982e56b0374712d93e185780d121e3f5c3d5e33052a95f72f9aed468d58fa7 raspios.img.xz" | sha256sum --check --status
|
echo "b58a0b61612493b2b37b8415438a73496def13de56f5743e4d7334571389f3b8 raspios.img.xz" | sha256sum --check --status
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo "downloaded raspios does not match checksum";
|
echo "downloaded raspios does not match checksum";
|
||||||
@ -59,14 +59,10 @@ sudo mount proc -t proc -o nosuid,noexec,nodev "${BUILD_DIR}/proc/"
|
|||||||
sudo mount sys -t sysfs -o nosuid,noexec,nodev,ro "${BUILD_DIR}/sys/"
|
sudo mount sys -t sysfs -o nosuid,noexec,nodev,ro "${BUILD_DIR}/sys/"
|
||||||
sudo mount devpts -t devtmpfs -o mode=0755,nosuid "${BUILD_DIR}/dev/"
|
sudo mount devpts -t devtmpfs -o mode=0755,nosuid "${BUILD_DIR}/dev/"
|
||||||
|
|
||||||
# Raspbian currently ships only Debian 11. Let's upgrade to 12.
|
|
||||||
sudo chroot "${BUILD_DIR}" /raspberry_pi_bullseye.sh
|
|
||||||
|
|
||||||
# and then actually install everything.
|
# and then actually install everything.
|
||||||
sudo chroot "${BUILD_DIR}" /kiosk_skeleton/build.sh
|
sudo chroot "${BUILD_DIR}" /kiosk_skeleton/build.sh
|
||||||
|
|
||||||
sudo rm -r "${BUILD_DIR}/kiosk_skeleton"
|
sudo rm -r "${BUILD_DIR}/kiosk_skeleton"
|
||||||
sudo rm "${BUILD_DIR}/raspberry_pi_bullseye.sh"
|
|
||||||
|
|
||||||
cp "${BUILD_DIR}/version-info" version-info
|
cp "${BUILD_DIR}/version-info" version-info
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
# This script is being run on the target debian platform
|
# This script is being run on the target debian platform
|
||||||
|
|
||||||
apt update
|
apt update
|
||||||
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
|
||||||
|
|
||||||
rsync -a --chown=root:root "/kiosk_skeleton/." "/"
|
rsync -a --chown=root:root "/kiosk_skeleton/." "/"
|
||||||
@ -96,6 +95,9 @@ chown -R pi:pi /var/lib/hyperion || true
|
|||||||
chown -R pi:pi /etc/hyperion
|
chown -R pi:pi /etc/hyperion
|
||||||
usermod -a -G video pi
|
usermod -a -G video pi
|
||||||
|
|
||||||
|
# clean up apt cache to reduce image size
|
||||||
|
apt clean
|
||||||
|
|
||||||
# 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
|
||||||
@ -103,7 +105,3 @@ dpkg --list | grep "ii chromium " >> /version-info
|
|||||||
echo -n "Linux kernel version: " >> /version-info
|
echo -n "Linux kernel version: " >> /version-info
|
||||||
ls /lib/modules/ | sort -r | head -n 1 >> /version-info
|
ls /lib/modules/ | sort -r | head -n 1 >> /version-info
|
||||||
echo >> /version-info
|
echo >> /version-info
|
||||||
|
|
||||||
# Clean up apt cache and remove unused packages
|
|
||||||
apt-get clean
|
|
||||||
apt-get autoremove -y
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<h1>Kioskbrowser</h1>
|
<h1>Kioskbrowser</h1>
|
||||||
<h2>Version: <?php echo exec('git describe --tags --abbrev=0'); ?></h2>
|
|
||||||
|
|
||||||
CPU temperature: <br>
|
CPU temperature: <br>
|
||||||
<?php passthru("sudo vcgencmd measure_temp"); ?>
|
<?php passthru("sudo vcgencmd measure_temp"); ?>
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
echo > /etc/apt/sources.list
|
|
||||||
echo "deb http://deb.debian.org/debian bookworm main contrib non-free" >> /etc/apt/sources.list
|
|
||||||
echo "deb http://security.debian.org/debian-security bookworm-security main contrib non-free" >> /etc/apt/sources.list
|
|
||||||
echo "deb http://deb.debian.org/debian bookworm-updates main contrib non-free" >> /etc/apt/sources.list
|
|
||||||
|
|
||||||
apt update
|
|
||||||
APT_LISTCHANGES_FRONTEND=none DEBIAN_FRONTEND=noninteractive apt -o Dpkg::Options::="--force-confold" -f -y dist-upgrade
|
|
||||||
|
|
||||||
# This step is a bit risky, as the current kernel in https://github.com/raspberrypi/rpi-firmware might
|
|
||||||
# be less tested as the currently shipping kernel in the Raspberry Pi images.
|
|
||||||
apt install -y rpi-update
|
|
||||||
SKIP_CHECK_PARTITION=1 SKIP_WARNING=1 rpi-update
|
|
Loading…
x
Reference in New Issue
Block a user