Dear bacul-ors and bacula-rettes,

I submit to you an updated Ubuntu 10.10 install script which works for 
me on a 64 bit machine.

Bacula 5.0.3 on Ubuntu 10.10 server - Jun 2011
*NOTE: The following instructions were developed with postgresql 
installed as part of the server install process.
---------------------------------------------
PRE-REQUISITES
sudo apt-get upgrade && sudo apt-get update
sudo apt-get install g++ libpq-dev
===

COMPILE
a.  Untar and cd to installation directory
b.  Put this in a bacula_conf file and make it executable "sudo chmod 
744 bacula_conf"

#!/bin/sh
CFLAGS="-g -O2 -Wall" \
   ./configure \
     --sbindir=/usr/local/sbin \
     --sysconfdir=/usr/local/etc \
     --mandir=/usr/local/sbin \
     --enable-smartalloc \
     --enable-batch-insert \
     --enable-largefile \
     --with-postgresql \
     --with-working-dir=/usr/local/bacula/working \
     --with-dump-email=mehmasa...@gmail.com \
     --with-pid-dir=/usr/local/bacula/working \
     --with-subsys-dir=/usr/local/bacula/working \
     --with-job-email=mehmasa...@gmail.com \
     --with-smtp-host=smtp.gmail.com
exit 0

***NOTE: BAT is not enabled - it requires qt to be installed

c.  sudo mkdir -p /usr/local/bacula/working

d. Still in the installation directory: sudo ./yss-config && sudo make 
&& sudo make install clean
===
SQL ASCII THE DATABASE

***NOTE:  DON'T HAVE TO DO THIS FOR Ubuntu 10.10, 64 bit with postgresql 
installed as part of server build
UTF-8 to SQL_ASCII
sudo pg_dropcluster --stop 8.4 main
sudo pg_createcluster --start -e SQL_ASCII 8.4 main
===

DATABASE
sudo chown postgres:postgres /usr/local/etc/<see note>  [*NOTE only the 
create database, make tables and grant privileges files need to be 
chown-ed.]
sudo su - postgres
As user postgres: createuser bacula
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) y
Shall the new role be allowed to create more new roles? (y/n) n

As user postgres: /usr/local/etc/create_bacula_database
As user postgres: /usr/local/etc/make_bacula_tables
As user postgres: /usr/local/etc/grant_bacula_privileges
$ psql bacula
   bacula=# alter user bacula with password 'bacula';
\q
exit

sudo vi /etc/postgresql/8.4/main/pg_hba.conf change line "local   all    
all  ident" to "local   all    all   md5"
sudo /etc/init.d/postgresql restart

===

FIRE_IT_UP
a.  Add password: vi /usr/local/etc/bacula-dir.conf and add password 
'bacula' to dbpassword variable
b.  From anywhere: sudo bacula start
c.  Check status: sudo bacula status -of dir, sd and pd processes - if 
the config or install does not go well, one or more process will die
===

TEST
sudo /usr/local/sbin/bacula-dir -t -c /usr/local/etc/bacula-dir.conf
sudo /usr/local/sbin/bacula-fd -t -c /usr/local/etc/bacula-fd.conf
sudo /usr/local/sbin/bacula-sd -t -c /usr/local/etc/bacula-sd.conf
sudo /usr/local/sbin/bconsole -t -c /usr/local/etc/bconsole.conf
===



------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to