Chapter 1. Hitting the Ground Running with Firefox

This chapter seems somewhat out of place with an advanced book such as this one. However, we have to start somewhere. Installing any application means that we first must have the product to install. We are going to work with several products in this book. Firefox is available from a few locations; however, I strongly recommend that you use http://www.mozilla.org/ as a starting point.

Caution

Careful! Do not confuse the site www.firefox.org with Mozilla or the Firefox web browser. This site is actually the site of a web designer and is not connected with Mozilla!

The Internet and Web have made this world of ours smaller. We, as Internet users, should try to accommodate people from various countries. Most of us speak English, but not everyone speaks it. Many other languages are spoken throughout the world.

If you want a language other than the default (English), click the hyperlink on the Mozilla site for Other Systems and Languages. This enables you to download Firefox Windows, Mac OS X, and Linux i686 versions in a number of languages. More languages are added from time to time, and if the language you are interested in is not listed, maybe you can do the translation!

Note

What should you do if the Mozilla product you are interested in does not support your language? This is where Open Source becomes valuable—you can convert (and translate) the application as needed for your language. I won’t say this is easy to do, but that is how these products support languages they were not originally written for. You could see how others have done this type of translation and do yours the same way. You should use a system that enables you to transport your language modifications to newer versions of the product as they appear.

Installing Firefox

The installation of Firefox is easy. You first must download the latest version of Firefox from the Internet. Start at http://www.mozilla.org/products/firefox/ and download the product. Figure 1.1 shows the download area on the Mozilla web page. This download section has a green background. Click Free Download.

The Mozilla Products page for Firefox.

Figure 1.1. The Mozilla Products page for Firefox.

The download starts automatically, and you see a prompt asking whether you want to save or run the downloaded file. Select Save (saving allows you to have a copy of what is installed on your computer should you ever need to reinstall with the saved version).

Note

Some versions of Windows, and other operating systems, provide somewhat different prompts. Follow the prompts to save (not run) the product to a location on your hard drive.

Windows presents the Save As dialog box next. The default name is the product name (Firefox), the word Setup, and the version number:

Firefox Setup 1.5

It is best to create a folder for the Mozilla products and subfolders for each individual product. For example, in your My DocumentsMy Downloads (create it if you do not have a My Downloads folder), create a folder called Mozilla and then a subfolder called Firefox. With a broadband connection (DSL, cable, or T1), the download takes about 30 seconds, whereas a typical dial-up line takes about 16 minutes.

Note

To save or to open? That is the question. With downloads of executable software, Windows gives you a choice of opening or saving the file. My personal preference is to save the file in the My Downloads folder. Then if I need to reinstall it, I don’t have to download the file again. Sometimes you need to fix minor glitches. When doing so, be sure you always reinstall the same version of files when making these simple fixes. (Yes, I know, you never delete or overwrite a file by mistake, but things do happen.)

Windows

Let’s do a Windows installation of both Firefox and Thunderbird. Starting with Firefox, the first step is to go to the Mozilla website. Mozilla has done a good job of designing its site, and the site can determine the operating system you’re using. You can override this behavior if you want and force a download of any version for any platform of Mozilla’s products. We are lucky because we can just work with Firefox’s Windows release.

Under Windows, Firefox’s installation program is a self-extracting compressed file. You will see some notifications about uncompressing the files; these notifications are closed when the process is complete. Once uncompressed, the installation program runs.

The first of a number of dialog boxes (windows) displayed by the Firefox setup is the welcome screen (see Figure 1.2). This screen provides information as to which version of Firefox you are installing and a suggestion that you close other Windows applications that are running. After closing any unnecessary applications, click the Next button.

Mozilla Firefox Setup Welcome screen—note the version number for your installation.

Figure 1.2. Mozilla Firefox Setup Welcome screen—note the version number for your installation.

The second window shows the Firefox license agreement. You must accept this agreement to be able to install Firefox. If you decide you cannot accept this agreement, your only option is to end the installation. (You probably would not be reading this book if you didn’t already realize that you would have to accept a license agreement.) Check the I Accept option button, and click Next.

There are two setup types for Firefox (see Figure 1.3). The default, Standard, installs Firefox with the most common options selected. As an advanced user, select Custom instead of Standard; then click Next.

As an advanced user, you can do a custom installation that enables you to specify developer support.

Figure 1.3. As an advanced user, you can do a custom installation that enables you to specify developer support.

Most Windows applications install in the Program Files folder. Firefox is no exception to this rule and by default installs in the folder Program FilesMozilla Firefox (see Figure 1.4). This folder is automatically created if it does not already exist.

It is recommended that you keep the default installation location.

Figure 1.4. It is recommended that you keep the default installation location.

Because you selected Custom options (refer to Figure 1.3) Because you selected Custom options, the Firefox installation program displays the Select Components dialog box (see Figure 1.5). There are (at this time) three options:

  • Developer Tools—Select Developer Tools to modify Firefox. If you do not need these tools, they will be unobtrusive.

  • Website reporter—You can report broken websites with Firefox 1.5’s broken website reporter feature.

  • Quality Feedback Agent—This option is more for Mozilla than for you. Mozilla uses this feature to get feedback about usage and performance whenever Firefox crashes. The information returned is anonymous and cannot be linked to a user, and the Quality Feedback Agent asks permission before sending anything to Mozilla.

Custom options are important, so be sure Developer Tools and Website Reporter are selected. The Quality Feedback Agent won’t hurt if it is installed. Other options or components might be added to Firefox as the product develops. If this is the case, simply use your best judgment as to whether to install them.

Figure 1.5. Custom options are important, so be sure Developer Tools and Website Reporter are selected. The Quality Feedback Agent won’t hurt if it is installed. Other options or components might be added to Firefox as the product develops. If this is the case, simply use your best judgment as to whether to install them.

When Firefox installs, it offers to create shortcuts on the desktop, Start menu, and Quick Launch bar (usually at the left end of the taskbar). Unlike Mozilla Suite or Netscape 7.x, there is no Quick Start (Turbo Launch) for Firefox.

At this stage, Firefox is ready to install (yes, all the previous work was just in preparation for the actual install). The dialog box shows which options, components, and locations you have selected. Click Next to begin the actual installation.

When the installation has completed, Firefox’s installation program displays options in a window similar to Figure 1.6.

You should launch Firefox when the installation completes.

Figure 1.6. You should launch Firefox when the installation completes.

It won’t hurt to use Mozilla’s web page for Firefox as your home page (the alternative is the Firefox Google search page). Later, you can change it to a different location. The other option, Launch Mozilla Firefox Now, starts Firefox when the installation program exits. By choosing to launch Firefox you take care of the final configuration of Firefox.

Whenever you click a web hyperlink, the default browser is launched. Your default browser is most likely Internet Explorer, which is not what we want. Fortunately, when you launch Firefox, the browser displays a dialog box that enables you to specify that Firefox will be the default browser. Click Yes in this box and check the Always Perform This Check When Starting Firefox box (see Figure 1.7). If Internet Explorer ever changes your default browser, Firefox prompts you to change it back to Firefox.

The message box and the option to make Firefox the default browser: Click Yes.

Figure 1.7. The message box and the option to make Firefox the default browser: Click Yes.

After you get past the default browser check, Firefox is up and running. If Firefox fails to run, your user profile might have become corrupted. Start Firefox by clicking the Start button, selecting Run, and typing the command Firefox –profilemanager. Then try creating a new profile. (Any extensions and themes you have installed will have to be reinstalled if you create a new profile.)

Firefox also might ask whether you want to import settings from Internet Explorer. Generally this is a good idea because it reduces the time needed to set up Firefox the way you like it. If Firefox does not prompt you to import settings, after it starts, click Files, Import from Firefox’s main menu.

You should download the file from Mozilla again and try reinstalling Firefox. If this fails a second time, consider the possibility that your Windows installation has been damaged in some way. (This is rare, but it is possible that some other program has changed something in the Windows configuration, causing Firefox to fail.)

Linux

First, there are a number of versions of Linux. They are generally standardized, but you will find differences between the various versions. I currently use a version of Linux from Novell that is also known as SUSE Linux. (SUSE was acquired by Novell a few years ago.)

Note

Suse, SuSE, SuSe, SUSE, and other permutations of the name are common. They are all the same product.

What you see after installing Linux depends on which user interface you choose at setup/installation time. Other versions of Linux offer other user interfaces (virtually all are based on the same basic concepts and code but are customized or enhanced by the publisher).

Throughout this book, I will be using Novell SUSE Linux. If your version of Linux is from another source, you will probably see some slight differences between my screen shots and what your screen looks like. But don’t worry—you’re smart, you’ll figure it out.

First, go to the Mozilla home page (see Figure 1.8). Mozilla.org is smart enough to check which operating system you are using and adjust accordingly. If, for some reason, you don’t get the Linux version of the Mozilla home page, you can still navigate to an acceptable download page by clicking Other Systems and Languages located at the bottom of the green Free Download part of Mozilla’s home page. (There are many routes to the Firefox main download page with all versions and languages.) Download Firefox for Linux.

Mozilla’s home page shows the default download for Linux.

Figure 1.8. Mozilla’s home page shows the default download for Linux.

Continuing with the web-based download, you must next select the file you want. A window pops up and asks whether you want to open the file or save it (see Figure 1.9). As always, I suggest that you save the file to your download folder (or whatever folder you want).

When downloading, it is best to save to disk rather than opening the file.

Figure 1.9. When downloading, it is best to save to disk rather than opening the file.

The download manager shows the progress of the download (see Figure 1.10). The download manager also lists other recently downloaded files if the Clean Up button has not been recently clicked.

With a high-speed Internet connection, download progresses quickly.

Figure 1.10. With a high-speed Internet connection, download progresses quickly.

When the download completes, your My Downloads folder opens. Most file compressions are done using GZip. The file-roller utility is used to open and then decompress your Firefox file. This utility looks similar to that shown in Figure 1.11.

Using file-roller enables you to open the compressed file and decompress the contents while restoring the original file and folder structure.

Figure 1.11. Using file-roller enables you to open the compressed file and decompress the contents while restoring the original file and folder structure.

Tip

file-roller enables you to create a container folder to hold the files you extract. Name and place this folder so that you will be able to find it at a later time. I place application installation programs and folders as subfolders in my bin folder. You can choose another location, although I recommend you be consistent about your choices.

Simply click Extract and file-roller displays the Extract window. You’ll extract all the files (see All Files in the lower left of Figure 1.12) and choose to re-create folders (to the right of Files). This ensures that the folder structure remains intact. When you’re happy with the options and the location to which you are extracting, click the Extract button.

Extracting to a new location enables you to continue with the Firefox installation.

Figure 1.12. Extracting to a new location enables you to continue with the Firefox installation.

After file-roller completes its job, the folder you extracted to is opened. It should contain a subfolder named firefox-installer. Open the firefox-installer folder and you’ll see eight items, including an executable (see the icon in Figure 1.13).

Run the firefox-installer program in the top row, the third icon on the right in this example.

Figure 1.13. Run the firefox-installer program in the top row, the third icon on the right in this example.

Installing Firefox is as simple as running the firefox-installer program! The installer begins and presents a welcome screen. This screen is relatively standardized for each platform on which Firefox is installable. The only important thing to do is to confirm that the installer will install the correct version of Firefox. The version is shown in the line directly below the title.

When you are sure the version is correct (that is, it matches the version that was downloaded), click the Forward button to proceed to the next step in the installation. Many of today’s programs present a license the user must accept to be able to continue with the installation.

Caution

I strongly recommend reading all license agreements presented by programs you are installing, and be sure to abide by the terms of the license agreement. Even though it is unlikely that any software maker would sue a single user for violating the license agreement, it has happened several times that I know of! Accepting the license is a contract, and once you click Accept (or otherwise indicate your acceptance of the license), you are bound by that license.

After you’ve accepted the license, the Firefox installation program continues. The next stage in this process is to choose the setup type (see Figure 1.14). We are advanced users and will be doing many things with Firefox in the future. Because of this, it is best to select Custom as your installation type.

Select the custom installation option.

Figure 1.14. Select the custom installation option.

Selecting the custom installation causes another window to display; it allows you to select setup options. With Firefox there are three options:

  • Developer Tools—this option is important to anyone who will be doing development on Firefox. This is the case for us, so we make sure that this option is selected.

  • Website reporter—When you find a website that doesn’t display or work correctly in Firefox, you can automatically generate a report that will be sent to Mozilla with information about that website.

  • Quality Feedback Agent—this installs an add-on component that is able to give Mozilla information about how Firefox is running. This feedback is anonymous, and I recommend selecting it. This will allow Mozilla to improve Firefox and fix problems that users find.

Again, after you have set the options, just click Forward (see Figure 1.15).

Select (turn on) Developer Tools, Website Reporter, and Quality Feedback Agent when you install Firefox.

Figure 1.15. Select (turn on) Developer Tools, Website Reporter, and Quality Feedback Agent when you install Firefox.

After you have selected your options and moved forward, the final installation occurs. The default (and unchangeable) location to install Firefox is the same folder from which you launched the Firefox installation program. (Now you see why I put it in the Bin folder.) Confirm that your options are correct and make a mental note of where Firefox is being installed; then click the Install button.

After the installation is complete, the installer checks to see whether the newly installed version of Firefox is the default browser. Generally it is not (although an earlier version of Firefox might be the default browser). A default browser message box displays, allowing you to set Firefox as the default browser. Another option in this message box allows you to have this test performed each time Firefox starts. Unless you will not be using this browser installation, select Yes. (You might not want this because you might be installing to do a few temporary tests of some feature or change you have made.)

Finally, Firefox starts, taking you to Firefox Google, the default start page (see Figure 1.16). Of course you can change the default page if you would like.

Firefox is running, and first goes to the Firefox home at Google.

Figure 1.16. Firefox is running, and first goes to the Firefox home at Google.

At this time, Firefox is installed on your Linux computer. It’s now time to do a final few housekeeping tasks, such as transferring bookmarks and making Firefox work well (as well as possible) with Internet Explorer and other browsers.

Understanding Bookmarks and Favorites

Firefox allows you to import favorites (those sites that are displayed when you click the Internet Explorer menu item Favorites) from Internet Explorer. Let’s first look at how Internet Explorer stores your favorites.

Internet Explorer’s Favorites

Windows has the capability to store more than files and folders on the disk. One non-conventional object stored in a folder is a link (which Windows usually calls a shortcut). Windows has a location named My Documents where the user’s personal documents and information are stored.

A link is one of the following:

  • A pointer to a file or folder—The link might have its own icon, or it might be customized. Changes you can make include changing the target executable or location, changing the icon, setting some relatively unimportant (in the context of this book) advanced options, and enabling security and compatibility.

  • A web URL—Web URLs are stored or saved as shortcuts or link objects. A URL shortcut allows modification of the actual URL and the displayed icon. As with file or folder shortcuts, security is also available as an option in the Properties window.

  • A special shortcut—There are some special shortcuts that exist. Basically, they take a program’s globally unique ID (GUID) as their target name. Windows then looks up the GUID in the Registry and launches the correct application. By default, some of the shortcuts on the Start menu (such as Control Panel) are of this type.

Note

Internet Explorer calls them favorites, but Firefox calls them bookmarks. Regardless of the name, and how they are stored or saved, they are the method by which you open web pages without typing the entire URL.

Also, an important part of Windows XP’s multiuser capabilities is a folder in the root of the C: drive, called Documents and Settings. Contained in the Documents and Settings folder are subfolders for each user and two special folders:

  • All Users—This folder contains items that are common to all logged-on users. When an application is installed that is going to be available to all users, it places a shortcut to its executable in the All Users folder’s Start menu. In fact, All Users contains most of the folders that all other users have, and Windows simply merges (so to speak—they don’t actually mix) your folder in Documents and Settings and the All Users folder.

  • Default User—This folder contains data for any users who are not logged on. (If this seems impossible, remember that it is technically possible to use Windows without logging on.) Most installations of Windows have relatively empty Default User folders.

Each user’s files and personal “stuff” is contained in her folder that is contained in the Documents and Settings folder. Say the current user has the user ID Smith. Her files are therefore in Documents and SettingsSmith. Smith’s folder contains a number of subfolders, some that are visible and some that are hidden. The visible subfolders include (but are not limited to) My Documents (although it might be called Smiths Documents), Desktop, Start Menu, and Favorites.

The Favorites subfolder is used by Internet Explorer (and perhaps other programs that use favorites) to hold the user’s favorite locations. (Firefox uses bookmarks for the same purpose.) The Favorites folder contains shortcut URLs that are used in Internet Explorer’s Favorites feature. The shortcuts and subfolders in Favorites are easily backed up and copied to other users.

Firefox’s Bookmarks

Firefox is very different from Internet Explorer. Firefox has its own way of doing things, and that includes bookmarks. Firefox’s bookmarks do store the same type of information as Internet Explorer’s favorites, however.

Why doesn’t Firefox use URL shortcuts? Because Firefox is a multiple-platform program that runs on different hardware and operating systems. Not all operating systems allow for Windows’s URL shortcuts.

Tip

The Application Data folder is a hidden folder. To see this file in Windows Explorer, you need to turn on the display of hidden files. To turn on viewing of hidden folders and files, select Tools, Folder Options in Windows Explorer; then click the View tab and, under Advanced Settings, click Show Hidden Files and Folders.

Firefox stores your bookmarks in an HTML page, and this web page is stored in your Documents and Settings subfolder:

C:Documents and SettingsUserIDApplication Data
MozillaFirefoxProfilesidentifierookmarks.html

In the previous location, UserID and identifier are unique to the user. UserID is the logon name for that user (see the previous for how Documents and Settings is set up). identifier is a unique name, consisting of two parts—the first part is a set of random numbers and letters followed by a dot and the word default. For example, on one of my computers this location is 08ka9s3i.default. Those eight random characters are one of the ways that Firefox keeps your user profiles secure.

Tip

With Internet Explorer, you can back up favorites with any backup tool, copying the backup to a disk (or CD-R) or some other safe location. In Firefox you back up your bookmarks by starting Firefox’s Manage Bookmarks; then in the Bookmarks Manager, select File, Export. Firefox then writes a copy of bookmarks.html to the location you specify.

You can open the bookmarks.html file that is in your profile using any compatible editor. But I don’t advise this! Leave this file alone, at least until you are more experienced. Instead, let Firefox maintain this file.

Transferring Internet Explorer’s Favorites to Firefox

There are two paths to importing Internet Explorer’s bookmarks into Firefox.

The first method is to select File, Import from Firefox’s menu. This starts the Import Wizard; you then need only follow its prompts. By default, the Import Wizard imports everything it can from Internet Explorer. If you want to import only Internet Explorer’s favorites into Firefox’s bookmarks, uncheck the other items.

The second way to import Internet Explorer favorites is to follow the steps in the following section, “Synchronizing with Internet Explorer.” Mozilla Suite/Netscape 7.x users can use the following technique to import data into their bookmarks:

  1. In Firefox, select Manage Bookmarks under Bookmarks in Firefox’s menu. This displays the Bookmarks Manager window Figure 1.17.

    The full-featured Bookmarks Manager uses multiple panes to show bookmark information.

    Figure 1.17. The full-featured Bookmarks Manager uses multiple panes to show bookmark information.

  2. In the Bookmarks Manager, select File, Import. This displays the Import Wizard window (see Figure 1.18).

    The Import Wizard lets you choose where to import data from.

    Figure 1.18. The Import Wizard lets you choose where to import data from.

  3. After selecting Microsoft Internet Explorer, click Next. The Import Wizard looks in the location for the current user’s Internet Explorer favorites and imports them. When importing from Internet Explorer, a new bookmark folder is created with the name From Internet Explorer. When the import has completed, click Finish and the import is done. Inspect the imported favorites in Bookmark Manager to ensure that all the desired objects have been imported.

Synchronizing with Internet Explorer

You can synchronize with Internet Explorer at any time. You might do this because you are using both browsers, or perhaps you want to import more than just Internet Explorer’s favorites. Firefox allows importing options, cookies, history, and passwords as well. (Notice, I’m not saying the reverse is possible—there is no way to import these items back into Internet Explorer!)

In Firefox, select File, Import from the menu. This launches the Import Wizard, which guides you through the import process.

Note

Firefox imported from Internet Explorer, Netscape, Mozilla, and Opera at the time this book was written, but additional import support will be added in future releases. Not all the choices are available on all platforms.

Firefox supports importing only from installed browsers. If you are trying to import from a browser that is not installed on your computer, you might be out of luck. (If your browser is not supported, there is nothing preventing you from writing your own Import Wizard to import from a different browser.)

The first window of the Import Wizard specifies from where you are importing. For Internet Explorer users, the choice is Internet Explorer, which is selected by default. Click Next.

Import Wizard displays a second window, allowing you to specify what you want to import (see Figure 1.19).

The Import Wizard imports more than bookmarks; any combination can be chosen.

Figure 1.19. The Import Wizard imports more than bookmarks; any combination can be chosen.

You can select, or not select, each of these options. This enables you to synchronize with certain aspects of another browser and to not synchronize with others. (Items in the Import list in Figure 1.19 can vary from browser to browser and platform to platform.)

After you have selected those items to import, click Next. The Import Wizard displays the Import Complete window (see Figure 1.20). Review the list of successful imports, and then click Finish.

The Import Manager shows what was successfully imported.

Figure 1.20. The Import Manager shows what was successfully imported.

Making Firefox the Default Browser

During installation you can tell Firefox to check whether it is the default browser and, if it is not, to set itself as the default browser. What you don’t see is that Firefox and Internet Explorer can duel over who is the default browser!

This happens whenever you check Always Perform This Check When Starting Firefox in Firefox and select Tools, Internet Options, Internet Explorer Should Check to See Whether It Is the Default Browser in Internet Explorer.

With both selected, whenever the nondefault browser starts, it checks and prompts you to change the default to itself. Because both Internet Explorer and Firefox are checking, they can switch back and forth between both.

Is this good? Sometimes it is—for example, if one browser isn’t working properly, you might need to rely on the other to surf the Web until you fix the broken one. However, I find that unchecking the option in both browsers, or at least in Internet Explorer, is best. (No matter which browser is set as the default, the other can still be used.)

Installation and Configuration Secrets for Power Users

  • A smart user backs up her profile. This can be done by simply copying the profile or, even better, using the MozBackup program.

  • Keeping a copy of the installation package on your computer makes reinstalling Firefox much easier.

  • There is no reason not to be able to use both Firefox and Internet Explorer together. Even though only one can be the default browser, the other is still usable.

  • All your personal settings are stored in the Firefox profile. If the profile becomes corrupted, it can cause Firefox to fail to run.

  • The Firefox Profile Manager enables you to create new profiles.

  • Under Windows XP and Windows 2000, each user has her own profile. This allows customization of Firefox on shared computers. Firefox always loads the correct profile for the user.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.255.44