Finalize slideshow setup on ubuntu, including removal of cursor on the slideshow tty

This commit is contained in:
KemoNine 2020-08-03 07:31:56 +00:00
parent 79aa6a8982
commit ff211ac1b1
2 changed files with 22 additions and 1 deletions

View file

@ -12,6 +12,8 @@ sudo -sHu root /bin/bash
# Disable cloud-init as it's unnecessary for the purposes of this project # Disable cloud-init as it's unnecessary for the purposes of this project
touch /etc/cloud/cloud-init.disabled touch /etc/cloud/cloud-init.disabled
nano -w /boot/firmware/cmdline.txt
remove console=tty1
systemctl reboot systemctl reboot
# Login # Login

View file

@ -178,7 +178,7 @@ chmod a+x /usr/local/bin/fim-slideshow.sh
cat > /etc/systemd/system/fim.service <<EOF cat > /etc/systemd/system/fim.service <<EOF
[Unit] [Unit]
Description=fim slideshow Description=fim slideshow
After=network.target After=getty.target
[Service] [Service]
User=fim User=fim
@ -190,6 +190,25 @@ EOF
systemctl daemon-reload systemctl daemon-reload
systemctl stop getty@tty1 systemctl stop getty@tty1
systemctl disable getty@tty1 systemctl disable getty@tty1
cat > /usr/local/bin/no-cursor-tty1.sh <<EOF
#!/bin/bash
/usr/bin/tput -T screen civis > /dev/tty1
EOF
chmod a+x /usr/local/bin/no-cursor-tty1.sh
cat > /etc/systemd/system/no-cursor-tty1.service <<EOF
[Unit]
Description=Disable tty1 cursor
After=getty.target
[Service]
User=root
ExecStart=/usr/local/bin/no-cursor-tty1.sh
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable --now no-cursor-tty1
systemctl enable --now fim systemctl enable --now fim
apt install incron apt install incron
cat > /etc/incron.d/feh <<EOF cat > /etc/incron.d/feh <<EOF