|
@@ -11,10 +11,11 @@ Save and reboot
|
|
|
|
|
|
```
|
|
|
dietpi-software install 130
|
|
|
-sudo apt install build-essential libfreetype6-dev libjpeg-dev libopenjp2-7 libtiff5
|
|
|
+sudo apt install build-essential libfreetype6-dev libjpeg-dev libopenjp2-7 libtiff5 -y
|
|
|
sudo pip3 install -U luma.led_matrix
|
|
|
tar xvfJ luma.led_matrix-master.tar.xz
|
|
|
-cd luma.led_matrix-master/examples
|
|
|
+mv luma.led_matrix-master /mnt/dietpi_userdata/luma.led_matrix
|
|
|
+cd /mnt/dietpi_userdata/luma.led_matrix/examples
|
|
|
python3 silly_clock.py
|
|
|
```
|
|
|
|
|
@@ -30,6 +31,8 @@ sudo cp /tmp/rc.local /etc/
|
|
|
sudo chmod +x /etc/rc.local
|
|
|
sudo systemctl disable rc-local
|
|
|
sudo systemctl disable rc.local
|
|
|
+fi
|
|
|
+
|
|
|
if ! [ -f /lib/systemd/system/rc-local.service ]
|
|
|
then
|
|
|
cat <<'EOF'>> /tmp/rc-local.service
|
|
@@ -58,3 +61,4 @@ sudo cp /tmp/rc-local.service /lib/systemd/system/rc-local.service
|
|
|
sudo systemctl daemon-reload
|
|
|
fi
|
|
|
```
|
|
|
+
|