# Slideshow The below commands will setup ```fim``` as a slideshow on your display. ## Important Notes * ```fim``` will crash if there are no photos for it to use as a slideshow * You will likely want to tweak the ```fim``` command invocation below. These are great settings as a starting point but you'll probably want to make adjustments for your use case. * This setup uses ```incron``` to restart ```fim``` when photos are deleted from the pictures folder. Without this piece ```fim``` will crash if a picture is removed from the pictures directory prior to ```fim``` rescaning the pictures directory. ## Setup ``` sh useradd -m -G video -s /usr/sbin/nologin fim apt install acl setfacl -m "u:fim:rwX" /tank/pictures setfacl -dm "u:fim:rwX" /tank/pictures apt install fim imagemagick ttf-dejavu cat > /home/fim/.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_path < /usr/local/bin/fim-slideshow.sh < /etc/systemd/system/fim.service < /usr/local/bin/no-cursor-tty1.sh < /dev/tty1 EOF chmod a+x /usr/local/bin/no-cursor-tty1.sh cat > /etc/systemd/system/no-cursor-tty1.service < /etc/systemd/system/inotify-pictures.service <