Finalize slideshow setup on ubuntu, including removal of cursor on the slideshow tty
This commit is contained in:
parent
79aa6a8982
commit
ff211ac1b1
|
@ -12,6 +12,8 @@ sudo -sHu root /bin/bash
|
|||
|
||||
# Disable cloud-init as it's unnecessary for the purposes of this project
|
||||
touch /etc/cloud/cloud-init.disabled
|
||||
nano -w /boot/firmware/cmdline.txt
|
||||
remove console=tty1
|
||||
systemctl reboot
|
||||
|
||||
# Login
|
||||
|
|
|
@ -178,7 +178,7 @@ chmod a+x /usr/local/bin/fim-slideshow.sh
|
|||
cat > /etc/systemd/system/fim.service <<EOF
|
||||
[Unit]
|
||||
Description=fim slideshow
|
||||
After=network.target
|
||||
After=getty.target
|
||||
|
||||
[Service]
|
||||
User=fim
|
||||
|
@ -190,6 +190,25 @@ EOF
|
|||
systemctl daemon-reload
|
||||
systemctl stop 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
|
||||
apt install incron
|
||||
cat > /etc/incron.d/feh <<EOF
|
||||
|
|
Loading…
Reference in a new issue