Friday, May 20, 2011

ชาเย็น กับจิ้งจอกไฟ IcedTea & firefox

จากเรื่องการลง แฟลชสำหรับ ไฟฟ้อกซ์ บน FreeBSD นั้น ได้ทิ้งหรือข้ามประเด็นวาจาสำหรับจิ้งจอกไฟไป เพราะมันจะเยิ่นเย้อไปเกินเหตุ แฟนๆจะเบื่อเอาเสียก่อน ครั้นจะเขียนต่อไป ก็ให้ห่วงด้านนี้ เลยขอยักเรื่องนี้มาลงที่ blog ประจำของเราดีกว่าน่ะครับ

มะไฟ ยังคงเหนียวแน่นอยู่กับ จิ้งจอกไฟ ๓ อยู่น่ะ ยังไม่หันไปใช้ จิ้งจอกไฟ ๔ เต็มตัวหรอก

จากแฟ้ม /usr/ports/UPDATING ในส่วนที่เกี่ยวข้องกับ www/firefox นั้น บอกไว้ชัดเจนว่า

20100207:
  AFFECTS: users of www/firefox
  AUTHORS: beat@FreeBSD.org, mandree@FreeBSD.org (Java plugin)

  The www/firefox port has been updated to 3.6.  From now on www/firefox
  will contain the most recent version of Firefox.  Older but still
  supported releases will be available in www/firefox3 and www/firefox35.

  In order to update to Firefox 3.6 please delete your older installed
  version of Firefox first and install www/firefox afterwards.  Please
  make sure all your addons are compatible with Firefox 3.6 and backup
  your ~/.mozilla directory prior to the first launch of Firefox 3.6.

  Note that in order to use Java with Firefox 3.6, you need to install
  java/openjdk6, build it with the "WEB" option enabled and use the Iced
  Tea plugin.  To achieve the latter, each user needs to create a
  symlink to the Icedtea plugin as described in the Browsers/Firefox and
  Java[tm] Plugin section in the handbook:

        ln -s /usr/local/openjdk6/jre/lib/IcedTeaPlugin.so \
        $HOME/.mozilla/plugins

ซึ่งทำให้เราทราบแนวทางแน่ชัดว่า หากต้องการให้จิ้งจอกไฟใช้ จาวาได้ ก็ต้องลง openjdk ก่อนโดยเลือก "WEB" ใน option นั้นเพื่อใช้ Iced Tea plugin

ขออภัย ที่ห่างหายไปนาน เรามาต่อกันในเรื่องนี้

เบื้องต้น ขอให้เราลง openjdk ก่อน และเราต้องเลือก option WEB ตามที่แนะนำไว้ ดังนี้
# cd /usr/java/openjdk6
# make config                        

                                 Options for openjdk6 b22_5

          [ ] DEBUG      Enable legacy debugging support
          [ ] FASTDEBUG  Include fastdebug build
          [ ] ICEDTEA    Apply additional patches from IcedTea
          [ ] IPV6       Enable IPv6 support
          [ ] POLICY     Install the Unlimited Strength Policy Files
          [ ] SOUND      Enable sound support
          [ ] TEST       Add support for running regression test
          [X] WEB        Enable the browser plugin and Java Web Start


                             [  OK  ]       Cancel
จากนั้น ก็สั่ง
# make install package clean
และที่สุดอย่าลืมให้ผู้ใช้แต่ละท่านสร้าง link ตามที่แนะไว้ในตอนท้ายของเรื่องข้างบนนั้น  ลำดับถัดมาให้ไปลง firefox36 ตามที่ตั้งใจไว้ ดังนี้
# pkg_deinstall -f firefox
# cd /usr/ports/www/firefox36
# make config
และกำหนด option สำหรับ จิ้งจอกไฟ เพียงแค่ D-Bus เท่านั้น
# make package clean
เพียงเท่านี้ ท่านก็มีจิ้งจอกไฟ ที่สามารถเรียกใช้งาน java ได้มาใช้งานได้ ก็แลหากพี่ๆ เพื่อนๆต้องการดู flash ต่างๆ ก็ขอให้ดูรายละเอียดได้ใน Free & Open source Software - facebook ที่ได้บอกไว้แล้วเอาน่ะครับ

และที่อยากขอเน้นไว้ ก่อนเรียกใช้งานก็คือ ขอให้ backup สาระบบแฟ้ม ~/.mozilla ของแต่ละท่านไว้ อย่าลืมเป็นอันขาด นอกเหนือไปจากนี้ สาระบบแฟ้ม ~/.mozilla/plugins/ ต้องมี หรือ ต้องสร้างขึ้นมาด้วย

และที่สุด ขอให้สนุกกับ จิ้งจอกไฟ น่ะทุกท่าน

No comments:


View My Stats