Difference between revisions of "Opera"

From ArchWiki
Jump to: navigation, search
(UI appearance)
(Codeline and Filename -> ic)
Line 8: Line 8:
 
== Installation ==
 
== Installation ==
  
The {{Package Official|opera}} package can be found in the [[Official Repositories|official repositories]].
+
The {{Pkg|opera}} package can be found in the [[Official Repositories|official repositories]].
  
 
== Plugins ==
 
== Plugins ==
Opera can use Mozilla-based plugins; see [[Browser Plugins]] for details. The plugin path can be specified under {{Codeline|Settings > Preferences > Advanced > Content > Plug-in Options}}
+
Opera can use Mozilla-based plugins; see [[Browser Plugins]] for details. The plugin path can be specified under {{ic|Settings > Preferences > Advanced > Content > Plug-in Options}}
  
 
=== 64-bit Flash ===
 
=== 64-bit Flash ===
Install the {{Package Official|flashplugin}} package from the [[Official Repositories|official repositories]].
+
Install the {{Pkg|flashplugin}} package from the [[Official Repositories|official repositories]].
  
 
==Performance tweaks==
 
==Performance tweaks==
Line 37: Line 37:
 
  opera:config#UserPrefs|ShowE-mailClient
 
  opera:config#UserPrefs|ShowE-mailClient
  
* Start Opera without an [[Wikipedia:ARGB|ARGB]] (32-bit) visual, without [http://www.lirc.org/ LIRC] infrared control support and {{Codeline|mailto:}} links disabled:
+
* Start Opera without an [[Wikipedia:ARGB|ARGB]] (32-bit) visual, without [http://www.lirc.org/ LIRC] infrared control support and {{ic|mailto:}} links disabled:
 
  $ opera -noargb -nolirc -nomaillinks
 
  $ 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 [[Startup files#Shells|.bash_profile]], or for system-wide changes, to {{Filename|/etc/profile}}:
+
* 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
Line 63: Line 63:
  
 
=== Profile in tmpfs ===
 
=== Profile in tmpfs ===
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.
+
The default Opera profile is typically located in {{ic|$HOME/.opera}}. This profile can be relocated to an available [http://en.wikipedia.org/wiki/Tmpfs tmpfs] filesystem, including {{ic|/tmp}}, or {{ic|/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.
  
* At system startup, recursively copy the folder {{filename|/home/arch/.opera}} to {{filename|/dev/shm/.opera}} while preserving mode, ownership and file timestamps:
+
* At system startup, recursively copy the folder {{ic|/home/arch/.opera}} to {{ic|/dev/shm/.opera}} while preserving mode, ownership and file timestamps:
 
  #!/bin/bash
 
  #!/bin/bash
 
  #
 
  #
Line 94: Line 94:
 
  rsync -a /tmp/.opera/bookmarks.adr /home/bbs/.opera
 
  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 {{Codeline|-pd}} option to set the location of the alternative Opera preferences folder:
+
* In the case of [http://aur.archlinux.org/packages.php?ID=48680 opera-next], launch Opera with the {{ic|-pd}} option to set the location of the alternative Opera preferences folder:
  
 
  $ opera -pd /dev/shm/.opera
 
  $ opera -pd /dev/shm/.opera
Line 110: Line 110:
  
 
== Microsoft fonts and Opera ==
 
== Microsoft fonts and Opera ==
Configure fonts under {{Codeline|Settings > Preferences > Advanced > Fonts}}. If {{AUR|ttf-ms-fonts}} 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 font manager:
+
Configure fonts under {{ic|Settings > Preferences > Advanced > Fonts}}. If {{AUR|ttf-ms-fonts}} 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 font manager:
  
 
* Close all running instances of Opera.
 
* Close all running instances of Opera.
 
* Un-install the {{AUR|ttf-ms-fonts}} 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.
 
* Re-install the {{AUR|ttf-ms-fonts}} package, if desired.
 
* Re-install the {{AUR|ttf-ms-fonts}} package, if desired.
  
 
== UI appearance ==
 
== UI appearance ==
* To make the menus look integrated with Qt, install your preferred Qt4 theme and apply it by using {{Codeline|qtconfig}}.
+
* To make the menus look integrated with Qt, install your preferred Qt4 theme and apply it by using {{ic|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]
 
* 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]
* A nice gtk2 skin with tango icon theme can be found [http://my.opera.com/community/customize/skins/info/?id=6960 here]. Integrates very well to xfce4 and other gtk2 environments.
+
* A nice gtk2 skin with tango icon theme can be found [http://my.opera.com/community/customize/skins/info/?id=6960 here]. Integrates very well with Xfce4 and other gtk2 environments.
  
 
==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
Line 138: Line 138:
  
 
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 {{Codeline|Settings > Preferences... > General > Startup > Start without open tabs}}
+
* Set {{ic|Settings > Preferences... > General > Startup > Start without open tabs}}
* Clear any entries in {{Codeline|Settings > Preferences... > General > Home page option}}
+
* Clear any entries in {{ic|Settings > Preferences... > General > Home page option}}
* Enable {{Codeline|Settings > Preferences... > Advanced > Tabs > Additional tab options... > Allow windows with no tabs}}
+
* Enable {{ic|Settings > Preferences... > Advanced > Tabs > Additional tab options... > Allow windows with no tabs}}
  
 
== Java Support ==
 
== Java Support ==
Line 149: Line 149:
 
{{Note|If you want to use Java version 7, use the packages {{Pkg|jre7-openjdk}} and {{Pkg|icedtea-web-java7}} instead.}}
 
{{Note|If you want to use Java version 7, use the packages {{Pkg|jre7-openjdk}} and {{Pkg|icedtea-web-java7}} instead.}}
  
* Alternatively, install the proprietary, closed source [[Wikipedia:JRE#Execution_environment|Java Runtime Environment]] from Oracle from the [[AUR]]: {{Package AUR|jre}}
+
* Alternatively, install the proprietary, closed source [[Wikipedia:JRE#Execution_environment|Java Runtime Environment]] from Oracle from the [[Arch User Repository|AUR]]: {{AUR|jre}}
  
 
See [[Java#OpenJDK_JVM]] for additional details and references.
 
See [[Java#OpenJDK_JVM]] for additional details and references.
Line 159: Line 159:
 
{{Accuracy}}
 
{{Accuracy}}
  
1. Add to {{Filename|~/.bash_profile}}, or {{Filename|/etc/profile}} to make this setting affect all logins:
+
1. Add to {{ic|~/.bash_profile}}, or {{ic|/etc/profile}} to make this setting affect all logins:
 
  # openjdk
 
  # openjdk
 
  export LD_LIBRARY_PATH=/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server/
 
  export LD_LIBRARY_PATH=/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server/
 
  # jre
 
  # jre
 
  export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/
 
  export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/
Alternatively, create a symlink to {{Filename|libjvm.so}}:
+
Alternatively, create a symlink to {{ic|libjvm.so}}:
 
  # openjdk
 
  # openjdk
 
  cd /usr/lib/jvm/java-6-openjdk/jre/lib/amd64
 
  cd /usr/lib/jvm/java-6-openjdk/jre/lib/amd64
Line 184: Line 184:
  
 
=== Horizontal mouse wheel scrolling ===
 
=== Horizontal mouse wheel scrolling ===
Check {{Codeline|Settings > Preferences > Advanced > Shortcuts > Mouse > Middle-Click Options... > Enable horizontal panning}}
+
Check {{ic|Settings > Preferences > Advanced > Shortcuts > Mouse > Middle-Click Options... > Enable horizontal panning}}
  
 
or
 
or
  
* Highlight {{Codeline|Settings > Preferences > Advanced > Shortcuts > Mouse > Opera Standard}}
+
* Highlight {{ic|Settings > Preferences > Advanced > Shortcuts > Mouse > Opera Standard}}
* Duplicate {{Codeline|Settings > Preferences > Advanced > Shortcuts > Mouse > Opera Standard}}
+
* Duplicate {{ic|Settings > Preferences > Advanced > Shortcuts > Mouse > Opera Standard}}
* Edit... {{Codeline|Settings > Preferences > Advanced > Shortcuts > Mouse > Copy of Opera Standard}}
+
* Edit... {{ic|Settings > Preferences > Advanced > Shortcuts > Mouse > Copy of Opera Standard}}
* Search the {{Codeline|Forward}} and {{Codeline|Back}} input contexts and edit the appropriate button shortcuts to {{Codeline|scroll left}} and {{Codeline|scroll right}}
+
* Search the {{ic|Forward}} and {{ic|Back}} input contexts and edit the appropriate button shortcuts to {{ic|scroll left}} and {{ic|scroll right}}
* Rename {{Codeline|Settings > Preferences > Advanced > Shortcuts > Mouse > Copy of Opera Standard}} as desired
+
* Rename {{ic|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.
 
Opera does not display sites well at times. 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 {{Codeline|[Site Navigation Toolbar.content]}} 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""
  

Revision as of 06:01, 10 November 2011

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Opera is a web browser and Internet suite developed by 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.[1] Opera consumes approximately 36 MB installed on disk and is built for speed, incorporating numerous options and shortcuts to simply web tasks. :[1] "Opera_(web_browser)". Wikipedia. 19 Sep. 2010. Wikimedia Foundation, Inc. 22 Sep. 2010 <http://en.wikipedia.org/wiki/Opera_(web_browser)>.

Installation

The opera package can be found in the official repositories.

Plugins

Opera can use Mozilla-based plugins; see Browser Plugins for details. The plugin path can be specified under Settings > Preferences > Advanced > Content > Plug-in Options

64-bit Flash

Install the flashplugin package from the official repositories.

Performance tweaks

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.

  • Start Opera without the default system tray icon by unchecking the following option:
opera:config#UserPrefs | ShowTrayIcon

Other commonly disabled feature sets include but are not limited to:

Additional command-line options are available for further control over browser features and services:

  • Start Opera without the default internal e-mail client
$ opera -nomail
  • Alternatively, if you want to permanently disable the internal e-mail client without using "-nomail", you can uncheck the setting "Show E-mail Client" in opera:config
opera:config#UserPrefs|ShowE-mailClient
  • Start Opera without an ARGB (32-bit) visual, without LIRC infrared control support and mailto: links disabled:
$ opera -noargb -nolirc -nomaillinks

Improving Flash performance

  • 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

xinitrc example

#!/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

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

Profile in tmpfs

The default Opera profile is typically located in $HOME/.opera. This profile can be relocated to an available tmpfs filesystem, including /tmp, or /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.

  • At system startup, recursively copy the folder /home/arch/.opera to /dev/shm/.opera while preserving mode, ownership and file timestamps:
#!/bin/bash
#
# /etc/rc.local
#
cp -pR /home/USER/.opera /dev/shm
  • rsync can be used in place of the cp command:
#!/bin/bash
#
# /etc/rc.local
#
rsync -a /home/USER/.opera /dev/shm
#!/bin/bash
#
# /etc/rc.local.shutdown
#
rsync -a --delete /dev/shm/.opera /home/USER
  • To copy only bookmarks and session files back to the disk profile:
#!/bin/bash
#
# /etc/rc.local.shutdown
#
rsync -a --delete /tmp/.opera/sessions/ /home/bbs/.opera/sessions &
rsync -a /tmp/.opera/bookmarks.adr /home/bbs/.opera
  • In the case of opera-next, launch Opera with the -pd option to set the location of the alternative Opera preferences folder:
$ opera -pd /dev/shm/.opera
  • Any number of command-line options may be included in the string:
$ opera -newprivatetab -noargb -nolirc -nomail -nomaillinks -pd /tmp/.opera

Disabling Xft fonts

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
Note: In newer versions of Opera, this setting does not exist.

Microsoft fonts and Opera

Configure fonts under Settings > Preferences > Advanced > Fonts. If ttf-ms-fontsAUR 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 font manager:

  • 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.

UI appearance

  • To make the menus look integrated with Qt, install your preferred Qt4 theme and apply it by using qtconfig.
  • To make Opera use KDE icons, download a native skin such as fixed_window_skin
  • A nice gtk2 skin with tango icon theme can be found here. Integrates very well with Xfce4 and other gtk2 environments.

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.

  • Open the URL (if a URL is defined) in Opera with a private tab.
$ 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

Java Support

Note: Oracle's proprietary version of the JRE has been pulled from the [community] repository. Read here for more information.
Note: If you want to use Java version 7, use the packages jre7-openjdk and icedtea-web-java7 instead.

See Java#OpenJDK_JVM for additional details and references.

Troubleshooting

Java on Arch64

Tango-inaccurate.pngThe factual accuracy of this article or section is disputed.Tango-inaccurate.png

Reason: please use the first argument of the template to provide a brief explanation. (Discuss in Talk:Opera#)

1. Add to ~/.bash_profile, or /etc/profile to make this setting affect all logins:

# 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 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.

#openjdk
/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/
#jre
/opt/java/jre/lib/amd64/

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

Opera does not display sites well at times. 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 gtk2 2.24.7+

You can work around this for now by changing the DialogToolkit option to 4:

opera:config#FileSelector|DialogToolkit

This will disable Gtk styling support and hence avoid the issue. It will probably be fixed in the next Opera release (11.60+).

Additional Resources