diff --git a/docs/monit.md b/docs/monit.md index 9a6c69f..bd8588a 100644 --- a/docs/monit.md +++ b/docs/monit.md @@ -20,10 +20,10 @@ cat > /etc/monit/conf.d/tankfs < 80% then alert EOF -cat > /etc/monit/conf.d/fim < /etc/monit/conf.d/pf-ui < /etc/systemd/system/getty@tty1.service.d/override.conf < /home/fim/.fimrc < /usr/local/etc/fimrc <"; -unbind "?"; -unbind "@"; -unbind "A"; -unbind "Any"; -unbind "B"; -unbind "BackSpace"; -unbind "Backspace"; -unbind "C"; -unbind "C-a"; -unbind "C-b"; -unbind "C-c"; -unbind "C-d"; -unbind "C-e"; -unbind "C-f"; -unbind "C-g"; -unbind "C-h"; -unbind "C-i"; -unbind "C-j"; -unbind "C-k"; -unbind "C-l"; -unbind "C-m"; -unbind "C-n"; -unbind "C-o"; -unbind "C-p"; -unbind "C-q"; -unbind "C-r"; -unbind "C-s"; -unbind "C-t"; -unbind "C-u"; -unbind "C-v"; -unbind "C-w"; -unbind "C-x"; -unbind "C-y"; -unbind "C-z"; -unbind "D"; -unbind "Del"; -unbind "Down"; -unbind "E"; -unbind "End"; -unbind "Enter"; -unbind "Esc"; -unbind "F"; -unbind "G"; -unbind "H"; -unbind "Home"; -unbind "I"; -unbind "Ins"; -unbind "J"; -unbind "K"; -unbind "L"; -unbind "Left"; -unbind "M"; -unbind "N"; -unbind "O"; -unbind "P"; -unbind "PageDown"; -unbind "PageUp"; -unbind "Q"; -unbind "R"; -unbind "Right"; -unbind "S"; -unbind "T"; -unbind "Tab"; -unbind "U"; -unbind "Up"; -unbind "V"; -unbind "W"; -unbind "X"; -unbind "Y"; -unbind "Z"; -unbind "["; -unbind "\"; -unbind "]"; -unbind "^"; -unbind "_"; -unbind "’"; -unbind "a"; -unbind "b"; -unbind "c"; -unbind "d"; -unbind "e"; -unbind "f"; -unbind "g"; -unbind "h"; -unbind "i"; -unbind "j"; -unbind "k"; -unbind "l"; -unbind "m"; -unbind "n"; -unbind "o"; -unbind "p"; -unbind "q"; -unbind "r"; -unbind "s"; -unbind "t"; -unbind "u"; -unbind "v"; -unbind "w"; -unbind "x"; -unbind "y"; -unbind "z"; -unbind "{"; -unbind "|"; -unbind "}"; -unbind "~"; EOF -cat > /etc/default/fim_album < /etc/default/fim_albums < /etc/default/fim_album_index < /usr/local/bin/fim-slideshow.sh < /usr/local/bin/pf-fim.sh </dev/tty1 2>/dev/tty1 +#echo 2 > /sys/class/graphics/fbcon/rotate_all +ALBUM_PATH=\`cat /etc/default/fim_albums\` /usr/bin/fim --verbose --no-commandline --no-history \ --device /dev/fb0 --vt 1 \ --execute-commands-early "clear" --final-commands "clear" \ @@ -187,24 +65,20 @@ tput civis --cd-and-readdir --recursive \ "\$ALBUM_PATH" EOF -chmod a+x /usr/local/bin/fim-slideshow.sh -cat > /etc/systemd/system/fim.service < /etc/systemd/system/pf-ui.service < /usr/local/bin/no-cursor-tty1.sh < /dev/tty1 @@ -222,9 +96,6 @@ 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 DL_URL=$(curl https://git.kemonine.info/api/v1/repos/PiFrame/piframe-go/releases | jq -r '.[0].assets[] | select(.name == "inotify") | .browser_download_url') wget $DL_URL -O /usr/local/bin/pf-inotify @@ -244,7 +115,11 @@ Restart=always [Install] WantedBy=multi-user.target EOF + systemctl daemon-reload +systemctl enable --now no-cursor-tty1 +systemctl enable getty@tty1.service +systemctl restart getty@tty1.service systemctl enable --now inotify-pictures ``` diff --git a/docs/slideshow_prep.md b/docs/slideshow_prep.md index cecbb6c..7d4642b 100644 --- a/docs/slideshow_prep.md +++ b/docs/slideshow_prep.md @@ -18,4 +18,34 @@ mount /tank btrfs subvolume create /tank/pictures # load pictures via rclone/syncthing/scp/etc (semi-optional) +# Various tty tweaks +cat > /etc/default/console-setup <