BareOS Client on Ubuntu 12.04.4 LTS

912 views
Skip to first unread message

Dan Broscoi

unread,
Jan 5, 2017, 12:30:51 PM1/5/17
to bareos-users
Hi,

I'm trying to install BareOS 16.2.4-12 on Ubuntu 12.04.4 and so far I did:

Downloaded the packages and dependencies:

bareos-common_16.2.4-12.1_amd64.deb
bareos-filedaemon_16.2.4-12.1_amd64.deb
libacl1_2.2.52-3_amd64.deb
libattr1_2.4.47-2_amd64.deb
libfastlz_0.1-7.1_amd64.deb

however one dependency is not met :

# dpkg -i bareos-filedaemon_16.2.4-12.1_amd64.deb
(Reading database ... 95833 files and directories currently installed.)
Preparing to replace bareos-filedaemon 16.2.4-12.1 (using bareos-filedaemon_16.2.4-12.1_amd64.deb) ...
Unpacking replacement bareos-filedaemon ...
dpkg: dependency problems prevent configuration of bareos-filedaemon:
bareos-filedaemon depends on init-system-helpers (>= 1.18~); however:
Package init-system-helpers is not installed.
dpkg: error processing bareos-filedaemon (--install):
dependency problems - leaving unconfigured
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Errors were encountered while processing:
bareos-filedaemon

After renaming and manually creating the conf files, the daemon started and a backup job was successfully performed.

Are there any ways to easier install this , instead of manual package download/install and tinkering with the config files ?

Jörg Steffens

unread,
Jan 6, 2017, 4:19:25 AM1/6/17
to bareos...@googlegroups.com
Hi,

is there a reason, why you didn't follow the instructions from
http://doc.bareos.org/master/html/bareos-manual-main-reference.html#InstallingBareos
and added the repository?
Because the package init-system-helpers is available at Ubuntu 12.04
(see https://pkgs.org/download/init-system-helpers) and installing
Bareos via "apt-get install" would have also installed the dependency.

We do automatic testing for all released Linux repositories. So, these
kind of obvious errors should not happen with our releases.

Jörg
--
Jörg Steffens joerg.s...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221 630693-91
http://www.bareos.com Fax: +49 221 630693-10

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer:
S. Dühr, M. Außendorf, Jörg Steffens, P. Storz

Dan Broscoi

unread,
Jan 6, 2017, 12:22:52 PM1/6/17
to bareos-users
vineri, 6 ianuarie 2017, 11:19:25 UTC+2, Jörg Steffens a scris:
> Hi,
>
> is there a reason, why you didn't follow the instructions from
> http://doc.bareos.org/master/html/bareos-manual-main-reference.html#InstallingBareos
> and added the repository?


Hi Jörg,


I've followed those instructions and i've successfully installed the daemon client.

My take on how to install the client is:

----

#replace Ubuntu's major version with 14 or 16 (ex: you'll have xUbuntu_14.04)

printf "deb http://download.bareos.org/bareos/release/latest/xUbuntu_12.04 /\n" >
/etc/apt/sources.list.d/bareos.list

wget -q http://download.bareos.org/bareos/release/latest/xUbuntu_12.04/Release.key -O- | apt-key add -

apt-get update && apt-get install bareos-filedaemon -y



Server Side ,
1. create config files for the client in:
/etc/bareos/bareos-dir.d/fileset/[name of the client].conf
/etc/bareos/bareos-dir.d/fjobdefs/[name of the client].conf
from previous clients.

2. in bconsole:

configure add client name=[name of the client] address=[FQDN or IP] password=[super secret password]
#this command will automatically create the configuration files for the server and on remote side - all you need is to scp / copypaste the config file to the remote machine)

configure add job name=[name of the client]-[type of job] client=[client address defined above] jobdefs=[Job definitions, configured in /etc/bareos/bareos-dir.d/jobdefs/[name of the client.conf]

reload #don't forget to change the ownership of the created files to bareos or else the daemon won't see your new changes


----

Thank you

Reply all
Reply to author
Forward
0 new messages