投げ銭

★当サイトへの投げ銭(PayPal)★

LINK


(無償、寄付歓迎) logo
世界中で使われるISO標準オフィスソフト(MSオフィス互換)

★LibreOfficeの導入事例★
詳細について

人気の投稿(1ヶ月間)

Ad

Ad

投げ銭

★当サイトへの投げ銭(PayPal)★

2013年11月27日水曜日

【Linux CentOS6.4 64bit版】64bitのFirefoxにAdobeの64bitフラッシュプラグインをYUMリポジトリからインストールする

更新 2014年6月13日 自動アップデートについて


CentOS 6.4 64bit版(インストーラーで”デスクトップ”を選択して導入したもの)のFirefoxに、
AdobeのFlashプラグインを組み込む方法について

AdobeのYUMリポジトリを利用している。

(注意)
OSならびに、Firefoxが、64bit環境である場合を想定している。
(32bit環境については、手順が異なる可能性がある。)



■AdobeのWEBサイトからリポジトリ設定のためのパッケージをダウンロードし、インストールした

1、WEBブラウザを使って次のページを開き、 パッケージの種類(LINUX 64bit用YUM )を選択し、
ダウンロードを行った。

http://get.adobe.com/jp/flashplayer/otherversions/


2、ダウンロードしたパッケージをインストールした。

このパッケージをインストールすることで、AdobeのYUMリポジトリが登録される。

[root@localhost software]# yum localinstall adobe-release-x86_64-1.0-1.noarch.rpm
Installed:
  adobe-release-x86_64.noarch 0:1.0-1

Complete!

パッケージをインストールすることによって、YUM用のリポジトリが自動設定された。
[root@localhost software]# ls /etc/yum.repos.d/adobe-linux-x86_64.repo
/etc/yum.repos.d/adobe-linux-x86_64.repo


■不要なパッケージをアンインストールした

「nspluginwrapper」はブラウザのクラッシュを引き起こす可能性があるので、
下記のようにして必ずリムーブしておくこと。†2) (†1

[root@localhost software]# yum remove flash-plugin nspluginwrapper*
Package(s) flash-plugin available, but not installed.
Resolving Dependencies
--> Running transaction check
---> Package nspluginwrapper.x86_64 0:1.4.4-1.el6_3 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================================
 Package                             Arch                       Version                              Repository                                                    Size
========================================================================================================================================================================
Removing:
 nspluginwrapper                     x86_64                     1.4.4-1.el6_3                        @anaconda-CentOS-201303020151.x86_64/6.4                     471 k

Transaction Summary
========================================================================================================================================================================
Remove        1 Package(s)

Installed size: 471 k
Is this ok [y/N]: y

Removed:
  nspluginwrapper.x86_64 0:1.4.4-1.el6_3

Complete!


■フラッシュプラグインをインストールした

必ずAdobeのYUMリポジトリが行ってほしいとのこと。
Adobeはダウンロード回数を管理していて、もしその総計が少なければ、
デスクトップLinuxのサポートをやめてしまうかもしれないからだ。(†2

[root@localhost software]# yum install flash-plugin
Resolving Dependencies
--> Running transaction check
---> Package flash-plugin.x86_64 0:11.2.202.327-release will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================================
 Package                               Arch                            Version                                        Repository                                   Size
========================================================================================================================================================================
Installing:
 flash-plugin                          x86_64                          11.2.202.327-release                           adobe-linux-x86_64                          6.9 M

Transaction Summary
========================================================================================================================================================================
Install       1 Package(s)

Total download size: 6.9 M
Installed size: 19 M
Is this ok [y/N]: y
Downloading Packages:
flash-plugin-11.2.202.327-release.x86_64.rpm                                                                                                     | 6.9 MB     00:19
警告: rpmts_HdrFromFdno: ヘッダ V3 DSA/SHA1 Signature, key ID f6777c67: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
Importing GPG key 0xF6777C67:
 Userid : Adobe Systems Incorporated (Linux RPM Signing Key) <secure@adobe.com>
 Package: adobe-release-x86_64-1.0-1.noarch (@/adobe-release-x86_64-1.0-1.noarch)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux

Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : flash-plugin-11.2.202.327-release.x86_64                                                                                                             1/1
  Verifying  : flash-plugin-11.2.202.327-release.x86_64                                                                                                             1/1

Installed:
  flash-plugin.x86_64 0:11.2.202.327-release

Complete!


■フラッシュプラグインの存在確認

次のディレクトリに、「libflashplayer.so」へのリンクを確認できた。
lib64にリンクが張られている。

# ls /usr/lib64/mozilla/plugins -all
(省略)
libflashplayer.so -> /usr/lib64/flash-plugin/libflashplayer.so
(省略)

また、フラッシュプラグインを必要とするWEBページを開くと、
きちんとフラッシュが表示された。



■フラッシュプラグインを自動的にアップデートさせる

セキュリティーの問題が多いようなので、プラグインを自動的にアップデートさせるようにした。
crontab -e コマンドで、次のスケジュールを登録しておいた。
0       22      *       *       *       yum update flash-plugin -y
これによって、毎日22時に自動的に、yumコマンド(-yオプション)が対話なしで実行される。
新しいバージョンが存在すれば、flash-plugin が自動でアップデートされる。



(参考)
(1)How to setup x86_64 plugins for Firefox on Centos
< http://wiki.centos.org/TipsAndTricks/PluginsFor64BitFirefox > 2013年11月27日

(2)Adobe Flash Player for Linux Tips & Tricks
< http://macromedia.mplug.org/ > 2013年11月27日

(3)nspluginwrapper
< http://d.hatena.ne.jp/keyword/nspluginwrapper > 2013年11月27日

(4)[RESOLVED] Where do we look on Centos 6 to debug numerous Firefox flash plugin crashes?
< https://www.centos.org/forums/viewtopic.php?t=2725 > 2013年11月27日

【Linux CentOS6.4 64bit版】JAVAブラウザプラグインをYUMを使ってインストールしFirefoxでJAVAアプレットが動作するようにした【OpenJDK / IcedTea-Web】

CentOS 6.4(インストーラーで”デスクトップ”を選択してインストールしたもの)において、
インストール済みブラウザの「Firefox」でJAVAアプレットを実行できるように、
「Firefox」にJAVAプラグインを導入した。

今回は、「OpenJDK」環境を前提にして、「Firefox」にJAVAプラグイン(IcedTea-Web)を導入した。

ほかにも、AdobeのFlashプラグインもYUMでFirefoxに導入可能である。


0、ちょっとした知識の確認

■"IcedTea"というプロジェクトについて(†4

JAVAの環境には、主に二種類あるらしい。「OpenJDK」か、「Oracle JDK」かを選べる。
「OpenJDK」は、Red Hatが2007年に立ち上げたIcedTeaというプロジェクトによって作られた

■「OpenJDK」は、YUMリポジトリから導入可能である(†1

「OpenJDK」は、オープンソースでリポジトリから導入可能である。
CentOS 6.4(インストーラーで”デスクトップ”を選択してインストールしたもの)では、すでに導入済みだった。

■「IcedTea-Web」というWEBブラウザプラグインについて(†4

「OpenJDK」を組み立てたIcedTeaというプロジェクトは、「IcedTea-Web」というウェブブラウザプラグインを提供している。
「IcedTea-Web」も、YUMリポジトリから導入可能である。(方法は、以下手順の3番目にある)
導入後は、Firefoxで、JAVAアプレットを動作させられるようになった。

このWEBブラウザプラグインは、64bitOSで動作する64bit版のFirefoxでも、
JAVAアプレットを動作させられる点が特徴であるようだ。



1、OSやブラウザ環境の確認

[root@desktop-01 ~]# uname -a
Linux desktop-01.localdomain 2.6.32-358.23.2.el6.x86_64 #1 SMP Wed Oct 16 18:37:12 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

[root@desktop-01 ~]# yum info firefox
Installed Packages
Name        : firefox
Arch        : x86_64
Version     : 17.0.10
Release     : 1.el6.centos
Size        : 29 M
Repo        : installed
From repo   : updates
Summary     : Mozilla Firefox Web browser
URL         : http://www.mozilla.org/projects/firefox/
License     : MPLv1.1 or GPLv2+ or LGPLv2+
Description : Mozilla Firefox is an open-source web browser, designed for
            : standards compliance, performance and portability.



2、JAVA環境の確認
もし、導入されていなければ、YUMを用いてインストールを行う。(†1

[root@desktop-01 ~]# yum info *openjdk
Installed Packages
Name        : java-1.6.0-openjdk
Arch        : x86_64
Epoch       : 1
Version     : 1.6.0.0
Release     : 1.65.1.11.14.el6_4
Size        : 81 M
Repo        : installed
From repo   : updates
Summary     : OpenJDK Runtime Environment
URL         : http://icedtea.classpath.org/
License     : ASL 1.1, ASL 2.0, GPL+, GPLv2, GPLv2 with exceptions, LGPL+,
            : LGPLv2, MPLv1.0, MPLv1.1, Public Domain, W3C
Description : The OpenJDK runtime environment.

Name        : java-1.7.0-openjdk
Arch        : x86_64
Epoch       : 1
Version     : 1.7.0.45
Release     : 2.4.3.2.el6_4
Size        : 90 M
Repo        : installed
From repo   : updates
Summary     : OpenJDK Runtime Environment
URL         : http://openjdk.java.net/
License     : ASL 1.1 and ASL 2.0 and GPL+ and GPLv2 and GPLv2 with exceptions
            : and LGPL+ and LGPLv2 and MPLv1.0 and MPLv1.1 and Public Domain and
            : W3C
Description : The OpenJDK runtime environment.



3、IcedTea-Web プラグインをインストールした

とりあえず、情報を表示
[root@desktop-01 ~]# yum info icedtea-web
Name        : icedtea-web
Arch        : x86_64
Version     : 1.2.3
Release     : 4.el6_4
Size        : 673 k
Repo        : updates
Summary     : Additional Java components for OpenJDK
URL         : http://icedtea.classpath.org/wiki/IcedTea-Web
License     : LGPLv2+ and GPLv2 with exceptions
Description : The IcedTea-Web project provides a Java web browser plugin, an
            : implementation of Java Web Start (originally based on the Netx
            : project) and a settings tool to manage deployment settings for the
            : aforementioned plugin and Web Start implementations.

インストールを行った
[root@desktop-01 ~]# yum install icedtea-web
Dependencies Resolved

================================================================================
 Package             Arch           Version               Repository       Size
================================================================================
Installing:
 icedtea-web         x86_64         1.2.3-4.el6_4         updates         673 k

Transaction Summary
================================================================================
Install       1 Package(s)

Total download size: 673 k
Installed size: 852 k
Is this ok [y/N]: y
Downloading Packages:
icedtea-web-1.2.3-4.el6_4.x86_64.rpm                     | 673 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : icedtea-web-1.2.3-4.el6_4.x86_64                             1/1
  Verifying  : icedtea-web-1.2.3-4.el6_4.x86_64                             1/1

Installed:
  icedtea-web.x86_64 0:1.2.3-4.el6_4

Complete!


4、ブラウザFirefoxを起動し、プラグインが組み込まれたか確認した

○確認方法

ブラウザの上部にある項目からメニューをたどっていった。

「ツール(T)」→ 「アドオン(A)」 からウインドウを開き、
そして、左メニューにある「プラグイン」タブを開く。

その一覧に、”IcedTea-Web Plugin(・・・)”という項目があり、
なおかつ、「無効化」用のボタンが表示されていればok.


○JAVAアプレットの動作

JAVAアプレットの動作が要求されるWEBページを開いて、
動作の要求がされると、ウインドウが開いた。
その「RUN」ボタンを押下することでJAVAアプレットは実行された。



<参考>
(1)how to install java in fedora 17
/ 1. OpenJDK
< https://ask.fedoraproject.org/question/8943/how-to-install-java-in-fedora-17/ > 2013年11月27日

(2)HowTo Install Java on CentOS 4 and CentOS 5
/ 3.1.1. Using icedtea (CentOS 6 only)
< http://wiki.centos.org/HowTos/JavaOnCentOS#head-9b0d5fb0f0b9959c9cf64d4692961d93bcd10805 > 2013年11月27日

(3)Java/FAQ
/ What about running Java applets in the browser?
< https://fedoraproject.org/wiki/Java/FAQ > 2013年11月27日

(4)IcedTea
/ IcedTea-Web
< http://en.wikipedia.org/wiki/IcedTea > 2013年11月27日

投げ銭

★当サイトへの投げ銭(PayPal)★

Ad

Ad