|
|
# Installing BAT (Bacula Admin Tool)
|
|
|
|
|
|
## Ubuntu Gutsy Gibbon 7.10
|
|
|
|
|
|
### Prerequisites
|
|
|
|
|
|
The Director, FD and SD are either with MySQL, PSql or
|
|
|
SQLite installable via apt-get. Just type in `apt-cache search bacula`
|
|
|
for all packages.
|
|
|
|
|
|
Install necessary packages fpr qt4 and qwt. (Maybe not all of the
|
|
|
following packages are necessary but by having a large harddisk I don\'t
|
|
|
care.)
|
|
|
|
|
|
- **remove qt3** (if installed)
|
|
|
- `sudo apt-get --purge remove qt3-dev-tools qt3-designer libqwt-dev`{.bash}
|
|
|
- **install qt4**
|
|
|
- `sudo apt-get install qt4-dev-tools qt4-qtconfig libqt4-core libqt4-dev`{.bash}
|
|
|
- **install qwt**
|
|
|
- `apt-get install libqwt5-qt4 libqwt5-qt4-dev `{.bash}
|
|
|
- make sure, that under /usr/lib the libqwt.so links to
|
|
|
libqwt-qt4.so.5, if not create a symlink.
|
|
|
- `cd /usr/lib
|
|
|
sudo ln -s libqwt-qt4.so.5 libqwt.so`
|
|
|
- **get the source**
|
|
|
- Get the latest source tarball, extract it and enter the
|
|
|
directory
|
|
|
|
|
|
### Build bat
|
|
|
|
|
|
- **install compiler**
|
|
|
- `apt-get install build-essential `{.bash}
|
|
|
- configure
|
|
|
- `./configure --enable-bat --enable-client-only --with-qwt=/usr/lib/`{.bash}
|
|
|
- The result of the succesfull configure should show these lines:
|
|
|
- \<code\> bat support: yes -L/usr/lib64
|
|
|
|
|
|
```{=html}
|
|
|
|
|
|
```
|
|
|
client-only: yes</code>
|
|
|
* proceed to make
|
|
|
* <code bash>make install</code>
|
|
|
* install bat
|
|
|
* <code>sudo cp src/qt-console/bat /usr/sbin/</code>
|
|
|
* <code>sudo cp src/qt-console/bat.conf /etc/bacula/</code>
|
|
|
* start it
|
|
|
* <code>bat -d99 -c /etc/bacula/bat.conf</code>
|
|
|
|
|
|
## Bacula 7.0.5 From Sources Ubuntu Trusty 14.04 whit maridb (mysql)
|
|
|
|
|
|
Go your source package directory and dowload / clone bacula source
|
|
|
package:
|
|
|
|
|
|
git clone http://git.bacula.org/bacula
|
|
|
|
|
|
buildBacula:
|
|
|
|
|
|
apt-get install libmysqlcppconn-dev libmysqlcppconn7 libmysqlclient-dev
|
|
|
cd /mpi3/S4/bacula-7.0.5
|
|
|
sudo make distclean
|
|
|
export CFLAGS="-g -O2"
|
|
|
export CFLAGS2=`/usr/bin/mysql_config --cflags`
|
|
|
export CFLAGS="$CFLAGS $CFLAGS2"
|
|
|
export LDFLAGS=`/usr/bin/mysql_config --libs_r`
|
|
|
export LIBS=`/usr/bin/mysql_config --libs`
|
|
|
export CPPFLAGS=`/usr/bin/mysql_config --include`
|
|
|
./configure \
|
|
|
--sbindir=/usr/sbin \
|
|
|
--sysconfdir=/etc/bacula \
|
|
|
--with-scriptdir=/etc/bacula \
|
|
|
--with-mysql \
|
|
|
--with-working-dir=/var/bacula \
|
|
|
--with-pid-dir=/var/run/bacula \
|
|
|
--with-systemd \
|
|
|
--enable-bat \
|
|
|
--enable-smartalloc
|
|
|
|
|
|
make
|
|
|
|
|
|
sudo make install
|
|
|
|
|
|
Note\'s/Ref: tokudb & mariadb-galera & bacula do not work together use
|
|
|
Innodb or Aria instead, <https://mariadb.org/> ,
|
|
|
-<https://sites.google.com/site/jpsdatareviewstheboy007/ubuntu-lts-12-4-companion-whit-ltsp-mpich2-elmer-openfoam> |