Posts: 1,028
SamK
Joined: 21 Aug 2011
#1
Attached is a script (flashplayer-selector.sh.zip) which other antiX users might find useful. It is designed to simplify switching backwards and forwards between versions of Flash Player, or get and install the latest version.

Abstract from the included help section

Code: Select all

flashplayer-selector.sh --help

Usage: flashplayer-selector.sh 
The script does not use command line parameters.

Information:
   This script is used to select which version of Flash Player the system uses.

   Via a menu it performs either of two main tasks:
   1. Download and install the latest version,
   2. Revert to an older version by re-installing a previously installed one.

   flashplayer-selector.sh should be available in the path; located in either /usr/sbin 
   or /usr/local/sbin.  It must be run with root privileges as the installation 
   proceses requires access to areas owned by root.

Requires: 
   basename, bash, grep, select, tar, update-flashplugin-nonfree
All the required apps are included in the standard antiX-12.

To set up the script (as root):
  • Unzip the archive and place the script in /usr/sbin
  • Set owner=root and group=root
  • Set permissions rwx-r--r--
To run the script (as an unprivileged user):
Open a terminal and enter

Code: Select all

sudo flashplayer-selector.sh
When the menu is displayed, enter the number that corresponds to what you want to do.


Background
antiX-12 is designed to run on both modern and older (less powerful) hardware. It ships with Flash Player 11.2. As noted in this post, the shipped version of Flash Player is not well suited to less powerful kit.
post25635.html?hilit=How%20I%20updated%20from%20Flash%2010%20to%20Flash%2011%20Beta#p25635
This became particularly noticeable on a laptop used to test antiX. It is the oldest laptop available here (circa 2001) and works well with antiX-12, except that Flash does not work straight out-of-the-box.

Retracing the steps taken in the above post, both Flash Player 10.3 (the last in the series) and 11.1 were tried. Although 11.1 did work, version 10.3 worked more smoothly.

At this point, three versions of Flash Player were available on the laptop, but swapping between them was a cumbersome process. In turn this led to the idea of simplifying the switching via script.

Debian (and antiX) has update-flashplugin-nonfree, which can be used to download and install the latest version of Flash Player. A welcome side affect of this is that an archive of the existing version is retained on the local system. The idea of upgrading Flash Player via the script was added.


Example of adding an earlier version of Flash Player
Much of this can be found in the topic mentioned above.
The example is based on version 10.3 but also works with 11.1 or others (simply use the filename of the version you want).
  • Download Flash Player 10.3.183.43 from
    ========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
    url was:"http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html"
    linktext was:"http://helpx.adobe.com/flash-player/kb/ ... sions.html"
    ====================================
  • In Archive Manager (File Roller), open fp_10.3.183.43_archive.zip
  • Extract from the archive flashplayer_10.3.183.43_linux.tar.gz
  • As root, move flashplayer_10.3.183.43_linux.tar.gz to /var/cache/flashplugin-nonfree
    Note: do not extract the contents
The additional Flash Player is ready to be used by flashplayer-selector.sh


Suggestion
The newest version of Flash Player is OK for modern kit but is not suitable for older low powered kit. This may give an unsatisfactory impression of antiX on older hardware. Flash Player 10.3 or up to 11.1 may give a better out-of-the-box experience to a wider range of users. Should one of these be the default antiX version? Using the script makes it a trival task to upgrade to the newest version and switch again to the default version (or lower) if necessary.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#2
Excellent. Give me some time to test this out, and yes it is probably best for antiX to come with the oldest 10.3 installed. On an old PIII, I have to use 10.3 version.
Posts: 1,028
SamK
Joined: 21 Aug 2011
#3
Attached is an updated version of flashplayer-selector.sh. Three minor, cosmetic changes have been made to improve on-screen clarity.

Line 40
Added a command to clear the screen.

Line 87
Removed the word"latest"
This was done after forcing a download to fail (network not available).

Line 114
Removed the word"now"
Consistent with the change to line 87.