You are not logged in.
The packages
flashplugin-nonfree
pepperflashplugin-nonfree
provide the latest available flash players in the NAAPI and PEPPER versions. However, these packages only provide a manual update mechanism and don't update automatically when "apt-get dist-upgrade"'ing. Here's how to automate updating them using cron.
Create a file
/etc/cron.daily/update-flashplugins
with the following contents:
#!/bin/sh
NAAPI_FLASH="update-flashplugin-nonfree"
PEPPER_FLASH="update-pepperflashplugin-nonfree"
if type "$NAAPI_FLASH" 1>/dev/null ; then
"$NAAPI_FLASH" --install --quiet
fi
if type "$PEPPER_FLASH" 1>/dev/null ; then
"$PEPPER_FLASH" --install --quiet
fi
and the appropriate ownership and file mode:
sudo chown root:root /etc/cron.daily/update-flashplugins
sudo chmod 755 /etc/cron.daily/update-flashplugins
Cron will now daily run this script and update the plugins to their latest available versions.
(Edit: Incorporate some of Alad's suggestions)
Last edited by twoion (2014-03-18 15:58:32)
Offline
#!/bin/sh
test -x /usr/sbin/update-pepperflashplugin-nonfree \
&& update-pepperflashplugin-nonfree --status \
| grep -o ": [[:digit:]]*.[[:digit:]]*.[[:digit:]]*.[[:digit:]]*" \
| {
read installed
read available
if [ "$installed" \< "$available" ] ; then
/usr/sbin/update-pepperflashplugin-nonfree --install --quiet \
&& echo "$(date) Updating pepperflash successful" >> /var/log/pepperupdate.log
|| echo "$(date) Updating pepperflash failed" >> /var/log/pepperupdate.log
fi
}
Last edited by Alad (2014-03-18 14:57:51)
Offline
#!/bin/sh
test -x /usr/sbin/update-pepperflashplugin-nonfree \
&& update-pepperflashplugin-nonfree --status \
| grep -o ": [[:digit:]]*.[[:digit:]]*.[[:digit:]]*.[[:digit:]]*" \
| {
read installed
read available
if [ "$installed" \< "$available" ] ; then
/usr/sbin/update-pepperflashplugin-nonfree --install --quiet \
&& echo "$(date) Updating pepperflash successful" >> /var/log/pepperupdate.log
|| echo "$(date) Updating pepperflash failed" >> /var/log/pepperupdate.log
fi
}
Offline
When I tried it with pepperflash it always downloaded the installer, but I used the version 1.2 from bpo. Good to know that 1.3 fixes this.
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat