Posted by mezz on 05-21-2003 09:49 PM:
linux-opera HOW-TO
First all, before you follow those how-to. It's a must to update your ports tree by CVSup and use the 'portupgrade -ra' to update the all apps that you have installed. Because, there have some bugs in the linux_base that made Flash6 and other Linux stuff don't work. Be sure to have your linux_base 7.1-4 version or above.
Current, I am a maintiner for the linux-opera7 (will be for linux-opera too), so if you have any of problem with it; plugins too. Please let me know by either PM, email or create a new thread in the general or app forums and I will see what I can do with it.
The each replies will have the different how-to of fonts, plugins or whatever.
Plugins work:
Flash5
Flash6
Acrobat Reader
linux-blackdown-jdk13
linux-blackdown-jdk14
linux-sun-jdk13
linux-sun-jdk14
Plugins not work:
linux-ibm-jdk13
linux-ibm-jdk14
RealPlayer8
If one of you can get those work, please contract me and show me how to do..
Anti-Aliased (AA) Fonts
1) The linux-opera7 is still depending on the Xft1, so you will need to add the XftConfig in the /usr/X11R6/lib/X11/ .. Here's an attach to download it, which it doesn't exist in XFree86 4.3.x by default. Also, it will help to get linux-opera7 the better stability and much lesser crash.
# cp /path/to/xftconfig.txt /usr/X11R6/lib/X11/XftConfig
2) Install the nice fonts made by Microsoft.
# cd /usr/ports/x11-fonts/webfonts ; make install clean
After that, you need to add some lines in the /etc/X11/XF86Config following:
code:
Section "Files" ..... ..... FontPath "/usr/X11R6/lib/X11/fonts/webfonts/" EndSection Section "Module" ..... ..... Load "type1" Load "freetype" EndSection
Flash5 Plug-in
NOTE: You should choice one version which you want to use Flash5 or Flash6. If you want the Flash6 Plug-in, skip this and go over to the next reply (bottom) for the Flash6 HOW-TO.
1) You will need to tweak the Makefile, which it was designed for Netscape.
# cd /usr/ports/www/linux-flashplugin
# ee Makefile
Change from...
code:
PLUGINSDIR= lib/netscape-linux/plugins
code:
USE_X_PREFIX= yes PLUGINSDIR= share/opera/plugins
Flash6 Plug-in
NOTE: You should choice one version which you want to use Flash5 or Flash6. If you want the Flash5 Plug-in, skip this and go over to the above reply for the Flash5 HOW-TO.
1) You will need to tweak the Makefile, which it was designed for Mozilla.
# cd /usr/ports/www/linux-flashplugin6
# ee Makefile
Change from...
code:
PLUGINSDIR= lib/linux-mozilla/plugins
code:
USE_X_PREFIX= yes PLUGINSDIR= share/opera/plugins
Acrobat Reader Plug-in
1)Install the Acrobat5
# cd /usr/ports/print/acroread5 ; make install clean
2) Close Opera and run it, then go to File (menu) -> Preferences -> File types (tree)
Untick the 'Hide file types opened with Opera' and you should see the more lists.
4) Double click on the 'application/pdf pdf' and click on 'Use plug-in'.. Also, leave it as 'No Name' and it still works.
5) Test: http://www.adobe.com/products/acrobat/adobepdf.html
6) If it doesn't work, please run 'opera -debugplugin', visit test link and show me the output.
Java Plug-in
I have tested four different Linux Java plugins and they all work fine. All you have to do is choice one which you want to install and use it. Restart the Opera and it will pickup the Java plugin by automatic. If it doesn't pickup by automatic, please let me know.
/usr/ports/java/linux-blackdown-jdk13
/usr/ports/java/linux-blackdown-jdk14
/usr/ports/java/linux-sun-jdk13
/usr/ports/java/linux-sun-jdk14
Which one do I recommend? Well, they all work great, but the 1.4.1 is faster than 1.3.1. Either sun or blackdown make no difference for the Opera.
I don't recommend linux-ibm-jdk, because it is not stable and will always crash the Opera.
Test: http://java.sun.com/getjava/showcase.html (choice one of game to play)
Don't listen to the Opera's about page, it always said no Java installed, which it's really already installed and work..
If it doesn't work, please run 'opera -debugjava', visit test link and show me the output.
Hi Mezz,
thanks for your work. I tried to do as u said but it didn't work. First, after I install XftConfig, my opera crash as "core dump". Does this mean that I am missing some fonts or..?
Second, I installed flashplugin6, it is under /usr/local/share/opera/plugins, but when I open File-> Preference-> Plugins, there is no flashplugin in the detected plugin, but the path is in the plugin-path beneath it. how can i let my opera find it? thanks!
quote:
Originally posted by tfcheng
First, after I install XftConfig, my opera crash as "core dump". Does this mean that I am missing some fonts or..?
quote:
Originally posted by tfcheng
Second, I installed flashplugin6, it is under /usr/local/share/opera/plugins, but when I open File-> Preference-> Plugins, there is no flashplugin in the detected plugin, but the path is in the plugin-path beneath it. how can i let my opera find it? thanks!
mezz,
Well, I followed each and every step for each and every post, and guess what....
Everything worked great! I'm very happy with my opera browser now. I was worried I'd have to switch to Mozilla, which I don't really like. Now Java is working, Flash looks nice, and I've got all the AA fonts set up. Looks really nice!
I just wanted to say thanks for taking the time to write these, I really appreciate the hard work.
Thanks!
Thanks for the great write up! Everything works perfect, and I also got to learn how portupgrade works...RTFM right!
quote:
Originally posted by LawJp
I also got to learn how portupgrade works...RTFM right!
hi, try to run flash plugin in opera, this is what i got by running opera -debugplugin:
---
plugin probing: /usr/X11R6/share/opera/plugins/libnpp.so
plugin: /usr/X11R6/share/opera/plugins/libflashplayer.so, libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory
plugin: /usr/local/share/opera/plugins/libnpp.so, /usr/local/share/opera/plugins/libnpp.so: ELF file OS ABI invalid
plugin probing: /usr/local/Acrobat4/Browsers/intellinux/nppdf.so
plugin probing: /usr/local/Acrobat5/Browsers/intellinux/nppdf.so
plugin probing: /usr/local/linux-sun-jdk1.3.1/jre/plugin/i386/ns4/javaplugin.so
plugin probing: /usr/local/lib/netscape-linux/plugins/rpnp.so
--
any idea? thanks!
quote:
Originally posted by tfcheng
any idea? thanks!
sorry, my bad, i install linux_base 7, and now is working, My bad!
and do u know what libnpp is?
(i never know which linux_base to use :/)
quote:
Originally posted by tfcheng
do u know what libnpp is?
Looking for our FreeBSD Forums? We have moved them off our main page,just follow the link to our FreeBSD Forums page.
Copyright © 2009, WEBSERVER CONSUMER GUIDE
Please note:
(1) FreeBSD is a registered trademark of The FreeBSD Foundation.
(2) WEBSERVER CONSUMER GUIDE is in no way affiliated with The FreeBSD Foundation