Archive for agosto, 2008

how to install bacula on ubuntu (installare bacula su ubuntu)

I installed this system on Ubuntu 7.10.

I downloaded the source package for bacula.

There are the packege that you need for use bacula:

mysql5 apache2 php5 php5gd phpmyadmin php-pear libmysqlclient15-dev libssl-dev libreadline5-dev libapache2-mod-auth-mysql

After you can read this documents for Dowload/Compile bacula on system Debian based:

/usr/sbin/groupadd -g 90 bacula
/usr/sbin/useradd -c "Bacula" -d /var/lib/bacula -m -k /dev/null -g bacula -u 90 -s /bin/bash bacula

./configure \
        --prefix=/usr \
        --sbindir=/usr/sbin \
        --sysconfdir=/etc/bacula \
        --with-scriptdir=/etc/bacula \
        --enable-smartalloc \
        --with-openssl \
        --with-mysql \
        --with-working-dir=/var/lib/bacula \
        --with-pid-dir=/var/run \
        --with-subsys-dir=/var/lock \
        --with-dir-user=bacula \
        --with-dir-group=bacula \
        --with-sd-user=bacula \
        --with-sd-group=bacula \
        --with-fd-user=root \
        --with-fd-group=bacula

make -j6 && make install

cd /etc/init.d/ && ln -s /etc/bacula/bacula . && /usr/sbin/update-rc.d bacula defaults

Read cap 48.2 “Installing adn configuring Mysql” pag 639 for install mysql database e mysql table.

If you not install the database or mysql not start you can read this error “Error in bus (core dump)”

Remember to set /etc/hosts correctly and configure /etc/bacula/bacula-dir.conf /etc/bacula/bacula-sd.conf /etc/bacula/bacula-fd.conf

Use the command

netstat - tap localhost

to see if port bacula-dir bacula-fd bacula-sd is open.

Remember that for install baculaweb you must download file DB.php in pear site.

You can read the site DebianHelp and Debian administration for set correctly permission to user bacula into db.
If you want use a dvd backup, remember that you must

# vim /etc/bacula/bacula-ctl-sd

in the vim editor for find the string
/SD_USER

change

SD_USER = bacula

SD_GROUP = bacula

in

SD_USER = root

SD_GROUP = root

After install bweb (.deb package) you must configure it.

If you use apache2 you must

#cp /etc/apache/conf.d/bweb.conf /etc/apache2/conf.d/
#chmod 644 /etc/bacula/bconsole.conf
#chmod 755 /usr/sbin/bconsole
#/etc/init.d/apache2 restart

Parameters configuration for http://localhost/bweb

DBI: DBI:mysql:database=bacula
user: bacula
password: yourPassword
Email_media: yourEmail
graph_font: /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf
template_dir: /usr/share/bweb/tpl
fv_write_path: /var/spool/bweb
stat_job_table: Job
bconsole: /usr/bin/bconsole -n -c /etc/bacula/bconsole.conf

That’s all
If there are error for my english please write me… 🙂 🙂