]> git.sur5r.net Git - bacula/docs/blob - docs/manuals/en/main/install.tex
7100d3ae539280665994380e2544ff1057337fd4
[bacula/docs] / docs / manuals / en / main / install.tex
1 %%
2 %%
3
4 \chapter{Installing Bacula}
5 \label{InstallChapter}
6 \index[general]{Bacula!Installing}
7 \index[general]{Installing Bacula}
8
9 In general, you will need the Bacula source release, and if you want to run
10 a Windows client, you will need the Bacula Windows binary release.
11 However, Bacula needs certain third party packages (such as {\bf MySQL},
12 {\bf PostgreSQL}, or {\bf SQLite} to build and run
13 properly depending on the
14 options you specify.  Normally, {\bf MySQL} and {\bf PostgreSQL} are
15 packages that can be installed on your distribution.  However, if you do
16 not have them, to simplify your task, we have combined a number of these
17 packages into three {\bf depkgs} releases (Dependency Packages).  This can
18 vastly simplify your life by providing you with all the necessary packages
19 rather than requiring you to find them on the Web, load them, and install
20 them.
21
22 \section{Source Release Files}
23 \index[general]{Source Files}
24 \index[general]{Release Files}
25  Beginning with Bacula 1.38.0, the source code has been broken into
26  four separate tar files each corresponding to a different module in
27  the Bacula SVN. The released files are:
28
29 \begin{description}
30 \item [bacula-5.0.0.tar.gz]
31   This is the primary source code release for Bacula. On each
32   release the version number (5.0.0) will be updated.
33
34 \item [bacula-docs-5.0.0.tar.bz2]
35   This file contains a copy of the docs directory with the
36   documents prebuild. English HTML directory, single HTML
37   file, and pdf file. The French, German, Spanish translations
38   are in progress, but are not built.
39
40 \item [bacula-gui-5.0.0.tar.gz]
41   This file contains the non-core GUI programs. Currently,
42   it contains bacula-web, a PHP program for producing management
43   viewing of your Bacula job status in a browser; and bimagemgr
44   a browser program for burning CDROM images with Bacula Volumes.
45
46 \item [bacula-rescue-5.0.0.tar.gz]
47   This is the Bacula Rescue USB key code. Note, the version number
48   of this package is not always tied to the Bacula release version, so
49   it may be different.  Using this code, you can create a USB key
50   with your system configuration and containing a statically
51   linked version of the File daemon. This can permit you to easily
52   repartition and reformat your hard disks and reload your
53   system with Bacula in the case of a hard disk failure.
54
55 \item [win32bacula-5.0.0.exe]
56   This file is the 32 bit Windows installer for installing
57   the Windows client (File daemon) on a Windows machine.
58   This client will also run on 64 bit Windows machines, but
59   VSS support is not available if you are running a 64 bit
60   version of Windows.  This installer installs only the FD, 
61   the Director and Storage daemon are not included.
62
63
64 \item [win64bacula-5.0.0.exe]
65   This file is the 64 bit Windows installer for installing
66   the Windows client (File daemon) on a Windows machine.
67   This client will only run on 64 bit Windows OS machines.
68   It will not run on 32 bit machines or 32 bit Windows OSes.
69   The win64bacula release is necessary for Volume Shadow
70   Copy (VSS) to work on Win64 OSes.  This installer
71   installs only the FD, the Director and Storage daemon
72   are not included.
73
74 \end{description}
75
76 \label{upgrading1}
77 \section{Upgrading Bacula}
78 \index[general]{Bacula!Upgrading}
79 \index[general]{Upgrading Bacula}
80 \index[general]{Upgrading}
81
82 If you are upgrading from one Bacula version to another, you should first
83 carefully read the ReleaseNotes of all major versions between your current
84 version and the version to which you are upgrading.  In many upgrades,
85 especially for minor patch upgrades (e.g. between 3.0.0 and 3.0.1) there
86 will be no database upgrade, and hence the process is rather simple.
87
88 With version 3.0.0 and later, you {\bf must} ensure that on any one
89 machine that all components of Bacula are running on exactly the
90 same version.  Prior to version 3.0.0, it was possible to run a 
91 lower level FD with a newer Director and SD.  This is no longer the
92 case.  
93
94 As always, we attempt to support older File daemons. This avoids the
95 need to do a simultaneous upgrade of many machines. For exactly what
96 older versions of the FD are supported, please see the ReleaseNotes 
97 for the new version.  In any case, you must always upgrade both the
98 Director and the Storage daemon at the same time, and you must also
99 upgrade any File daemon that is running on the same machine as a Director
100 or a Storage daemon (see the prior paragraph).
101
102 If the Bacula catalog
103 database has been upgraded (as it is almost every major release), you will
104 either need to reinitialize your database starting from scratch (not
105 normally a good idea), or save an ASCII copy of your database, then proceed
106 to upgrade it. If you are upgrading two major versions (e.g. 1.36 to 2.0)
107 then life will be more complicated because you must do two database
108 upgrades. See below for more on this.
109
110 Upgrading the catalog is normally done after Bacula is build and installed
111 by:
112
113 \begin{verbatim}
114 cd <installed-scripts-dir> (default /etc/bacula)
115 ./update_bacula_tables
116 \end{verbatim}
117
118 This update script can also be find in the Bacula source src/cats
119 directory.
120
121 If there are several database upgrades between your version and the
122 version to which you are upgrading, you will need to apply each database
123 upgrade script. For your convenience, you can find all the old upgrade scripts
124 in the {\bf upgradedb} directory of the source code. You will need to edit the
125 scripts to correspond to your system configuration. The final upgrade script,
126 if any, can be applied as noted above.
127
128 If you are upgrading from one major version to another, you will need to
129 replace all your components at the same time as generally the inter-daemon
130 protocol will change. However, within any particular release (e.g. version
131 1.32.x) unless there is an oversight or bug, the daemon protocol will not
132 change. If this is confusing, simply read the ReleaseNotes very carefully as
133 they will note if all daemons must be upgraded at the same time. 
134
135 Finally, please note that in general it is not necessary or desirable
136 to do a {\bf make uninstall} before doing an upgrade providing you are careful
137 not to change the installation directories. In fact, if you do so, you will 
138 most likely delete all your conf files, which could be disastrous.
139 The normal procedure during an upgrade is simply:
140
141 \begin{verbatim}
142 ./configure (your options)
143 make
144 make install
145 \end{verbatim}
146
147 In general none of your existing .conf or .sql files will be overwritten,
148 and you must do both the {\bf make} and {\bf make install}  commands, a
149 {\bf make install} without the preceding {\bf make} will not work.
150   
151 For additional information on upgrading, please see the \ilink{Upgrading Bacula
152 Versions}{upgrading} in the Tips chapter of this manual.
153
154 \section{Releases Numbering}
155 \index[general]{Release Numbering}
156 \index[general]{Version Numbering}
157 Every Bacula release whether beta or production has a different number  
158 as well as the date of the release build. The numbering system follows
159 traditional Open Source conventions in that it is of the form.
160
161 \begin{verbatim}
162 major.minor.release
163 \end{verbatim}
164
165 For example:
166 \begin{verbatim}
167 1.38.11
168 \end{verbatim}
169
170 where each component (major, minor, patch) is a number.
171 The major number is currently 1 and normally does not change
172 very frequently.  The minor number starts at 0 and increases
173 each for each production release by 2 (i.e. it is always an
174 even number for a production release), and the patch number is
175 starts at zero each time the minor number changes.  The patch
176 number is increased each time a bug fix (or fixes) is released
177 to production.
178
179 So, as of this date (10 September 2006), the current production Bacula
180 release is version 1.38.11.  If there are bug fixes, the next release
181 will be 1.38.12 (i.e. the patch number has increased by one).
182
183 For all patch releases where the minor version number does not change,
184 the database and all the daemons will be compatible.  That means that
185 you can safely run a 1.38.0 Director with a 1.38.11 Client.  Of course,
186 in this case, the Director may have bugs that are not fixed. Generally,
187 within a minor release (some minor releases are not so minor), all
188 patch numbers are officially released to production. This means that while
189 the current Bacula version is 1.38.11, versions 1.38.0, 1.38.1, ... 1.38.10
190 have all been previously released.
191
192 When the minor number is odd, it indicates that the package is under 
193 development and thus may not be stable. For example, while the current 
194 production release of Bacula is currently 1.38.11, the current development
195 version is 1.39.22. All patch versions of the development code are 
196 available in the SVN (source repository).  However, not all patch versions
197 of the development code (odd minor version) are officially released. When
198 they are released, they are released as beta versions (see below for a
199 definition of what beta means for Bacula releases).                     
200
201 In general when the minor number increases from one production release
202 to the next (i.e. 1.38.x to 1.40.0), the catalog database must be upgraded,
203 the Director and Storage daemon must always be on the same minor release
204 number, and often (not always), the Clients must also be on the same minor
205 release. As often as possible, we attempt to make new releases that are
206 downwards compatible with prior clients, but this is not always possible.
207 You must check the release notes.  In general, you will have fewer problems
208 if you always run all the components on the same minor version number (i.e.
209 all either 1.38.x or 1.40.x but not mixed).
210
211
212 \label{BetaReleases}
213 \section*{Beta Releases}
214 \index[general]{Beta Releases}
215 Towards the end of the development cycle, which typically runs
216 one year from a major release to another, there will be several beta
217 releases of the development code prior to a production release.  
218 As noted above, beta versions always have odd minor version numbers
219 (e.g 1.37.x or 1.39.x). 
220 The purpose of the beta releases is to allow early adopter users to test
221 the new code.  Beta releases are made with the following considerations:
222
223 \begin{itemize}
224 \item The code passes the regression testing on FreeBSD, Linux, and Solaris
225   machines.
226
227 \item There are no known major bugs, or on the rare occasion that 
228   there are, they will be documented or already in the bugs database.
229
230 \item Some of the new code/features may not yet be tested.
231
232 \item Bugs are expected to be found, especially in the new
233   code before the final production release.
234
235 \item The code will have been run in production in at least one small
236   site (mine).
237
238 \item The Win32 client will have been run in production at least
239   one night at that small site.
240
241 \item The documentation in the manual is unlikely to be complete especially
242   for the new features, and the Release Notes may not be fully
243   organized.
244
245 \item Beta code is not generally recommended for everyone, but
246   rather for early adopters.
247 \end{itemize}
248
249
250 \label{Dependency}
251 \section{Dependency Packages}
252 \index[general]{Dependency Packages}
253 \index[general]{Packages!Dependency}
254
255 As discussed above, we have combined a number of third party packages that
256 Bacula might need into the {\bf depkgs} release. You can,
257 of course, get the latest packages from the original authors or 
258 from your operating system supplier. The locations of
259 where we obtained the packages are in the README file in each package.
260 However, be aware that the packages in the depkgs files have been tested by us
261 for compatibility with Bacula. 
262
263 Typically, a dependency package will be named {\bf depkgs-ddMMMyy.tar.gz}
264 where {\bf dd} is the day we release it, {\bf MMM}
265 is the abbreviated month (e.g. Jan), and {\bf yy} is the year. An actual
266 example is: {\bf depkgs-18Dec.tar.gz}. To install and build this package (if
267 needed), you do the following: 
268
269 \begin{enumerate}
270 \item Create a {\bf bacula} directory, into which you will place  both the
271    Bacula source as well as the dependency package.  
272 \item Detar the {\bf depkgs} into the {\bf bacula} directory.  
273 \item cd bacula/depkgs  
274 \item make 
275 \end{enumerate}
276
277 Although the exact composition of the dependency packages may change from time
278 to time, the current makeup is the following: 
279
280 \addcontentsline{lot}{table}{Dependency Packages}
281 \begin{longtable}{|l|l|l|}
282  \hline 
283 \multicolumn{1}{|c| }{\bf 3rd Party Package} & \multicolumn{1}{c| }{\bf depkgs}
284      & \multicolumn{1}{c| }{\bf depkgs-qt} \\
285  \hline {SQLite3 } & \multicolumn{1}{c| }{X } & \multicolumn{1}{c| }{ }\\
286  \hline {mtx } & \multicolumn{1}{c| }{X } & \multicolumn{1}{c| }{ } \\
287  \hline {qt4 } & \multicolumn{1}{c| }{ } & \multicolumn{1}{c| }{X } \\
288  \hline 
289 \end{longtable}
290
291 Note, some of these packages are quite large, so that building them can be a
292 bit time consuming. The above instructions will build all the packages
293 contained in the directory. However, when building Bacula, it will take only
294 those pieces that it actually needs. 
295
296 Alternatively, you can make just the packages that are needed. For example, 
297
298 \footnotesize
299 \begin{verbatim}
300 cd bacula/depkgs
301 make sqlite
302 \end{verbatim}
303 \normalsize
304
305 will configure and build only the SQLite package. 
306
307 You should build the packages that you will require in {\bf depkgs} a     
308 prior to configuring and building Bacula, since Bacula will need
309 them during the build process. 
310
311 Note, the {\bf depkgs-qt} package is required for building bat, because 
312 bat is currently built with Qt version 4.3.4.  It can be built with other
313 Qt versions, but that almost always creates problems or introduces
314 instabilities.
315
316 You can build the depkgs-qt with the following:
317
318 \footnotesize
319 \begin{verbatim}
320 cd bacula
321 tar xfvz depkgs-qt-28Jul09.tar.gz
322 cd depkgs-qt
323 make qt4
324 source qt4-path
325 \end{verbatim}
326 \normalsize
327
328 Doing the {\bf source qt4-path} defines the following environment
329 variables:
330
331 \footnotesize
332 \begin{verbatim}
333 QTDIR
334 QTLIB
335 QTINC
336 \end{verbatim}
337 \normalsize
338
339 Each one should point to a specific location in the depkgs-qt package
340 that you loaded.  It also puts the depkgs-qt/qt4/bin directory
341 on your path before all other directories.  This ensures that
342 the bat build will use your Qt 4.3.4 library rather than any that 
343 might be on your system.
344
345 Before running your Bacula build, please make sure that
346 {\bf qmake-qt4} is not on your path.  If it is please rename it. If
347 you don't do this, Bacula will attempt to build with any Qt4 package
348 installed on your system rather than the one you just built.
349 If you logoff and log back in, you must re-source the depkgs-qt/qt4-patch
350 file before attempting to rebuild the bat part of Bacula.
351
352 For more information on the {\bf depkgs-qt} package, please read the
353 INSTALL file in the main directory of that package. If you are going to 
354 build Qt4 using {\bf depkgs-qt}, you must source the {\bf qt4-paths} file
355 included in the package prior to building Bacula. Please read the INSTALL
356 file for more details.
357
358 Even if you do not use SQLite, you might find it worthwhile to build {\bf mtx}
359 because the {\bf tapeinfo} program that comes with it can often provide you
360 with valuable information about your SCSI tape drive (e.g. compression,
361 min/max block sizes, ...). Note, most distros provide {\bf mtx} as part of 
362 their release.
363
364 The {\bf depkgs1} package is depreciated and previously contained
365 readline, which should be available on all operating systems.
366
367 The {\bf depkgs-win32} package is deprecated and no longer used in 
368 Bacula version 1.39.x and later. It was previously used to build
369 the native Win32 client program, but this program is now built on Linux
370 systems using cross-compiling.  All the tools and third party libraries
371 are automatically downloaded by executing the appropriate scripts.  See
372 src/win32/README.mingw32 for more details.
373
374 \section{Supported Operating Systems}
375 \label{Systems}
376 \index[general]{Systems!Supported Operating}
377 \index[general]{Supported Operating Systems}
378
379 Please see the 
380 \ilink{ Supported Operating Systems}{SupportedOSes} section
381 of the QuickStart chapter of this manual. 
382
383 \section{Building Bacula from Source}
384 \label{Building}
385 \index[general]{Source!Building Bacula from}
386 \index[general]{Building Bacula from Source}
387
388 The basic installation is rather simple. 
389
390 \begin{enumerate}
391 \item Install and build any {\bf depkgs} as noted above. This
392    should be unnecessary on most modern Operating Systems.
393
394 \item Configure and install MySQL or PostgreSQL (if desired). 
395    \ilink{Installing and Configuring MySQL Phase I}{MySqlChapter} or  
396    \ilink{Installing and Configuring PostgreSQL Phase
397    I}{PostgreSqlChapter}.  If you are installing from rpms, and are
398    using MySQL, please be sure to install  {\bf mysql-devel}, so that the MySQL
399    header files are available  while compiling Bacula. In addition, the MySQL
400    client  library {\bf mysqlclient} requires the gzip compression library  {\bf
401    libz.a} or {\bf libz.so}. If you are using rpm packages,  these libraries are
402    in the {\bf libz-devel} package. On Debian  systems, you will need to load the
403    {\bf zlib1g-dev} package. If  you are not using rpms or debs, you will need to
404    find the  appropriate package for your system.  
405
406    Note, if you already have a running MySQL or PostgreSQL on your system, you 
407    can skip this phase provided that you have built the thread  safe libraries.
408    And you have already installed the additional  rpms noted above.  
409
410    SQLite is not supported on Solaris. This is because it
411    frequently fails with bus errors.  However SQLite3 may work.
412
413 \item Detar the Bacula source code preferably into the {\bf bacula}  directory
414    discussed above.  
415
416 \item {\bf cd} to the directory containing the source code.  
417
418 \item ./configure (with appropriate options as described below). Any
419    path names you specify as options on the ./configure command line
420    must be absolute paths and not relative.
421
422 \item Check the output of ./configure very carefully, especially  the Install
423    binaries and Install config directories.  If they are not correct,
424    please rerun ./configure until they  are. The output from ./configure is
425    stored in {\bf config.out}  and can be re-displayed at any time without
426    rerunning the  ./configure by doing {\bf cat config.out}.  
427
428 \item If after running ./configure once, you decide to change options  and
429    re-run it, that is perfectly fine, but before re-running it,  you should run: 
430
431 \footnotesize
432 \begin{verbatim}
433       make distclean
434 \end{verbatim}
435 \normalsize
436
437 so that you are sure to start from scratch and not have a  mixture of the two
438 options. This is because ./configure  caches much of the information. The {\bf
439 make distclean}  is also critical if you move the source directory from one 
440 machine to another. If the {\bf make distclean} fails,  just ignore it and
441 continue on.  
442
443 \item make  
444    If you get errors while linking in the Storage daemon directory
445    (src/stored), it is probably because you have not loaded the static
446    libraries on your system.  I noticed this problem on a Solaris system.
447    To correct it, make sure that you have not added {\bf
448    {-} {-}enable-static-tools} to the {\bf ./configure} command.
449
450    If you skip this step ({\bf make}) and proceed immediately to the {\bf
451    make install} you are making two serious errors: 1.  your install will
452    fail because Bacula requires a {\bf make} before a {\bf make install}.
453    2.  you are depriving yourself of the chance to make sure there are no
454    errors before beginning to write files to your system directories.
455                                  
456
457 \item make install  
458    Please be sure you have done a {\bf make} before entering this command,
459    and that everything has properly compiled and linked without errors.
460
461
462 \item If you are new to Bacula, we {\bf strongly} recommend that you skip
463    the next step and use the default configuration files, then run the
464    example program in the next chapter, then come back and modify your
465    configuration files to suit your particular needs.
466
467 \item Customize the configuration files for each of the three daemons 
468    (Directory, File, Storage) and for the Console program.  For the details
469    of how to do this, please see \ilink{Setting Up Bacula Configuration
470    Files}{ConfigureChapter} in the Configuration chapter of this manual.  We
471    recommend that you start by modifying the default configuration files
472    supplied, making the minimum changes necessary.  Complete customization
473    can be done after you have Bacula up and running.  Please take care when
474    modifying passwords, which were randomly generated, and the {\bf Name}s
475    as the passwords and names must agree between the configuration files
476    for security reasons.  
477
478 \label{CreateDatabase}
479 \item Create the Bacula MySQL database and tables
480    (if using MySQL)
481       \ilink{Installing and Configuring MySQL Phase II}{mysql_phase2} or 
482       create the Bacula PostgreSQL database and tables  
483    \ilink{Configuring PostgreSQL
484    II}{PostgreSQL_configure} or alternatively  if you are using
485    SQLite \ilink{Installing and Configuring SQLite Phase II}{phase2}.  
486
487 \item Start Bacula ({\bf ./bacula start}) Note. the next chapter  shows you
488    how to do this in detail.  
489
490 \item Interface with Bacula using the Console program  
491
492 \item For the previous two items, please follow the instructions  in the 
493    \ilink{Running Bacula}{TutorialChapter} chapter of  this manual,
494    where you will run a simple backup and do a  restore. Do this before you make
495    heavy modifications to the  configuration files so that you are sure that
496    Bacula works  and are familiar with it. After that changing the conf files 
497    will be easier.  
498
499 \item If after installing Bacula, you decide to "move it", that is  to
500    install it in a different set of directories, proceed  as follows:  
501
502 \footnotesize
503 \begin{verbatim}
504       make uninstall
505       make distclean
506       ./configure (your-new-options)
507       make
508       make install
509       
510 \end{verbatim}
511 \normalsize
512
513 \end{enumerate}
514
515 If all goes well, the {\bf ./configure} will correctly determine which
516 operating system you are running and configure the source code appropriately.
517 Currently, FreeBSD, Linux (Red Hat), and Solaris are supported. The Bacula
518 client (File daemon) is reported to work with MacOS X 10.3 is if 
519 readline support is not enabled (default) when building the client.       
520
521 If you install Bacula on more than one system, and they are identical, you can
522 simply transfer the source tree to that other system and do a "make
523 install". However, if there are differences in the libraries or OS versions,
524 or you wish to install on a different OS, you should start from the original
525 compress tar file. If you do transfer the source tree, and you have previously
526 done a ./configure command, you MUST do: 
527
528 \footnotesize
529 \begin{verbatim}
530 make distclean
531 \end{verbatim}
532 \normalsize
533
534 prior to doing your new ./configure. This is because the GNU autoconf tools
535 cache the configuration, and if you re-use a configuration for a Linux machine
536 on a Solaris, you can be sure your build will fail. To avoid this, as
537 mentioned above, either start from the tar file, or do a "make distclean". 
538
539 In general, you will probably want to supply a more complicated {\bf
540 configure} statement to ensure that the modules you want are built and that
541 everything is placed into the correct directories. 
542
543 For example, on Fedora, Red Hat, or SuSE one could use the following: 
544
545 \footnotesize
546 \begin{verbatim}
547 CFLAGS="-g -Wall" \
548   ./configure \
549     --sbindir=$HOME/bacula/bin \
550     --sysconfdir=$HOME/bacula/bin \
551     --with-pid-dir=$HOME/bacula/bin/working \
552     --with-subsys-dir=$HOME/bacula/bin/working \
553     --with-mysql \
554     --with-working-dir=$HOME/bacula/bin/working \
555     --with-dump-email=$USER
556 \end{verbatim}
557 \normalsize
558
559 The advantage of using the above configuration to start is that
560 everything will be put into a single directory, which you can later delete
561 once you have run the examples in the next chapter and learned how Bacula
562 works. In addition, the above can be installed and run as non-root. 
563
564 For the developer's convenience, I have added a {\bf defaultconfig} script to
565 the {\bf examples} directory. This script contains the statements that you
566 would normally use, and each developer/user may modify them to suit his needs.
567 You should find additional useful examples in this directory as well. 
568
569 The {\bf \verb:--:enable-conio} or {\bf \verb:--:enable-readline} options are
570 useful because they provide a command line history, editing capability for the
571 Console program and tab completion on various option. If you have included
572 either option in the build, either the {\bf termcap} or the {\bf ncurses}
573 package will be needed to link. On most systems, including Red Hat and SuSE,
574 you should include the ncurses package.  If Bacula's configure process finds
575 the ncurses libraries, it will use those rather than the termcap library.  On
576 some systems, such as SuSE, the termcap library is not in the standard library
577 directory.  As a consequence, the option may be disabled or you may get an
578 error message such as:
579
580 \footnotesize
581 \begin{verbatim}
582 /usr/lib/gcc-lib/i586-suse-linux/3.3.1/.../ld:
583 cannot find -ltermcap
584 collect2: ld returned 1 exit status
585 \end{verbatim}
586 \normalsize
587
588 while building the Bacula Console. In that case, you will need to set the {\bf
589 LDFLAGS} environment variable prior to building. 
590
591 \footnotesize
592 \begin{verbatim}
593 export LDFLAGS="-L/usr/lib/termcap"
594 \end{verbatim}
595 \normalsize
596
597 The same library requirements apply if you wish to use the readline subroutines
598 for command line editing, history and tab completion or if you are using a
599 MySQL library that requires encryption. If you need encryption, you can either
600 export the appropriate additional library options as shown above or,
601 alternatively, you can include them directly on the ./configure line as in:
602
603 \footnotesize
604 \begin{verbatim}
605 LDFLAGS="-lssl -lcyrpto" \
606    ./configure <your-options>
607 \end{verbatim}
608 \normalsize
609
610 On some systems such as Mandriva, readline tends to
611 gobble up prompts, which makes it totally useless. If this happens to you, use
612 the disable option, or if you are using version 1.33 and above try using {\bf
613 \verb:--:enable-conio} to use a built-in readline replacement. You will still need
614 either the termcap or the ncurses library, but it is unlikely that the {\bf conio}
615 package will gobble up prompts. 
616
617 readline is no longer supported after version 1.34.  The code within Bacula
618 remains, so it should be usable, and if users submit patches for it, we will
619 be happy to apply them.  However, due to the fact that each version of
620 readline seems to be incompatible with previous versions, and that there
621 are significant differences between systems, we can no longer afford to
622 support it.
623
624 \section{What Database to Use?}
625 \label{DB}
626 \index[general]{What Database to Use?}
627 \index[general]{Use!What Database to}
628
629 Before building Bacula you need to decide if you want to use SQLite, MySQL, or
630 PostgreSQL. If you are not already running MySQL or PostgreSQL, you might
631 want to start by testing with SQLite (not supported on Solaris).
632 This will greatly simplify the setup for you
633 because SQLite is compiled into Bacula an requires no administration. It
634 performs well and is suitable for small to medium sized installations (maximum
635 10-20 machines). However, we should note that a number of users have
636 had unexplained database corruption with SQLite. For that reason, we
637 recommend that you install either PostgreSQL or MySQL for production
638 work.
639
640 If you wish to use MySQL as the Bacula catalog, please see the
641 \ilink{Installing and Configuring MySQL}{MySqlChapter} chapter of this
642 manual. You will need to install MySQL prior to continuing with the
643 configuration of Bacula. MySQL is a high quality database that is very
644 efficient and is suitable for small and medium sized installation (up to
645 2,000,000 files per job). It is slightly more complicated than SQLite to setup
646 and administer because it has a number of sophisticated features such as
647 userids and passwords. It runs as a separate process, is truly professional and
648 can manage a database of any size.
649
650 If you wish to use PostgreSQL as the Bacula catalog, please see the
651 \ilink{Installing and Configuring PostgreSQL}{PostgreSqlChapter} chapter of
652 this manual. You will need to install PostgreSQL prior to continuing with the
653 configuration of Bacula. PostgreSQL is very similar to MySQL, though it tends
654 to be slightly more SQL92 compliant and has many more advanced features such as
655 transactions, stored procedures, and the such. It requires a certain knowledge
656 to install and maintain. PostgreSQL is suitable for any sized installation
657 (some sites have much more than 1 billion objects in the Catalog). Bacula uses
658 many optimized PostgreSQL functions, and can run more than 10 time faster on
659 jobs having millions of files than MySQL (Specially in during restore, accurate
660 mode, bvfs queries and when the database server is not on the same host than
661 the Director). It's possible to switch from MySQL/SQLite to PostgreSQL, but it
662 requires some DBA knowledge.
663
664 If you wish to use SQLite as the Bacula catalog, please see 
665 \ilink{Installing and Configuring SQLite}{SqlLiteChapter} chapter of
666 this manual. SQLite is not supported on Solaris.
667
668 \section{Quick Start}
669 \index[general]{Quick Start}
670 \index[general]{Start!Quick}
671
672 There are a number of options and important considerations given below
673 that you can skip for the moment if you have not had any problems building
674 Bacula with a simplified configuration as shown above. 
675       
676 If the ./configure process is unable to find specific libraries (e.g.    
677 libintl, you should ensure that the appropriate package is installed on
678 your system. Alternatively, if the package is installed in a non-standard
679 location (as far as Bacula is concerned), then there is generally an
680 option listed below (or listed with "./configure {-} {-}help" that will
681 permit you to specify the directory that should be searched. In other
682 cases, there are options that will permit you to disable to feature 
683 (e.g. {-} {-}disable-nls).
684
685 If you want to dive right into it, we recommend you skip to the next chapter,
686 and run the example program. It will teach you a lot about Bacula and as an
687 example can be installed into a single directory (for easy removal) and run as
688 non-root. If you have any problems or when you want to do a real installation,
689 come back to this chapter and read the details presented below. 
690
691 \section{Configure Options}
692 \label{Options}
693 \index[general]{Options!Configure}
694 \index[general]{Configure Options}
695
696 The following command line options are available for {\bf configure} to
697 customize your installation. 
698
699 \begin{description}
700 \item [ \--prefix=\lt{}patch\gt{}]
701    \index[general]{{-}prefix}
702    This option is meant to allow you to direct where the architecture
703    independent files should be placed.  However, we find this a somewhat
704    vague concept, and so we have not implemented this option other than
705    to use any explicit prefix that you may define.  If you do not
706    explicitly specify a prefix, Bacula's configure routine will not use
707    the default value that ./configure --help prints.
708    As a consequence, we suggest that
709    you avoid it. We have provided options that allow you to explicitly
710    specify the directories for each of the major categories of installation
711    files.
712 \item [ {-}{\-}sbindir=\lt{}binary-path\gt{}]
713    \index[general]{{-}{\-}sbindir}
714    Defines where the Bacula  binary (executable) files will be placed during a
715    {\bf make  install} command.  
716
717 \item [ {-}{\-}sysconfdir=\lt{}config-path\gt{}]
718    \index[general]{{-}{\-}sysconfdir}
719    Defines where the Bacula configuration files should be placed during a
720    {\bf make install} command.
721
722 \item [ {-}{\-}mandir=\lt{}path\gt{}]
723    \index[general]{{-}{\-}mandir}
724    Note, as of Bacula version 1.39.14, the meaning of any path
725    specified on this option is change from prior versions. It
726    now specifies the top level man directory.
727    Previously the mandir specified the full path to where you
728    wanted the man files installed.
729    The man files will be installed in gzip'ed format under
730    mandir/man1 and mandir/man8 as appropriate.
731    For the install to succeed you must have {\bf gzip} installed
732    on your system.
733
734    By default, Bacula will install the Unix man pages in 
735    /usr/share/man/man1 and /usr/share/man/man8.  
736    If you wish the man page to be installed in
737    a different location, use this option to specify the path.
738    Note, the main HTML and PDF Bacula documents are in a separate
739    tar file that is not part of the source distribution.
740
741 \item [ {-}{\-}datadir=\lt{}path\gt{} ]
742    \index[general]{{-}{\-}datadir}
743    If you translate Bacula or parts of Bacula into a different language
744    you may specify the location of the po files using the {\bf
745    {-}{\-}datadir} option. You must manually install any po files as
746    Bacula does not (yet) automatically do so.
747
748 \item [ {-}{\-}disable-ipv6 ]
749    \index[general]{{-}{\-}disable-ipv6}
750
751 \item [ {-}{\-}enable-smartalloc ]
752    \index[general]{{-}{\-}enable-smartalloc}
753    This enables the inclusion of the Smartalloc orphaned buffer detection
754    code.  This option is highly recommended.  Because we never build
755    without this option, you may experience problems if it is not enabled.
756    In this case, simply re-enable the option.  We strongly recommend
757    keeping this option enabled as it helps detect memory leaks.  This
758    configuration parameter is used while building Bacula
759
760 \item [ {-}{\-}enable-bat ]
761    \label{enablebat}
762    \index[general]{{-}{\-}enable-bat}
763    If you have Qt4 >= 4.3.4 installed on your computer including the
764    libqt4 and libqt4-devel (libqt4-dev on Debian) libraries, and you want
765    to use the Bacula Administration Tool (bat) GUI Console interface to
766    Bacula, you must specify this option.  Doing so will build everything in
767    the {\bf src/qt-console} directory.  The build with enable-bat will work
768    only with a full Bacula build (i.e. it will not work with a client-only
769    build). 
770
771    Qt4 is available on OpenSUSE 10.2, CentOS 5, Fedora, and Debian. If it
772    is not available on your system, you can download the {\bf depkgs-qt}
773    package from the Bacula Source Forge download area and build it.
774    See the
775    INSTALL file in that package for more details. In particular to use
776    the Qt4 built by {\bf depkgs-qt} you {\bf must} source the file
777    {\bf qt4-paths}.
778
779 \item [ {-}{\-}enable-batch-insert ]
780    \index[general]{{-}{\-}enable-batch-insert}
781    This option enables batch inserts of the attribute records (default) in
782     the catalog database, which is much faster (10 times or more) than
783    without this option for large numbers of files. However, this option
784    will automatically be disabled if your SQL libraries are not
785    thread safe. If you find that batch mode is not enabled on your Bacula
786    installation, then your database most likely does not support threads.
787
788    SQLite2 is not thread safe.  Batch insert cannot be enabled when using
789    SQLite2
790
791    On most systems, MySQL, PostgreSQL and SQLite3 are thread safe.
792
793    To verify that your PostgreSQL is thread safe, you can try this
794    (change the path to point to your particular installed libpq.a;
795    these commands were issued on FreeBSD 6.2):
796
797 \begin{verbatim}
798 $ nm /usr/local/lib/libpq.a | grep PQputCopyData
799 00001b08 T PQputCopyData
800 $ nm /usr/local/lib/libpq.a | grep mutex
801          U pthread_mutex_lock
802          U pthread_mutex_unlock
803          U pthread_mutex_init
804          U pthread_mutex_lock
805          U pthread_mutex_unlock
806 \end{verbatim}
807
808    The above example shows a libpq that contains the required function
809    PQputCopyData and is thread enabled (i.e. the pthread\_mutex* entries).
810    If you do not see PQputCopyData, your version of PostgreSQL is too old
811    to allow batch insert.  If you do not see the mutex entries, then thread
812    support has not been enabled. Our tests indicate you usually need to
813    change the configuration options and recompile/reinstall the PostgreSQL
814    client software to get thread support.
815
816    Bacula always links to the thread safe MySQL libraries.
817
818    Running with Batch Insert turned on is recommended because it can
819    significantly improve attribute insertion times. However, it does 
820    put a significantly larger part of the work on your SQL engine, so
821    you may need to pay more attention to tuning it. In particular,   
822    Batch Insert can require large temporary table space, and consequently,
823    the default location (often /tmp) may run out of space causing errors.
824    For MySQL, the location is set in my.conf with "tmpdir".  You may also
825    want to increase the memory available to your SQL engine to further
826    improve performance during Batch Inserts.
827
828 \item [ {-}{\-}enable-bwx-console ]
829    \index[general]{{-}{\-}enable-bwx-console}
830    If you have wxWidgets installed on your computer and you want to use the
831    wxWidgets GUI Console interface to Bacula, you must specify this option.
832    Doing so will build everything in the {\bf src/wx-console} directory.
833    This could also be useful to users who want a GUI Console and don't want
834    to install QT, as wxWidgets can work with GTK+, Motif or even X11
835    libraries.
836
837 \item [ {-}{\-}enable-tray-monitor ]
838    \index[general]{{-}{\-}enable-tray-monitor}
839    If you have GTK installed on your computer, you run a graphical
840    environment or a window manager compatible with the FreeDesktop system
841    tray standard (like KDE and GNOME) and you want to use a GUI to monitor
842    Bacula daemons, you must specify this option.  Doing so will build
843    everything in the {\bf src/tray-monitor} directory. Note, due to 
844    restrictions on what can be linked with GPLed code, we were forced to
845    remove the egg code that dealt with the tray icons and replace it by
846    calls to the GTK+ API, and unfortunately, the tray icon API necessary
847    was not implemented until GTK version 2.10 or later.
848
849 \item [ {-}{\-}enable-static-tools]
850    \index[general]{{-}{\-}enable-static-tools}
851    This option causes the linker to link the Storage daemon utility tools
852    ({\bf bls}, {\bf bextract}, and {\bf bscan}) statically.  This permits
853    using them without having the shared libraries loaded.  If you have
854    problems linking in the {\bf src/stored} directory, make sure you have
855    not enabled this option, or explicitly disable static linking by adding
856    {\bf \verb:--:disable-static-tools}.
857
858 \item [ {-}{\-}enable-static-fd]
859    \index[general]{{-}{\-}enable-static-fd}
860    This option causes the make process to build a {\bf static-bacula-fd} in
861    addition to the standard File daemon.  This static version will include
862    statically linked libraries and is required for the Bare Metal recovery.
863    This option is largely superseded by using {\bf make static-bacula-fd}
864    from with in the {\bf src/filed} directory.  Also, the {\bf
865    \verb:--:enable-client-only} option described below is useful for just
866    building a client so that all the other parts of the program are not
867    compiled.   
868      
869    When linking a static binary, the linker needs the static versions
870    of all the libraries that are used, so frequently users will 
871    experience linking errors when this option is used. The first 
872    thing to do is to make sure you have the static glibc library 
873    installed on your system. The second thing to do is the make sure
874    you do not specify {\bf {-}{\-}openssl} or {\bf {-}{\-}with-python}
875    on your ./configure statement as these options require additional
876    libraries. You may be able to enable those options, but you will
877    need to load additional static libraries.
878
879
880 \item [ {-}{\-}enable-static-sd]
881    \index[general]{{-}{\-}enable-static-sd}
882    This option causes the make process to build a {\bf static-bacula-sd} in
883    addition to the standard Storage daemon.  This static version will
884    include statically linked libraries and could be useful during a Bare
885    Metal recovery.
886
887    When linking a static binary, the linker needs the static versions
888    of all the libraries that are used, so frequently users will 
889    experience linking errors when this option is used. The first 
890    thing to do is to make sure you have the static glibc library 
891    installed on your system. The second thing to do is the make sure
892    you do not specify {\bf {-}{\-}openssl} or {\bf {-}{\-}with-python}
893    on your ./configure statement as these options require additional
894    libraries. You may be able to enable those options, but you will
895    need to load additional static libraries.
896
897
898 \item [ {-}{\-}enable-static-dir]
899    \index[general]{{-}{\-}enable-static-dir}
900    This option causes the make process to build a {\bf static-bacula-dir}
901    in addition to the standard Director.  This static version will include
902    statically linked libraries and could be useful during a Bare Metal
903    recovery.
904
905    When linking a static binary, the linker needs the static versions
906    of all the libraries that are used, so frequently users will 
907    experience linking errors when this option is used. The first 
908    thing to do is to make sure you have the static glibc library 
909    installed on your system. The second thing to do is the make sure
910    you do not specify {\bf {-}{\-}openssl} or {\bf {-}{\-}with-python}
911    on your ./configure statement as these options require additional
912    libraries. You may be able to enable those options, but you will
913    need to load additional static libraries.
914
915
916 \item [ {-}{\-}enable-static-cons]
917    \index[general]{{-}{\-}enable-static-cons}
918    This option causes the make process to build a {\bf static-console} in
919    addition to the standard console.  This static version will include
920    statically linked libraries and could be useful during a Bare Metal
921    recovery.
922
923    When linking a static binary, the linker needs the static versions
924    of all the libraries that are used, so frequently users will 
925    experience linking errors when this option is used. The first 
926    thing to do is to make sure you have the static glibc library 
927    installed on your system. The second thing to do is the make sure
928    you do not specify {\bf {-}{\-}openssl} or {\bf {-}{\-}with-python}
929    on your ./configure statement as these options require additional
930    libraries. You may be able to enable those options, but you will
931    need to load additional static libraries.
932
933
934 \item [ {-}{\-}enable-client-only]
935    \index[general]{{-}{\-}enable-client-only}
936    This option causes the make process to build only the File daemon and
937    the libraries that it needs.  None of the other daemons, storage tools,
938    nor the console will be built.  Likewise a {\bf make install} will then
939    only install the File daemon.  To cause all daemons to be built, you
940    will need to do a configuration without this option.  This option
941    greatly facilitates building a Client on a client only machine.
942
943    When linking a static binary, the linker needs the static versions
944    of all the libraries that are used, so frequently users will 
945    experience linking errors when this option is used. The first 
946    thing to do is to make sure you have the static glibc library 
947    installed on your system. The second thing to do is the make sure
948    you do not specify {\bf {-}{\-}openssl} or {\bf {-}{\-}with-python}
949    on your ./configure statement as these options require additional
950    libraries. You may be able to enable those options, but you will
951    need to load additional static libraries.
952
953 \item [ {-}{\-}enable-build-dird]
954    \index[general]{{-}{\-}enable-build-dird}
955    This option causes the make process to build the Director and the
956    Director's tools. By default, this option is on, but you may turn
957    it off by using {\bf {-}{\-}disable-build-dird} to prevent the
958    Director from being built.
959
960 \item [ {-}{\-}enable-build-stored]
961    \index[general]{{-}{\-}enable-build-stored}
962    This option causes the make process to build the Storage daemon.
963    By default, this option is on, but you may turn
964    it off by using {\bf {-}{\-}disable-build-stored} to prevent the
965    Storage daemon from being built.
966
967
968 \item [ {-}{\-}enable-largefile]
969    \index[general]{{-}{\-}enable-largefile}
970    This option (default) causes  Bacula to be built with 64 bit file address
971    support if it  is available on your system. This permits Bacula to read and 
972    write files greater than 2 GBytes in size. You may disable this  feature and
973    revert to 32 bit file addresses by using  {\bf \verb:--:disable-largefile}.  
974
975 \item [ {-}{\-}disable-nls]
976    \index[general]{{-}{\-}disable-nls}
977    By default, Bacula uses the GNU Native Language Support (NLS) libraries. On
978    some machines, these libraries may not be present or may not function 
979    correctly (especially on non-Linux implementations). In such cases, you
980    may specify {\bf {-}{\-}disable-nls} to disable use of those libraries.
981    In such a case, Bacula will revert to using English.
982
983 \item [ {-}{\-}disable-ipv6 ]
984    \index[general]{{-}{\-}disable-ipv6}
985    By default, Bacula enables IPv6 protocol. On some systems, the files
986    for IPv6 may exist, but the functionality could be turned off in the
987    kernel. In that case, in order to correctly build Bacula, you will
988    explicitly need to use this option so that Bacula does not attempt
989    to reference OS function calls that do not exist.
990
991 \item [ {-}{\-}with-sqlite3=\lt{}sqlite3-path\gt{}]
992    \index[general]{{-}{\-}with-sqlite3}
993    This enables use of the SQLite version 3.x database.  The {\bf
994    sqlite3-path} is not normally specified as Bacula looks for the
995    necessary components in a standard location ({\bf depkgs/sqlite3}).  See
996    \ilink{Installing and Configuring SQLite}{SqlLiteChapter} chapter of
997    this manual for more details. SQLite3 is not supported on Solaris.
998
999 \item [ {-}{\-}with-mysql=\lt{}mysql-path\gt{}]
1000    \index[general]{{-}{\-}with-mysql}
1001    This enables building of the Catalog services for Bacula.  It assumes
1002    that MySQL is running on your system, and expects it to be installed in
1003    the {\bf mysql-path} that you specify.  Normally, if MySQL is installed
1004    in a standard system location, you can simply use {\bf {-}{\-}with-mysql}
1005    with no path specification.  If you do use this option, please proceed
1006    to installing MySQL in the \ilink{Installing and Configuring
1007    MySQL}{MySqlChapter} chapter before proceeding with the configuration.
1008
1009    See the note below under the {-}{\-}with-postgresql item.
1010
1011 \item [ {-}{\-}with-postgresql=\lt{}path\gt{}]
1012    \index[general]{{-}{\-}with-postgresql}
1013    This provides an explicit path to the PostgreSQL libraries if Bacula
1014    cannot find it by default.  Normally to build with PostgreSQL, you would
1015    simply use {\bf {-}{\-}with-postgresql}.
1016
1017    Note, for Bacula to be configured properly, you must specify one
1018    of the four database options supported.  That is:
1019    {-}{\-}with-sqlite, {-}{\-}with-sqlite3, {-}{\-}with-mysql, or
1020    {-}{\-}with-postgresql, otherwise the ./configure will fail.
1021
1022 \item [ {-}{\-}with-openssl=\lt{}path\gt{}]
1023    This configuration option is necessary if you want to enable TLS (ssl),
1024    which encrypts the communications within       
1025    Bacula or if you want to use File Daemon PKI data encryption.
1026    Normally, the {\bf path} specification is not necessary since
1027    the configuration searches for the OpenSSL libraries in standard system
1028    locations. However, you must ensure that all the libraries are
1029    loaded including {\bf libssl-dev} or the equivalent on your
1030    system. Enabling OpenSSL in Bacula permits secure communications
1031    between the daemons and/or data encryption in the File daemon.
1032    For more information on using TLS, please see the
1033    \ilink{Bacula TLS -- Communications Encryption}{CommEncryption} chapter
1034    of this manual.
1035    For more information on using PKI data encryption, please see the
1036    \ilink{Bacula PKI -- Data Encryption}{DataEncryption}
1037    chapter of this manual.
1038               
1039    If you get errors linking, you need to load the development libraries,
1040    or you need to disable SSL by setting without-openssl.
1041
1042
1043 \item [ {-}{\-}with-python=\lt{}path\gt{}]
1044    \index[general]{{-}{\-}with-python}
1045    This option enables Bacula support for Python.  If no path is supplied,
1046    configure will search the standard library locations for Python 2.2,
1047    2.3, 2.4, or 2.5.  If it cannot find the library, you will need to
1048    supply a path to your Python library directory.  Please see the
1049    \ilink{Python chapter}{PythonChapter} for the details of using Python
1050    scripting.
1051
1052 \item [ {-}{\-}with-libintl-prefix=\lt{}DIR\gt{}]
1053    \index[general]{{-}{\-}with-libintl-prefix}
1054    This option may be used to tell Bacula to search DIR/include and
1055    DIR/lib for the libintl headers and libraries needed for Native
1056    Language Support (NLS).
1057
1058 \item [ {-}{\-}enable-conio]
1059    \index[general]{{-}{\-}enable-conio}
1060    Tells Bacula to enable building the small, light weight readline
1061    replacement routine.  It is generally much easier to configure than
1062    readline, although, like readline, it needs either the termcap or
1063    ncurses library.
1064
1065 \item [ {-}{\-}with-readline=\lt{}readline-path\gt{}]
1066    \index[general]{{-}{\-}with-readline}
1067    Tells Bacula where {\bf readline} is installed.  Normally, Bacula will
1068    find readline if it is in a standard library.  If it is not found and no
1069    {-}{\-}with-readline is specified, readline will be disabled.  This
1070    option affects the Bacula build.  Readline provides the Console program
1071    with a command line history and editing capability and is no longer
1072    supported, so you are on your own if you have problems.
1073
1074 \item [ {-}{\-}enable-readline]
1075    \index[general]{{-}{\-}enable-readline}
1076    Tells Bacula to enable readline support.  It is normally disabled due to the
1077    large number of configuration  problems and the fact that the package seems to
1078    change in incompatible  ways from version to version.  
1079
1080 \item [ {-}{\-}with-tcp-wrappers=\lt{}path\gt{}]
1081    \index[general]{{-}{\-}with-tcp-wrappers}
1082    \index[general]{TCP Wrappers}
1083    \index[general]{Wrappers!TCP}
1084    \index[general]{libwrappers}
1085    This specifies that you  want TCP wrappers (man hosts\_access(5)) compiled in.
1086    The path is optional since  Bacula will normally find the libraries in the
1087    standard locations.  This option affects the Bacula build.  In specifying your
1088    restrictions in the {\bf /etc/hosts.allow}  or {\bf /etc/hosts.deny} files, do
1089    not use the {\bf twist}  option (hosts\_options(5)) or the Bacula process will
1090    be terminated. Note, when setting up your {\bf /etc/hosts.allow}
1091    or {\bf /etc/hosts.deny}, you must identify the Bacula daemon in
1092    question with the name you give it in your conf file rather than the
1093    name of the executable.
1094    
1095    For more information on configuring and testing TCP wrappers, please  see the 
1096    \ilink{Configuring and Testing TCP Wrappers}{wrappers}  section
1097    in the Security Chapter.  
1098
1099    On SuSE, the libwrappers libraries needed to link Bacula are
1100    contained in the tcpd-devel package. On Red Hat, the package is named
1101    tcp\_wrappers.
1102
1103 \item [ {-}{\-}with-archivedir=\lt{}path\gt{} ]
1104    \index[general]{{-}{\-}with-archivedir}
1105    The directory used for disk-based backups.  Default value is /tmp.
1106    This parameter sets the default values in the bacula-dir.conf and bacula-sd.conf
1107    configuration files.  For example, it sets the Where directive for the
1108    default restore job and the Archive Device directive for the FileStorage
1109    device.
1110
1111    This option is designed primarily for use in regression testing.
1112    Most users can safely ignore this option.
1113
1114 \item [ {-}{\-}with-working-dir=\lt{}working-directory-path\gt{} ]
1115    \index[general]{{-}{\-}with-working-dir}
1116    This option is mandatory and specifies a directory  into which Bacula may
1117    safely place files that  will remain between Bacula executions. For example, 
1118    if the internal database is used, Bacula will keep  those files in this
1119    directory.  This option is only used to modify the daemon  configuration
1120    files. You may also accomplish the same  thing by directly editing them later.
1121    The working directory  is not automatically created by the install process, so
1122    you  must ensure that it exists before using Bacula for the  first time. 
1123
1124 \item [ {-}{\-}with-baseport=\lt{}port=number\gt{}]
1125    \index[general]{{-}{\-}with-baseport}
1126    In order to run,  Bacula needs three TCP/IP ports (one for the Bacula 
1127    Console, one for the Storage daemon, and one for the File daemon).  The {\bf
1128    \verb:--:with-baseport} option will automatically assign three  ports beginning at
1129    the base port address specified. You may  also change the port number in the
1130    resulting configuration  files. However, you need to take care that the
1131    numbers  correspond correctly in each of the three daemon configuration 
1132    files. The default base port is 9101, which assigns ports 9101  through 9103.
1133    These ports (9101, 9102, and 9103) have been  officially assigned to Bacula by
1134    IANA.  This option is only used  to modify the daemon configuration files. You
1135    may also accomplish  the same thing by directly editing them later. 
1136
1137 \item [ {-}{\-}with-dump-email=\lt{}email-address\gt{}]
1138    \index[general]{{-}{\-}with-dump-email}
1139    This option specifies  the email address where any core dumps should be set.
1140    This option  is normally only used by developers.  
1141
1142 \item [ {-}{\-}with-pid-dir=\lt{}PATH\gt{}  ]
1143    \index[general]{{-}{\-}with-pid-dir}
1144    This specifies where Bacula should place the process id  file during
1145    execution. The default is: {\bf /var/run}.  This directory is not created by
1146    the install process, so  you must ensure that it exists before using Bacula
1147    the  first time.  
1148
1149 \item [ {-}{\-}with-subsys-dir=\lt{}PATH\gt{}]
1150    \index[general]{{-}{\-}with-subsys-dir}
1151    This specifies where Bacula should place the subsystem lock  file during
1152    execution. The default is {\bf /var/run/subsys}.  Please make sure that you do
1153    not specify the same directory  for this directory and for the {\bf sbindir}
1154    directory.  This directory is used only within the autostart scripts.  The
1155    subsys directory is not created by the Bacula install,  so you must be sure to
1156    create it before using Bacula. 
1157
1158 \item [ {-}{\-}with-dir-password=\lt{}Password\gt{}]
1159    \index[general]{{-}{\-}with-dir-password}
1160    This option allows you to specify the password used to  access the Director
1161    (normally from the Console program).  If it is not specified, configure will
1162    automatically create a random  password.  
1163
1164 \item [ {-}{\-}with-fd-password=\lt{}Password\gt{} ]
1165    \index[general]{{-}{\-}with-fd-password}
1166    This option allows you to specify the password used to  access the File daemon
1167    (normally called from the Director).  If it is not specified, configure will
1168    automatically create a random  password.  
1169
1170 \item [ {-}{\-}with-sd-password=\lt{}Password\gt{} ]
1171    \index[general]{{-}{\-}with-sd-password}
1172    This option allows you to specify the password used to access the Storage daemon
1173    (normally called from the Director).  If it is not specified, configure will
1174    automatically create a random  password.  
1175
1176 \item [ {-}{\-}with-dir-user=\lt{}User\gt{} ]
1177    \index[general]{{-}{\-}with-dir-user}
1178    This option allows you to specify the Userid used to run the Director.  The
1179    Director must be started as root, but doesn't need to run as root, and
1180    after doing preliminary initializations, it can "drop" to the UserId
1181    specified on this option.  
1182    If you specify this option, you must
1183    create the User prior to running {\bf make install}, because the
1184    working directory owner will be set to {\bf User}.
1185                        
1186 \item [ {-}{\-}with-dir-group=\lt{}Group\gt{} ]
1187    \index[general]{{-}{\-}with-dir-group}
1188    This option allows you to specify the GroupId used to  run the Director. The
1189    Director must be started as root, but  doesn't need to run as root, and  after
1190    doing preliminary initializations, it can "drop"  to the GroupId specified
1191    on this option. 
1192    If you specify this option, you must
1193    create the Group prior to running {\bf make install}, because the
1194    working directory group will be set to {\bf Group}.
1195
1196 \item [ {-}{\-}with-sd-user=\lt{}User\gt{} ]
1197    \index[general]{{-}{\-}with-sd-user}
1198    This option allows you to specify the Userid used to  run the Storage daemon.
1199    The Storage daemon must be started as root, but  doesn't need to run as root,
1200    and  after doing preliminary initializations, it can "drop"  to the UserId
1201    specified on this option. If you use this option,  you will need to take care
1202    that the Storage daemon has access  to all the devices (tape drives, ...) that
1203    it needs. 
1204
1205 \item [ {-}{\-}with-sd-group=\lt{}Group\gt{} ]
1206    \index[general]{{-}{\-}with-sd-group}
1207    This option allows you to specify the GroupId used to  run the Storage daemon.
1208    The Storage daemon must be started as root, but  doesn't need to run as root,
1209    and  after doing preliminary initializations, it can "drop"  to the GroupId
1210    specified on this option. 
1211
1212 \item [ {-}{\-}with-fd-user=\lt{}User\gt{} ]
1213    \index[general]{{-}{\-}with-fd-user}
1214    This option allows you to specify the Userid used to  run the File daemon. The
1215    File daemon must be started as root,  and in most cases, it needs to run as
1216    root, so this option is  used only in very special cases,  after doing
1217    preliminary initializations, it can "drop"  to the UserId specified on this
1218    option. 
1219
1220 \item [ {-}{\-}with-fd-group=\lt{}Group\gt{} ]
1221    \index[general]{{-}{\-}with-fd-group}
1222    This option allows you to specify the GroupId used to  run the File daemon.
1223    The File daemon must be started as root, and  in most cases, it must be run as
1224    root, however,  after doing preliminary initializations, it can "drop"  to
1225    the GroupId specified on this option. 
1226
1227 \item [ {-}{\-}with-mon-dir-password=\lt{}Password\gt{}]
1228    \index[general]{{-}{\-}with-mon-dir-password}
1229    This option allows you to specify the password used to  access the Directory
1230    from the monitor.  If it is not specified, configure will
1231    automatically create a random  password.  
1232
1233 \item [ {-}{\-}with-mon-fd-password=\lt{}Password\gt{} ]
1234    \index[general]{{-}{\-}with-mon-fd-password}
1235    This option allows you to specify the password used to  access the File daemon
1236    from the Monitor.  If it is not specified, configure will
1237    automatically create a random  password.  
1238
1239 \item [ {-}{\-}with-mon-sd-password=\lt{}Password\gt{} ]
1240    \index[general]{{-}{\-}with-mon-sd-password}
1241    This option allows you to specify the password used to  access the
1242    Storage daemon from the Monitor. If it is not specified, configure will
1243    automatically create a random  password.  
1244
1245 \item [ {-}{\-}with-db-name=\lt{}database-name\gt{} ]
1246    \index[general]{{-}{\-}with-db-name}
1247    This option allows you to specify the database name to be used in
1248    the conf files.  The default is bacula.
1249
1250 \item [ {-}{\-}with-db-user=\lt{}database-user\gt{} ]
1251    \index[general]{{-}{\-}with-db-user}
1252    This option allows you to specify the database user name to be used in
1253    the conf files.  The default is bacula.
1254
1255 \end{description}
1256
1257 Note, many other options are presented when you do a {\bf ./configure
1258 \verb:--:help}, but they are not implemented.
1259
1260 \section{Recommended Options for Most Systems}
1261 \index[general]{Systems!Recommended Options for Most}
1262 \index[general]{Recommended Options for Most Systems}
1263
1264 For most systems, we recommend starting with the following options: 
1265
1266 \footnotesize
1267 \begin{verbatim}
1268 ./configure \
1269   --enable-smartalloc \
1270   --sbindir=$HOME/bacula/bin \
1271   --sysconfdir=$HOME/bacula/bin \
1272   --with-pid-dir=$HOME/bacula/bin/working \
1273   --with-subsys-dir=$HOME/bacula/bin/working \
1274   --with-mysql=$HOME/mysql \
1275   --with-working-dir=$HOME/bacula/working
1276 \end{verbatim}
1277 \normalsize
1278
1279 If you want to install Bacula in an installation directory rather than run it
1280 out of the build directory (as developers will do most of the time), you
1281 should also include the \verb:--:sbindir and \verb:--:sysconfdir options with appropriate
1282 paths. Neither are necessary if you do not use "make install" as is the case
1283 for most development work. The install process will create the sbindir and
1284 sysconfdir if they do not exist, but it will not automatically create the
1285 pid-dir, subsys-dir, or working-dir, so you must ensure that they exist before
1286 running Bacula for the first time.
1287
1288 \section{Red Hat}
1289 \index[general]{Red Hat}
1290
1291 Using SQLite: 
1292
1293 \footnotesize
1294 \begin{verbatim}
1295  
1296 CFLAGS="-g -Wall" ./configure \
1297   --sbindir=$HOME/bacula/bin \
1298   --sysconfdir=$HOME/bacula/bin \
1299   --enable-smartalloc \
1300   --with-sqlite=$HOME/bacula/depkgs/sqlite \
1301   --with-working-dir=$HOME/bacula/working \
1302   --with-pid-dir=$HOME/bacula/bin/working \
1303   --with-subsys-dir=$HOME/bacula/bin/working \
1304   --enable-bat \
1305   --enable-conio
1306 \end{verbatim}
1307 \normalsize
1308
1309 or 
1310
1311 \footnotesize
1312 \begin{verbatim}
1313  
1314 CFLAGS="-g -Wall" ./configure \
1315   --sbindir=$HOME/bacula/bin \
1316   --sysconfdir=$HOME/bacula/bin \
1317   --enable-smartalloc \
1318   --with-mysql=$HOME/mysql \
1319   --with-working-dir=$HOME/bacula/working
1320   --with-pid-dir=$HOME/bacula/bin/working \
1321   --with-subsys-dir=$HOME/bacula/bin/working
1322   --enable-conio
1323 \end{verbatim}
1324 \normalsize
1325
1326 or finally, a completely traditional Red Hat Linux install: 
1327
1328 \footnotesize
1329 \begin{verbatim}
1330 CFLAGS="-g -Wall" ./configure \
1331   --sbindir=/usr/sbin \
1332   --sysconfdir=/etc/bacula \
1333   --with-scriptdir=/etc/bacula \
1334   --enable-smartalloc \
1335   --enable-bat \
1336   --with-mysql \
1337   --with-working-dir=/var/bacula \
1338   --with-pid-dir=/var/run \
1339   --enable-conio
1340 \end{verbatim}
1341 \normalsize
1342
1343 Note, Bacula assumes that /var/bacula, /var/run, and /var/lock/subsys exist so
1344 it will not automatically create them during the install process. 
1345
1346 \section{Solaris}
1347 \index[general]{Solaris}
1348
1349 To build Bacula from source, you will need the following installed on your
1350 system (they are not by default): libiconv, gcc 3.3.2, stdc++, libgcc (for
1351 stdc++ and gcc\_s libraries), make 3.8 or later. 
1352
1353 You will probably also need to: Add /usr/local/bin to PATH and Add
1354 /usr/ccs/bin to PATH for ar. 
1355
1356 It is possible to build Bacula on Solaris with the Solaris compiler, but
1357 we recommend using GNU C++ if possible.  
1358
1359 A typical configuration command might look like:
1360
1361 \footnotesize
1362 \begin{verbatim}
1363 #!/bin/sh
1364 CFLAGS="-g" ./configure \
1365   --sbindir=$HOME/bacula/bin \
1366   --sysconfdir=$HOME/bacula/bin \
1367   --with-mysql=$HOME/mysql \
1368   --enable-smartalloc \
1369   --with-pid-dir=$HOME/bacula/bin/working \
1370   --with-subsys-dir=$HOME/bacula/bin/working \
1371   --with-working-dir=$HOME/bacula/working
1372 \end{verbatim}
1373 \normalsize
1374
1375 As mentioned above, the install process will create the sbindir and sysconfdir
1376 if they do not exist, but it will not automatically create the pid-dir,
1377 subsys-dir, or working-dir, so you must ensure that they exist before running
1378 Bacula for the first time.
1379
1380 Note, you may need to install the following packages to build Bacula
1381 from source:
1382 \footnotesize
1383 \begin{verbatim}
1384 SUNWbinutils,
1385 SUNWarc,
1386 SUNWhea,
1387 SUNWGcc,
1388 SUNWGnutls
1389 SUNWGnutls-devel
1390 SUNWGmake
1391 SUNWgccruntime
1392 SUNWlibgcrypt
1393 SUNWzlib
1394 SUNWzlibs
1395 SUNWbinutilsS
1396 SUNWGmakeS
1397 SUNWlibm
1398
1399 export 
1400 PATH=/usr/bin::/usr/ccs/bin:/etc:/usr/openwin/bin:/usr/local/bin:/usr/sfw/bin:/opt/sfw/bin:/usr/ucb:/usr/sbin
1401 \end{verbatim}
1402 \normalsize
1403
1404 If you have installed special software not normally in the Solaris
1405 libraries, such as OpenSSL, or the packages shown above, then you may need
1406 to add {\bf /usr/sfw/lib} to the library search path.  Probably the
1407 simplest way to do so is to run:
1408
1409 \footnotesize
1410 \begin{verbatim}
1411 setenv LDFLAGS "-L/usr/sfw/lib -R/usr/sfw/lib"
1412 \end{verbatim}
1413 \normalsize
1414
1415 Prior to running the ./configure command.
1416
1417 Alternatively, you can set the LD\_LIBARY\_PATH and/or the LD\_RUN\_PATH
1418 environment variables appropriately.
1419
1420 It is also possible to use the {\bf crle} program to set the library
1421 search path.  However, this should be used with caution.
1422
1423 \section{FreeBSD}
1424 \index[general]{FreeBSD}
1425
1426 Please see: 
1427 \elink{The FreeBSD Diary}{http://www.freebsddiary.org/bacula.php} for a
1428 detailed description on how to make Bacula work on your system. In addition,
1429 users of FreeBSD prior to 4.9-STABLE dated Mon Dec 29 15:18:01 2003 UTC who
1430 plan to use tape devices, please see the 
1431 \ilink{Tape Testing Chapter}{FreeBSDTapes} of this manual for
1432 {\bf important} information on how to configure your tape drive for
1433 compatibility with Bacula. 
1434
1435 If you are using Bacula with MySQL, you should take care to compile MySQL with
1436 FreeBSD native threads rather than LinuxThreads, since Bacula is normally built
1437 with FreeBSD native threads rather than LinuxTreads. Mixing the two will
1438 probably not work. 
1439
1440 \section{Win32}
1441 \index[general]{Win32}
1442
1443 To install the binary Win32 version of the File daemon please see the 
1444 \ilink{Win32 Installation Chapter}{Win32Chapter} in this document. 
1445
1446 \section{One File Configure Script}
1447 \index[general]{Script!One File Configure}
1448 \index[general]{One Files Configure Script}
1449
1450 The following script could be used if you want to put everything
1451 in a single file:
1452
1453 \footnotesize
1454 \begin{verbatim}
1455 #!/bin/sh
1456 CFLAGS="-g -Wall" \
1457   ./configure \
1458     --sbindir=$HOME/bacula/bin \
1459     --sysconfdir=$HOME/bacula/bin \
1460     --mandir=$HOME/bacula/bin \
1461     --enable-smartalloc \
1462     --enable-bat \
1463     --enable-bwx-console \
1464     --enable-tray-monitor \
1465     --with-pid-dir=$HOME/bacula/bin/working \
1466     --with-subsys-dir=$HOME/bacula/bin/working \
1467     --with-mysql \
1468     --with-working-dir=$HOME/bacula/bin/working \
1469     --with-dump-email=$USER@your-site.com \
1470     --with-job-email=$USER@your-site.com \
1471     --with-smtp-host=mail.your-site.com
1472 exit 0
1473 \end{verbatim}
1474 \normalsize
1475
1476 You may also want to put the following entries in your {\bf /etc/services}
1477 file as it will make viewing the connections made by Bacula easier to
1478 recognize (i.e. netstat -a): 
1479
1480 \footnotesize
1481 \begin{verbatim}
1482 bacula-dir      9101/tcp
1483 bacula-fd       9102/tcp
1484 bacula-sd       9103/tcp
1485 \end{verbatim}
1486 \normalsize
1487
1488 \section{Installing Bacula}
1489 \index[general]{Bacula!Installing}
1490 \index[general]{Installing Bacula}
1491
1492 Before setting up your configuration files, you will want to install Bacula in
1493 its final location. Simply enter: 
1494
1495 \footnotesize
1496 \begin{verbatim}
1497 make install
1498 \end{verbatim}
1499 \normalsize
1500
1501 If you have previously installed Bacula, the old binaries will be overwritten,
1502 but the old configuration files will remain unchanged, and the "new"
1503 configuration files will be appended with a {\bf .new}. Generally if you have
1504 previously installed and run Bacula you will want to discard or ignore the
1505 configuration files with the appended {\bf .new}. 
1506
1507 \section{Building a File Daemon or Client}
1508 \index[general]{Client!Building a File Daemon or}
1509 \index[general]{Building a File Daemon or Client}
1510
1511 If you run the Director and the Storage daemon on one machine and you wish to
1512 back up another machine, you must have a copy of the File daemon for that
1513 machine. If the machine and the Operating System are identical, you can simply
1514 copy the Bacula File daemon binary file {\bf bacula-fd} as well as its
1515 configuration file {\bf bacula-fd.conf} then modify the name and password in
1516 the conf file to be unique. Be sure to make corresponding additions to the
1517 Director's configuration file ({\bf bacula-dir.conf}). 
1518
1519 If the architecture or the OS level are different, you will need to build a
1520 File daemon on the Client machine. To do so, you can use the same {\bf
1521 ./configure} command as you did for your main program, starting either from a
1522 fresh copy of the source tree, or using {\bf make\ distclean} before the {\bf
1523 ./configure}. 
1524
1525 Since the File daemon does not access the Catalog database, you can remove
1526 the {\bf \verb:--:with-mysql} or {\bf \verb:--:with-sqlite} options, then
1527 add {\bf \verb:--:enable-client-only}.  This will compile only the
1528 necessary libraries and the client programs and thus avoids the necessity
1529 of installing one or another of those database programs to build the File
1530 daemon.  With the above option, you simply enter {\bf make} and just the
1531 client will be built.
1532
1533 \label{autostart}
1534 \section{Auto Starting the Daemons}
1535 \index[general]{Daemons!Auto Starting the}
1536 \index[general]{Auto Starting the Daemons}
1537
1538 If you wish the daemons to be automatically started and stopped when your
1539 system is booted (a good idea), one more step is necessary. First, the
1540 ./configure process must recognize your system -- that is it must be a
1541 supported platform and not {\bf unknown}, then you must install the platform
1542 dependent files by doing: 
1543
1544 \footnotesize
1545 \begin{verbatim}
1546 (become root)
1547 make install-autostart
1548 \end{verbatim}
1549 \normalsize
1550
1551 Please note, that the auto-start feature is implemented only on systems
1552 that we officially support (currently, FreeBSD, Red Hat/Fedora Linux, and
1553 Solaris), and has only been fully tested on Fedora Linux.
1554
1555 The {\bf make install-autostart} will cause the appropriate startup scripts
1556 to be installed with the necessary symbolic links.  On Red Hat/Fedora Linux
1557 systems, these scripts reside in {\bf /etc/rc.d/init.d/bacula-dir} {\bf
1558 /etc/rc.d/init.d/bacula-fd}, and {\bf /etc/rc.d/init.d/bacula-sd}.  However
1559 the exact location depends on what operating system you are using.
1560
1561 If you only wish to install the File daemon, you may do so with: 
1562
1563 \footnotesize
1564 \begin{verbatim}
1565 make install-autostart-fd
1566 \end{verbatim}
1567 \normalsize
1568
1569 \section{Other Make Notes}
1570 \index[general]{Notes!Other Make}
1571 \index[general]{Other Make Notes}
1572
1573 To simply build a new executable in any directory, enter: 
1574
1575 \footnotesize
1576 \begin{verbatim}
1577 make
1578 \end{verbatim}
1579 \normalsize
1580
1581 To clean out all the objects and binaries (including the files named 1, 2, or
1582 3, which are development temporary files), enter: 
1583
1584 \footnotesize
1585 \begin{verbatim}
1586 make clean
1587 \end{verbatim}
1588 \normalsize
1589
1590 To really clean out everything for distribution, enter: 
1591
1592 \footnotesize
1593 \begin{verbatim}
1594 make distclean
1595 \end{verbatim}
1596 \normalsize
1597
1598 note, this cleans out the Makefiles and is normally done from the top level
1599 directory to prepare for distribution of the source. To recover from this
1600 state, you must redo the {\bf ./configure} in the top level directory, since
1601 all the Makefiles will be deleted. 
1602
1603 To add a new file in a subdirectory, edit the Makefile.in in that directory,
1604 then simply do a {\bf make}. In most cases, the make will rebuild the Makefile
1605 from the new Makefile.in. In some case, you may need to issue the {\bf make} a
1606 second time. In extreme cases, cd to the top level directory and enter: {\bf
1607 make Makefiles}. 
1608
1609 To add dependencies: 
1610
1611 \footnotesize
1612 \begin{verbatim}
1613 make depend
1614 \end{verbatim}
1615 \normalsize
1616
1617 The {\bf make depend} appends the header file dependencies for each of the
1618 object files to Makefile and Makefile.in. This command should be done in each
1619 directory where you change the dependencies. Normally, it only needs to be run
1620 when you add or delete source or header files. {\bf make depend} is normally
1621 automatically invoked during the configuration process. 
1622
1623 To install: 
1624
1625 \footnotesize
1626 \begin{verbatim}
1627 make install
1628 \end{verbatim}
1629 \normalsize
1630
1631 This not normally done if you are developing Bacula, but is used if you are
1632 going to run it to backup your system. 
1633
1634 After doing a {\bf make install} the following files will be installed on your
1635 system (more or less). The exact files and location (directory) for each file
1636 depends on your {\bf ./configure} command (e.g. if you are using SQLite instead
1637 of MySQL, some of the files will be different).
1638
1639 NOTE: it is quite probable that this list is out of date.  But it is a
1640 starting point.
1641
1642 \footnotesize
1643 \begin{verbatim}
1644 bacula
1645 bacula-dir
1646 bacula-dir.conf
1647 bacula-fd
1648 bacula-fd.conf
1649 bacula-sd
1650 bacula-sd.conf
1651 bacula-tray-monitor
1652 tray-monitor.conf
1653 bextract
1654 bls
1655 bscan
1656 btape
1657 btraceback
1658 btraceback.gdb
1659 bconsole
1660 bconsole.conf
1661 create_mysql_database
1662 dbcheck
1663 delete_catalog_backup
1664 drop_bacula_tables
1665 drop_mysql_tables
1666 make_bacula_tables
1667 make_catalog_backup
1668 make_mysql_tables
1669 mtx-changer
1670 query.sql
1671 bsmtp
1672 startmysql
1673 stopmysql
1674 bwx-console
1675 bwx-console.conf
1676 9 man pages
1677 \end{verbatim}
1678 \normalsize
1679
1680 \label{monitor}
1681
1682 \section{Installing Tray Monitor}
1683 \index[general]{Monitor!Installing Tray}
1684 \index[general]{Installing Tray Monitor}
1685
1686 The Tray Monitor is already installed if you used the {\bf
1687 \verb:--:enable-tray-monitor} configure option and ran {\bf make install}.
1688
1689 As you don't run your graphical environment as root (if you do, you should
1690 change that bad habit), don't forget to allow your user to read {\bf
1691 tray-monitor.conf}, and to execute {\bf bacula-tray-monitor} (this is not a
1692 security issue).
1693
1694 Then log into your graphical environment (KDE, GNOME or something else), run
1695 {\bf bacula-tray-monitor} as your user, and see if a cassette icon appears
1696 somewhere on the screen, usually on the task bar.
1697 If it doesn't, follow the instructions below related to your environment or
1698 window manager. 
1699
1700 \subsection{GNOME}
1701 \index[general]{GNOME}
1702
1703 System tray, or notification area if you use the GNOME terminology, has been
1704 supported in GNOME since version 2.2. To activate it, right-click on one of
1705 your panels, open the menu {\bf Add to this Panel}, then {\bf Utility} and
1706 finally click on {\bf Notification Area}. 
1707
1708 \subsection{KDE}
1709 \index[general]{KDE}
1710
1711 System tray has been supported in KDE since version 3.1. To activate it,
1712 right-click on one of your panels, open the menu {\bf Add}, then {\bf Applet}
1713 and finally click on {\bf System Tray}. 
1714
1715 \subsection{Other window managers}
1716 \index[general]{Managers!Other window}
1717 \index[general]{Other window managers}
1718
1719 Read the documentation to know if the Freedesktop system tray standard is
1720 supported by your window manager, and if applicable, how to activate it. 
1721
1722 \section{Modifying the Bacula Configuration Files}
1723 \index[general]{Modifying the Bacula Configuration Files}
1724 \index[general]{Files!Modifying the Bacula Configuration}
1725
1726 See the chapter 
1727 \ilink{Configuring Bacula}{ConfigureChapter} in this manual for
1728 instructions on how to set Bacula configuration files.