ubuntu小技巧7--ubuntu如何安装flashplayer
安装Ubuntu的时候经常会用大视频播放,可是默认情况下Ubuntu并未安装flashplayer插件,导致浏览器无法播放视频,因此安装flashplayer将是一个必备技能了,一下根据个人经验总结一下FireFox和Chromium浏览器如何安装flashplayer:
在此先上一下效果图:
图一FireFox浏览器
图二Chromium浏览器
Ubuntu下FireFox和Chromium浏览器的flashplayer不是一样的,因此一下分开说
FireFox安装flashplayer方法:
法一:使用Ubuntu Software Center 安装
在Software Center中输入flashplayer就会出现AdobeFlash plugin,点击install即可完成安装(如下图),但是该方法对有些版本的系统不适用,如最新的Ubuntu和非Ubuntu系统,而且安装的速度很慢,一般不推荐
法二:使用 install_flash_player_11_linux.i386.tar.gz来安装
当没安装flash插件的时候,每当点击视频的时候会出现下载安装包的提示,我们选择下载tar.gz安装包即可,下载后可以根据包中的readme说明书来进行安装,一下直接站体说明书的核心内容,如下:
Installing using the plugin tar.gz:
o Unpack the plugin tar.gz and copy the files to the appropriate location.
o Save the plugin tar.gz locally and note the location the file was saved to.
o Launch terminal and change directories to the location the file was saved to.
o Unpack the tar.gz file. Once unpacked you will see the following:
+ libflashplayer.so
+ /usr
o Identify the location of the browser plugins directory, based on your Linux distribution and Firefox version
o Copy libflashplayer.so to the appropriate browser plugins directory. At the prompt type:
+ cp libflashlayer.so <BrowserPluginsLocation>
/usr/lib/mozilla/plugins
o Copy the Flash Player Local Settings configurations files to the /usr directory. At the prompt type:
+ sudo cp -r usr/* /usr
即:将libflashplayer.so拷贝至/usr/lib/mozilla/plugins中,讲压缩包中的/usr拷贝至/usr即可,重启浏览器就看以看视频了
Chromium的flashplayer安装方法:
Ubuntu 16.04/14.04.5 安装 Chromium浏览器,Flash播放器
--software&updates->Other software->Canonical Partners(必须选中)->close使其更新数据源
即:在设置中的软件更新中选择其它软件,然后选择 两个Canonical Partners,之后点击close即可,使其更新源;
待软件源更新完毕(此过程耗时长短依赖于网络状况、与软件源服务器的连接等因素),按下 Ctrl + Alt + t 键盘组合键,输入以下命令:
sudo apt install adobe-flashplugin
根据接下来的提示输入管理员密码,将会出现 adobe-flashplugin 的安装提示,这时在提示后面输入“Y”,adobe-flashplugin 的安装即会开始。
当然,以前也可以用如下命令安装,但是现在经常发现不行了,推荐用上面方法使用
sudo apt-get update
sudo apt-get install pepperflashplugin-nonfree
sudo update-pepperflashplugin-nonfree --install