Install flash plugin in firefox in Linux(CentOS)

The default web browser in fedora or CentOS is firefox. When watching videos on net, firefox always says “install the flash plugin”. But after downloading from adobe and installing flash plugin, restarting firefox, the saying occured again. It is aweful.

I find an article to solve the problem.

DOWNLOAD
Go to the website:http://get.adobe.com/cn/flashplayer/, and choose a proper plugin, means suit for your system and browser. And I suggest you download the tar.gz file.

FIND THE RIGHT FLODER

1.let us find out where is the plugin floder firefox use.
$whereis firefox
output:

firefox: /usr/bin/firefox /usr/lib/firefox /usr/share/man/man1/firefox.1.gz

2.Then we know it is in /usr
$find /usr -name firefox
output:

/usr/bin/firefox
/usr/lib/firefox
/usr/lib/firefox/firefox
find: /usr/lib/audit': Permission denied find:/usr/local/lost+found’: Permission denied
find: `/usr/lost+found’: Permission denied

but there are no flolder named after plugin in these folders.

3.We check with mozilla instead of firefox
$find /usr -name mozilla

output:
/usr/lib/mozilla
/usr/share/mozilla
find: /usr/local/lost+found': Permission denied find:/usr/lost+found’: Permission denied

and finally we find the plugins folder in /usr/share/mozilla

4.unpack the tar.gz file
$tar -xzf install_flash_…..tar.gz

we find there is a file named after libflashplayer.so

5.copy the libflashplayer.so to the plugin folder
$sudo cp the_path_of_libflashplayer.so/libflashplayer.so /usr/lib/mozilla/plugins

6.change the mode of the libflashplayer.so
$chmod 755 libflashplayer.so

7.restart the firefox and you find the flash plugin works.

Original website:http://blog.csdn.net/yanhang1589/article/details/7312691