Moving from Windows to Linux

From MozillaZine Knowledge Base
Revision as of 00:27, 4 March 2008 by Rsx11m (talk | contribs) (→‎''openSUSE'': Basic Instructions)
Jump to navigationJump to search

This article is written for users who are moving from Windows to Linux and want to continue to use Firefox and/or Thunderbird. It can be used with any Linux distribution or window manager, but is somewhat Ubuntu-centric due to its popularity.

Most Linux distributions have a package manager that supports Thunderbird and Firefox. If you're using Ubuntu for example, you can use Synaptic to install it if it's not already installed. There is no need to use Automatrix or apt-get. This is the easiest and safest way to install the application, and will meet most users needs.

The trade off is that many Linux distributions only release updates for security fixes, since many companies don't want things to change. To help keep things stable, they will frequently disable Help -> Check for Updates, forcing you to wait for the next release of the Linux distribution for any new functionality.

How much of an impact this has depends upon the application. Mozilla strongly recommends you always update all of their applications (regardless of why a new version was released). However, most security updates for Thunderbird are for low priority issues that aren't a problem if you use common sense, while Firefox tends to have more serious security issues. This seems to explain why Ubuntu frequently releases updates whenever a new version of Firefox is available, but doesn't for Thunderbird.

Moving your profile data

  • Install Firefox and Thunderbird in Linux.
  • Find your existing Firefox profile and Thunderbird profile.
  • Copy the the contents of the Firefox profile over the profile in the ".mozilla/firefox" subdirectory in your home directory. Copy the contents of the Thunderbird profile over the profile in the ".thunderbird" subdirectory in your home directory. They are hidden subdirectories, you need to find a option in your file browser to display them. In both Gnome and KDE you can use "Show -> hidden files" to show directories that begin with a period. If you're dual booting many distributions provide read-only access to your NTFS partition in the file manager, you don't have to copy the profile to some type of removable media.
  • Your package manager typically adds a menu command to run Firefox and Thunderbird when it installs them. For Ubuntu, its at Applications -> Internet.

If the application doesn't start type slocate run-mozilla.sh in a terminal. It should return the directories that have that file, which also contain either the 'firefox" or "thunderbird" shell scripts used to start the application. Type echo $PATH into a terminal and verify the directory is on the path.

If it starts but doesn't work correctly try running in safe mode to temporarily disable any added extensions. While they normally also work under Linux you occasionally run into Gnome or KDE integration problems, or it might not be using a relative pathname to store its data. Exiting the application and deleting the extensions.rdf file in the profile also solves many problems (it will be recreated when you run the application).

You could have also used one of the other methods described in moving your profile to tell Firefox and Thunderbird where to look for the profile. For example, you might want to create a "profiles" directory that contains both your Firefox and Thunderbird profiles.

Other considerations

The Help -> Check for Updates menu is enabled in the build on the Mozilla web site, but it's frequently disabled (though you can still check for updates for add-ons) if you installed it using a package manager with a graphical front end such as Synaptic or Adept. Typically the package manager will check for updates once a day, and ask if you want to upgrade if it finds one.

Ubuntu installs a Alltray program to "dock any application with no native tray icon (like Evolution, Thunderbird, Terminals) into the system tray". If you don't get a new mail icon in the system tray try either installing it or the Mozilla New Mail Icon (Biff) extension.

The menus are different under Linux. Tools -> Options and Tools -> Account Settings are replaced by Edit -> Preferences and Edit -> Account Settings. Additional command line arguments are supported under Linux.

Not all of the fonts that you're used to are available. You may want to install the Microsoft TrueType Fonts. With Ubuntu (or any Debian based distribution) you can use either the package manager or Automatrix to install the msttcorefonts package . For other distributions (Fedora, openSUSE etc.) you could install the rpm's from this web site if you can't find a more convenient solution.

Using a package manager

Debian

Debian distributes rebranded versions of Firefox (Iceweasel) and Thunderbird (Icedove). Packages for testing/sarge and unstable/sid users are available in the standard Debian repository. You can fetch and install them using apt-get. You need root access to use it. Type

su .

That will prompt you for the root password. Then update your apt repository.

apt-get update

and fetch/install the desired application.

apt-get install mozilla-firefox
apt-get install mozilla-thunderbird

Gentoo

Install it from a root prompt using Emerge.

su -

will prompt you for the root password. Then fetch/install the desired application using:

emerge mozilla-firefox
emerge mozilla-thunderbird

You can use mozilla-firefox-bin and mozilla-thunderbird-bin instead to install the official binary build. If you run into problems you may need to resync using emerge --sync .

Mandriva

Configure urpmi on your system, using the instructions at easyurpmi. Then use System/Configuration/Packaging/Install Software in the Mandriva Control Center and search for firefox or thunderbird. You could also just type the following from the root in a console:

urpmi firefox
urpmi thunderbird

The applications should be listed in the menu.

openSUSE

The easiest way to install Mozilla applications is through YaST, the SUSE/openSUSE package manager (you have other options with the 10.2+ versions). Those RPM software packages are customized versions of the regular releases. You will have to decide which repository to use:

  • The standard repositories provide you with the currently available RPM's that where QA-checked by SUSE and distributed through their online repositories and their media. Those have the advantage that they are automatically updated by openSUSE when using YOU (YaST Online Update) or Automated Updates. The disadvantage is that it may take a while until the RPM's and delta-RPM's are verified and uploaded. No additional steps are necessary to use those packages.
  • The openSUSE Build Service provides full RPM's in sync or shortly after each new release, with minor patching between releases. The advantage is the immediate availability, the disadvantage is that you have to install them manually. To make those packages available, you have to select "Installation Sources" in YaST and add the correct repository for your distribution as HTTP repository to your list.

To install or update Mozilla applications from those repositories:

  1. Start YaST and go into "Software Management".
  2. Enter the application name into the "Search" field.
  3. If not yet checked, check those applications you want to install
    • note that some applications may have multiple packages (e.g., mail/news and IRC are separate packages in addition to the base RPM).
  4. Continue with the installation and let YaST resolve any dependencies to other packages and libraries

To update, run YaST Online Update for the regular repositories. For the openSUSE Build Service repository, repeat the sequence above and change the Lock symbol to the "Z"-like symbol for updating this package.

RHEL/Fedora

Firefox and Thunderbird are installed by default under both RHEL and Fedora. You can install a updated version from a root account in a terminal:

su yum update firefox
su yum update thunderbird

If you want to use packages from the Fedora Development repository (used to test new releases, so it could break other packages):

su yum -y --enablerepo=development update firefox
su yum -y --enablerepo=development update thunderbird

Ubuntu

Use either the Synaptic (Gnome) or Adept (KDE) package manager to install the application depending upon which type of Ubuntu you're running.

For example, select Applications, System, Synaptic Package Manager and enter your password at the prompt. Press the Search button and enter firefox (or thunderbird). Scroll through the list and find the firefox package. Click on the box to the left of it, selecting "Mark for installation". Then press the Apply button. This will install the firefox package plus several other packages it requires.

This should add the application to the menu. You could also add it to the panel (the equivalent of a windows shortcut), or run it from the terminal.

Using a build from the Mozilla web site

If you don't want to use a package manager you can download and install a release from the Mozilla web site. It has the latest release, and doesn't disable automatically checking for updates.

The following instructions are written for Firefox but also apply to Thunderbird.

  • Download the latest release to your home directory with your browser. If it was Firefox version 2.0.0.6 the file would be firefox-2.0.0.6-tar.gz.
  • Extract the contents with an archiving utility such as Ark or tar. If you're using Ubuntu you can right clink on the file in the file browser, and select "Open with Archive Manager".
bash$ tar zxf firefox-<version>.tar.gz
  • You can use the files where they are, or move them to a publicly accessible location such as /usr/local or /opt. If your distribution installed its own copy of Firefox its recommended you keep this copy in the home directory to avoid potential problems.
bash$ su
<password>
bash# mv firefox /usr/local
bash# chown -R root:root /usr/local/firefox
  • Create a link to launch Firefox. If you're using Gnome, use System- > Preferences -> Main Menu -> New Item and then browse to the "firefox" shell script in the directory. Or right click on the panel (taskbar), select Add to Panel, Custom application launcher, and then browse to the "firefox" shell script.

Installation alternatives

You can get a copy of Firefox and Thunderbird from many sources. Typically (especially if they're part of a Linux distribution) they will identify themselves as Mozilla builds in the help menu, but they may not be identical. They may be a trunk build for the next release, and identify themselves as that version even though Mozilla hasn't released it yet. Or the location its installed in may be modified.

Swiftfox is a optimized build of Firefox. It installs it in the /opt directory. SwiftWeasel has optimized builds for Firefox (Swiftweasel) and Thunderbird (Swiftdove) that are frequently released within a couple of days of a Mozilla release. [1] The Community Builds/Binaries forums has other 3rd party builds.

Automatrix will install Thunderbird and Firefox using apt-get calls to the Ubuntu repositories, but doesn't provide any update mechanism. Since its essentially duplicating what you can do with Synaptic, but Synaptic doesn't know the package is installed you're better off using the package manager.

Ubuntuzilla

Ubuntuzilla is a python script that can install Firefox, Thunderbird and/or SeaMonkey under Ubuntu. It provides an option for it to check for updates and notify you. However, the popup is only displayed for a few seconds so you may need to use a checkforupdatetext command if you're unsure whether a update is available.

Synaptic installs Firefox/Thunderbird in /usr/share. Ubuntuzilla installs the programs in /opt and changes the links to run its version by default. It stores the Thunderbird profile in ~/.thunderbird rather than ~/.mozilla-thunderbird. You could change the launcher to use the "mozilla-thunderbird" command instead of "thunderbird" if you want to use the one from the Ubuntu repository. While popular, it has a history of causing problems with the Ubuntu version. Its recommended you choose one or the other, not both.

Cultural differences

Many distributions try to make somebody migrating from Windows more comfortable by hiding many of the differences. A few that you might run into when troubleshooting Firefox or Thunderbird are:

  • Any files or folders beginning with a period are hidden. Case matters. Filename. (with a dot at the end) is not the same as Filename (with no dot at the end). Thunderbird won't display hidden folders in the Attach File(s) window unless display hidden folders is enabled in the file manager.
  • In paths, the directory separator is the forward slash / , not the backslash \ . Also, Unix/Linux paths don't begin with a "drive letter": there is a single directory hierarchy covering all currently accessible (i.e. "mounted") filesystems.
  • It can be tough finding where stuff is installed since there is no top down hierarchy in the file browser like there is in Windows Explorer, and it installs the software in more directories (not just the equivalent of "\Program Files" and "\Windows"). One advantage of installing something using a package manager front-end such as Synaptic, Adept, Yum, Yast, rpmdrake, up2date etc. rather than typing apt-get or rpm commands in a terminal is typically you can select the package and look in properties to find where it installed the files.
  • Executables don't have standard file extensions. You frequently can't run an executable directly. When you launch (or type in a terminal) "thunderbird" its actually running a "thunderbird" shell script which calls the "run-mozilla.sh" shell script to run "thunderbird-bin". However, if you double clicked on "thunderbird-bin" (the actual executable) it does nothing.
  • The Microsoft power toys have a "open command window here" extension for Windows Explorer. The equivalent in Ubuntu for the file manager would be the nautilus-open-terminal package.
  • There is no cls command in a terminal - use either control-L or "clear" (no double quotes).
  • ~/ is your home directory. i.e. /home/eric/downloads and ~/downloads are the same directory
  • Typically there is no need to install an anti-virus scanner unless you're sharing files with a Windows user. If you feel you need one ClamAV is most frequently recommended though most major anti-virus companies have one for Linux. This article compares the anti-virus scanners for Linux. Most free anti-virus scanners won't intercept your browsers downloads or your mail traffic - they seem focused on users manually launching them to check a file, or scanning most of the hard disk.

Useful resources

Most distributions also have their own forums.

See also

External links