Difference between revisions of "Opera"

From ArchWiki
Jump to: navigation, search
(Java Support: added Note about JRE being pulled from the official repos)
m (l18n)
(42 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{i18n|Opera}}
+
[[bg:Opera]]
[[Category:Web Browser (English)]]
+
[[cs:Opera]]
 
+
[[de:Opera]]
 +
[[es:Opera]]
 
[[fr:opera]]
 
[[fr:opera]]
 +
[[it:Opera]]
 +
[[Category:Web Browser]]
 +
{{Article summary start}}
 +
{{Article summary text|Installing and configuration of the Opera browser and plugins.}}
 +
{{Article summary heading|Related}}
 +
{{Article summary wiki|Browser Plugins}}
 +
{{Article summary wiki|Firefox}}
 +
{{Article summary wiki|Chromium}}
 +
{{Article summary end}}
 +
[http://www.opera.com Opera] is a free of charge web browser developed since 1994 by the Norwegian company [[Wikipedia:Opera Software|Opera Software]]. It is known for being the first to bring new browsing features to the world that have become common on all web browsers, such as tabbed browsing and built-in search.
  
[http://www.opera.com Opera] is a [http://en.wikipedia.org/wiki/Web_browser web browser] and [http://en.wikipedia.org/wiki/Internet_suite Internet suite] developed by [http://www.opera.com/company/ Opera Software]. The browser handles common Internet-related tasks such as displaying websites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent, and reading web feeds.<sup>[1]</sup> Opera consumes approximately 36 MB installed on disk and is built for speed, incorporating numerous options and shortcuts to simply web tasks. <small>:<sup>[1]</sup> "Opera_(web_browser)". <u>Wikipedia</u>. 19 Sep. 2010. Wikimedia Foundation, Inc. 22 Sep. 2010 <http://en.wikipedia.org/wiki/Opera_(web_browser)></small>.
+
Opera continues to innovate with its integrated mail client, one-click bookmarking, tab stacks (a way of organizing your tabs) and very good support for [[Wikipedia:HTML5|HTML5]] features.
  
 
== Installation ==
 
== Installation ==
 +
Opera can be [[Pacman|installed]] with the package {{Pkg|opera}}, available in the [[official repositories]].
  
{{Package Official|Opera}} is part of the [[Official_Repositories#.5Bcommunity.5D|official Arch Linux [community] repository]].
+
Development versions can be found in the [[AUR]]:
 
+
* {{AUR|opera-beta}} - a beta release version.
# pacman -S opera
+
* {{AUR|opera-next}} - an alpha/development version.
  
 
== Plugins ==
 
== Plugins ==
Opera can use Mozilla-based plugins; see [[Browser Plugins]] for details. The plugin path can be specified under {{filename|Settings > Preferences > Advanced > Content > Plug-in Options}}
+
Opera can use Netscape-based plugins that are supported by most major browsers, like Firefox and Chromium. For details about different plugins and installation instructions see [[Browser Plugins]]. In Opera, the plugin path can be specified under ''Settings > Preferences... > Advanced > Content > Plug-in Options''.
  
=== 64-bit Flash Option 1 ===
+
=== Adobe Flash ===
* Enable the [http://www.archlinux.org/news/true-multilib-for-arch-linux-x86_64/ multilib] repository in {{filename|/etc/pacman.conf}}.
+
{{Box||See the main article: [[Browser Plugins#Flash Player]]|#E5E5FF|#FCFCFC}}
* Refresh the master package list from the server(s) defined in {{filename|/etc/pacman.conf}}:
+
# pacman -Syy
+
  
* Install the latest stable version of Flash:
+
=== Java Support ===
 +
{{Box||See the main article: [[Browser Plugins#Java (IcedTea)]]|#E5E5FF|#FCFCFC}}
  
# pacman -S flashplugin
+
=== Adblock ===
 +
Install Adblock support using the {{AUR|opera-adblock-complete}} package from the [[AUR]].
  
=== 64-bit  Flash Option 2 ===
+
== Performance tweaks ==
Install [http://aur.archlinux.org/packages.php?ID=32072 flashplugin-prerelease] from the Arch User Repository (AUR).
+
Although Opera is quite fast on modern hardware, it can be tweaked even more. For further examples, see the [http://operawiki.info/operaperformance Opera wiki page] on performance.
  
==Performance tweaks==
+
=== Disabling features and services ===
===Disabling features and services===
+
One of the keys to maximizing application performance is to disable undesired features and services through the native [http://www.opera.com/browser/tutorials/personalize/behavior/ opera:config Preferences Editor.]
One of the keys to maximizing application performance is to disable undesired features and services through the native [http://www.opera.com/browser/tutorials/personalize/behavior/ opera:config Preferences Editor].  
+
  
* Start Opera without the default system tray icon by unchecking the following option:
+
Some commonly disabled features are:
opera:config#UserPrefs | ShowTrayIcon
+
* '''Systray Icon''': uncheck ''Show Tray Icon'' under opera:config#UserPrefs.
 +
* '''BitTorrent''': uncheck ''Enable'' under opera:config#BitTorrent.
 +
* '''Geolocation''': uncheck ''Enable geolocation'' under opera:config#Geolocation.
 +
* '''Multimedia''': unckeck desired options under opera:config#Multimedia.
 +
* '''Web Server''': uncheck ''Enable'' under opera:config#Web Server.
  
Other commonly disabled feature sets include but are not limited to:
+
To more easily find these options just write the respective path (without spaces) in the address bar, for example {{ic|<nowiki>opera:config#UserPrefs|ShowTrayIcon</nowiki>}} or use the build-in search.
  
* BitTorrent [http://farm5.static.flickr.com/4113/5026641169_926bc07c3e_b.jpg Example Screenshot]
+
==== Disable the e-mail client ====
* Geolocation
+
Additional command-line options are available for further control over browser features and services. To start Opera without the default internal e-mail client:
* Multimedia
+
$ opera -nomail
* Web Server
+
  
Additional command-line options are available for futher control over browser features and services:
+
Alternatively, if you want to permanently disable the internal e-mail client you can uncheck the ''Show E-mail Client'' option under opera:config#UserPrefs.
 
+
* Start Opera without the default internal e-mail client
+
$ opera -nomail
+
  
* Start Opera without an [[Wikipedia:ARGB|ARGB]] (32-bit) visual, without [http://www.lirc.org/ LIRC] infrared control support and <tt>mailto:</tt> links disabled:  
+
==== Disable ARGB, LIRC and mailto links ====
  $ opera -noargb -nolirc -nomaillinks
+
To start Opera without [[Wikipedia:ARGB|ARGB]] (32-bit) visuals, [http://www.lirc.org/ LIRC] infrared control support and with {{ic|mailto:}} links disabled:
 +
  $ opera -noargb -nolirc -nomaillinks  
  
===Improving Flash performance===
+
=== Improving Flash performance ===
* Set the following environment variables before starting Opera, or export the entries in [[xinitrc]], or [http://wiki.archlinux.org/index.php/Startup_files#Bash .bash_profile], or for system-wide changes, to {{Filename|/etc/profile}}:
+
To improve Flash performance you can set the following environment variables before starting Opera, or export the entries in [[xinitrc]], or [[Startup Files#Shells|~/.bash_profile]], or for system-wide changes, to {{ic|/etc/profile}}:
 
   OPERAPLUGINWRAPPER_PRIORITY=0
 
   OPERAPLUGINWRAPPER_PRIORITY=0
 
   OPERA_KEEP_BLOCKED_PLUGIN=1
 
   OPERA_KEEP_BLOCKED_PLUGIN=1
  
====xinitrc example====
+
Another environment variable which may help resolve Flash issues:
#!/bin/bash
+
#
+
/usr/bin/urxvtd -q -f -o &
+
export OPERAPLUGINWRAPPER_PRIORITY=0
+
export OPERA_KEEP_BLOCKED_PLUGIN=0
+
exec ck-launch-session /usr/bin/jwm
+
 
+
====Command-line example====
+
$ OPERAPLUGINWRAPPER_PRIORITY=0 OPERA_KEEP_BLOCKED_PLUGIN=1 opera &
+
 
+
* Another environment variable which may help resolve Flash issues:
+
 
+
 
  GDK_NATIVE_WINDOWS=1
 
  GDK_NATIVE_WINDOWS=1
  
 
See the blog article [http://my.opera.com/ruario/blog/flash-problems-on-linux Flash problems on Linux?] for additional details.
 
See the blog article [http://my.opera.com/ruario/blog/flash-problems-on-linux Flash problems on Linux?] for additional details.
  
=== Profile in tmpfs ===
+
==== .xinitrc example ====
The default Opera profile is typically located in {{filename|$HOME/.opera}}. This profile can be relocated to an available [http://en.wikipedia.org/wiki/Tmpfs tmpfs] filesystem, including {{filename|/tmp}}, or {{filename|/dev/shm}} for improvements in application response as the the entire profile is now stored in RAM. Another benefit is a reduction in disk read and write operations, of which SSD drives benefit the most.
+
{{hc|~/.xinitrc|<nowiki>
 +
...
 +
export OPERAPLUGINWRAPPER_PRIORITY=0
 +
export OPERA_KEEP_BLOCKED_PLUGIN=0
 +
...</nowiki>
 +
}}
  
* At system startup, recursively copy the folder {{filename|/home/arch/.opera}} to {{filename|/dev/shm/.opera}} while preserving mode, ownership and file timestamps:
+
==== Command-line example ====
  #!/bin/bash
+
To use the variables from the command line call Opera as:
#
+
  $ OPERAPLUGINWRAPPER_PRIORITY=0 OPERA_KEEP_BLOCKED_PLUGIN=1 opera &
# /etc/rc.local
+
#
+
cp -pR /home/USER/.opera /dev/shm
+
  
* [http://en.wikipedia.org/wiki/Rsync rsync] can be used in place of the [http://en.wikipedia.org/wiki/Cp_(Unix) cp] command:
+
=== Profile in tmpfs ===
#!/bin/bash
+
Relocate the browser profile to a [[Fstab#tmpfs|tmpfs]] filesystem, including {{ic|/tmp}} for improvements in application response as the entire profile is now stored in RAM. Another benefit is a reduction in disk read and write operations, of which SSDs benefit the most.
#
+
# /etc/rc.local
+
#
+
rsync -a /home/USER/.opera /dev/shm
+
  
#!/bin/bash
+
There are currently two ways of doing this:
#
+
* using [[Profile-sync-daemon]], that automatically detects and relocates the Opera profile to tmpfs.
# /etc/rc.local.shutdown
+
* using the {{ic|-pd}} command-line flag to tell Opera where to store its profile data:
#
+
  $ opera -pd /tmp/opera
  rsync -a --delete /dev/shm/.opera /home/USER
+
  
* To copy only bookmarks and session files back to the disk profile:
+
== Appearance ==
  
#!/bin/bash
+
=== Themes ===
#
+
Although Opera is cross-platform, it can be made to integrate very well into various Linux desktop environments.
# /etc/rc.local.shutdown
+
; Qt: To make the menus look integrated with Qt, install your preferred Qt theme and apply it by using {{ic|qtconfig}}.
#
+
; KDE: To make Opera use [[KDE]] icons, you can install a theme such as [http://my.opera.com/community/customize/skins/info/?id=8141 this one].
rsync -a --delete /tmp/.opera/sessions/ /home/bbs/.opera/sessions &
+
; GTK+: A nice GTK+ skin that uses the Tango icon theme can be found [http://my.opera.com/community/customize/skins/info/?id=3465 here].
rsync -a /tmp/.opera/bookmarks.adr /home/bbs/.opera
+
  
* In the case of [http://aur.archlinux.org/packages.php?ID=48680 opera-next], launch Opera with the <tt>-pd</tt> option to set the location of the alternative Opera preferences folder:
 
  
$ opera -pd /dev/shm/.opera
+
=== Tab modes ===
 +
Opera has native support for tab cascading and tiling mode. Appropriate buttons can be found by activating the "Main" toolbar or by dragging and dropping the buttons anywhere desired, found in ''Menu > Appearance > Buttons > Browser''.
  
* Any number of command-line options may be included in the string:
+
=== Fonts ===
 
+
Fonts can be configured under ''Settings > Preferences... > Advanced > Fonts''.  
$ opera -newprivatetab -noargb -nolirc -nomail -nomaillinks -pd /tmp/.opera
+
 
+
===Disabling Xft fonts===  
+
[http://en.wikipedia.org/wiki/Xft Xft] font rendering can consume unnecessary resources on certain systems. Avoid the use of Xft fonts by unchecking the following option:
+
 
+
opera:config#UserPrefs | EnableXftFonts
+
 
+
== Microsoft fonts and Opera ==
+
Configure fonts under <tt>Settings > Preferences > Advanced > Fonts</tt>. If [https://aur.archlinux.org/packages.php?ID=13030 ttf-ms-fonts] has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what's specified by local GTK options, [[GNOME]], or KDE font management. To force existing installations of Opera use the options set by your font manager:
+
  
 +
If the {{AUR|ttf-ms-fonts}} package has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what is specified by local GTK+ options, [[GNOME]] or KDE font management. To force existing installations of Opera to use the options set by your system:
 
* Close all running instances of Opera.
 
* Close all running instances of Opera.
* Uninstall the <tt>ttf-ms-fonts</tt> package.
+
* Un-install the {{AUR|ttf-ms-fonts}} package.
* Move the existing profile folder: {{Codeline|mv -i ~/.opera ~/.opera.bak}}
+
* Move the existing profile folder: {{ic|mv -i ~/.opera ~/.opera.bak}}
 
* Run an instance of Opera and verify that your font manager settings have been applied.
 
* Run an instance of Opera and verify that your font manager settings have been applied.
* Restore bookmarks and desired filter files from {{Filename|~/.opera.bak}} to {{Filename|~/.opera}} except for the {{Filename|operaprefs.ini}} file.
+
* Restore bookmarks and desired filter files from {{ic|~/.opera.bak}} to {{ic|~/.opera}} except for the {{ic|operaprefs.ini}} file.
* Reinstall the <tt>ttf-ms-fonts</tt> package, if desired.
+
* Re-install the {{AUR|ttf-ms-fonts}} package, if desired.
 
+
== UI appearance ==
+
* To make the menus look integrated with Qt, install your preferred Qt4 theme and apply it by using {{Codeline|qtconfig}}.
+
* To make Opera use [[KDE]] icons, download a native skin such as [http://my.opera.com/community/customize/skins/info/?id=8908 fixed_window_skin]
+
  
==Private tabs==
+
== Private tabs ==
To browse without leaving any trace of the Web sites you visit, you can use a private tab. When you close a private tab, the following data related to the tab is deleted:  
+
To browse without leaving obvious traces of the Web sites you visit, you can use a private tab. When you close a private tab, the following data related to the tab is deleted:
* Cache  
+
* Cache
 
* Cookies
 
* Cookies
 
* History
 
* History
 
* Logins
 
* Logins
  
This is similar to the [http://www.google.com/support/chrome/bin/answer.py?hl=en&answer=95464 --incognito option] in Chrome/[[Chromium]] and [https://wiki.mozilla.org/PrivateBrowsing PrivateBrowsing] in [[Firefox]].
+
This is similar to the [http://www.google.com/support/chrome/bin/answer.py?hl=en&answer=95464 --incognito option] in Chrome/[[Chromium]] and [https://wiki.mozilla.org/PrivateBrowsing PrivateBrowsing] in [[Firefox]].  
 
+
* Open the URL (if a URL is defined) in Opera with a private tab.
+
  
 +
To open a private tab from the command-line use:
 
  $ opera -newprivatetab
 
  $ opera -newprivatetab
  
 
To ensure only private tabs are used throughout the duration of the browsing session:
 
To ensure only private tabs are used throughout the duration of the browsing session:
* Set <tt>Settings > Preferences... > General > Startup > Start without open tabs</tt>
+
* Set ''Settings > Preferences... > General > Startup > Start without open tabs''.
* Clear any entries in <tt>Settings > Preferences... > General > Home page option</tt>
+
* Clear any entries in ''Settings > Preferences... > General > Home page option''.
* Enable <tt>Settings > Preferences... > Advanced > Tabs > Additional tab options... > Allow windows with no tabs</tt>
+
* Enable ''Settings > Preferences... > Advanced > Tabs > Additional tab options... > Allow windows with no tabs''.
  
== Java Support ==
+
To open a new window for private browsing when already running Opera you can just press {{Keypress|Ctrl+Shift+N}} or look under ''Menu > New Tabs and Windows > New Private Window''. All subsequent opened tabs with be private as well.
  
{{Note|Oracle's proprietary version of the JRE has been pulled from [community]. Read [http://mailman.archlinux.org/pipermail/arch-general/2011-August/021671.html here] for more information.}}
+
== Accessibility Tips ==
* Install the proprietary, closed source [[Wikipedia:JRE#Execution_environment|Java Runtime Environment]] from Oracle:
+
# pacman -S jre
+
  
* Alternatively, install the open source [[Wikipedia:Openjdk|OpenJDK]] environment along with the [http://icedtea.classpath.org/wiki/IcedTea-Web IcedTea-Web] browser plugin:
+
=== Disable text selection ===
# pacman -S openjdk icedtea-web
+
  
See [[Java#OpenJDK_JVM]] for additional details and references.
+
It is possible to disable text selection in Opera. However, text selection through JavaScript will still work (for example in forms, etc.). To get to the setting follow the link bellow:
 +
opera:config#System|DisableTextSelect
  
== Troubleshooting ==
+
=== Grab and scroll mode ===
  
=== Java on Arch64 ===
+
Besides setting text selection off, grab and scroll mode makes page scrolling possible with mouse dragging. It is very useful, especially when you have a touchscreen. Copy and paste the link bellow to get to the mentioned setting.
 +
opera:config#UserPrefs|ScrollIsPan
  
{{Accuracy}}
+
It is also possible to change this setting on the fly by dragging and dropping the appropriate Opera button into a toolbar. The button can be found in ''Menu > Appearance > Buttons > Browser View''.
  
1. Add to {{Filename|~/.bash_profile}}, or {{Filename|/etc/profile}} to make this setting affect all logins:
+
=== Long pressing a link opens it in a background tab (extension) ===
# openjdk
+
export LD_LIBRARY_PATH=/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server/
+
# jre
+
export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/
+
Alternatively, create a symlink to {{Filename|libjvm.so}}:
+
# openjdk
+
cd /usr/lib/jvm/java-6-openjdk/jre/lib/amd64
+
ln -s server/libjvm.so .
+
# jre
+
cd /opt/java/jre/lib/amd64
+
ln -s server/libjvm.so .
+
  
2. Edit the path to Java in Opera: ''Menu -> Tools -> Preferences -> Advanced -> Content -> Plugin-Options''.
+
It is possible to open up any long-clicked link in a new background tab by installing [https://addons.opera.com/en/addons/extensions/details/open-in-background-with-long-press/ this] extension.
#openjdk
+
 
/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/
+
=== Virtual On-Screen keyboard (extension) ===
#jre
+
 
/opt/java/jre/lib/amd64/
+
There is an extension which allows the use of an on-screen virtual keyboard. Further details and installation link can be found [https://addons.opera.com/en/addons/extensions/details/virtual-keyboard/ here].
 +
 
 +
== Troubleshooting ==
  
 
=== Slow scrolling on NVIDIA cards ===
 
=== Slow scrolling on NVIDIA cards ===
Line 190: Line 163:
  
 
=== Horizontal mouse wheel scrolling ===
 
=== Horizontal mouse wheel scrolling ===
Check {{filename|Settings > Preferences > Advanced > Shortcuts > Mouse > Middle-Click Options... > Enable horizontal panning}}
+
Check ''Settings > Preferences... > Advanced > Shortcuts > Mouse > Middle-Click Options... > Enable horizontal panning''.
  
 
or
 
or
  
* Highlight {{filename|Settings > Preferences > Advanced > Shortcuts > Mouse > Opera Standard}}
+
* Highlight ''Settings > Preferences... > Advanced > Shortcuts > Mouse > Opera Standard''.
* Duplicate {{filename|Settings > Preferences > Advanced > Shortcuts > Mouse > Opera Standard}}
+
* Duplicate ''Settings > Preferences... > Advanced > Shortcuts > Mouse > Opera Standard''.
* Edit... {{filename|Settings > Preferences > Advanced > Shortcuts > Mouse > Copy of Opera Standard}}
+
* Edit... ''Settings > Preferences... > Advanced > Shortcuts > Mouse > Copy of Opera Standard''.
* Search the <tt>Forward</tt> and <tt>Back</tt> input contexts and edit the appropriate button shortcuts to <tt>scroll left</tt> and <tt>scroll right</tt>
+
* Search the {{ic|Forward}} and {{ic|Back}} input contexts and edit the appropriate button shortcuts to {{ic|scroll left}} and {{ic|scroll right}}.
* Rename {{filename|Settings > Preferences > Advanced > Shortcuts > Mouse > Copy of Opera Standard}} as desired
+
* Rename ''Settings > Preferences... > Advanced > Shortcuts > Mouse > Copy of Opera Standard'' as desired.
  
 
=== Launching an external browser ===
 
=== Launching an external browser ===
Opera does not display sites well at times. A workaround is to launch the currently displayed page in an external browser.
+
If Opera does not display a site well, a workaround is to launch the currently displayed page in an external browser.
  
{{Note|The following method appears to be deprecated in favor of the built-in {{filename|Open With}} menu accessed via the right mouse button.}}
+
{{Note|The following method appears to be deprecated in favor of the built-in {{ic|Open With}} menu accessed via the right mouse button.}}
  
* Set the following line under <tt>[Site Navigation Toolbar.content]</tt> in {{filename|$HOME/.opera/toolbar/standard_toolbar.ini}}:
+
* Set the following line under {{ic|[Site Navigation Toolbar.content]}} in {{ic|$HOME/.opera/toolbar/standard_toolbar.ini}}:
 
  Button0, "Chromium"="Execute program, "chromium, "%u", , "Chromium""
 
  Button0, "Chromium"="Execute program, "chromium, "%u", , "Chromium""
  
* If Firefox is desired, or preferred:  
+
* If Firefox is desired, or preferred:
 
  Button0, "Firefox"="Execute program, "firefox", "%u", , "Firefox""
 
  Button0, "Firefox"="Execute program, "firefox", "%u", , "Firefox""
  
Line 214: Line 187:
 
  Button0, "Chromium"="Execute program, "chromium --block-nonsandboxed-plugins --disable-java --incognito --safe-plugins --start-maximized --user-data-dir=/tmp/.chromium", "%u", , "Chromium""
 
  Button0, "Chromium"="Execute program, "chromium --block-nonsandboxed-plugins --disable-java --incognito --safe-plugins --start-maximized --user-data-dir=/tmp/.chromium", "%u", , "Chromium""
  
==Additional Resources==
+
=== Opera crashes when starting or closing with GTK+ 2.24.7+ ===
 +
 
 +
If this crash occurs, you can work around it by changing the ''DialogToolkit'' option to 4:
 +
opera:config#FileSelector|DialogToolkit
 +
 
 +
This will disable GTK+ styling support and hence avoid the issue.
  
* [[http://operawiki.info/Opera Opera Browser Wiki]]
+
== See Also ==
* [[http://www.opera.com/support/kb/ Opera Knowledge Base]]
+
* [http://operawiki.info/Opera Opera Wiki]
* [[http://my.opera.com/community/forums/forum.dml?id=3 Opera For UNIX Forums]]
+
* [http://www.opera.com/support/kb/ Opera Knowledge Base]
 +
* [http://my.opera.com/community/forums/forum.dml?id=3 Opera For UNIX Forums]

Revision as of 18:50, 3 December 2012

Template:Article summary start Template:Article summary text Template:Article summary heading Template:Article summary wiki Template:Article summary wiki Template:Article summary wiki Template:Article summary end Opera is a free of charge web browser developed since 1994 by the Norwegian company Opera Software. It is known for being the first to bring new browsing features to the world that have become common on all web browsers, such as tabbed browsing and built-in search.

Opera continues to innovate with its integrated mail client, one-click bookmarking, tab stacks (a way of organizing your tabs) and very good support for HTML5 features.

Installation

Opera can be installed with the package opera, available in the official repositories.

Development versions can be found in the AUR:

Plugins

Opera can use Netscape-based plugins that are supported by most major browsers, like Firefox and Chromium. For details about different plugins and installation instructions see Browser Plugins. In Opera, the plugin path can be specified under Settings > Preferences... > Advanced > Content > Plug-in Options.

Adobe Flash

Template:Box

Java Support

Template:Box

Adblock

Install Adblock support using the opera-adblock-completeAUR package from the AUR.

Performance tweaks

Although Opera is quite fast on modern hardware, it can be tweaked even more. For further examples, see the Opera wiki page on performance.

Disabling features and services

One of the keys to maximizing application performance is to disable undesired features and services through the native opera:config Preferences Editor.

Some commonly disabled features are:

  • Systray Icon: uncheck Show Tray Icon under opera:config#UserPrefs.
  • BitTorrent: uncheck Enable under opera:config#BitTorrent.
  • Geolocation: uncheck Enable geolocation under opera:config#Geolocation.
  • Multimedia: unckeck desired options under opera:config#Multimedia.
  • Web Server: uncheck Enable under opera:config#Web Server.

To more easily find these options just write the respective path (without spaces) in the address bar, for example opera:config#UserPrefs|ShowTrayIcon or use the build-in search.

Disable the e-mail client

Additional command-line options are available for further control over browser features and services. To start Opera without the default internal e-mail client:

$ opera -nomail

Alternatively, if you want to permanently disable the internal e-mail client you can uncheck the Show E-mail Client option under opera:config#UserPrefs.

Disable ARGB, LIRC and mailto links

To start Opera without ARGB (32-bit) visuals, LIRC infrared control support and with mailto: links disabled:

$ opera -noargb -nolirc -nomaillinks 

Improving Flash performance

To improve Flash performance you can set the following environment variables before starting Opera, or export the entries in xinitrc, or ~/.bash_profile, or for system-wide changes, to /etc/profile:

 OPERAPLUGINWRAPPER_PRIORITY=0
 OPERA_KEEP_BLOCKED_PLUGIN=1

Another environment variable which may help resolve Flash issues:

GDK_NATIVE_WINDOWS=1

See the blog article Flash problems on Linux? for additional details.

.xinitrc example

~/.xinitrc
...
export OPERAPLUGINWRAPPER_PRIORITY=0
export OPERA_KEEP_BLOCKED_PLUGIN=0
...

Command-line example

To use the variables from the command line call Opera as:

$ OPERAPLUGINWRAPPER_PRIORITY=0 OPERA_KEEP_BLOCKED_PLUGIN=1 opera &

Profile in tmpfs

Relocate the browser profile to a tmpfs filesystem, including /tmp for improvements in application response as the entire profile is now stored in RAM. Another benefit is a reduction in disk read and write operations, of which SSDs benefit the most.

There are currently two ways of doing this:

  • using Profile-sync-daemon, that automatically detects and relocates the Opera profile to tmpfs.
  • using the -pd command-line flag to tell Opera where to store its profile data:
$ opera -pd /tmp/opera

Appearance

Themes

Although Opera is cross-platform, it can be made to integrate very well into various Linux desktop environments.

Qt
To make the menus look integrated with Qt, install your preferred Qt theme and apply it by using qtconfig.
KDE
To make Opera use KDE icons, you can install a theme such as this one.
GTK+
A nice GTK+ skin that uses the Tango icon theme can be found here.


Tab modes

Opera has native support for tab cascading and tiling mode. Appropriate buttons can be found by activating the "Main" toolbar or by dragging and dropping the buttons anywhere desired, found in Menu > Appearance > Buttons > Browser.

Fonts

Fonts can be configured under Settings > Preferences... > Advanced > Fonts.

If the ttf-ms-fontsAUR package has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what is specified by local GTK+ options, GNOME or KDE font management. To force existing installations of Opera to use the options set by your system:

  • Close all running instances of Opera.
  • Un-install the ttf-ms-fontsAUR package.
  • Move the existing profile folder: mv -i ~/.opera ~/.opera.bak
  • Run an instance of Opera and verify that your font manager settings have been applied.
  • Restore bookmarks and desired filter files from ~/.opera.bak to ~/.opera except for the operaprefs.ini file.
  • Re-install the ttf-ms-fontsAUR package, if desired.

Private tabs

To browse without leaving obvious traces of the Web sites you visit, you can use a private tab. When you close a private tab, the following data related to the tab is deleted:

  • Cache
  • Cookies
  • History
  • Logins

This is similar to the --incognito option in Chrome/Chromium and PrivateBrowsing in Firefox.

To open a private tab from the command-line use:

$ opera -newprivatetab

To ensure only private tabs are used throughout the duration of the browsing session:

  • Set Settings > Preferences... > General > Startup > Start without open tabs.
  • Clear any entries in Settings > Preferences... > General > Home page option.
  • Enable Settings > Preferences... > Advanced > Tabs > Additional tab options... > Allow windows with no tabs.

To open a new window for private browsing when already running Opera you can just press Template:Keypress or look under Menu > New Tabs and Windows > New Private Window. All subsequent opened tabs with be private as well.

Accessibility Tips

Disable text selection

It is possible to disable text selection in Opera. However, text selection through JavaScript will still work (for example in forms, etc.). To get to the setting follow the link bellow:

opera:config#System|DisableTextSelect

Grab and scroll mode

Besides setting text selection off, grab and scroll mode makes page scrolling possible with mouse dragging. It is very useful, especially when you have a touchscreen. Copy and paste the link bellow to get to the mentioned setting.

opera:config#UserPrefs|ScrollIsPan

It is also possible to change this setting on the fly by dragging and dropping the appropriate Opera button into a toolbar. The button can be found in Menu > Appearance > Buttons > Browser View.

Long pressing a link opens it in a background tab (extension)

It is possible to open up any long-clicked link in a new background tab by installing this extension.

Virtual On-Screen keyboard (extension)

There is an extension which allows the use of an on-screen virtual keyboard. Further details and installation link can be found here.

Troubleshooting

Slow scrolling on NVIDIA cards

Try running the following command:

$ nvidia-settings -a InitialPixmapPlacement=2

On some computers, http://helion.pl works extremely slow without this hack, making it a perfect site for testing.

Horizontal mouse wheel scrolling

Check Settings > Preferences... > Advanced > Shortcuts > Mouse > Middle-Click Options... > Enable horizontal panning.

or

  • Highlight Settings > Preferences... > Advanced > Shortcuts > Mouse > Opera Standard.
  • Duplicate Settings > Preferences... > Advanced > Shortcuts > Mouse > Opera Standard.
  • Edit... Settings > Preferences... > Advanced > Shortcuts > Mouse > Copy of Opera Standard.
  • Search the Forward and Back input contexts and edit the appropriate button shortcuts to scroll left and scroll right.
  • Rename Settings > Preferences... > Advanced > Shortcuts > Mouse > Copy of Opera Standard as desired.

Launching an external browser

If Opera does not display a site well, a workaround is to launch the currently displayed page in an external browser.

Note: The following method appears to be deprecated in favor of the built-in Open With menu accessed via the right mouse button.
  • Set the following line under [Site Navigation Toolbar.content] in $HOME/.opera/toolbar/standard_toolbar.ini:
Button0, "Chromium"="Execute program, "chromium, "%u", , "Chromium""
  • If Firefox is desired, or preferred:
Button0, "Firefox"="Execute program, "firefox", "%u", , "Firefox""
  • Any number of command-line options may be included in the string:
Button0, "Chromium"="Execute program, "chromium --block-nonsandboxed-plugins --disable-java --incognito --safe-plugins --start-maximized --user-data-dir=/tmp/.chromium", "%u", , "Chromium""

Opera crashes when starting or closing with GTK+ 2.24.7+

If this crash occurs, you can work around it by changing the DialogToolkit option to 4:

opera:config#FileSelector|DialogToolkit

This will disable GTK+ styling support and hence avoid the issue.

See Also