Opera: Difference between revisions

From OLPC
Jump to navigation Jump to search
(adding link to new page)
m (opera:config#UserPrefs|EnableExtendedKeyboardShortcuts)
Line 120: Line 120:
* 9/0 zooms page out/in
* 9/0 zooms page out/in
* z/x navigates back/forward in history
* z/x navigates back/forward in history
* ctrl t open a new tab
* ctrl t opens a new tab
* 1/2 cycles left/right through open tabs
* 1/2 cycles left/right through open tabs
* ctrl l focus and highlight the page url
* ctrl l (lowercase L) focuses and highlights the page URL


Note that these are not enabled by default in Opera 9.5 preview builds. You can enable them by selecting the menu "Tools" then "Preferences". Select the "advanced" tab (the rightmost one) and then "shortcuts" (the bottom option in the left-hand panel).
Note that these are not enabled by default in Opera 9.5 builds. You can enable them by selecting the menu "Tools" then "Preferences". Select the "Advanced" tab (the rightmost one) and then "shortcuts" (the bottom option in the left-hand panel).


Then select "enable single key shortcuts".
Then select "Enable single-key shortcuts".


Alternatively, use this pseudo-link opera:config#UserPrefsEnableExtendedKeyboardShortcuts from within Opera.
Alternatively, use this pseudo-link opera:config#UserPrefs|EnableExtendedKeyboardShortcuts from within Opera.


===Handheld Mode===
===Handheld Mode===
Line 154: Line 154:
After selecting the command, just click on the search field to commit the previous command.
After selecting the command, just click on the search field to commit the previous command.


When you're all done, click "OK". Note that a new "Keyboard setup" set has been added with "(Modified)" added to it. This should be hi-lite to indicate it is the active keymap set. The original keymap set should still be in the list and you can always revert to it - whichever is hi-lited when you click "OK" is the active keyset.
When you're all done, click "OK". Note that a new "Keyboard setup" set has been added with "(Modified)" added to it. This should be highlighted to indicate it is the active keymap set. The original keymap set should still be in the list and you can always revert to it - whichever is highlighted when you click "OK" is the active keyset.


The end result of this is that the up and down arrows on the directional pad scroll up and down, the buttons on the gamepad spatially select links on a page (try it to see what that means), the right arrow "clicks" the selected link, and the left arrow goes back one page.
The end result of this is that the up and down arrows on the directional pad scroll up and down, the buttons on the gamepad spatially select links on a page (try it to see what that means), the right arrow "clicks" the selected link, and the left arrow goes back one page.

Revision as of 16:50, 12 June 2008

This page describes third-party software that does not meet the OLPC standards for software freedom. The use of such software is unsupported; OLPC does not endorse or encourage its use.

Activity-opera.svg

Opera OLPC Edition

Opera has made a special Opera OLPC Edition package. Screenshots are available here.

You can also run Opera without Sugar.

Opera is more than a secure web browser, it's also an RSS and Atom feed reader, bittorrent client, email client, and IRC client. It also has many keyboard shortcuts that make navigating on the XO easy.

Installing Opera

There are two parts to installing Opera on the XO:

  1. install the "Opera RPM"; this step is required.
  2. install the "Opera activity"; this step is optional.

Installing the Opera RPM

Before you begin, make sure you are connected to the Internet via the XO's Wifi Connectivity.

Then from the Terminal Activity Activity-terminal.svg:

1. Download and install Opera by typing the following rpm commands (You need "root" privileges, hence the "su -" command):

Note - After typing the su - command, you will have a prompt similar to "-bash-3.2#" Type the rpm command at this command prompt.

su -  
rpm -vi http://snapshot.opera.com/unix/olpc-544/opera-9.12-20070122.10-static-qt.i386-en.rpm
exit

After the rpm command, it will display "Retrieving http://snapshot.opera.com..." but you won't get any other confirmation that something is happening. Give it some time (~5 mins - will vary by connection speed) and then it'll say "Preparing packages for installation..." after a bit more, then a final "-bash-3.2#" and you're good to go. (Can someone formalize this paragraph? I cut it off three times, thinking it'd stalled. TIA!) Be sure to wait for the final "-bash-3.2#" as that is the signal that the installation is complete.

If you see an error message such as:

error: skipping http://... - transfer failed - Unknown or unexpected error

chances are you are either not connected to the Internet or you made a typo.

If you see an error message such as:

error: can't create transaction lock on /var/lib/rpm/...

you probably forgot to "su" before the "rpm" command.

2. Make sure to exit the root process:

exit

3. Run Opera by typing:

opera

The first time you run Opera, you will be asked to accept the copyright... so click the I accept button to continue. There is another screen of information, and another click before you are in browsing mode.

You exit Opera by going to the Home view (Home key f3 small.png) and clicking on the Stop entry in the hover menu over the gray circle that appears in the Activity circle.

After selecting "stop" for Opera on the Activity circle, the Terminal activity displays and I got a couple of error messages ".. cannot be preloaded: ignored." but it had happily launched Opera which seems to run fine. (not sure what might not work later...)

ERROR: ld.so: object 'libjvm.so' from LD_PRELOAD can not be preloaded: ignored.
ERROR: ld.so: object 'libawt.so' from LD_PRELOAD can not be preloaded: ignored.

You can follow the instructions below to install Opera as a Sugar activity or run it from the Terminal activity as per above.


This installs the OLPC Edition, a snapshot of version 9.12. To learn about the most recent builds of Opera, check the Opera desktop blog and select the statically linked rpm packages for Unix/intel-linux.

If you are having trouble with rpm, try grabbing a "tarball" with wget:

wget http://snapshot.opera.com/unix/olpc-544/opera-9.12-20070122.10-static-qt.i386-en-544.tar.bz2
tar xvf opera-9.12-20070122.10-static-qt.i386-en-544.tar.bz2
cd opera-9.12-20070122.10-static-qt.i386-en-544
su -
./install.sh
exit

Installing the Opera activity

The Opera activity is not yet packaged as an XO bundle, so the installation process is a bit more complicated than we'd like.

In order for Opera to appear in the list of activities on the Frame taskbar, an extra set of files must be installed. Again, be sure your Internet connection is working; from the Terminal activity Activity-terminal.svg:

1. create the directory /home/olpc/Activities

mkdir /home/olpc/Activities

If the directory already exists, you may get an error message, which you can ignore:

mkdir: cannot create directory 'Activities': File exists

2. go to /home/olpc/Activities

cd /home/olpc/Activities

3. download the Opera activity

wget http://people.opera.com/howcome/2007/olpc/opera-activity.tar.gz

You may see similar error messages as described above, for similar reasons.

4. install the Opera activity

tar xvzf opera-activity.tar.gz

5. clean up

rm opera-activity.tar.gz

In order for the change to take effect, restart Sugar (Ctrl+Alt+erase). You should see the Opera icon Activity-opera.svg on the taskbar (you may have to scroll to the right in order to find it).


Note: There is at present an incompatibility between the Opera activity and the OLPC Rainbow security system on some builds. If when you launch the Opera activity, the screen goes blank and stays blank, you have likely encountered that incompatibility. The current work-around is to launch Opera from the Terminal activity by typing:

opera

The Opera activity files have been developed by the CERTI Foundation, a R&D foundation in Brazil that is testing the OLPC's XO for the Brazilian government. We are grateful to João Bosco A. Pereira Filho and Gustavo Maestri for their work on this.

Keyboard Shortcuts

Opera offers keyboard shortcuts that may come handy:

  • q/a navigates up/down in links
  • w/s navigates up/down in headings
  • 9/0 zooms page out/in
  • z/x navigates back/forward in history
  • ctrl t opens a new tab
  • 1/2 cycles left/right through open tabs
  • ctrl l (lowercase L) focuses and highlights the page URL

Note that these are not enabled by default in Opera 9.5 builds. You can enable them by selecting the menu "Tools" then "Preferences". Select the "Advanced" tab (the rightmost one) and then "shortcuts" (the bottom option in the left-hand panel).

Then select "Enable single-key shortcuts".

Alternatively, use this pseudo-link opera:config#UserPrefs|EnableExtendedKeyboardShortcuts from within Opera.

Handheld Mode

To browse effectively with the OLPC in handheld mode, you'll need to configure some shortcuts manually. Click the "O" icon in the top-left corner of the Opera interface, then select "Tools>Preferences". From there, go to the "Advanced" tab and select "Shortcuts" in the pane on the left.

Click the "Edit" button in the bottom set of buttons to edit your keyboard shortcuts. Select "Application" from the list and click the "New" button on the top right to add a key mapping. An editable field will be opened. To add this keymap:

  • Left -> Back (That is, map the "left" key to the "back" command)

type the key descriptor "left" in the 1st field then hit "tab" to go to the second field and type in the command "back". As you type the command a list of all valid commands that include this word will be populated and you can select the command from the list at any time. After the command is complete, hit "enter" to complete the entry. Repeat a similar process starting with the "New..." button for:

  • Right -> Open Link

Next you will redefine some existing keymaps. Use the search box on the top left of the window to find the following keys. Several instances of a keymap will be listed, according to the context. We're interested in redefining the "Browser Widget" keys. Select that entry from the search list and hit the "Edit" button (or double click on the entry) and type the key descriptor to redefine:

  • PageUp -> Navigate Up
  • PageDown -> Navigate Down
  • Home -> Navigate Left
  • End -> Navigate Right

After selecting the command, just click on the search field to commit the previous command.

When you're all done, click "OK". Note that a new "Keyboard setup" set has been added with "(Modified)" added to it. This should be highlighted to indicate it is the active keymap set. The original keymap set should still be in the list and you can always revert to it - whichever is highlighted when you click "OK" is the active keyset.

The end result of this is that the up and down arrows on the directional pad scroll up and down, the buttons on the gamepad spatially select links on a page (try it to see what that means), the right arrow "clicks" the selected link, and the left arrow goes back one page.

Low-Vision Use

If you have low vision then you may also like:

  • Home -> Zoom in, 15
  • End -> Zoom out, 15

which will allow you to use the horizontal gamepad keys to adjust the page's zoom. (Change the number 15 to change tho coarseness of the zoom.) In newer versions, after pressing the Edit button you may have to click on the "Advanced" section and then the "Browser widget" section and edit the existing Home and End entries, otherwise these browser widget entries will override any entries that you add to the main section.

In order to make zoom work consistently (rather than zooming some parts of the page and not others), go to Tools/Preferences/Advanced/Fonts and make sure that none of them are set to Charter. For some reason Opera doesn't seem to be able to zoom Charter very large (if at all). Try setting those fonts to DejaVu Serif instead.

In order to correctly calibrate the font and zoom sizes, you may want to quit Opera, edit ~/.opera/Opera6.ini and set ForceDPI to 200.

If you do not have any links to follow (e.g. you are just reading self-contained texts in the browser) but you do have multiple tabs open, then you may also like to try:

  • Left -> Cycle to previous page
  • Right -> Cycle to next page

so that pressing left and right will switch between tabs (these need to be changed in the Application section of the keyboard shortcuts editor; you might like to search for Tab as a starting point). There is a bug in the current version of Opera (not reported) : if you set this, then pressing left or right will behave as though you'd pressed Control-Tab but held down the control key; the menu of tabs will stay on the screen and no switch will actually take place until you press Control (or Alt) on the keyboard. You can work around this by opening the XO slightly so that you can reach the Control or Alt key (but if you're going to do that then you might as well press Control-Tab).

Known problems

  • Widgets are not yet usable - the transparency doesn't work (9.5 post-beta2 build 2008-05-09)
  • Opera is not fully integrated into the Sugar UI. In particular, the Opera process does not die when the activity is terminated. In order to terminate Opera, open a shell and run a "kill" command; or simply stop it using the stop option from the hover menu on the Activity circle in the Home view.
  • There is at present an incompatibility between the Opera activity and the OLPC Rainbow security system on some builds. If when you launch the Opera activity, the screen goes blank and stays blank, you have likely encountered that incompatibility.
  • When cycling through Activities, Opera may not restart. (Just hangs up.) Go to Sugar window and if there is a Black Circle in the Activity ring, click on that to return to Opera.
  • Due to the high pixel density, one "px" should probably be mapped to two pixels. Opera currently does not do this (what about the zoom feature? you could set default zoom to 200% in prefs). It helps to set opera:config#UserPrefs|ForceDPI to 200 and restart Opera, this will change fonts in the UI that are not previously set explicitly, as well as fonts in websites that are set with points.
  • Interface menu font is too small to be readily usable. You may be able to make the font slightly more readable by going to Tools -> Preferences -> Advaned Tab -> Fonts -> Interface Menu. Choose DejaVa serif, increase font to 16 and select bold for the weight.
  • Setting the Interface menu font (Tools -> Preferences -> Advanced -> Fonts -> Interface menus) to anything greater than 16 causes menu text to become unreadable. If you do this accidentally, you can return to the font menu by selecting the second to last category in the Menu drop down list, and then the last category in the sub-menu. You will be back in the Preference menu.
  • Cannot change main toolbar buttons. Tool bar will disappear and then on relaunching Opera it resets to default.
  • Keyboard (i.e. in writing webmail): accents don't work, é, à ü etc. ends as e´, a`...

Reporting Bugs

You can report bugs using the Opera Bug Wizard. For best results put [OLPC] into the field "Brief Summary..."

Third-party (plug-ins and Java)

Installing Flash in Opera

Installing Java in Opera

  • Download the JRE from http://java.sun.com and install it
    • Note that jre1.5.0_13 has been know to work, while jre-6u3 does not work on the XO. (See [1] for more on how to install the Java rpm).
  • Then you need to create a symbolic link in opera plugin directory
    • cd /usr/lib/opera/plugins
    • ln -s /path/to/javajre/lib/i386 (e.g., /usr/java/jrel.6.8/lib/i386)

Updating Opera

These instructions are based on the assumption that you already installed Opera using instructions similar to the above.

1. Find the newer version of Opera that you want to install from here: ftp://ftp.opera.com/pub/opera/linux. You'll want to find the file in a similar directory to this full link: ftp://anonymous@ftp.opera.com:21/pub/opera/linux/927/final/en/i386/static/opera-9.27-20080331.1-static-qt.i386-en.rpm. You will put the full link that you find in place of the full link below in the list of three commands.

2. Open the terminal activity on the XO, or ssh in from another machine.

Run these three commands:

su -  
rpm -vU ftp://anonymous@ftp.opera.com:21/pub/opera/linux/927/final/en/i386/static/opera-9.27-20080331.1-static-qt.i386-en.rpm
exit

(Note that the U makes the rpm command update the older install, so those files will be replaced)

After that, as long as you had Opera launching from an Activity, you should just be able to click on the Opera Activity and be in the newer version of Opera. To get the various features of Opera to be visible, right click on some of the surrounding area in the browser, and choose "Customize". It looks like the previously installed version of Flash isn't working, so hold off on this if Flash is a necessity.