diff --git a/en_US.ISO8859-1/books/handbook/desktop/chapter.sgml b/en_US.ISO8859-1/books/handbook/desktop/chapter.sgml index f072fb99dc..ffc0335596 100644 --- a/en_US.ISO8859-1/books/handbook/desktop/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/desktop/chapter.sgml @@ -1,1151 +1,1157 @@ Christophe Juniet Contributed by Desktop Applications Synopsis FreeBSD can run a wide variety of desktop applications, such as browsers and word processors. Most of these are available as packages or can be automatically built from the ports collection. Many new users expect to find these kinds of applications on their desktop. This chapter will show you how to install some popular desktop applications effortlessly, either from their packages or from the Ports Collection. Note that when installing programs from the ports, they are compiled from source. This can take a very long time, depending on what you are compiling and the processing power of your machine(s). If building from source takes a prohibitively long amount of time for you, you can install most of the programs of the Ports Collection from pre-built packages. As FreeBSD features Linux binary compatibility, many applications originally developed for Linux are available for your desktop. It is strongly recommended that you read before installing any of the Linux applications. Many of the ports using the Linux binary compatibility start with linux-. Remember this when you search for a particular port, for instance with &man.whereis.1;. In the following text, it is assumed that you have enabled Linux binary compatibility before installing any of the Linux applications. Here are the categories covered by this chapter: Browsers (such as Firefox, Opera, Konqueror) Productivity (such as KOffice, AbiWord, The GIMP, OpenOffice.org) Document Viewers (such as &acrobat.reader;, gv, Xpdf, GQview) Finance (such as GnuCash, Gnumeric, Abacus) Before reading this chapter, you should: Know how to install additional third-party software (). Know how to install additional Linux software (). For information on how to get a multimedia environment, read . If you want to set up and use electronic mail, please refer to . Browsers browsers web FreeBSD does not come with a particular browser pre-installed. Instead, the www directory of the Ports Collection contains a lot of browsers ready to be installed. If you do not have time to compile everything (this can take a very long time in some cases) many of them are available as packages. KDE and GNOME already provide HTML browsers. Please refer to for more information on how to set up these complete desktops. If you are looking for light-weight browsers, you should investigate the Ports Collection for www/dillo2, www/links, or www/w3m. This section covers these applications: Application Name Resources Needed Installation from Ports Major Dependencies Firefox medium heavy Gtk+ Opera light light FreeBSD and Linux versions available. The Linux version depends on the Linux Binary Compatibility and linux-openmotif. Konqueror medium heavy KDE Libraries Firefox Firefox Firefox is a modern, free, open-source stable browser that is fully ported to &os;: it features a very standards-compliant HTML display engine, tabbed browsing, popup blocking, extensions, improved security, and more. Firefox is based on the Mozilla codebase. Install the package by typing: &prompt.root; pkg_add -r firefox This will install Firefox 2.X, if you want to run Firefox 3.X, use instead: &prompt.root; pkg_add -r firefox3 You can also use the Ports Collection if you prefer to compile from source code: &prompt.root; cd /usr/ports/www/firefox &prompt.root; make install clean For Firefox 3.X, in the previous command replace firefox with firefox3. Firefox and &java; Plugin In this section and in the next one, we assume you have already installed Firefox. The &os; Foundation has a license with Sun Microsystems to distribute &os; binaries for the Java Runtime Environment (&jre;) and Java Development Kit (&jdk;). Binary packages for &os; are available on the &os; Foundation web site. To add &java; support to Firefox, you first have to install the java/javavmwrapper port. Then, download the Diablo &jre; package from , and install it with &man.pkg.add.1;. Start your browser, enter about:plugins in the location bar and press Enter. A page listing the installed plugins will be displayed; the &java; - plugin should be listed there now. If it is not, as - root, run the following command: + plugin should be listed there now. If it is not, each user + will have to run the following command: - &prompt.root; ln -s /usr/local/diablo-jre1.6.0/plugin/i386/ns7/libjavaplugin_oji.so \ - /usr/local/lib/browser_plugins/ + &prompt.user; ln -s /usr/local/diablo-jre1.6.0/plugin/i386/ns7/libjavaplugin_oji.so \ + $HOME/.mozilla/plugins/ + + or, if you installed the Diablo + &jdk; package: + + &prompt.user; ln -s /usr/local/diablo-jdk1.6.0/plugin/i386/ns7/libjavaplugin_oji.so \ + $HOME/.mozilla/plugins/ Then relaunch your browser. Firefox and ¯omedia; &flash; Plugin Flash ¯omedia; &flash; plugin is not available for &os;. However, a software layer (wrapper) for running the Linux version of the plugin exists. This wrapper also supports &adobe; &acrobat; plugin, &realplayer; plugin and more. According to the version of &os; you run various steps are required: Under &os; 7.X Install the www/nspluginwrapper port. This port requires emulators/linux_base-fc4 which is a large port. The next step is to install the www/linux-flashplugin9 port. This will install &flash; 9.X, this version is known to run correctly under &os; 7.X. On &os; versions older than &os; 7.1-RELEASE you have to install www/linux-flashplugin7 and skip the &man.linprocfs.5; part below. Under &os; 8.X Install the www/nspluginwrapper port. This port requires emulators/linux_base-f10 which is a large port. The next step is to install the www/linux-f10-flashplugin10 port. This will install &flash; 10.X, this version is known to run correctly under &os; 8.X. This version will require the following link to be created: &prompt.root; ln -s /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so \ /usr/local/lib/browser_plugins/ Once the right &flash; port, according to the &os; version you run, is installed, the plugin must be installed by each user with nspluginwrapper: &prompt.user; nspluginwrapper -v -a -i The &linux; process file system, &man.linprocfs.5; has to be mounted on /usr/compat/linux/proc, if one wants to play &flash; animations. This can be done via the following command: &prompt.root; mount -t linprocfs linproc /usr/compat/linux/proc This point can be automated at boot time with the addition of the matching line in /etc/fstab: linproc /usr/compat/linux/proc linprocfs rw 0 0 Then, start your browser, enter about:plugins in the location bar and press Enter. A list should appear with all the currently available plugins. Firefox and Swfdec &flash; Plugin Swfdec is the library for decoding and rendering &flash; animations. And Swfdec-Mozilla is a plugin for Firefox browsers that uses the Swfdec library for playing SWF files. It is still in heavy development. If you cannot or do not want to compile it, just install the package from the network: &prompt.root; pkg_add -r swfdec-plugin If the package is not available, you can compile and install it from the Ports Collection: &prompt.root; cd /usr/ports/www/swfdec-plugin &prompt.root; make install clean Then, restart your browser for this plugin taking effect. Opera Opera Opera is a full-featured and standards-compliant browser. It also comes with a built-in mail and news reader, an IRC client, an RSS/Atom feeds reader and much more. Despite this, Opera is relatively lightweight and very fast. It comes in two flavors: a native FreeBSD version and a version that runs under Linux emulation. To browse the Web with the FreeBSD version of Opera, install the package: &prompt.root; pkg_add -r opera Some FTP sites do not have all the packages, but Opera can still be obtained through the Ports Collection by typing: &prompt.root; cd /usr/ports/www/opera &prompt.root; make install clean To install the Linux version of Opera, substitute linux-opera in place of opera in the examples above. The Linux version is useful in situations requiring the use of plug-ins that are only available for Linux, such as Adobe &acrobat.reader;. In all other respects, the FreeBSD and Linux versions should be functionally identical. Konqueror Konqueror Konqueror is part of KDE but it can also be used outside of KDE by installing x11/kdebase3. Konqueror is much more than a browser, it is also a file manager and a multimedia viewer. There is also a set of plugins available for Konqueror, available in misc/konq-plugins. Konqueror also supports &flash;; a How To guide for getting &flash; support on Konqueror is available at . Productivity When it comes to productivity, new users often look for a good office suite or a friendly word processor. While some desktop environments like KDE already provide an office suite, there is no default productivity package. FreeBSD can provide all that is needed, regardless of your desktop environment. This section covers these applications: Application Name Resources Needed Installation from Ports Major Dependencies KOffice light heavy KDE AbiWord light light Gtk+ or GNOME The Gimp light heavy Gtk+ OpenOffice.org heavy huge &jdk; 1.4, Mozilla KOffice KOffice office suite KOffice The KDE community has provided its desktop environment with an office suite which can be used outside KDE. It includes the four standard components that can be found in other office suites. KWord is the word processor, KSpread is the spreadsheet program, KPresenter manages slide presentations, and Kontour lets you draw graphical documents. Before installing the latest KOffice, make sure you have an up-to-date version of KDE. To install KOffice as a package, issue the following command: &prompt.root; pkg_add -r koffice If the package is not available, you can use the ports collection. For instance, to install KOffice for KDE3, do: &prompt.root; cd /usr/ports/editors/koffice-kde3 &prompt.root; make install clean AbiWord AbiWord AbiWord is a free word processing program similar in look and feel to µsoft; Word. It is suitable for typing papers, letters, reports, memos, and so forth. It is very fast, contains many features, and is very user-friendly. AbiWord can import or export many file formats, including some proprietary ones like µsoft;'s .doc. AbiWord is available as a package. You can install it by: &prompt.root; pkg_add -r abiword If the package is not available, it can be compiled from the Ports Collection. The Ports Collection should be more up to date. It can be done as follows: &prompt.root; cd /usr/ports/editors/abiword &prompt.root; make install clean The GIMP The GIMP For image authoring or picture retouching, The GIMP is a very sophisticated image manipulation program. It can be used as a simple paint program or as a quality photo retouching suite. It supports a large number of plug-ins and features a scripting interface. The GIMP can read and write a wide range of file formats. It supports interfaces with scanners and tablets. You can install the package by issuing this command: &prompt.root; pkg_add -r gimp If your FTP site does not have this package, you can use the Ports Collection. The graphics directory of the Ports Collection also contains The Gimp Manual. Here is how to get them installed: &prompt.root; cd /usr/ports/graphics/gimp &prompt.root; make install clean &prompt.root; cd /usr/ports/graphics/gimp-manual-pdf &prompt.root; make install clean The graphics directory of the Ports Collection holds the development version of The GIMP in graphics/gimp-devel. An HTML version of The Gimp Manual is available from graphics/gimp-manual-html. OpenOffice.org OpenOffice.org office suite OpenOffice.org OpenOffice.org includes all of the mandatory applications in a complete office productivity suite: a word processor, a spreadsheet, a presentation manager, and a drawing program. Its user interface is very similar to other office suites, and it can import and export in various popular file formats. It is available in a number of different languages — internationalization has been extended to interfaces, spell checkers, and dictionaries. The word processor of OpenOffice.org uses a native XML file format for increased portability and flexibility. The spreadsheet program features a macro language and it can be interfaced with external databases. OpenOffice.org is already stable and runs natively on &windows;, &solaris;, Linux, FreeBSD, and &macos; X. More information about OpenOffice.org can be found on the OpenOffice.org web site. For FreeBSD specific information, and to directly download packages, use the FreeBSD OpenOffice.org Porting Team's web site. To install OpenOffice.org, do: &prompt.root; pkg_add -r openoffice.org When running a -RELEASE version of &os;, this should work. Otherwise, you should look on the &os; OpenOffice.org Porting Team's web site to download and install the appropriate package using &man.pkg.add.1;. Both the current release and development version are available for download at this location. Once the package is installed, you just have to type the following command to run OpenOffice.org: &prompt.user; openoffice.org During the first launch, you will be asked some questions and a .openoffice.org2 folder will be created in your home directory. If the OpenOffice.org packages are not available, you still have the option to compile the port. However, you must bear in mind that it requires a lot of disk space and a fairly long time to compile. &prompt.root; cd /usr/ports/editors/openoffice.org-2 &prompt.root; make install clean If you want to build a localized version, replace the previous command line with the following: &prompt.root; make LOCALIZED_LANG=your_language install clean You have to replace your_language with the correct language ISO-code. A list of supported language codes is available in the files/Makefile.localized file, located in the port directory. Once this is done, OpenOffice.org can be launched with the command: &prompt.user; openoffice.org Document Viewers Some new document formats have gained popularity since the advent of &unix;; the standard viewers they require may not be available in the base system. We will see how to install such viewers in this section. This section covers these applications: Application Name Resources Needed Installation from Ports Major Dependencies &acrobat.reader; light light Linux Binary Compatibility gv light light Xaw3d Xpdf light light FreeType GQview light light Gtk+ or GNOME &acrobat.reader; Acrobat Reader PDF viewing Many documents are now distributed as PDF files, which stands for Portable Document Format. One of the recommended viewers for these types of files is &acrobat.reader;, released by Adobe for Linux. As FreeBSD can run Linux binaries, it is also available for FreeBSD. To install &acrobat.reader; 7 from the Ports collection, do: &prompt.root; cd /usr/ports/print/acroread7 &prompt.root; make install clean A package is not available due to licencing restrictions. gv gv PDF viewing PostScript viewing gv is a &postscript; and PDF viewer. It is originally based on ghostview but it has a nicer look thanks to the Xaw3d library. It is fast and its interface is clean. gv has many features, such as orientation, paper size, scale, and anti-aliasing. Almost any operation can be done with either the keyboard or the mouse. To install gv as a package, do: &prompt.root; pkg_add -r gv If you cannot get the package, you can use the Ports collection: &prompt.root; cd /usr/ports/print/gv &prompt.root; make install clean Xpdf Xpdf PDF viewing If you want a small FreeBSD PDF viewer, Xpdf is a light-weight and efficient viewer. It requires very few resources and is very stable. It uses the standard X fonts and does not require &motif; or any other X toolkit. To install the Xpdf package, issue this command: &prompt.root; pkg_add -r xpdf If the package is not available or you prefer to use the Ports Collection, do: &prompt.root; cd /usr/ports/graphics/xpdf &prompt.root; make install clean Once the installation is complete, you can launch Xpdf and use the right mouse button to activate the menu. GQview GQview GQview is an image manager. You can view a file with a single click, launch an external editor, get thumbnail previews, and much more. It also features a slideshow mode and some basic file operations. You can manage image collections and easily find duplicates. GQview can do full screen viewing and supports internationalization. If you want to install the GQview package, do: &prompt.root; pkg_add -r gqview If the package is not available or you prefer to use the Ports Collection, do: &prompt.root; cd /usr/ports/graphics/gqview &prompt.root; make install clean Finance If, for any reason, you would like to manage your personal finances on your FreeBSD Desktop, there are some powerful and easy-to-use applications ready to be installed. Some of them are compatible with widespread file formats, such as the formats used by Quicken and Excel to store documents. This section covers these programs: Application Name Resources Needed Installation from Ports Major Dependencies GnuCash light heavy GNOME Gnumeric light heavy GNOME Abacus light light Tcl/Tk KMyMoney light heavy KDE GnuCash GnuCash GnuCash is part of the GNOME effort to provide user-friendly, yet powerful, applications to end-users. With GnuCash, you can keep track of your income and expenses, your bank accounts, and your stocks. It features an intuitive interface while remaining very professional. GnuCash provides a smart register, a hierarchical system of accounts, and many keyboard accelerators and auto-completion methods. It can split a single transaction into several more detailed pieces. GnuCash can import and merge Quicken QIF files. It also handles most international date and currency formats. To install GnuCash on your system, do: &prompt.root; pkg_add -r gnucash If the package is not available, you can use the ports collection: &prompt.root; cd /usr/ports/finance/gnucash &prompt.root; make install clean Gnumeric Gnumeric spreadsheet Gnumeric Gnumeric is a spreadsheet program, part of the GNOME desktop environment. It features convenient automatic guessing of user input according to the cell format with an autofill system for many sequences. It can import files in a number of popular formats like those of Excel, Lotus 1-2-3, or Quattro Pro. Gnumeric supports graphs through the math/guppi graphing program. It has a large number of built-in functions and allows all of the usual cell formats such as number, currency, date, time, and much more. To install Gnumeric as a package, do: &prompt.root; pkg_add -r gnumeric If the package is not available, you can use the ports collection by doing: &prompt.root; cd /usr/ports/math/gnumeric &prompt.root; make install clean Abacus Abacus spreadsheet Abacus Abacus is a small and easy to use spreadsheet program. It includes many built-in functions useful in several domains such as statistics, finances, and mathematics. It can import and export the Excel file format. Abacus can produce &postscript; output. To install Abacus as a package, do: &prompt.root; pkg_add -r abacus If the package is not available, you can use the ports collection by doing: &prompt.root; cd /usr/ports/deskutils/abacus &prompt.root; make install clean KMyMoney KMyMoney spreadsheet KMyMoney KMyMoney is a personal finance manager built for KDE. KMyMoney intends to provide and incorporate all the important features found in commercial personal finance manager applications. It also highlights ease-of-use and proper double-entry accounting among its features. KMyMoney imports from standard Quicken Interchange Format (QIF) files, tracks investments, handles multiple currencies, and provides a wealth of reports. OFX import capabilities are also available through a separate plugin. To install KMyMoney as a package, do: &prompt.root; pkg_add -r kmymoney2 If the package is not available, you can use the Ports Collection by doing: &prompt.root; cd /usr/ports/finance/kmymoney2 &prompt.root; make install clean Summary While FreeBSD is popular among ISPs for its performance and stability, it is quite ready for day-to-day use as a desktop. With several thousand applications available as packages or ports, you can build a perfect desktop that suits all your needs. Here is a quick review of all the desktop applications covered in this chapter: Application Name Package Name Ports Name Opera opera www/opera Firefox firefox www/firefox KOffice koffice-kde3 editors/koffice-kde3 AbiWord abiword editors/abiword The GIMP gimp graphics/gimp OpenOffice.org openoffice editors/openoffice-1.1 &acrobat.reader; acroread print/acroread7 gv gv print/gv Xpdf xpdf graphics/xpdf GQview gqview graphics/gqview GnuCash gnucash finance/gnucash Gnumeric gnumeric math/gnumeric Abacus abacus deskutils/abacus KMyMoney kmymoney2 finance/kmymoney2