个人工具
119.28.94.63
该IP地址的讨论
登录
查看“UbuntuHelp:OperaBrowser”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:OperaBrowser”的源代码
来自Ubuntu中文
←
UbuntuHelp:OperaBrowser
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/OperaBrowser}} {{Languages|UbuntuHelp:OperaBrowser}} Instructions to install & configure Opera 9.20 in Ubuntu, based off [http://www.ubuntuforums.org/showthread.php?t=40467 this Ubuntu Forum thread]. == 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 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. ==== Ubuntu 7.04, 7.10 and 8.04 ==== Locate the .deb package and double click on it to start the Gdebi .deb installer. ==== Ubuntu 6.10 Edgy Eft ==== Locate the .deb package and double click on it to start the Gdebi .deb installer. The installer might warn you at the end of a conflict with an existing opera package installation. It seems that you can ignore the error, your package has been installed properly anyway. Just check in your Applications menu under Internet, you should see the Opera icon. ==== Ubuntu 6.06 Dapper Drake ==== Locate the .deb package and double click on it to start the Gdebi .deb installer. Opera will take a minute to install. If you get messages about unmet dependencies type: <pre><nowiki> sudo apt-get -f install </nowiki></pre> apt will then install the missing packages. === Install via repository === ==== Ubuntu 7.10 Gutsy Gibbon ==== Opera is available in Ubuntu's "partner" repository. In Synaptic: <ol><li>Choose "Settings" > "Repositories". </li><li>In the Software Sources window, click "Third-Party Software", then click "Add". </li><li>In the window that appears, enter "`deb http://archive.canonical.com/ gutsy partner`" (without quotes). </li><li>Close the Software Sources window, and click Reload in the main window. </li><li>Click Search and search for Opera. Mark it for installation, and click Apply.</li></ol> ==== Ubuntu 7.04 Feisty Fawn ==== The Opera browser is available from the Canonical commercial repository. To get it through Synaptic or apt, add the following line to your repository list (see [[UbuntuWiki:OperaBrowser/RepositoriesUbuntu#other|Adding Other Repositories]]): Add the following line to your repository list (see [[UbuntuWiki:OperaBrowser/RepositoriesUbuntu#other|Adding Other Repositories]]): <pre><nowiki> deb http://archive.canonical.com/ubuntu feisty-commercial main </nowiki></pre> Alternatively, to use the opera.com repository add the following line instead: <pre><nowiki> deb http://deb.opera.com/opera/ stable non-free </nowiki></pre> After making these changes install the <code><nowiki>opera</nowiki></code> package (see [[UbuntuHelp:InstallingSoftware|InstallingSoftware]]). If using the opera.com repository, it is advisable that you add the Opera GPG key. <pre><nowiki> sudo wget -O - http://deb.opera.com/archive.key | sudo apt-key add - </nowiki></pre> The installation steps are described [http://deb.opera.com/ here]. ==== Ubuntu 6.10 Edgy Eft ==== The Opera browser is available from the Canonical commercial repository. To get it through Synaptic or apt, add the following line to your repository list (see [[UbuntuWiki:OperaBrowser/RepositoriesUbuntu#other|Adding Other Repositories]]): <pre><nowiki> deb http://archive.canonical.com/ubuntu edgy-commercial main </nowiki></pre> After making these changes install the <code><nowiki>opera</nowiki></code> package (see [[UbuntuHelp:InstallingSoftware|InstallingSoftware]]). ==== Ubuntu 6.06 Dapper Drake ==== The Opera browser is available from the Canonical commercial repository. To get it through Synaptic or apt, add the following line to your repository list (see [[UbuntuWiki:OperaBrowser/RepositoriesUbuntu#other|Adding Other Repositories]]): <pre><nowiki> deb http://archive.canonical.com/ubuntu dapper-commercial main </nowiki></pre> However, as of 2007.05.05, only 9.10 is available. It is advisable to install the latest version (9.20) for security reasons, so rather use Opera's own repositories by adding the following instead: <pre><nowiki> deb http://deb.opera.com/opera/ stable non-free </nowiki></pre> After making these changes install the <code><nowiki>opera</nowiki></code> package (see [[UbuntuHelp:InstallingSoftware|InstallingSoftware]]). == 64-bit == '''You can test the 64-bit version for Linux.''' It's still on BETA stage but worked fine for me. ftp://get.opera.com/pub/opera/linux/950b/final/en/x86_64/opera_9.50-20071024.2-shared-qt_amd64.deb Or get the newest version on: ftp://get.opera.com/pub/opera/linux Opera is, alas, closed source. That means that we will have a 64-bit version only when Opera Software gets around to making one. In the meantime, you can run still run 32-bit Opera in a 64-bit OS with a few extra steps. I have had better luck with the static version of Opera. That way you don't have to worry about the 32-bit QT dependency. Install it with <pre><nowiki> sudo dpkg -i --force-architecture opera-static....deb </nowiki></pre> You will also want some compatibility-layers: <pre><nowiki> sudo aptitude install ia32-libs ia32-libs-gtk lib32asound2 linux32 </nowiki></pre> Opera should work now. Now you need some plugins. There are other places to get better guides, but here is a quick run through. * To get Flash 9, get the "flashplugin-nonfree" package from packages.ubuntu.com, for i386. Install it with the same <code><nowiki>dpkg</nowiki></code> command as above. * To get Adobe <code><nowiki>acroread</nowiki></code>, get the packages "acroread", "acroread-escript", and "mozilla-acroread" from packages.ubunu.com. You will have to get the ones for Edgy or earlier because licensing changes prevent inclusion in Feisty and later. Install with the same <code><nowiki>dpkg</nowiki></code> command as above. 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> sudo aptitude install aspell aspell-en </nowiki></pre> Then you need a 32-bit version of the library libaspell. Get the libaspell package for i386 from [http://packages.ubuntu.com packages.ubuntu.com]. Then extract it to some directory, such as <code><nowiki>~/Desktop</nowiki></code>, with the following command: <pre><nowiki> dpkg -x libaspell*.deb ~/Desktop </nowiki></pre> Now copy the .so file to <code><nowiki>/usr/lib32</nowiki></code> ''(you need the symlink too)'': <pre><nowiki> sudo cp ~/Desktop/usr/lib/libaspell* /usr/lib32/ </nowiki></pre> 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 <code><nowiki>gnome-open</nowiki></code> for file-handling. Open a Terminal and type: <pre><nowiki> mkdir ~/.opera cat >> ~/.opera/filehandler.ini </nowiki></pre> Select the following text and paste it into your terminal by pressing Shift+Ins: <pre><nowiki> 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 </nowiki></pre> Then press Ctrl+d. == 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/. === GNOME Skins for Opera === You may preview the skins linked below: * [http://my.opera.com/community/customize/skins/info/?id=4741 Tango for Ubuntu] * [http://my.opera.com/community/customize/skins/info/?id=3255 GNOME Opera] * [http://my.opera.com/community/customize/skins/info/?id=3465 Tango CL] * [http://my.opera.com/community/customize/skins/info/?id=4236 Ubuntu Dapper] In Opera, select "Download" to install the skin. === KDE Skin for Opera === 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=3336 PlastikOpera] * [http://my.opera.com/community/customize/skins/info/?id=1717 Keramik] 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: <pre><nowiki> opera -newmail "%s" </nowiki></pre> == Troubleshooting == === Missing package === If you have chosen the qt-shared version, you need the libqt-mt package. However, this trick '''does not work''' with Ubuntu 6.10 Edgy Eft. ==== Ubuntu 6.06 Dapper Drake ==== [http://packages.ubuntu.com/dapper/libs/libqt3-mt#pdownload Download the package] for your architecture and double click the .deb to install. Rerun installation of Opera and the dependancy problems will be gone. === Install Java === If you start Opera from the console you may see the following error message if java doesn't work correctly: <pre><nowiki> 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. </nowiki></pre> To fix this, correct the Java path under <code><nowiki>Tools -> Preferences -> Advanced Tab -> Content -> Java options</nowiki></code>. It should look similar to this: <pre><nowiki> /usr/lib/jvm/java-1.5.0-sun-1.5.0.06/jre/lib/i386/ </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 [[UbuntuWiki: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: {|border="1" cellspacing="0" |Shockwave Flash||libflashplayer.so |- |Acroread||nppdf.so |- |GXine||gxineplugin.so |- |Mplayer||mplayerplug-in.so |} [http://www.opera.com/linux/docs/plugins/install/ Opera's Linux Plugin Page.] === Flash problems === Just use the latest version of flash [[UbuntuHelp:RestrictedFormats/Flash|RestrictedFormats/Flash]]. This is not the be-all and end-all of flash problems. If 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 may 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 === 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: <pre><nowiki> gksudo gedit /usr/bin/opera </nowiki></pre> Replace the lines <pre><nowiki> OPERA_LD_PRELOAD="${LD_PRELOAD}" export OPERA_LD_PRELOAD </nowiki></pre> with <pre><nowiki> LD_PRELOAD="libXm.so.2:${LD_PRELOAD}" export LD_PRELOAD OPERA_LD_PRELOAD="${LD_PRELOAD}" export OPERA_LD_PRELOAD </nowiki></pre> 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 <pre><nowiki> [Paths] /usr/lib/opera/plugins=1 /usr/lib/mozilla/plugins=0 /usr/lib/netscape/plugins-libc6=0 </nowiki></pre> 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 [http://my.opera.com/community/forums/topic.dml?id=108820&t=1130281303&page=1 this forum thread]. === Video plugins === As of now (May 2007), embedded video playback does not work well in opera. The probably best plugin, mozilla-mplayer, works only partially and requires [http://my.opera.com/community/forums/topic.dml?id=154160 manual compiling]. You can try vlc, gxineplugin or totem, but it is probably advisable to just use Firefox for sites as [http://www.apple.com/trailers] == Install Weekly Build == 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). * To locate libxpcom.so on your system and softlink it to /usr/lib <pre><nowiki> sudo ln -s /usr/lib/mozilla-firefox/libxpcom.so /usr/lib/libxpcom.so </nowiki></pre> === Credits === Credits for the GNOME skin: [http://ubuntuforums.org/showthread.php?p=370428 mneptok] ---- [[category:CategoryDocumentation]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:OperaBrowser
。