Opera
From Gentoo Linux Wiki
Opera is a web browser and Internet suite. It handles common Internet-related tasks such as displaying web sites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent, and reading web feeds. It is not free software. Features of Opera include high performance, tabbed browsing, page zooming, mouse gestures, and an integrated download manager. Its security features include built-in phishing protection, strong encryption when browsing secure web sites, and the ability to easily delete private data such as cookies and browsing history by simply clicking a button.
Contents |
[edit] Installation
To install Opera, run: emerge -av opera
[edit] Auto-detect proxy settings
Certain computer networks (workplace, university, etc.) require that "Automatically Detect Setting" as in Internet Explorer or "Auto-Detect Proxy Setting for this network" as in Firefox be used in order to connect to the Internet. Opera doesn't provide such an option (not 9.23, at least). Although Opera allows one to use an auto-configuration script, it is not able to automagically determine the address of the proxy script. One work around this problem is to determine the proxy settings that Firefox uses and set these settings in Opera. To do this, you have to:
- make sure you have a working Internet connection with Firefox,
- browse for a web page (just to make sure),
- determine the proxy by accessing this web page (listed next to the HTTP_VIA variable),
- fill the URL in Opera's Preferences > Advanced > Network > Proxy servers, for the protocols you need (probably HTTP, HTTPS and FTP).
Now Opera should be back on-line. See also Http proxy and the original forum thread.
[edit] Plugins
[edit] Flash
If you run ~arch, you may need to mask the newer beta Flash versions.
| File: /etc/portage/package.mask |
|
>net-www/netscape-flash-9.0.48.0-r99 |
| Code: Install Flash stuff |
|
emerge -va netscape-flash nspluginwrapper |
[edit] Installing Mplayer Plug-In
The following method has been tested with mplayerplug-in-3.25-r1 and Opera-9.00. If you have installed mplayerplug-in and Opera from portage, you'll find that the plug-ins work with mozilla-firefox but not Opera. To make it work, you need to compile it manually.
MPlayer is a very powerful video and audio player for GNU/Linux that can play almost every audio/video file in almost any known format.
A big problem of many *nix users that use multimedia off the internet is the fact that many browsers do not support even the simplest type of media playback, save for Macromedia Flash.
In this tutorial, I will guide you through installing MPlayerplug-In into Opera, because the normal installation, and the installation for the Gecko-based browsers in the other how-to will not work for this browser.
I used mplayerplug-in version 3.21, because newer versions didn't work for me. I downloaded this file from Sourceforge to /tmp.
After the download, do the following:
# cd /tmp # tar -xzpf mplayerplug-in-3.21.tar.gz # cd mplayerplug-in # ./configure --help # ./configure --enable-x # make
You now have compiled versions of the mplayer-plugin. Now we need to add the right files to Opera's plugin-directory.
# cd /opt/opera/lib/opera/plugins/ # cp /tmp/mplayerplug-in/mplayerplug-in*.so .
[edit] Re-installing MplayerPlug-In
First, unpack the source somewhere:
# tar xzvf /usr/portage/distfiles/mplayerplug-in-3.25.tar.gz -C /tmp # cd /tmp/mplayerplug-in
Then you need to edit a file:
# nano -w plugingate/np_entry.cpp
Look for lines 108 and 109 - the ones like the following:
if(aNPNFuncs->size < sizeof(NPNetscapeFuncs))
return NPERR_INVALID_FUNCTABLE_ERROR;
Comment them out by inserting "//" in front of each line:
//if(aNPNFuncs->size < sizeof(NPNetscapeFuncs)) // return NPERR_INVALID_FUNCTABLE_ERROR;
Compile:
# ./configure --enable-x && make
Copy over the plug-ins:
# cp -vi *.so *.xpt /opt/opera/lib/opera/plugins
and link the other plug-ins in /opt/netscape/plugins there:
# cd /opt/opera/lib/opera/plugins # ls /opt/netscape/plugins # ln -s /opt/netscape/plugins/flashplayer.xpt . # ln -s /opt/netscape/plugins/libflashplayer.so . # ln -s /opt/netscape/plugins/nphelix.so .
[edit] Configuration
Then you need to prevent Opera from searching plug-ins in /opt/netscape/plugins. To do this, as a user:
$ nano -w ~/.opera/pluginpath.ini
Change the value for "/opt/netscape/plugins=" to 2 or 0.
To test it, start Opera, go to http://www.apple.com/trailers/. If your mplayer has been compiled with right USE flags, you should be able to watch these trailers in Opera now.
Now that we have installed the software, we can test if we are able to playback video-files at the following websites:
fredrik.hubbe.net/plugger/test.html
Click on the different video-files. The plugin should start buffering, and a few seconds later, you should be able to relax and watch some videos.
[edit] Searchbar
[edit] Drop Down Search Menu
I found a good explanation You can replace search lines in the Opera browser
$ nano ~/.opera/search.ini
original
| File: ~/.opera/search.ini |
|
... [Search Engine 14] Name=Translation URL=http://r.lycos.com/r/opipreftrans/http://translation.lycos.com/lycos?urltext=%s&systran_lp=en_fr&partner=demo-Lycos2-en Query= Key= Is post=0 Has endseparator=0 Encoding=iso-8859-1 Search Type=100 Verbtext=17063 Position=-1 Nameid=0 ... |
this one will search on gentoo-portage.com
| File: ~/.opera/search.ini |
|
... [Search Engine 14] Name=gentoo-portage URL=http://www.gentoo-portage.com/search-result.php?search=%s Query= Key= Is post=0 Has endseparator=0 Encoding=iso-8859-1 Search Type=100 Verbtext=17063 Position=-1 Nameid=0 ... |
as it was suggested on the forum you can use
- Gentoo Forum Search
http://forums.gentoo.org/search.php?search_keywords=%s
- Portage Search
http://www.gentoo-portage.com/search-result.php?search=%s
- Gentoo Bug Search
http://bugs.gentoo.org/show_bug.cgi?id=%s
- Gentoo-Wiki
[edit] Custom Drop Down Search
Search Preferences Tab in Opera
- My ~/.opera/search.ini file:
| File: ~/.opera/search.ini |
|
... [Search Engine 1] Name=Find &in page URL= Query= Key=i Is post=0 Has endseparator=-1 Encoding= Search Type=0 Verbtext=17063 Position=-1 Nameid=0 [Search Engine 2] Name=&Google URL=http://www.google.com/search?q=%s&sourceid=opera&num=%i&ie=utf-8&oe=utf-8 Query= Key=g Is post=0 Has endseparator=0 Encoding=utf-8 Search Type=0 Verbtext=17063 Position=-1 Nameid=0 [Search Engine 3] Name=Google &Linux URL=http://www.google.com/linux?q=%s&sourceid=opera&num=%i&ie=utf-8&oe=utf-8 Query= Key=l Is post=0 Has endseparator=0 Encoding=utf-8 Search Type=0 Verbtext=17063 Position=-1 Nameid=0 [Search Engine 4] Name=Google G&roups URL=http://groups.google.com/groups?q=%s&sourceid=opera&num=%i&ie=utf-8&oe=utf-8 Query= Key=r Is post=0 Has endseparator=0 Encoding=utf-8 Search Type=0 Verbtext=17063 Position=-1 Nameid=0 [Search Engine 5] Name=Google &News URL=http://news.google.com/news?q=%s&sourceid=opera&num=%i&ie=utf-8&oe=utf-8 Query= Key=n Is post=0 Encoding=utf-8 Search Type=0 Verbtext=17063 Position=-1 Nameid=0 Has endseparator=-1 [Search Engine 6] Name=&Forums.Gentoo URL=http://forums.gentoo.org/search.php?search_keywords=%s Query= Key=f Is post=0 Encoding=urf-8 Search Type=0 Verbtext=17063 Position=-1 Nameid=0 Has endseparator=0 [Search Engine 7] Name=B&ugs.Gentoo URL=http://bugs.gentoo.org/show_bug.cgi?id=%s URL=http://bugs.gentoo.org/buglist.cgi?query_format=specific&order=relevance+desc&bug_status=__all__&product=&content=%s Query= Key=u Is post=0 Has endseparator=0 Encoding=utf-8 Search Type=0 Verbtext=17063 Position=-1 Nameid=0 [Search Engine 8] Name=Gentoo-&Portage URL=http://www.gentoo-portage.com/search-result.php?search=%s Query= Key=p Is post=0 Has endseparator=0 Encoding=utf-8 Search Type=0 Verbtext=17063 Position=-1 Nameid=0 [Search Engine 9] Name=Gentoo-&Wiki URL=http://gentoo-wiki.com/index.php?search=%s&go=Go Query= Key=w Is post=0 Has endseparator=0 Encoding=utf-8 Search Type=10 Verbtext=17063 Position=-1 Nameid=0 [Search Engine 10] Name=Fr&eshmeat URL=http://freshmeat.net/search/?q=%s§ion=projects Query= Key=e Is post=0 Has endseparator=-1 Encoding=iso-8859-1 Search Type=4 Verbtext=17063 Position=-1 Nameid=0 [Search Engine 11] Name=&Dict.org URL=http://www.dict.org/bin/Dict?Form=Dict1&Query=%s&Strategy=*&Database=* Query= Key=d Is post=0 Has endseparator=0 Encoding=utf-8 Search Type=6 Verbtext=17063 Position=-1 Nameid=0 ... |
Note: If you missing an entrance in the Drop Down Menu, you porbably missing Key= value (in linux it's case sensitve)
[edit] Side Search Panel
Side Search Panel and Drop Down Search Menu side by side
To add buttons on your Side Panel in the Opera
you've got to edit ~/.opera/toolbar/standard_toolbar (1).ini
| File: ~/.opera/toolbar/standard_toolbar (1).ini |
|
... [Search Panel Toolbar.content] Search0 ;Button1, "Find in page search"=Search, 1 ;Spacer2 Button3, "Google search"=Search, 1 Button4, "Linux Google search"=Search, 2 Button5, "Groups Google search"=Search, 3 Button6, "News Google search"=Search, 4 Spacer7 Button8, "Forums.Gentoo search"=Search, 5 Button9, "Bugs.Gentoo search"=Search, 6 Button10, "Gentoo-Portage search"=Search, 7 Button11, "Gentoo-Wiki search"=Search, 8 Button12, "Freshmeat search"=Search, 9 ... |
Note:I commented out Button 1 so by default i have "Find in Page", see the screenshot
Epiphany users can add Smart Bookmarks from the URLs in the Opera section.

