User Tools

Site Tools


howto_compile_and_install_bacula_in_debian_4.0_etch

This HowTo was tested on Debian 4.0 and with bacula ver. 2.2.6

Make sure that the IP of the Bacula server is on the first line (the real IP not 127.0.0.1)
# vim /etc/hosts
Download and install all dependencies
# apt-get install mysql-server gcc libmysqlclient15-dev g++ make libncurses5-dev
Download the source file to the root home folder
# wget http://heanet.dl.sourceforge.net/sourceforge/bacula/bacula-2.2.6.tar.gz
Extract the compressed files
# tar –xvvf bacula-2.2.6.tar.gz
Compile the Bacula source file
# cd bacula-2.2.6
# ./configure –with-mysql
# make
# make install
Configure the MySql server to work with Bacula
# cd src/cats
# ./grant_mysql_privileges
# ./create_mysql_database
# ./make_mysql_tables
Create and install the services
# cp /etc/bacula/bacula-ctl-fd /etc/init.d/bacula-fd
# cp /etc/bacula/bacula-ctl-dir /etc/init.d/bacula-director
# cp /etc/bacula/bacula-ctl-sd /etc/init.d/bacula-sd
# chmod 755 /etc/init.d/bacula-sd
# chmod 755 /etc/init.d/bacula-fd
# chmod 755 /etc/init.d/bacula-director
# update-rc.d bacula-sd defaults 90
# update-rc.d bacula-fd defaults 91
# update-rc.d bacula-director defaults 92
Start the services
# /etc/init.d/bacula-sd start
# /etc/init.d/bacula-fd start
# /etc/init.d/bacula-director start
howto_compile_and_install_bacula_in_debian_4.0_etch.txt · Last modified: 2007/12/10 07:50 by eitant