Firefox2: Difference between revisions
Jump to navigation
Jump to search
Line 38: | Line 38: | ||
exit |
exit |
||
* If 'yum' prints out a few lines and stops, and the last line looks like "Please verify its path and try again", then your XO's WiFi isn't talking to the internet yet. |
* If 'yum' prints out a few lines and stops, and the last line looks like "Please verify its path and try again", then your XO's WiFi isn't talking to the internet yet. Check the [[Wifi_Troubleshooting_Guide]]. |
||
* Otherwise, 'yum' should churn away for a few minutes, downloading files from the internet and installing them. It'll print out quite a bit of information while it runs. |
* Otherwise, 'yum' should churn away for a few minutes, downloading files from the internet and installing them. It'll print out quite a bit of information while it runs. |
||
* Don't forget to type the 'exit' command after 'yum' finishes. |
* Don't forget to type the 'exit' command after 'yum' finishes. |
Revision as of 03:59, 20 January 2008
Requirements
- Development version (devel) of OLPC system
Installing Firefox 2.0
NOTE: Firefox needs at least 21 MB of free disk space to install. It will use considerably more disk space for cached files downloaded from the web.
Here are the instructions to install Firefox. It isn't as complicated as it looks. Take your time and read each instruction carefully. Be sure to note the spaces in the commands:
- Get the XO's WiFi connected to a wireless access point so the XO can download Firefox from the internet. Read more about how to do this at Wifi_Connectivity.
- Start the Terminal_Activity.
- When you see a prompt that looks roughly like "[olpc@xo-NN-NN-NN]$", start typing the following commands, pressing the <enter> key after each one:
- First, use the 'su' command to go into "superuser" mode. Be careful in this mode, as you can mess up your XO if you make a mistake.
su
- By default, the XO won't want to install Firefox. Use the Nano text editor to remove the restriction from the 'yum' control file:
nano /etc/yum.repos.d/olpc-koji-ship2.repo
- Find the line that looks like this (it should be the last line in the file) and use the arrow keys to move down to it:
exclude=firefox,seamonkey,mozplugger,kdebase,kernel
- Use the arrow keys and the <erase> key to delete "firefox," so the line looks like this:
exclude=seamonkey,mozplugger,kdebase,kernel
- Press the "ctrl" and the "x" key at the same time to exit from the 'nano' text editor.
- Press the "y" key to save your changes.
- Press the <enter> key to write out the file.
- Continue with the following commands:
- Run the Yum installer to do all the heavy lifting (downloading and installing Firefox):
yum -y install firefox exit
- If 'yum' prints out a few lines and stops, and the last line looks like "Please verify its path and try again", then your XO's WiFi isn't talking to the internet yet. Check the Wifi_Troubleshooting_Guide.
- Otherwise, 'yum' should churn away for a few minutes, downloading files from the internet and installing them. It'll print out quite a bit of information while it runs.
- Don't forget to type the 'exit' command after 'yum' finishes.
- To run FireFox for the first time, simply type in:
firefox
- It will take quite a while to start for the first time, since it has a lot of setup tasks to perform.
- FireFox may ask if you want to import any settings. You can select "None" and continue.
- FireFox will display this error message:
Firefox can't find the file at /usr/share/doc/HTML/index.html
- You can ignore this error.
- Click on the "Home" icon to go to the "Firefox Start" homepage. You're on your way!
Installing Flash 9 plugin
- Open a terminal as root
- Download the plugin file:
wget http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_9_linux.tar.gz
- Unpack the file:
tar xzvf install_flash_player_9_linux.tar.gz
- Run the flashplayer-installer and follow instructions:
./flashplayer-installer
Running the browser
- In a shell outside X (ctrl+alt+F1, ctrl+alt+F2, ...):
- As root, set an environment variable:
- export DISPLAY=127.0.0.1:0.0
- Execute the firefox with the user olpc:
- su olpc -c "firefox &"
- As root, set an environment variable:
- Through a shell in X (alt+=):
- just type firefox from there
Opening PDF using the Read activity
Open the Terminal activity and run:
wget http://zoehep.xent.com/~bsittler/Read
Then when you click on a PDF link tell Firefox to always open with /home/olpc/Read
Note: this launches the Read activity with full access to your account. Be sure you trust the activity completely before doing this!
Known Problems
- firefox is excluded from the repository on G1G1 machines. You must edit (as root) /etc/yum.repos.d/olpc-koji-ship2.repo to remove firefox from exclude list before installing with yum
- One way to do edit the file is to use the built-in Vi editor as follows (type commands without the quotes):
- Start the Terminal activity (this gives you a line like "[olpc@...]$ )
- Click in the window
- Type "su" and Enter for super user mode
- Invoke the Vi(M) editor: "vi" and Enter
- (You might find the Vi cheatsheet at: http://www.tuxfiles.org/linuxhelp/vimcheat.html to be of use)
- Load the file: ":e /etc/yum.repos.d/olpc-koji-ship2.repo" and Enter
- Use the arrow keys to move to the "f" of "firefox"
- Use the "x" key repeatedly to delete "firefox" and the following comma
- (If you get into a mode like insert that won't let you issue a command, use the circle-x key in the upper left corner of the keyboard to exit that mode.)
- Write the file out and quit: ":wq" and Enter
- Installation of Firefox 2 appears to use about 42 MB. The installation downloads about 35 MB.
- Performance issues
- It is not "sugarizable"
- Right-clicking in a flash closes the browser window