See https://wiki.debian.org/FlashPlayer, https://wiki.debian.org/PepperFlashPlayer & https://wiki.debian.org/Freshplayerplugin
Keeping Adobe's FlashPlayer plugin up to date is very important.
If systemd is used as PID1 (/sbin/init) then a timer can be used to fetch updates daily.
First, create an update script at /usr/local/bin/update-flashplugins (as root!) with the following content:
Code: Select all
#!/bin/sh
NPAPI_FLASH="update-flashplugin-nonfree"
PEPPER_FLASH="update-pepperflashplugin-nonfree"
if type "$NPAPI_FLASH" 1>/dev/null ; then
"$NPAPI_FLASH" --install --quiet
fi
if type "$PEPPER_FLASH" 1>/dev/null ; then
"$PEPPER_FLASH" --install --quiet
fi
http://crunchbang.org/forums/viewtopic.php?id=33319
Make the script executable with:
Code: Select all
sudo chmod +x /usr/local/bin/update-flashplugins
/etc/systemd/system/update-flashplugins.timer
Code: Select all
[Unit]
Description=Update FlashPlayer plugins daily.
[Timer]
OnCalendar=daily
AccuracySec=1h
Persistent=true
[Install]
WantedBy=timers.target
Code: Select all
[Unit]
Description=Update FlashPlayer plugins.
[Service]
Type=oneshot
ExecStartPre=/bin/sleep 600
ExecStart=/usr/local/bin/update-flashplugins
Code: Select all
sudo systemctl enable update-flashplugins.timer
Code: Select all
sudo systemctl disable update-flashplugins.timer
Code: Select all
systemctl status update-flashplugins.timer
Code: Select all
empty@TheLab:~$ sudo systemctl status update-flashplugins.timer
● update-flashplugins.timer - Update FlashPlayer plugins daily.
Loaded: loaded (/etc/systemd/system/update-flashplugins.timer; enabled)
Active: inactive (dead)