]> git.sur5r.net Git - bacula/docs/blob - docs/manual-de/install.tex
6f2ca07711d73cea530fb9807b53218886e14f3d
[bacula/docs] / docs / manual-de / install.tex
1 %%
2 %%
3
4 \section*{Installing Bacula}
5 \label{_ChapterStart17}
6 \index[general]{Bacula!Installing }
7 \index[general]{Installing Bacula }
8 \addcontentsline{toc}{section}{Installing Bacula}
9
10 \subsection*{General}
11 \index[general]{General }
12 \addcontentsline{toc}{subsection}{General}
13
14 In general, you will need the Bacula source release, and if you want to run a
15 Windows client, you will need the Bacula Windows binary release. However,
16 Bacula needs certain third party packages (such as {\bf SQLite}, {\bf MySQL}, or
17 {\bf PostgreSQL}
18 to build properly depending on the options you specify. To simplify your task,
19 we have combined a number of these packages into two {\bf depkgs} releases
20 (Dependency Packages). This can vastly simplify your life by providing you
21 with all the necessary packages rather than requiring you to find them on the
22 Web, load them, and install them. 
23 \label{upgrading1}
24
25 \subsection*{Upgrading Bacula}
26 \index[general]{Bacula!Upgrading }
27 \index[general]{Upgrading Bacula }
28 \addcontentsline{toc}{subsection}{Upgrading Bacula}
29
30 If you are upgrading from one Bacula version to another, you should first
31 carefully read the ReleaseNotes of all versions between your current version
32 and the version to which you are upgrading. If the Bacula catalog database has
33 been upgraded, you will either need to reinitialize your database starting
34 from scratch, or save an ASCII copy of your database, then proceed to upgrade
35 it. If there are several database upgrades between your version and the
36 version to which you are upgrading, you will need to apply each database
37 upgrade script. For your convenience, you can find all the old upgrade scripts
38 in the {\bf upgradedb} directory of the source code. You will need to edit the
39 scripts to correspond to your system configuration. The final upgrade script,
40 if any, will be in the {\bf src/cats} directory as described in the
41 ReleaseNotes. 
42
43 If you are upgrading from one major version to another, you will need to
44 replace all your components at the same time as generally the inter-daemon
45 protocol will change. However, within any particular release (e.g. version
46 1.32.x) unless there is an oversight or bug, the daemon protocol will not
47 change. If this is confusing, simply read the ReleaseNotes very carefully as
48 they will note if all daemons must be upgraded at the same time. 
49
50 Finally, please note that in general it is not necessary to do a 
51 {\bf make uninstall} before doing an upgrade. In fact, if you do so, you will 
52 most likely delete all your conf files, which could be disastrous.
53 For additional information on upgrading, please see the \ilink{Upgrading Bacula
54 Versions}{upgrading} in the Tips chapter of this manual.
55
56
57 \subsection*{Dependency Packages}
58 \label{Dependency}
59 \index[general]{Dependency Packages }
60 \index[general]{Packages!Dependency }
61 \addcontentsline{toc}{subsection}{Dependency Packages}
62
63 As discussed above, we have combined a number of third party packages that
64 Bacula might need into the {\bf depkgs} and {\bf depkgs1} releases. You can,
65 of course, get the latest packages from the original authors. The locations of
66 where we obtained the packages are in the README file in each package.
67 However, be aware that the packages in the depkgs files have been tested by us
68 for compatibility with Bacula. 
69
70 Typically, a dependency package will be named {\bf depkgs-ddMMMyy.tar.gz} and
71 {\bf depkgs1-ddMMyy.tar.gz} where {\bf dd} is the day we release it, {\bf MMM}
72 is the abbreviated month (e.g. Jan), and {\bf yy} is the year. An actual
73 example is: {\bf depkgs-07Apr02.tar.gz}. To install and build this package (if
74 needed), you do the following: 
75
76 \begin{enumerate}
77 \item Create a {\bf bacula} directory, into which you will place  both the
78    Bacula source as well as the dependency package.  
79 \item Detar the {\bf depkg} into the {\bf bacula} directory.  
80 \item cd bacula/depkgs  
81 \item make 
82    \end{enumerate}
83
84 Although the exact composition of the dependency packages may change from time
85 to time, the current makeup is the following: 
86
87 \addcontentsline{lot}{table}{Dependency Packages}
88 \begin{longtable}{|l|l|l|l|}
89  \hline 
90 \multicolumn{1}{|c| }{\bf 3rd Party Package } & \multicolumn{1}{c| }{\bf
91 depkgs } & \multicolumn{1}{c| }{\bf depkgs1 } & \multicolumn{1}{c| }{\bf
92 depkgs-win32  } \\
93  \hline {SQLite } & \multicolumn{1}{c| }{X } & \multicolumn{1}{c| }{- } &
94 \multicolumn{1}{c| }{-  } \\
95  \hline {mtx } & \multicolumn{1}{c| }{X } & \multicolumn{1}{c| }{- } &
96 \multicolumn{1}{c| }{-  } \\
97  \hline {readline } & \multicolumn{1}{c| }{- } & \multicolumn{1}{c| }{X } &
98 \multicolumn{1}{c| }{-  } \\
99  \hline {pthreads } & \multicolumn{1}{c| }{- } & \multicolumn{1}{c| }{- } &
100 \multicolumn{1}{c| }{X  } \\
101  \hline {zlib } & \multicolumn{1}{c| }{- } & \multicolumn{1}{c| }{- } &
102 \multicolumn{1}{c| }{X  } \\
103  \hline {wxWidgets } & \multicolumn{1}{c| }{- } & \multicolumn{1}{c| }{- } &
104 \multicolumn{1}{c| }{X }
105 \\ \hline 
106
107 \end{longtable}
108
109 Note, some of these packages are quite large, so that building them can be a
110 bit time consuming. The above instructions will build all the packages
111 contained in the directory. However, when building Bacula, it will take only
112 those pieces that it actually needs. 
113
114 Alternatively, you can make just the packages that are needed. For example, 
115
116 \footnotesize
117 \begin{verbatim}
118 cd bacula/depkgs
119 make sqlite
120 \end{verbatim}
121 \normalsize
122
123 will configure and build only the SQLite package. 
124
125 You should build the packages that you will require in {\bf depkgs} and/or
126 {\bf depkgs1} prior to configuring and building Bacula, since Bacula will need
127 them during the build process. 
128
129 Even if you do not use SQLite, you might find it worthwhile to build {\bf mtx}
130 because the {\bf tapeinfo} program that comes with it can often provide you
131 with valuable information about your SCSI tape drive (e.g. compression,
132 min/max block sizes, ...). 
133
134 The {\bf depkgs-win32} package contains the source code for the pthreads,
135 zlib, and wxWidgets libraries used by the native Win32 client program. 
136 It will only be needed
137 if you intend to build the Win32 client from source. 
138
139 \subsection*{Supported Operating Systems}
140 \label{Systems}
141 \index[general]{Systems!Supported Operating }
142 \index[general]{Supported Operating Systems }
143 \addcontentsline{toc}{subsection}{Supported Operating Systems}
144
145 Please see the 
146 \ilink{ Supported Operating Systems}{SupportedOSes} section
147 of the QuickStart chapter of this manual. 
148
149 \subsection*{Building Bacula from Source}
150 \label{Building}
151 \index[general]{Source!Building Bacula from }
152 \index[general]{Building Bacula from Source }
153 \addcontentsline{toc}{subsection}{Building Bacula from Source}
154
155 The basic installation is rather simple. 
156
157 \begin{enumerate}
158 \item Install and build any {\bf depkgs} as noted above.  
159 \item Configure and install MySQL or PostgreSQL (if desired). 
160    \ilink{Installing and Configuring MySQL Phase I}{_ChapterStart} or  
161    \ilink{Installing and Configuring PostgreSQL Phase
162    I}{_ChapterStart10}.  If you are installing from rpms, and are
163    using MySQL, please be sure to install  {\bf mysql-devel}, so that the MySQL
164    header files are available  while compiling Bacula. In addition, the MySQL
165    client  library {\bf mysqlclient} requires the gzip compression library  {\bf
166    libz.a} or {\bf libz.so}. If you are using rpm packages,  these libraries are
167    in the {\bf libz-devel} package. On Debian  systems, you will need to load the
168    {\bf zlib1g-dev} package. If  you are not using rpms or debs, you will need to
169    find the  appropriate package for your system.  
170    Note, if you already have a running MySQL or PostgreSQL on your system, you 
171    can skip this phase provided that you have built the thread  safe libraries.
172    And you have already installed the additional  rpms noted above.  
173 \item As an alternative to MySQL and PostgreSQL, configure and install SQLite,
174     which is part of the {\bf depkgs}.  
175    \ilink{Installing and Configuring SQLite}{_ChapterStart33}.  
176    \item Detar the Bacula source code preferably into the {\bf bacula}  directory
177    discussed above.  
178 \item {\bf cd} to the directory containing the source code.  
179 \item ./configure (with appropriate options as described below)  
180 \item Check the output of ./configure very carefully, especially  the Install
181    binaries and Install config directories.  If they are not correct,
182    please rerun ./configure until they  are. The output from ./configure is
183    stored in {\bf config.out}  and can be re-displayed at any time without
184    rerunning the  ./configure by doing {\bf cat config.out}.  
185 \item If after running ./configure once, you decide to change options  and
186    re-run it, that is perfectly fine, but before re-running it,  you should run: 
187
188
189 \footnotesize
190 \begin{verbatim}
191       make distclean
192       
193 \end{verbatim}
194 \normalsize
195
196 so that you are sure to start from scratch and not have a  mixture of the two
197 options. This is because ./configure  caches much of the information. The {\bf
198 make distclean}  is also critical if you move the source directory from one 
199 machine to another. If the {\bf make distclean} fails,  just ignore it and
200 continue on.  
201 \item make  
202
203    If you get errors while linking in the Storage daemon  directory (src/stored),
204 it is probably because you have not  loaded the static libraries on your
205 system. I noticed this  problem on a Solaris system. To correct it, make sure
206 that you  have not added {\bf \verb:--:enable-static-tools} to the  {\bf ./configure}
207 command. 
208 \item make install  
209 \item If you are new to Bacula, we {\bf strongly} recommend that you  skip the
210    next step and use the default configuration files,  then run the example
211    program in the next chapter, then  come back and modify your configuration
212 files to suit your  particular needs.  
213 \item Customize the configuration files for each of the three daemons 
214    (Directory, File, Storage) and for the Console program. For the  details of
215    how to do this, please see 
216 \ilink{Setting Up Bacula Configuration Files}{_ChapterStart16} in
217 the Configuration chapter of this manual.  We recommend that you start by
218 modifying the default configuration  files supplied, making the minimum
219 changes necessary.  Complete customization can be done after you have Bacula 
220 up and running.  Please take care when modifying passwords, which  were
221 randomly generated, and the {\bf Name}s as the  passwords and names must agree
222 between the configuration files  for security reasons. 
223 \item Create the Bacula MySQL database and tables (if using MySQL)  
224    \ilink{Installing and Configuring MySQL Phase II}{mysql_phase2} or 
225    create the Bacula PostgreSQL database and tables  
226 \ilink{Installing and Configuring PostgreSQL Phase
227 II}{PostgreSQL_phase2} or alternatively  if you are using
228 SQLite  
229 \ilink{Installing and Configuring SQLite Phase II}{phase2}.  
230 \item Start Bacula ({\bf ./bacula start}) Note. the next chapter  shows you
231    how to do this in detail.  
232 \item Interface with Bacula using the Console program  
233 \item For the previous two items, please follow the instructions  in the 
234    \ilink{Running Bacula}{_ChapterStart1} chapter of  this manual,
235    where you will run a simple backup and do a  restore. Do this before you make
236 heavy modifications to the  configuration files so that you are sure that
237 Bacula works  and are familiar with it. After that changing the conf files 
238 will be easier.  
239 \item If after installing Bacula, you decide to "move it", that is  to
240    install it in a different set of directories, proceed  as follows:  
241
242 \footnotesize
243 \begin{verbatim}
244       make uninstall
245       make distclean
246       ./configure (your-new-options)
247       make
248       make install
249       
250 \end{verbatim}
251 \normalsize
252
253 \end{enumerate}
254
255 If all goes well, the {\bf ./configure} will correctly determine which
256 operating system you are running and configure the source code appropriately.
257 Currently, FreeBSD, Linux (RedHat), and Solaris are supported. MacOS X 10.3 is
258 reported to work with the Client only as long as readline support is disabled.
259
260
261 If you install Bacula on more than one system, and they are identical, you can
262 simply transfer the source tree to that other system and do a "make
263 install". However, if there are differences in the libraries or OS versions,
264 or you wish to install on a different OS, you should start from the original
265 compress tar file. If you do transfer the source tree, and you have previously
266 done a ./configure command, you MUST do: 
267
268 \footnotesize
269 \begin{verbatim}
270 make distclean
271 \end{verbatim}
272 \normalsize
273
274 prior to doing your new ./configure. This is because the GNU autoconf tools
275 cache the configuration, and if you re-use a configuration for a Linux machine
276 on a Solaris, you can be sure your build will fail. To avoid this, as
277 mentioned above, either start from the tar file, or do a "make distclean". 
278
279 In general, you will probably want to supply a more complicated {\bf
280 configure} statement to ensure that the modules you want are built and that
281 everything is placed into the correct directories. 
282
283 For example, on RedHat, one could use the following: 
284
285 \footnotesize
286 \begin{verbatim}
287 CFLAGS="-g -Wall" \
288   ./configure \
289     --sbindir=$HOME/bacula/bin \
290     --sysconfdir=$HOME/bacula/bin \
291     --with-pid-dir=$HOME/bacula/bin/working \
292     --with-subsys-dir=$HOME/bacula/bin/working \
293     --with-mysql=$HOME/mysql \
294     --with-working-dir=$HOME/bacula/bin/working \
295     --with-dump-email=$USER
296 \end{verbatim}
297 \normalsize
298
299 Note, the advantage of using the above configuration to start is that
300 everything will be put into a single directory, which you can later delete
301 once you have run the examples in the next chapter and learned how Bacula
302 works. In addition, the above can be installed and run as non-root. 
303
304 For the developer's convenience, I have added a {\bf defaultconfig} script to
305 the {\bf examples} directory. This script contains the statements that you
306 would normally use, and each developer/user may modify them to suit his needs.
307 You should find additional useful examples in this directory as well. 
308
309 The {\bf \verb:--:enable-conio} or {\bf \verb:--:enable-readline} options are useful because
310 they provide a command line history and editing capability for the Console
311 program. If you have included either option in the build, either the {\bf
312 termcap} or the {\bf ncurses} package will be needed to link. On some systems,
313 such as SuSE, the termcap library is not in the standard library directory. As
314 a consequence, the option may be disabled or you may get an error message such
315 as: 
316
317 \footnotesize
318 \begin{verbatim}
319 /usr/lib/gcc-lib/i586-suse-linux/3.3.1/.../ld:
320 cannot find -ltermcap
321 collect2: ld returned 1 exit status
322 \end{verbatim}
323 \normalsize
324
325 while building the Bacula Console. In that case, you will need to set the {\bf
326 LDFLAGS} environment variable prior to building. 
327
328 \footnotesize
329 \begin{verbatim}
330 export LDFLAGS="-L/usr/lib/termcap"
331 \end{verbatim}
332 \normalsize
333
334 The same library requirements apply if you wish to use the readline
335 subroutines for command line editing and history or
336  if you are using a MySQL library that requires encryption. If you need encryption,
337 you can either export the appropriate additional library options as shown
338 above or, alternatively, you can include them directly on the ./configure line
339 as in: 
340
341 \footnotesize
342 \begin{verbatim}
343 LDFLAGS="-lssl -lcyrpto" \
344    ./configure \
345       <your-options>
346 \end{verbatim}
347 \normalsize
348
349 On some systems such as Mandriva, readline tends to
350 gobble up prompts, which makes it totally useless. If this happens to you, use
351 the disable option, or if you are using version 1.33 and above try using {\bf
352 \verb:--:enable-conio} to use a built-in readline replacement. You will still need
353 either the termcap or the ncurses library, but it is unlikely that the {\bf conio}
354 package will gobble up prompts. 
355
356 readline is no longer supported after version 1.34. The code is still
357 available and if users submit patches for it, I will be happy to apply them.
358 However, due to the fact that each version of readline seems to be
359 incompatible with previous versions, and that there are significant
360 differences between systems, I can no longer afford to support it. 
361
362 \subsection*{What Database to Use?}
363 \label{DB}
364 \index[general]{What Database to Use? }
365 \index[general]{Use!What Database to }
366 \addcontentsline{toc}{subsection}{What Database to Use?}
367
368 Before building Bacula you need to decide if you want to use SQLite, MySQL, or
369 PostgreSQL. If you are not already running MySQL or PostgreSQL, you might
370 want to start by testing with SQLite. This will greatly simplify the setup for you
371 because SQLite is compiled into Bacula an requires no administration. It
372 performs well and is suitable for small to medium sized installations (maximum
373 10-20 machines). However, we should note that a number of users have
374 had unexplained database corruption with SQLite. For that reason, we
375 recommend that you install either MySQL or PostgreSQL for production
376 work.
377
378 If you wish to use MySQL as the Bacula catalog, please see the 
379 \ilink{Installing and Configuring MySQL}{_ChapterStart} chapter of
380 this manual. You will need to install MySQL prior to continuing with the
381 configuration of Bacula. MySQL is a high quality database that is very
382 efficient and is suitable for any sized installation. It is slightly more
383 complicated than SQLite to setup and administer because it has a number of
384 sophisticated features such as userids and passwords. It runs as a separate
385 process, is truly professional and can manage a database of any size. 
386
387 If you wish to use PostgreSQL as the Bacula catalog, please see the 
388 \ilink{Installing and Configuring PostgreSQL}{_ChapterStart10}
389 chapter of this manual. You will need to install PostgreSQL prior to
390 continuing with the configuration of Bacula. PostgreSQL is very similar to
391 MySQL, though it tends to be slightly more SQL92 compliant and has many more
392 advanced features such as transactions, stored procedures, and the such. It
393 requires a certain knowledge to install and maintain. 
394
395 If you wish to use SQLite as the Bacula catalog, please see 
396 \ilink{Installing and Configuring SQLite}{_ChapterStart33} chapter of
397 this manual. 
398
399 \subsection*{Quick Start}
400 \index[general]{Quick Start }
401 \index[general]{Start!Quick }
402 \addcontentsline{toc}{subsection}{Quick Start}
403
404 There are a number of options and important considerations given below
405 that you can skip for the moment if you have not had any problems building
406 Bacula with a simplified configuration as shown above. 
407       
408 If the ./configure process is unable to find specific libraries (e.g.    
409 libintl, you should ensure that the appropriate package is installed on
410 your system. Alternatively, if the package is installed in a non-standard
411 location (as far as Bacula is concerned), then there is generally an
412 option listed below (or listed with "./configure {-}{-}help" that will
413 permit you to specify the directory that should be searched. In other
414 cases, there are options that will permit you to disable to feature 
415 (e.g. {-}{-}disable-nls).
416
417 If you want to dive right into it, we recommend you skip to the next chapter,
418 and run the example program. It will teach you a lot about Bacula and as an
419 example can be installed into a single directory (for easy removal) and run as
420 non-root. If you have any problems or when you want to do a real installation,
421 come back to this chapter and read the details presented below. 
422
423 \subsection*{Configure Options}
424 \label{Options}
425 \index[general]{Options!Configure }
426 \index[general]{Configure Options }
427 \addcontentsline{toc}{subsection}{Configure Options}
428
429 The following command line options are available for {\bf configure} to
430 customize your installation. 
431
432 \begin{description}
433
434 \item [ {-}{-}sysbindir=\lt{}binary-path\gt{}]
435    \index[general]{{-}{-}sysbindir }
436    Defines where the Bacula  binary (executable) files will be placed during a
437    {\bf make  install} command.  
438
439 \item [ {-}{-}sysconfdir=\lt{}config-path\gt{}]
440    \index[general]{{-}{-}sysconfdir }
441    Defines where the Bacula configuration files should be placed during a
442    {\bf make install} command.
443
444 \item [ {-}{-}mandir=\lt{}path\gt{}]
445    \index[general]{{-}{-}mandir}
446    By default, Bacula will install a simple Unix man page in 
447    /usr/share/man.  If you wish the man page to be installed in
448    a different location, use this option to specify the path.
449    Note, the main HTML and PDF Bacula documents are in a separate
450    tar file that is not part of the source distribution.
451
452 \item [ {-}{-}datadir=\lt{}path\gt{}]
453    \index[general]{{-}{-}datadir}
454    If you translate Bacula or parts of Bacula into a different language
455    you may specify the location of the po files using the {\bf
456    {-}{-}datadir} option. You must manually install any po files as
457    Bacula does not (yet) automatically do so.
458
459
460 \item [ {-}{-}enable-smartalloc ]
461    \index[general]{{-}{-}enable-smartalloc }
462    This enables the inclusion of the Smartalloc orphaned buffer detection
463    code.  This option is highly recommended.  Because we never build
464    without this option, you may experience problems if it is not enabled.
465    In this case, simply re-enable the option.  We strongly recommend
466    keeping this option enabled as it helps detect memory leaks.  This
467    configuration parameter is used while building Bacula
468
469 \item [ {-}{-}enable-gnome ]
470    \index[general]{{-}{-}enable-gnome }
471    If you have GNOME installed on your computer and you want to use the
472    GNOME GUI Console interface to Bacula, you must specify this option.
473    Doing so will build everything in the {\bf src/gnome-console} directory.
474
475 \item [ {-}{-}enable-wx-console ]
476    \index[general]{{-}{-}enable-wx-console }
477    If you have wxWidgets installed on your computer and you want to use the
478    wxWidgets GUI Console interface to Bacula, you must specify this option.
479    Doing so will build everything in the {\bf src/wx-console} directory.
480    This could also be useful to users who want a GUI Console and don't want
481    to install Gnome, as wxWidgets can work with GTK+, Motif or even X11
482    libraries.
483
484
485 \item [ {-}{-}enable-tray-monitor ]
486    \index[general]{{-}{-}enable-tray-monitor }
487    If you have GTK installed on your computer, you run a graphical
488    environment or a window manager compatible with the FreeDesktop system
489    tray standard (like KDE and GNOME) and you want to use a GUI to monitor
490    Bacula daemons, you must specify this option.  Doing so will build
491    everything in the {\bf src/tray-monitor} directory.
492
493 \item [ {-}{-}enable-static-tools]
494    \index[general]{{-}{-}enable-static-tools }
495    This option causes the linker to link the Storage daemon utility tools
496    ({\bf bls}, {\bf bextract}, and {\bf bscan}) statically.  This permits
497    using them without having the shared libraries loaded.  If you have
498    problems linking in the {\bf src/stored} directory, make sure you have
499    not enabled this option, or explicitly disable static linking by adding
500    {\bf \verb:--:disable-static-tools}.
501
502
503 \item [ {-}{-}enable-static-fd]
504    \index[general]{{-}{-}enable-static-fd }
505    This option causes the make process to build a {\bf static-bacula-fd} in
506    addition to the standard File daemon.  This static version will include
507    statically linked libraries and is required for the Bare Metal recovery.
508    This option is largely superseded by using {\bf make static-bacula-fd}
509    from with in the {\bf src/filed} directory.  Also, the {\bf
510    \verb:--:enable-client-only} option described below is useful for just
511    building a client so that all the other parts of the program are not
512    compiled.
513
514 \item [ {-}{-}enable-static-sd]
515    \index[general]{{-}{-}enable-static-sd }
516    This option causes the make process to build a {\bf static-bacula-sd} in
517    addition to the standard Storage daemon.  This static version will
518    include statically linked libraries and could be useful during a Bare
519    Metal recovery.
520  
521
522 \item [ {-}{-}enable-static-dir]
523    \index[general]{{-}{-}enable-static-dir }
524    This option causes the make process  to build a {\bf static-bacula-dir} in
525    addition to the standard  Director. This static version will include
526    statically linked  libraries and could be useful during a Bare Metal recovery.
527
528
529 \item [ {-}{-}enable-static-cons]
530    \index[general]{{-}{-}enable-static-cons }
531    This option causes the make process  to build a {\bf static-console} and a
532    {\bf static-gnome-console}  in addition to the standard console.  This static
533    version will include statically linked  libraries and could be useful during a
534    Bare Metal recovery.  
535
536 \item [ {-}{-}enable-client-only]
537    \index[general]{{-}{-}enable-client-only }
538    This option causes the make process  to build only the File daemon and the
539    libraries that it needs.  None of the other daemons, storage tools, nor the
540    console will  be built. Likewise a {\bf make install} will then only install 
541    the File daemon. To cause all daemons to be built, you will need  to do a
542    configuration without this option. This option greatly  facilitates building a
543    Client on a client only machine.  
544
545 \item [ {-}{-}enable-largefile]
546    \index[general]{{-}{-}enable-largefile }
547    This option (default) causes  Bacula to be built with 64 bit file address
548    support if it  is available on your system. This permits Bacula to read and 
549    write files greater than 2 GBytes in size. You may disable this  feature and
550    revert to 32 bit file addresses by using  {\bf \verb:--:disable-largefile}.  
551
552 \item [ {-}{-}disable-nls]
553    \index[general]{{-}{-}disable-nls}
554    By default, Bacula uses the GNU Native Language Support (NLS) libraries. On
555    some machines, these libraries may not be present or may not function 
556    correctly (especially on non-Linux implementations). In such cases, you
557    may specify {\bf {-}{-}disable-nls} to disable use of those libraries.
558    In such a case, Bacula will revert to using English.
559
560 \item [ {-}{-}with-sqlite=\lt{}sqlite-path\gt{}]
561    \index[general]{{-}{-}with-sqlite }
562    This enables use of the SQLite version 2.8.x database. The {\bf sqlite-path} is not
563    normally  specified as Bacula looks for the necessary components in  a
564    standard location ({\bf depkgs/sqlite}). See 
565    \ilink{Installing and Configuring SQLite}{_ChapterStart33} chapter of
566     this manual for more details.  
567
568 \item [ {-}{-}with-sqlite3=\lt{}sqlite3-path\gt{}]
569    \index[general]{{-}{-}with-sqlite3 }
570    This enables use of the SQLite version 3.x database. The {\bf sqlite3-path} is not
571    normally  specified as Bacula looks for the necessary components in  a
572    standard location ({\bf depkgs/sqlite3}). Although Bacula will run
573    with SQLite version 3.x, our testing shows that it is 4 to 10 times
574    slower than version 2.8.x and consequently, we do not recommend using
575    it. See 
576    \ilink{Installing and Configuring SQLite}{_ChapterStart33} chapter of
577     this manual for more details.  
578
579 \item [ {-}{-}with-mysql=\lt{}mysql-path\gt{}]
580    \index[general]{{-}{-}with-mysql }
581    This enables building of the Catalog services for Bacula. It  assumes that
582    MySQL is running on your system, and expects  it to be installed in the {\bf
583    mysql-path} that you  specify. If this option is not present, the build will 
584    automatically include the internal Bacula database  code. We recommend that
585    you use this option if possible.  If you do use this option, please proceed to
586    installing  MySQL in the 
587    \ilink{Installing and Configuring MySQL}{_ChapterStart} chapter
588    before proceeding with the configuration.
589
590 \item [ {-}{-}with-openssl=\lt{}path\gt{}]
591    This configuration option is necessary if you want to enable TLS (ssl)
592    in Bacula. Normally, the {\bf path} specification is not necessary since
593    the configuration searches for the OpenSSL libraries in standard system
594    locations. Enabling OpenSSL in Bacula permits secure communications
595    between the daemons. For more information on using TLS, please see the
596    \ilink{Bacula TLS}{_ChapterStart61} chapter of this manual.
597
598 \item [ {-}{-}with-postgresql=\lt{}path\gt{}]
599    \index[general]{{-}{-}with-postgresql }
600    This provides an explicit  path to the PostgreSQL libraries if Bacula cannot
601    find it by  default.  
602
603 \item [ {-}{-}with-python=\lt{}path\gt{}]
604    \index[general]{{-}{-}with-python }
605    This option enables Bacula support for Python. If no path is 
606    supplied, configure will search the     
607    standard library locations for Python 2.2, 2.3, or 2.4. If it cannot
608    find the library, you will need to supply a path to your Python
609    library directory.  Please see the 
610    \ilink{Python chapter}{_ChapterStart60} for the details of using
611    Python scripting.
612
613 \item [ {-}{-}with-libintl-prefix=\lt{}DIR\gt{}]
614    \index[general]{{-}{-}with-libintl-prefix}
615    This option may be used to tell Bacula to search DIR/include and
616    DIR/lib for the libintl headers and libraries needed for Native
617    Language Support (NLS).
618
619 \item [ {-}{-}enable-conio]
620    \index[general]{{-}{-}enable-conio }
621    Tells Bacula to enable building the  small, light weight readline replacement
622    routine. It is generally  much easier to configure than readline, although,
623    like readline,  it needs either the termcap or ncurses library.  
624
625 \item [ {-}{-}with-readline=\lt{}readline-path\gt{}]
626    \index[general]{{-}{-}with-readline }
627    Tells Bacula  where {\bf readline} is installed. Normally, Bacula will  find
628    readline if it is in a standard library. If it is not found  and no
629    \verb:--:with-readline is specified, readline will be disabled.  This option affects
630    the Bacula build. Readline provides  the Console program with a command line
631    history and editing  capability and is no longer supported, so you are on your
632    own  if you have problems. 
633
634 \item [ {-}{-}enable-readline]
635    \index[general]{{-}{-}enable-readline }
636    Tells Bacula to enable readline support.  It is normally disabled due to the
637    large number of configuration  problems and the fact that the package seems to
638    change in incompatible  ways from version to version.  
639
640 \item [ {-}{-}with-tcp-wrappers=\lt{}path\gt{}]
641    \index[general]{{-}{-}with-tcp-wrappers }
642    This specifies that you  want TCP wrappers (man hosts\_access(5)) compiled in.
643    The path is optional since  Bacula will normally find the libraries in the
644    standard locations.  This option affects the Bacula build.  In specifying your
645    restrictions in the {\bf /etc/hosts.allow}  or {\bf /etc/hosts.deny} files, do
646    not use the {\bf twist}  option (hosts\_options(5)) or the Bacula process will
647    be terminated. Note, when setting up your {\bf /etc/hosts.allow}
648    or {\bf /etc/hosts.deny}, you must identify the Bacula daemon in
649    question with the name you give it in your conf file rather than the
650    name of the executable.
651    
652    For more information on configuring and testing TCP wrappers, please  see the 
653    \ilink{Configuring and Testing TCP Wrappers}{wrappers}  section
654    in the Security Chapter.  
655
656 \item [ {-}{-}with-working-dir=\lt{}working-directory-path\gt{} ]
657    \index[general]{{-}{-}with-working-dir }
658    This option is mandatory and specifies a directory  into which Bacula may
659    safely place files that  will remain between Bacula executions. For example, 
660    if the internal database is used, Bacula will keep  those files in this
661    directory.  This option is only used to modify the daemon  configuration
662    files. You may also accomplish the same  thing by directly editing them later.
663    The working directory  is not automatically created by the install process, so
664    you  must ensure that it exists before using Bacula for the  first time. 
665
666 \item [ {-}{-}with-base-port=\lt{}port=number\gt{}]
667    \index[general]{{-}{-}with-base-port }
668    In order to run,  Bacula needs three TCP/IP ports (one for the Bacula 
669    Console, one for the Storage daemon, and one for the File daemon).  The {\bf
670    \verb:--:with-baseport} option will automatically assign three  ports beginning at
671    the base port address specified. You may  also change the port number in the
672    resulting configuration  files. However, you need to take care that the
673    numbers  correspond correctly in each of the three daemon configuration 
674    files. The default base port is 9101, which assigns ports 9101  through 9103.
675    These ports (9101, 9102, and 9103) have been  officially assigned to Bacula by
676    IANA.  This option is only used  to modify the daemon configuration files. You
677    may also accomplish  the same thing by directly editing them later. 
678
679 \item [ {-}{-}with-dump-email=\lt{}email-address\gt{}]
680    \index[general]{{-}{-}with-dump-email }
681    This option specifies  the email address where any core dumps should be set.
682    This option  is normally only used by developers.  
683
684 \item [ {-}{-}with-pid-dir=\lt{}PATH\gt{}  ]
685    \index[general]{{-}{-}with-pid-dir }
686    This specifies where Bacula should place the process id  file during
687    execution. The default is: {\bf /var/run}.  This directory is not created by
688    the install process, so  you must ensure that it exists before using Bacula
689    the  first time.  
690
691 \item [ {-}{-}with-subsys-dir=\lt{}PATH\gt{}]
692    \index[general]{{-}{-}with-subsys-dir }
693    This specifies where Bacula should place the subsystem lock  file during
694    execution. The default is {\bf /var/run/subsys}.  Please make sure that you do
695    not specify the same directory  for this directory and for the {\bf sbindir}
696    directory.  This directory is used only within the autostart scripts.  The
697    subsys directory is not created by the Bacula install,  so you must be sure to
698    create it before using Bacula. 
699
700 \item [ {-}{-}with-dir-password=\lt{}Password\gt{}]
701    \index[general]{{-}{-}with-dir-password }
702    This option allows you to specify the password used to  access the Directory
703    (normally from the Console program).  If it is not specified, configure will
704    automatically create a random  password.  
705
706 \item [ {-}{-}with-fd-password=\lt{}Password\gt{} ]
707    \index[general]{{-}{-}with-fd-password }
708    This option allows you to specify the password used to  access the File daemon
709    (normally called from the Director).  If it is not specified, configure will
710    automatically create a random  password.  
711
712 \item [ {-}{-}with-sd-password=\lt{}Password\gt{} ]
713    \index[general]{{-}{-}with-sd-password }
714    This option allows you to specify the password used to  access the Directory
715    (normally called from the Director).  If it is not specified, configure will
716    automatically create a random  password.  
717
718 \item [ {-}{-}with-dir-user=\lt{}User\gt{} ]
719    \index[general]{{-}{-}with-dir-user }
720    This option allows you to specify the Userid used to  run the Director. The
721    Director must be started as root, but  doesn't need to run as root, and  after
722    doing preliminary initializations, it can "drop"  to the UserId specified on
723    this option. 
724
725 \item [ {-}{-}with-dir-group=\lt{}Group\gt{} ]
726    \index[general]{{-}{-}with-dir-group }
727    This option allows you to specify the GroupId used to  run the Director. The
728    Director must be started as root, but  doesn't need to run as root, and  after
729    doing preliminary initializations, it can "drop"  to the GroupId specified
730    on this option. 
731
732 \item [ {-}{-}with-sd-user=\lt{}User\gt{} ]
733    \index[general]{{-}{-}with-sd-user }
734    This option allows you to specify the Userid used to  run the Storage daemon.
735    The Storage daemon must be started as root, but  doesn't need to run as root,
736    and  after doing preliminary initializations, it can "drop"  to the UserId
737    specified on this option. If you use this option,  you will need to take care
738    that the Storage daemon has access  to all the devices (tape drives, ...) that
739    it needs. 
740
741 \item [ {-}{-}with-sd-group=\lt{}Group\gt{} ]
742    \index[general]{{-}{-}with-sd-group }
743    This option allows you to specify the GroupId used to  run the Storage daemon.
744    The Storage daemon must be started as root, but  doesn't need to run as root,
745    and  after doing preliminary initializations, it can "drop"  to the GroupId
746    specified on this option. 
747
748 \item [ {-}{-}with-fd-user=\lt{}User\gt{} ]
749    \index[general]{{-}{-}with-fd-user }
750    This option allows you to specify the Userid used to  run the File daemon. The
751    File daemon must be started as root,  and in most cases, it needs to run as
752    root, so this option is  used only in very special cases,  after doing
753    preliminary initializations, it can "drop"  to the UserId specified on this
754    option. 
755
756 \item [ {-}{-}with-fd-group=\lt{}Group\gt{} ]
757    \index[general]{{-}{-}with-fd-group }
758    This option allows you to specify the GroupId used to  run the File daemon.
759    The File daemon must be started as root, and  in most cases, it must be run as
760    root, however,  after doing preliminary initializations, it can "drop"  to
761    the GroupId specified on this option. 
762
763 \end{description}
764
765 Note, many other options are presented when you do a {\bf ./configure \verb:--:help},
766 but they are not implemented. 
767
768 \subsection*{Recommended Options for most Systems}
769 \index[general]{Systems!Recommended Options for most }
770 \index[general]{Recommended Options for most Systems }
771 \addcontentsline{toc}{subsection}{Recommended Options for most Systems}
772
773 For most systems, we recommend starting with the following options: 
774
775 \footnotesize
776 \begin{verbatim}
777 ./configure \
778   --enable-smartalloc \
779   --sbindir=$HOME/bacula/bin \
780   --sysconfdir=$HOME/bacula/bin \
781   --with-pid-dir=$HOME/bacula/bin/working \
782   --with-subsys-dir=$HOME/bacula/bin/working \
783   --with-mysql=$HOME/mysql \
784   --with-working-dir=$HOME/bacula/working
785 \end{verbatim}
786 \normalsize
787
788 If you want to install Bacula in an installation directory rather than run it
789 out of the build directory (as developers will do most of the time), you
790 should also include the \verb:--:sbindir and \verb:--:sysconfdir options with appropriate
791 paths. Neither are necessary if you do not use "make install" as is the case
792 for most development work. The install process will create the sbindir and
793 sysconfdir if they do not exist, but it will not automatically create the
794 pid-dir, subsys-dir, or working-dir, so you must ensure that they exist before
795 running Bacula for the first time. See below for an example of how Kern does
796 it. 
797
798 \subsection*{RedHat}
799 \index[general]{RedHat }
800 \addcontentsline{toc}{subsection}{RedHat}
801
802 Using SQLite: 
803
804 \footnotesize
805 \begin{verbatim}
806  
807 CFLAGS="-g -Wall" ./configure \
808   --sbindir=$HOME/bacula/bin \
809   --sysconfdir=$HOME/bacula/bin \
810   --enable-smartalloc \
811   --with-sqlite=$HOME/bacula/depkgs/sqlite \
812   --with-working-dir=$HOME/bacula/working \
813   --with-pid-dir=$HOME/bacula/bin/working \
814   --with-subsys-dir=$HOME/bacula/bin/working \
815   --enable-gnome \
816   --enable-conio
817 \end{verbatim}
818 \normalsize
819
820 or 
821
822 \footnotesize
823 \begin{verbatim}
824  
825 CFLAGS="-g -Wall" ./configure \
826   --sbindir=$HOME/bacula/bin \
827   --sysconfdir=$HOME/bacula/bin \
828   --enable-smartalloc \
829   --with-mysql=$HOME/mysql \
830   --with-working-dir=$HOME/bacula/working
831   --with-pid-dir=$HOME/bacula/bin/working \
832   --with-subsys-dir=$HOME/bacula/bin/working
833   --enable-gnome \
834   --enable-conio
835 \end{verbatim}
836 \normalsize
837
838 or finally, a completely traditional RedHat Linux install: 
839
840 \footnotesize
841 \begin{verbatim}
842 CFLAGS="-g -Wall" ./configure \
843   --prefix=/usr \
844   --sbindir=/usr/sbin \
845   --sysconfdir=/etc/bacula \
846   --with-scriptdir=/etc/bacula \
847   --enable-smartalloc \
848   --enable-gnome \
849   --with-mysql \
850   --with-working-dir=/var/bacula \
851   --with-pid-dir=/var/run \
852   --with-subsys-dir=/var/lock/subsys \
853   --enable-conio
854 \end{verbatim}
855 \normalsize
856
857 Note, Bacula assumes that /var/bacula, /var/run, and /var/loc/subsys exist so
858 it will not automatically create them during the install process. 
859
860 \subsection*{Solaris}
861 \index[general]{Solaris }
862 \addcontentsline{toc}{subsection}{Solaris}
863
864 To build Bacula from source, you will need the following installed on your
865 system (they are not by default): libiconv, gcc 3.3.2, stdc++, libgcc (for
866 stdc++ and gcc\_s libraries), make 3.8 or later. 
867
868 You will probably also need to: Add /usr/local/bin to PATH and Add
869 /usr/ccs/bin to PATH for ar. 
870
871 \footnotesize
872 \begin{verbatim}
873 #!/bin/sh
874 CFLAGS="-g" ./configure \
875   --sbindir=$HOME/bacula/bin \
876   --sysconfdir=$HOME/bacula/bin \
877   --with-mysql=$HOME/mysql \
878   --enable-smartalloc \
879   --with-pid-dir=$HOME/bacula/bin/working \
880   --with-subsys-dir=$HOME/bacula/bin/working \
881   --with-working-dir=$HOME/bacula/working
882 \end{verbatim}
883 \normalsize
884
885 As mentioned above, the install process will create the sbindir and sysconfdir
886 if they do not exist, but it will not automatically create the pid-dir,
887 subsys-dir, or working-dir, so you must ensure that they exist before running
888 Bacula for the first time.
889
890 \subsection*{FreeBSD}
891 \index[general]{FreeBSD }
892 \addcontentsline{toc}{subsection}{FreeBSD}
893
894 Please see: 
895 \elink{The FreeBSD Diary}{http://www.freebsddiary.org/bacula.php} for a
896 detailed description on how to make Bacula work on your system. In addition,
897 users of FreeBSD prior to 4.9-STABLE dated Mon Dec 29 15:18:01 2003 UTC who
898 plan to use tape devices, please see the 
899 \ilink{Tape Testing Chapter}{FreeBSDTapes} of this manual for
900 {\bf important} information on how to configure your tape drive for
901 compatibility with Bacula. 
902
903 If you are using Bacula with MySQL, you should take care to compile MySQL with
904 FreeBSD native threads rather than LinuxThreads, since Bacula is normally built
905 with FreeBSD native threads rather than LinuxTreads. Mixing the two will
906 probably not work. 
907
908 \subsection*{Win32}
909 \index[general]{Win32 }
910 \addcontentsline{toc}{subsection}{Win32}
911
912 To install the binary Win32 version of the File daemon please see the 
913 \ilink{Win32 Installation Chapter}{_ChapterStart7} in this document. 
914
915 \subsection*{Windows Systems with CYGWIN Installed}
916 \label{Win32}
917 \index[general]{Windows Systems with CYGWIN Installed }
918 \index[general]{Installed!Windows Systems with CYGWIN }
919 \addcontentsline{toc}{subsection}{Windows Systems with CYGWIN Installed}
920
921 As of version 1.34, Bacula no longer uses CYGWIN for the Win32 File daemon.
922 However, it is still built under a CYGWIN build environment -- though you can
923 probably do it with VC Studio only. If you wish to build the Win32 File daemon
924 from the source, you will need Microsoft C++ version 6.0 or greater. In Bacula
925 prior to version 1.33, CYGWIN was used. Details for building it are in the
926 README.win32 file of the src/win32 directory. 
927
928 Note, although most parts of Bacula build on Windows systems, the only part
929 that we have tested and used is the File daemon. 
930
931 Finally, you should follow the installation instructions in the 
932 \ilink{Win32 Installation}{_ChapterStart7} section of this document. 
933
934 \subsection*{Kern's Configure Script}
935 \index[general]{Script!Kern's Configure }
936 \index[general]{Kern's Configure Script }
937 \addcontentsline{toc}{subsection}{Kern's Configure Script}
938
939 The script that I use for building on my "production" Linux machines is: 
940
941 \footnotesize
942 \begin{verbatim}
943 #!/bin/sh
944 # This is Kern's configure script for Bacula
945 CFLAGS="-g -Wall" \
946   ./configure \
947     --sbindir=$HOME/bacula/bin \
948     --sysconfdir=$HOME/bacula/bin \
949     --enable-smartalloc \
950     --enable-gnome \
951     --with-pid-dir=$HOME/bacula/bin/working \
952     --with-subsys-dir=$HOME/bacula/bin/working \
953     --with-mysql=$HOME/mysql \
954     --with-working-dir=$HOME/bacula/bin/working \
955     --with-dump-email=$USER \
956     --with-smtp-host=mail.your-site.com \
957     --with-baseport=9101
958 exit 0
959 \end{verbatim}
960 \normalsize
961
962 Note that I define the base port as 9101, which means that Bacula will use
963 port 9101 for the Director console, port 9102 for the File daemons, and port
964 9103 for the Storage daemons. These ports should be available on all systems
965 because they have been officially assigned to Bacula by IANA (Internet
966 Assigned Numbers Authority). We strongly recommend that you use only these
967 ports to prevent any conflicts with other programs. This is in fact the
968 default if you do not specify a {\bf \verb:--:with-baseport} option. 
969
970 You may also want to put the following entries in your {\bf /etc/services}
971 file as it will make viewing the connections made by Bacula easier to
972 recognize (i.e. netstat -a): 
973
974 \footnotesize
975 \begin{verbatim}
976 bacula-dir      9101/tcp
977 bacula-fd       9102/tcp
978 bacula-sd       9103/tcp
979 \end{verbatim}
980 \normalsize
981
982 \subsection*{Installing Bacula}
983 \index[general]{Bacula!Installing }
984 \index[general]{Installing Bacula }
985 \addcontentsline{toc}{subsection}{Installing Bacula}
986
987 Before setting up your configuration files, you will want to install Bacula in
988 its final location. Simply enter: 
989
990 \footnotesize
991 \begin{verbatim}
992 make install
993 \end{verbatim}
994 \normalsize
995
996 If you have previously installed Bacula, the old binaries will be overwritten,
997 but the old configuration files will remain unchanged, and the "new"
998 configuration files will be appended with a {\bf .new}. Generally if you have
999 previously installed and run Bacula you will want to discard or ignore the
1000 configuration files with the appended {\bf .new}. 
1001
1002 \subsection*{Building a File Daemon or Client}
1003 \index[general]{Client!Building a File Daemon or }
1004 \index[general]{Building a File Daemon or Client }
1005 \addcontentsline{toc}{subsection}{Building a File Daemon or Client}
1006
1007 If you run the Director and the Storage daemon on one machine and you wish to
1008 back up another machine, you must have a copy of the File daemon for that
1009 machine. If the machine and the Operating System are identical, you can simply
1010 copy the Bacula File daemon binary file {\bf bacula-fd} as well as its
1011 configuration file {\bf bacula-fd.conf} then modify the name and password in
1012 the conf file to be unique. Be sure to make corresponding additions to the
1013 Director's configuration file ({\bf bacula-dir.conf}). 
1014
1015 If the architecture or the O/S level are different, you will need to build a
1016 File daemon on the Client machine. To do so, you can use the same {\bf
1017 ./configure} command as you did for your main program, starting either from a
1018 fresh copy of the source tree, or using {\bf make\ distclean} before the {\bf
1019 ./configure}. 
1020
1021 Since the File daemon does not access the Catalog database, you can remove the
1022 {\bf \verb:--:with-mysql} or {\bf \verb:--:with-sqlite} options, then add {\bf
1023 \verb:--:enable-client-only}. This will compile only the necessary libraries and the
1024 client programs and thus avoids the necessity of installing one or another of
1025 those database programs to build the File daemon. With the above option, you
1026 simply enter {\bf make} and just the client will be built. 
1027
1028 \label{autostart}
1029 \subsection*{Auto Starting the Daemons}
1030 \index[general]{Daemons!Auto Starting the }
1031 \index[general]{Auto Starting the Daemons }
1032 \addcontentsline{toc}{subsection}{Auto Starting the Daemons}
1033
1034 If you wish the daemons to be automatically started and stopped when your
1035 system is booted (a good idea), one more step is necessary. First, the
1036 ./configure process must recognize your system -- that is it must be a
1037 supported platform and not {\bf unknown}, then you must install the platform
1038 dependent files by doing: 
1039
1040 \footnotesize
1041 \begin{verbatim}
1042 (become root)
1043 make install-autostart
1044 \end{verbatim}
1045 \normalsize
1046
1047 Please note, that the auto-start feature is implemented only on systems that
1048 we officially support (currently, FreeBSD, RedHat/Fedora Linux, and Solaris), and has
1049 only been fully tested on Fedora Linux. 
1050
1051 The {\bf make install-autostart} will cause the appropriate startup scripts to
1052 be installed with the necessary symbolic links. On RedHat/Fedora Linux systems, these
1053 scripts reside in {\bf /etc/rc.d/init.d/bacula-dir} {\bf
1054 /etc/rc.d/init.d/bacula-fd}, and {\bf /etc/rc.d/init.d/bacula-sd}. However the
1055 exact location depends on what operating system you are using. 
1056
1057 If you only wish to install the File daemon, you may do so with: 
1058
1059 \footnotesize
1060 \begin{verbatim}
1061 make install-autostart-fd
1062 \end{verbatim}
1063 \normalsize
1064
1065 \subsection*{Other Make Notes}
1066 \index[general]{Notes!Other Make }
1067 \index[general]{Other Make Notes }
1068 \addcontentsline{toc}{subsection}{Other Make Notes}
1069
1070 To simply build a new executable in any directory, enter: 
1071
1072 \footnotesize
1073 \begin{verbatim}
1074 make
1075 \end{verbatim}
1076 \normalsize
1077
1078 To clean out all the objects and binaries (including the files named 1, 2, or
1079 3, which Kern uses as temporary files), enter: 
1080
1081 \footnotesize
1082 \begin{verbatim}
1083 make clean
1084 \end{verbatim}
1085 \normalsize
1086
1087 To really clean out everything for distribution, enter: 
1088
1089 \footnotesize
1090 \begin{verbatim}
1091 make distclean
1092 \end{verbatim}
1093 \normalsize
1094
1095 note, this cleans out the Makefiles and is normally done from the top level
1096 directory to prepare for distribution of the source. To recover from this
1097 state, you must redo the {\bf ./configure} in the top level directory, since
1098 all the Makefiles will be deleted. 
1099
1100 To add a new file in a subdirectory, edit the Makefile.in in that directory,
1101 then simply do a {\bf make}. In most cases, the make will rebuild the Makefile
1102 from the new Makefile.in. In some case, you may need to issue the {\bf make} a
1103 second time. In extreme cases, cd to the top level directory and enter: {\bf
1104 make Makefiles}. 
1105
1106 To add dependencies: 
1107
1108 \footnotesize
1109 \begin{verbatim}
1110 make depend
1111 \end{verbatim}
1112 \normalsize
1113
1114 The {\bf make depend} appends the header file dependencies for each of the
1115 object files to Makefile and Makefile.in. This command should be done in each
1116 directory where you change the dependencies. Normally, it only needs to be run
1117 when you add or delete source or header files. {\bf make depend} is normally
1118 automatically invoked during the configuration process. 
1119
1120 To install: 
1121
1122 \footnotesize
1123 \begin{verbatim}
1124 make install
1125 \end{verbatim}
1126 \normalsize
1127
1128 This not normally done if you are developing Bacula, but is used if you are
1129 going to run it to backup your system. 
1130
1131 After doing a {\bf make install} the following files will be installed on your
1132 system (more or less). The exact files and location (directory) for each file
1133 depends on your {\bf ./configure} command (e.g. gnome-console and
1134 gnome-console.conf are not installed if you do not configure GNOME. Also, if
1135 you are using SQLite instead of mysql, some of the files will be different). 
1136
1137 \footnotesize
1138 \begin{verbatim}
1139 bacula
1140 bacula-dir
1141 bacula-dir.conf
1142 bacula-fd
1143 bacula-fd.conf
1144 bacula-sd
1145 bacula-sd.conf
1146 bacula-tray-monitor
1147 tray-monitor.conf
1148 bextract
1149 bls
1150 bscan
1151 btape
1152 btraceback
1153 btraceback.gdb
1154 bconsole
1155 bconsole.conf
1156 create_mysql_database
1157 dbcheck
1158 delete_catalog_backup
1159 drop_bacula_tables
1160 drop_mysql_tables
1161 fd
1162 gnome-console
1163 gnome-console.conf
1164 make_bacula_tables
1165 make_catalog_backup
1166 make_mysql_tables
1167 mtx-changer
1168 query.sql
1169 bsmtp
1170 startmysql
1171 stopmysql
1172 wx-console
1173 wx-console.conf
1174 \end{verbatim}
1175 \normalsize
1176
1177 \label{monitor}
1178
1179 \subsection*{Installing Tray Monitor}
1180 \index[general]{Monitor!Installing Tray }
1181 \index[general]{Installing Tray Monitor }
1182 \addcontentsline{toc}{subsection}{Installing Tray Monitor}
1183
1184 The Tray Monitor is already installed if you used the {\bf
1185 \verb:--:enable-tray-monitor} configure option and ran {\bf make install}.
1186
1187 As you don't run your graphical environment as root (if you do, you should
1188 change that bad habit), don't forget to allow your user to read {\bf
1189 tray-monitor.conf}, and to execute {\bf bacula-tray-monitor} (this is not a
1190 security issue).
1191
1192 Then log into your graphical environment (KDE, Gnome or something else), run
1193 {\bf bacula-tray-monitor} as your user, and see if a cassette icon appears
1194 somewhere on the screen, usually on the task bar.
1195 If it doesn't, follow the instructions below related to your environment or
1196 window manager. 
1197
1198 \subsubsection*{GNOME}
1199 \index[general]{GNOME }
1200 \addcontentsline{toc}{subsubsection}{GNOME}
1201
1202 System tray, or notification area if you use the GNOME terminology, has been
1203 supported in GNOME since version 2.2. To activate it, right-click on one of
1204 your panels, open the menu {\bf Add to this Panel}, then {\bf Utility} and
1205 finally click on {\bf Notification Area}. 
1206
1207 \subsubsection*{KDE}
1208 \index[general]{KDE }
1209 \addcontentsline{toc}{subsubsection}{KDE}
1210
1211 System tray has been supported in KDE since version 3.1. To activate it,
1212 right-click on one of your panels, open the menu {\bf Add}, then {\bf Applet}
1213 and finally click on {\bf System Tray}. 
1214
1215 \subsubsection*{Other window managers}
1216 \index[general]{Managers!Other window }
1217 \index[general]{Other window managers }
1218 \addcontentsline{toc}{subsubsection}{Other window managers}
1219
1220 Read the documentation to know if the Freedesktop system tray standard is
1221 supported by your window manager, and if applicable, how to activate it. 
1222
1223 \subsection*{Modifying the Bacula Configuration Files}
1224 \index[general]{Modifying the Bacula Configuration Files }
1225 \index[general]{Files!Modifying the Bacula Configuration }
1226 \addcontentsline{toc}{subsection}{Modifying the Bacula Configuration Files}
1227
1228 See the chapter 
1229 \ilink{Configuring Bacula}{_ChapterStart16} in this manual for
1230 instructions on how to set Bacula configuration files.