特殊:Badtitle/NS100:OperaBrowser:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
(未显示同一用户的9个中间版本) | |||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/OperaBrowser}} | {{From|https://help.ubuntu.com/community/OperaBrowser}} | ||
{{Languages|UbuntuHelp:OperaBrowser}} | {{Languages|UbuntuHelp:OperaBrowser}} | ||
Instructions to install & configure Opera 10 in Ubuntu. | |||
Instructions to install & configure Opera | |||
== Introduction == | == Introduction == | ||
There are two basic types of installations, static and shared: | There are two basic types of installations, static and shared: | ||
第16行: | 第8行: | ||
Which is better? Probably the Shared version. Try the other one if you run into installation problems. | Which is better? Probably the Shared version. Try the other one if you run into installation problems. | ||
== Installation == | == Installation == | ||
=== Install via repository (recommended) === | |||
See [https://help.ubuntu.com/8.04/add-applications/C/extra-repositories-adding.html this official documentation] for info about adding repositories (it is easy). Install opera for shared version or opera-static for static version. | |||
There is a generic Opera repository available at http://deb.opera.com (with full description of how to add it). Canonical repository for Opera no longer works. | |||
Opera | |||
<pre><nowiki> | <pre><nowiki> | ||
deb http://deb.opera.com/opera/ stable non-free | |||
</nowiki></pre> | </nowiki></pre> | ||
The line above will make sure you get all final public releases. Add the following line if you want to get the newer alpha and beta releases instead. | |||
<pre><nowiki> | <pre><nowiki> | ||
deb http:// | deb http://deb.opera.com/opera-beta/ stable non-free | ||
</nowiki></pre> | </nowiki></pre> | ||
It is advisable that you add the Opera GPG key. | |||
<pre><nowiki> | <pre><nowiki> | ||
wget -O - http://deb.opera.com/archive.key | sudo apt-key add - | |||
</nowiki></pre> | </nowiki></pre> | ||
(If you get "The following packages cannot be authenticated" warnings, you'll also need this:) | |||
If | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get install debian-archive-keyring | |||
</nowiki></pre> | </nowiki></pre> | ||
=== Install via the shell === | |||
=== | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get update | |||
sudo apt-get install opera | |||
</nowiki></pre> | </nowiki></pre> | ||
=== Install after downloading deb package manually === | |||
Go to [http://www.opera.com/download/ Opera Download Site], choose your package, and pick a download mirror. This site does not offer a choice between Shared Qt and Static Qt, so if you have a preference, use [http://ftp.opera.com/pub/opera/linux/ this directory] (be sure to choose a .deb package). Save the file to somewhere you can find it, like the Desktop or your home directory. Then locate the .deb package and double click on it to start the Gdebi .deb installer. | |||
If you get messages about unmet dependencies type: | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get -f install | |||
</nowiki></pre> | </nowiki></pre> | ||
apt will then install the missing packages. | |||
=== 64-bit === | == 64-bit == | ||
=== Official package (recommended) === | |||
A 64 bit Linux version is available, you should get it automatically either from the repositories or from [http://www.opera.com/download Opera] | |||
=== 64-bit Flash === | |||
You can get the 64-bit Flash plugin from http://labs.adobe.com/downloads/flashplayer10.html. It's a tarball that just contains the .so file. Copy the .so to `/usr/lib/opera/plugins/`, and make sure that that directory is in Opera's plugin path (it should be by default). Flash 10.0.32.18 is known to work with Opera 10.00. You can test it at http://www.adobe.com/products/flashplayer/. | |||
=== 32 bit plugins === | |||
To get 32bit plugins working in the 64bit Opera (There are other places to get better guides, but here is a quick run through.) | |||
You will want some compatibility-layers: | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo | sudo aptitude install ia32-libs | ||
</nowiki></pre> | </nowiki></pre> | ||
* To get Flash 9, get the "flashplugin-nonfree" package from packages.ubuntu.com, for i386. | |||
* Flash 10 is already available as 64-bit, but it does not work for me with Opera (5.09.2009). | |||
* To get Adobe Reader, see the [[UbuntuHelp:AcrobatHowTo|AcrobatHowTo]] article for detailed instructions specific to your Ubuntu release. | |||
Install each package with the following <code><nowiki>dpkg</nowiki></code> command (adapt the package names). | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo | sudo dpkg -i --force-architecture package.deb | ||
</nowiki></pre> | </nowiki></pre> | ||
The spellchecker will not work with the [http://www.opera.com/support/tutorials/opera/spellcheck/ standard instructions]. It appears that the 64-bit dictionary works well with the 32-bit library, thus you only need to manually install the 32-bit library. You must install aspell and a dictionary (such as aspell-en) as the instructions say. A 64-bit version of libaspell will be installed as a dependency. | The spellchecker will not work with the [http://www.opera.com/support/tutorials/opera/spellcheck/ standard instructions]. It appears that the 64-bit dictionary works well with the 32-bit library, thus you only need to manually install the 32-bit library. You must install aspell and a dictionary (such as aspell-en) as the instructions say. A 64-bit version of libaspell will be installed as a dependency. | ||
<pre><nowiki> | <pre><nowiki> | ||
第104行: | 第86行: | ||
</nowiki></pre> | </nowiki></pre> | ||
Then press Ctrl+d. | Then press Ctrl+d. | ||
You will probably want to change the font types in Opera to fit those in Gnome. To do so, hit Alt-P in Opera, click the "Advanced" tab and then select the "Fonts" item on the left-hand side. For each GUI element, you can select a new type face. | |||
Additionally, fonts in Opera look different from in regular Gnome applications. If you use Gnome, fonts in Opera may be fuzzy. This is because Qt, Opera's backend technology, doesn't recognize yet Gnome's font settings. To solve this problem, you can create a file called .fonts.conf in your home directory: | |||
<pre><nowiki> | |||
gedit .fonts.conf & | |||
</nowiki></pre> | |||
Paste this snippet: | |||
<pre><nowiki> | |||
<?xml version="1.0"?> | |||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |||
<fontconfig> | |||
<match target="font"> | |||
<edit name="rgba" mode="assign"> | |||
<const>rgb</const> | |||
</edit> | |||
</match> | |||
<match target="font"> | |||
<edit name="rgba" mode="assign"> | |||
<const>rgb</const> | |||
</edit> | |||
<edit name="hinting" mode="assign"> | |||
<bool>true</bool> | |||
</edit> | |||
<edit name="hintstyle" mode="assign"> | |||
<const>hintslight</const> | |||
</edit> | |||
</match> | |||
</fontconfig> | |||
</nowiki></pre> | |||
Save it. Restart Opera, your fonts should look better. | |||
The separation bar between the tool bar and the location bar is rather thick in Gnome. To reduce clutter, you can hide the tool bar hitting Alt-F11. If needed, you can toggle the tool bar hitting Alt-F11 repeatedly. | |||
== Skins for Opera == | == Skins for Opera == | ||
Press SHIFT+F12 and browse the available skins, pick any you like. Changing, adding, and removing them is very easy, and new ones are created very often. Below are some skins that might suit you. | Press SHIFT+F12 and browse the available skins, pick any you like. Changing, adding, and removing them is very easy, and new ones are created very often. Below are some skins that might suit you. | ||
The main page for Opera skins is http://my.opera.com/community/customize/skins/. | The main page for Opera skins is http://my.opera.com/community/customize/skins/ | ||
If you use Ubuntu's DarkRoom skin (a dark brown skin), you can closely adapt Opera's native skin to match your desktop skin color. To do so, hit Shift-F12 in Opera, keep the "Opera Standard" skin, and under "Color scheme", select "Gold". | |||
=== GNOME Skins for Opera === | === GNOME Skins for Opera === | ||
You may preview the skins linked below: | You may preview the skins linked below: | ||
第114行: | 第127行: | ||
* [http://my.opera.com/community/customize/skins/info/?id=4236 Ubuntu Dapper] | * [http://my.opera.com/community/customize/skins/info/?id=4236 Ubuntu Dapper] | ||
In Opera, select "Download" to install the skin. | In Opera, select "Download" to install the skin. | ||
=== KDE Skin for Opera === | |||
You may preview the skins linked below: | You may preview the skins linked below: | ||
* [http://my.opera.com/community/customize/skins/info/?id=3116 KDE-HiCrysal] | * [http://my.opera.com/community/customize/skins/info/?id=3116 KDE-HiCrysal] | ||
第133行: | 第146行: | ||
</nowiki></pre> | </nowiki></pre> | ||
== Troubleshooting == | == Troubleshooting == | ||
=== | === Very slow to start loading pages === | ||
On some systems, Opera can be very slow to start loading pages. It may even time out. Fortunately, [http://my.opera.com/community/forums/topic.dml?id=264102 disabling IPv6 or DHCP] can solve the problem. | |||
[http:// | |||
=== Install Java === | === Install Java === | ||
If you start Opera from the console you may see the following error message if java doesn't work correctly: | If you start Opera from the console you may see the following error message if java doesn't work correctly: | ||
第149行: | 第159行: | ||
/usr/lib/jvm/java-1.5.0-sun-1.5.0.06/jre/lib/i386/ | /usr/lib/jvm/java-1.5.0-sun-1.5.0.06/jre/lib/i386/ | ||
</nowiki></pre> | </nowiki></pre> | ||
Your actual java runtime version could be different from this one. Changes will not take effect until the browser is restarted. Use [http://www.java.com/en/download/help/testvm.xml] to test your Java Virtual Machine (JVM). You need to have Java installed for this. See [[ | Your actual java runtime version could be different from this one. Changes will not take effect until the browser is restarted. Use [http://www.java.com/en/download/help/testvm.xml]] to test your Java Virtual Machine (JVM). You need to have Java installed for this. See [[Java Java] to find out how to do that. | ||
=== General Plugin Problems === | === General Plugin Problems === | ||
In order for Opera to see a plugin, the plugin must be in Opera's plugin path. You can add directories to the plugin path with Tools -> Preferences -> Advanced -> Content -> Plugin Options. Add the desired directories and click Find Plugins. You may have to restart Opera to enable the plugin. | In order for Opera to see a plugin, the plugin must be in Opera's plugin path. You can add directories to the plugin path with Tools -> Preferences -> Advanced -> Content -> Plugin Options. Add the desired directories and click Find Plugins. You may have to restart Opera to enable the plugin. | ||
第158行: | 第168行: | ||
|Acroread||nppdf.so | |Acroread||nppdf.so | ||
|- | |- | ||
| | |Gecko MediaPlayer||gecko-mediaplayer.so | ||
|} | |} | ||
[http://www.opera.com/linux/docs/plugins/install/ Opera's Linux Plugin Page.] | [http://www.opera.com/linux/docs/plugins/install/ Opera's Linux Plugin Page.] | ||
=== Flash problems === | === Flash problems === | ||
Just use the latest version of flash [ | Just use the latest version of flash [[UbuntuHelp:RestrictedFormats/Flash|RestrictedFormats/Flash]]. | ||
This should just work by now (May 2008). If not and problems persist even when using the most recent version of flash, and the plugin appears to be recognized (it shows up in the opera:plugins "webpage"), editing the opera startup script might help: | |||
<pre><nowiki> | |||
gksudo gedit /usr/bin/opera | |||
</nowiki></pre> | |||
Find the place where it says | |||
<pre><nowiki> | |||
# Workarounds for the "preloaded libXt" problem. | |||
</nowiki></pre> | |||
and add the lines: | |||
<pre><nowiki> | |||
# Flash workaround. | |||
LD_PRELOAD="libflashplayer.so:${LD_PRELOAD}" | |||
export LD_PRELOAD | |||
</nowiki></pre> | |||
just above that line. If you aren't using libflashplayer.so, insert the name of the plugin you are using instead. | |||
=== Acroread Plugin Problems === | === Acroread Plugin Problems === | ||
The acroread plugin did work by default in Opera 8.x. It works for recent versions so you probably do | The acroread plugin did work by default in Opera 8.x. It works for recent versions so you probably do not need the following: | ||
You must edit the Opera startup script for it to work. Use your favorite editor to open the opera startup script: | You must edit the Opera startup script for it to work. Use your favorite editor to open the opera startup script: | ||
<pre><nowiki> | <pre><nowiki> | ||
第187行: | 第210行: | ||
If your Opera browser started to segfault, or you are using the static version and having problems with java, do the following: | If your Opera browser started to segfault, or you are using the static version and having problems with java, do the following: | ||
1. Edit the ~/.opera/pluginpath.ini, and change the lines to this | 1. Edit the ~/.opera/pluginpath.ini, and change the lines to this | ||
<pre><nowiki> | <pre><nowiki> | ||
[Paths] | [Paths] | ||
第195行: | 第219行: | ||
2. Create a symlink from /usr/lib/mozilla/plugins/libflashplayer.so to /usr/lib/opera/plugins/libflashplayer.so | 2. Create a symlink from /usr/lib/mozilla/plugins/libflashplayer.so to /usr/lib/opera/plugins/libflashplayer.so | ||
3. Check your ~/.opera/javapath.txt, when using blackdown java, it should be /usr/lib/j2se/1.4/jre/lib/i386 | 3. Check your ~/.opera/javapath.txt, when using blackdown java, it should be /usr/lib/j2se/1.4/jre/lib/i386 | ||
Solution from rwf, based on [http://my.opera.com/community/forums/topic.dml?id=108820&t=1130281303&page=1 this forum thread]. | Solution from rwf, based on [http://my.opera.com/community/forums/topic.dml?id=108820&t=1130281303&page=1 this forum thread]. | ||
=== Video plugins === | === Video plugins === | ||
Install gecko-mediaplayer and most videos should just work. | |||
== Install Weekly Build == | == Install Weekly Build == | ||
These are | These are development unstable version, use on your own risk! | ||
* Download weekly build from [http://my.opera.com/desktopteam/] and follow instructions for installing snapshot release (see above). | * Download weekly build from [http://my.opera.com/desktopteam/] and follow instructions for installing snapshot release (see above). | ||
* To locate libxpcom.so on your system and softlink it to /usr/lib | * To locate libxpcom.so on your system and softlink it to /usr/lib | ||
第207行: | 第232行: | ||
=== Credits === | === Credits === | ||
Credits for the GNOME skin: [http://ubuntuforums.org/showthread.php?p=370428 mneptok] | Credits for the GNOME skin: [http://ubuntuforums.org/showthread.php?p=370428 mneptok] | ||
Based on [http://www.ubuntuforums.org/showthread.php?t=40467 this Ubuntu Forum thread]. | |||
---- | ---- | ||
[[category: | [[category:CategoryInstallation]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2010年5月19日 (三) 23:49的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/OperaBrowser }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/af | • {{#if: UbuntuHelp:OperaBrowser|Afrikaans| [[::OperaBrowser/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/ar | • {{#if: UbuntuHelp:OperaBrowser|العربية| [[::OperaBrowser/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/az | • {{#if: UbuntuHelp:OperaBrowser|azərbaycanca| [[::OperaBrowser/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/bcc | • {{#if: UbuntuHelp:OperaBrowser|جهلسری بلوچی| [[::OperaBrowser/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/bg | • {{#if: UbuntuHelp:OperaBrowser|български| [[::OperaBrowser/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/br | • {{#if: UbuntuHelp:OperaBrowser|brezhoneg| [[::OperaBrowser/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/ca | • {{#if: UbuntuHelp:OperaBrowser|català| [[::OperaBrowser/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/cs | • {{#if: UbuntuHelp:OperaBrowser|čeština| [[::OperaBrowser/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/de | • {{#if: UbuntuHelp:OperaBrowser|Deutsch| [[::OperaBrowser/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/el | • {{#if: UbuntuHelp:OperaBrowser|Ελληνικά| [[::OperaBrowser/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/es | • {{#if: UbuntuHelp:OperaBrowser|español| [[::OperaBrowser/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/fa | • {{#if: UbuntuHelp:OperaBrowser|فارسی| [[::OperaBrowser/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/fi | • {{#if: UbuntuHelp:OperaBrowser|suomi| [[::OperaBrowser/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/fr | • {{#if: UbuntuHelp:OperaBrowser|français| [[::OperaBrowser/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/gu | • {{#if: UbuntuHelp:OperaBrowser|ગુજરાતી| [[::OperaBrowser/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/he | • {{#if: UbuntuHelp:OperaBrowser|עברית| [[::OperaBrowser/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/hu | • {{#if: UbuntuHelp:OperaBrowser|magyar| [[::OperaBrowser/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/id | • {{#if: UbuntuHelp:OperaBrowser|Bahasa Indonesia| [[::OperaBrowser/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/it | • {{#if: UbuntuHelp:OperaBrowser|italiano| [[::OperaBrowser/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/ja | • {{#if: UbuntuHelp:OperaBrowser|日本語| [[::OperaBrowser/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/ko | • {{#if: UbuntuHelp:OperaBrowser|한국어| [[::OperaBrowser/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/ksh | • {{#if: UbuntuHelp:OperaBrowser|Ripoarisch| [[::OperaBrowser/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/mr | • {{#if: UbuntuHelp:OperaBrowser|मराठी| [[::OperaBrowser/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/ms | • {{#if: UbuntuHelp:OperaBrowser|Bahasa Melayu| [[::OperaBrowser/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/nl | • {{#if: UbuntuHelp:OperaBrowser|Nederlands| [[::OperaBrowser/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/no | • {{#if: UbuntuHelp:OperaBrowser|norsk| [[::OperaBrowser/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/oc | • {{#if: UbuntuHelp:OperaBrowser|occitan| [[::OperaBrowser/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/pl | • {{#if: UbuntuHelp:OperaBrowser|polski| [[::OperaBrowser/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/pt | • {{#if: UbuntuHelp:OperaBrowser|português| [[::OperaBrowser/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/ro | • {{#if: UbuntuHelp:OperaBrowser|română| [[::OperaBrowser/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/ru | • {{#if: UbuntuHelp:OperaBrowser|русский| [[::OperaBrowser/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/si | • {{#if: UbuntuHelp:OperaBrowser|සිංහල| [[::OperaBrowser/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/sq | • {{#if: UbuntuHelp:OperaBrowser|shqip| [[::OperaBrowser/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/sr | • {{#if: UbuntuHelp:OperaBrowser|српски / srpski| [[::OperaBrowser/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/sv | • {{#if: UbuntuHelp:OperaBrowser|svenska| [[::OperaBrowser/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/th | • {{#if: UbuntuHelp:OperaBrowser|ไทย| [[::OperaBrowser/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/tr | • {{#if: UbuntuHelp:OperaBrowser|Türkçe| [[::OperaBrowser/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/vi | • {{#if: UbuntuHelp:OperaBrowser|Tiếng Việt| [[::OperaBrowser/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/yue | • {{#if: UbuntuHelp:OperaBrowser|粵語| [[::OperaBrowser/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/zh | • {{#if: UbuntuHelp:OperaBrowser|中文| [[::OperaBrowser/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/zh-hans | • {{#if: UbuntuHelp:OperaBrowser|中文(简体)| [[::OperaBrowser/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OperaBrowser | UbuntuHelp:OperaBrowser | {{#if: | :}}OperaBrowser}}/zh-hant | • {{#if: UbuntuHelp:OperaBrowser|中文(繁體)| [[::OperaBrowser/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:OperaBrowser|:OperaBrowser|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :OperaBrowser/zh | | {{#ifexist: OperaBrowser/zh | | {{#ifeq: {{#titleparts:OperaBrowser|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:OperaBrowser|1|-1|}} | zh | | }}
Instructions to install & configure Opera 10 in Ubuntu.
Introduction
There are two basic types of installations, static and shared: Static version: Opera has the Qt library built in. It is a larger download, and it does not use anti aliased fonts on menus or the file chooser, and uses aliasing in the browser window and most other interface elements. Shared version: Opera uses the Qt installation on your system. It integrates with the system, using whatever anti aliasing setting you have for other Qt applications. Which is better? Probably the Shared version. Try the other one if you run into installation problems.
Installation
Install via repository (recommended)
See this official documentation for info about adding repositories (it is easy). Install opera for shared version or opera-static for static version. There is a generic Opera repository available at http://deb.opera.com (with full description of how to add it). Canonical repository for Opera no longer works.
deb http://deb.opera.com/opera/ stable non-free
The line above will make sure you get all final public releases. Add the following line if you want to get the newer alpha and beta releases instead.
deb http://deb.opera.com/opera-beta/ stable non-free
It is advisable that you add the Opera GPG key.
wget -O - http://deb.opera.com/archive.key | sudo apt-key add -
(If you get "The following packages cannot be authenticated" warnings, you'll also need this:)
sudo apt-get install debian-archive-keyring
Install via the shell
sudo apt-get update sudo apt-get install opera
Install after downloading deb package manually
Go to Opera Download Site, choose your package, and pick a download mirror. This site does not offer a choice between Shared Qt and Static Qt, so if you have a preference, use this directory (be sure to choose a .deb package). Save the file to somewhere you can find it, like the Desktop or your home directory. Then locate the .deb package and double click on it to start the Gdebi .deb installer. If you get messages about unmet dependencies type:
sudo apt-get -f install
apt will then install the missing packages.
64-bit
Official package (recommended)
A 64 bit Linux version is available, you should get it automatically either from the repositories or from Opera
64-bit Flash
You can get the 64-bit Flash plugin from http://labs.adobe.com/downloads/flashplayer10.html. It's a tarball that just contains the .so file. Copy the .so to `/usr/lib/opera/plugins/`, and make sure that that directory is in Opera's plugin path (it should be by default). Flash 10.0.32.18 is known to work with Opera 10.00. You can test it at http://www.adobe.com/products/flashplayer/.
32 bit plugins
To get 32bit plugins working in the 64bit Opera (There are other places to get better guides, but here is a quick run through.) You will want some compatibility-layers:
sudo aptitude install ia32-libs
- To get Flash 9, get the "flashplugin-nonfree" package from packages.ubuntu.com, for i386.
- Flash 10 is already available as 64-bit, but it does not work for me with Opera (5.09.2009).
- To get Adobe Reader, see the AcrobatHowTo article for detailed instructions specific to your Ubuntu release.
Install each package with the following dpkg
command (adapt the package names).
sudo dpkg -i --force-architecture package.deb
The spellchecker will not work with the standard instructions. It appears that the 64-bit dictionary works well with the 32-bit library, thus you only need to manually install the 32-bit library. You must install aspell and a dictionary (such as aspell-en) as the instructions say. A 64-bit version of libaspell will be installed as a dependency.
sudo aptitude install aspell aspell-en
Then you need a 32-bit version of the library libaspell. Get the libaspell package for i386 from packages.ubuntu.com. Then extract it to some directory, such as ~/Desktop
, with the following command:
dpkg -x libaspell*.deb ~/Desktop
Now copy the .so file to /usr/lib32
(you need the symlink too):
sudo cp ~/Desktop/usr/lib/libaspell* /usr/lib32/
Restart Opera and you should have a working spell checker.
Making it more compatible with GNOME
Opera will now be accessible from Applications-->Internet-->Opera.
To get Opera to work better with GNOME, we're going to make sure it uses gnome-open
for file-handling. Open a Terminal and type:
mkdir ~/.opera cat >> ~/.opera/filehandler.ini
Select the following text and paste it into your terminal by pressing Shift+Ins:
Opera Preferences version 2.0 ; Do not edit this file while Opera is running ; This file is stored in UTF-8 encoding [Settings] Default File Handler=gnome-open ,1 Default Directory Handler=gnome-open ,1
Then press Ctrl+d. You will probably want to change the font types in Opera to fit those in Gnome. To do so, hit Alt-P in Opera, click the "Advanced" tab and then select the "Fonts" item on the left-hand side. For each GUI element, you can select a new type face. Additionally, fonts in Opera look different from in regular Gnome applications. If you use Gnome, fonts in Opera may be fuzzy. This is because Qt, Opera's backend technology, doesn't recognize yet Gnome's font settings. To solve this problem, you can create a file called .fonts.conf in your home directory:
gedit .fonts.conf &
Paste this snippet:
<?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <match target="font"> <edit name="rgba" mode="assign"> <const>rgb</const> </edit> </match> <match target="font"> <edit name="rgba" mode="assign"> <const>rgb</const> </edit> <edit name="hinting" mode="assign"> <bool>true</bool> </edit> <edit name="hintstyle" mode="assign"> <const>hintslight</const> </edit> </match> </fontconfig>
Save it. Restart Opera, your fonts should look better. The separation bar between the tool bar and the location bar is rather thick in Gnome. To reduce clutter, you can hide the tool bar hitting Alt-F11. If needed, you can toggle the tool bar hitting Alt-F11 repeatedly.
Skins for Opera
Press SHIFT+F12 and browse the available skins, pick any you like. Changing, adding, and removing them is very easy, and new ones are created very often. Below are some skins that might suit you. The main page for Opera skins is http://my.opera.com/community/customize/skins/ If you use Ubuntu's DarkRoom skin (a dark brown skin), you can closely adapt Opera's native skin to match your desktop skin color. To do so, hit Shift-F12 in Opera, keep the "Opera Standard" skin, and under "Color scheme", select "Gold".
GNOME Skins for Opera
You may preview the skins linked below:
In Opera, select "Download" to install the skin.
KDE Skin for Opera
You may preview the skins linked below:
In Opera, select "Download" to install the skin.
Integration with Gaim/Pidgin
In Tools->Preferences->Advanced->Programs, add a new protocol you want to add(eg. ymsgr for Yahoo) and select "Open with other application" and enter /usr/bin/gaim-url-handler(gaim) or /usr/bin/purple-url-handler(pidgin).
Protocol integration with KDE
In the Tools->Preferences->Advanced->Programs, add a new protocol you want to add(eg. ymsgr for Yahoo) and select "Open with other application". Then, if you want to use the default program you set in KDE, just set the handler to "kfmclient exec".
Setting Opera as default browser in GNOME
To set Opera as the system default browser and mailreader, follow these steps:
- Go to System -> Preferences -> Preferred Applications
- Under the Web Browser tab select "Opera" and select "Open link in new tab"
- Under the Mail Reader tab select "Custom" and, in the Command box, enter:
opera -newmail "%s"
Troubleshooting
Very slow to start loading pages
On some systems, Opera can be very slow to start loading pages. It may even time out. Fortunately, disabling IPv6 or DHCP can solve the problem.
Install Java
If you start Opera from the console you may see the following error message if java doesn't work correctly:
ERROR: ld.so: object 'libjvm.so' from LD_PRELOAD cannot be preloaded: ignored. ERROR: ld.so: object 'libawt.so' from LD_PRELOAD cannot be preloaded: ignored.
To fix this, correct the Java path under Tools -> Preferences -> Advanced Tab -> Content -> Java options
.
It should look similar to this:
/usr/lib/jvm/java-1.5.0-sun-1.5.0.06/jre/lib/i386/
Your actual java runtime version could be different from this one. Changes will not take effect until the browser is restarted. Use [1]] to test your Java Virtual Machine (JVM). You need to have Java installed for this. See [[Java Java] to find out how to do that.
General Plugin Problems
In order for Opera to see a plugin, the plugin must be in Opera's plugin path. You can add directories to the plugin path with Tools -> Preferences -> Advanced -> Content -> Plugin Options. Add the desired directories and click Find Plugins. You may have to restart Opera to enable the plugin. Some common plugin .so files:
Shockwave Flash | libflashplayer.so |
Acroread | nppdf.so |
Gecko MediaPlayer | gecko-mediaplayer.so |
Flash problems
Just use the latest version of flash RestrictedFormats/Flash. This should just work by now (May 2008). If not and problems persist even when using the most recent version of flash, and the plugin appears to be recognized (it shows up in the opera:plugins "webpage"), editing the opera startup script might help:
gksudo gedit /usr/bin/opera
Find the place where it says
# Workarounds for the "preloaded libXt" problem.
and add the lines:
# Flash workaround. LD_PRELOAD="libflashplayer.so:${LD_PRELOAD}" export LD_PRELOAD
just above that line. If you aren't using libflashplayer.so, insert the name of the plugin you are using instead.
Acroread Plugin Problems
The acroread plugin did work by default in Opera 8.x. It works for recent versions so you probably do not need the following: You must edit the Opera startup script for it to work. Use your favorite editor to open the opera startup script:
gksudo gedit /usr/bin/opera
Replace the lines
OPERA_LD_PRELOAD="${LD_PRELOAD}" export OPERA_LD_PRELOAD
with
LD_PRELOAD="libXm.so.2:${LD_PRELOAD}" export LD_PRELOAD OPERA_LD_PRELOAD="${LD_PRELOAD}" export OPERA_LD_PRELOAD
Start Opera and open a pdf. When it asks you what to do, click the Change button next to the Opens With. A file type association dialog should popup; choose the plugin option at the bottom (nppdf.so should be an option).
Opera Segmentation Fault and Java crash with static version problem
If your Opera browser started to segfault, or you are using the static version and having problems with java, do the following: 1. Edit the ~/.opera/pluginpath.ini, and change the lines to this
[Paths] /usr/lib/opera/plugins=1 /usr/lib/mozilla/plugins=0 /usr/lib/netscape/plugins-libc6=0
2. Create a symlink from /usr/lib/mozilla/plugins/libflashplayer.so to /usr/lib/opera/plugins/libflashplayer.so 3. Check your ~/.opera/javapath.txt, when using blackdown java, it should be /usr/lib/j2se/1.4/jre/lib/i386
Solution from rwf, based on this forum thread.
Video plugins
Install gecko-mediaplayer and most videos should just work.
Install Weekly Build
These are development unstable version, use on your own risk!
- Download weekly build from [2] and follow instructions for installing snapshot release (see above).
- To locate libxpcom.so on your system and softlink it to /usr/lib
sudo ln -s /usr/lib/mozilla-firefox/libxpcom.so /usr/lib/libxpcom.so
Credits
Credits for the GNOME skin: mneptok Based on this Ubuntu Forum thread.