Install webacula

You might think that webacula is simple thinkg but it’s not and you think that, you terrible wrong my friend. This is probably most powerfull tool for managing bacula-director. It’s a bit tricky to make it work but once it’s running nothing can stop it. I had find myself cople of times struggling to figured out why it does not wont to start, you’ll see what I’m talking about if you do it off the beaten track. If you want great backup system with great web management tool, just follow my steps because frankly you’ll hate it otherwise.

Everything begins with:


If you have already LAMP-ish stack, you can skip this step
yum install httpd php php-mysql php-gd

tar -xzvf /root/webacula-7.0.0.tar.gz

mv webacula-7.0.0/ /var/www/html/webacula
cd !$
usermod -aG bacula apache
chgrp bacula /usr/sbin/bconsole /etc/bacula/bconsole.conf
cd ../application

vim config.ini
bacula.bconsole = “/usr/sbin/bconsole”
bacula.bconsolecmd = “-n -c /etc/bacula/bconsole.conf”

vim /etc/sudoers
comment Defaults requiretty because otherwise you’ll get error like “sudo: sorry, you must have a tty to run sudo” later on

Defaults requiretty

Next step is my favorite one 🙂

vim /etc/selinux/config
>>> SELINUX=disabled

add following line in sudoers file or create config in:

vim /etc/sudoers.d/apache

apache ALL=NOPASSWD: /usr/sbin/bconsole

reboot (because the selinux) If you have selinux disabled from before it’s note necessary.

Check is apache has permissions to use bconsole:

su -l apache -s /bin/sh -c "/usr/bin/sudo /usr/sbin/bconsole -n -c /etc/bacula/bconsole.conf"
If you go straight to the bconsole, then sudo do the trick.

cd /var/www/html/webacula/install/apache/
cp webacula.conf /etc/httpd/conf.d/webacula.conf
vim /etc/httpd/conf.d/webacula.conf


Alias /webacula /usr/share/webacula/html

Deny from all


Alias /webacula /var/www/html/webacula/html

Allow from

update your db pass etc.

vim /var/www/html/webacula/application/config.ini

vim /etc/bacula/bacula-dir.conf
update :
catalog = all, !skipped, !saved

cd /var/www/html/webacula/install

Copy respose to db.conf:

db_pwd=”your root mysql pass”
webacula_root_pwd=”your res from ./password-to-hash.php”

cd MySql/

systemctl restart httpd.service

add Zend Framework to webacula:

cd /var/www/html/webacula/library
wget (download only ver 1.12.3!!!!!!)
tar -xzf ZendFramework-1.12.3-minimal.tar.gz
mkdir Zend
cp -Rf ZendFramework-1.12.3-minimal/library/Zend/* Zend/.

go to website 🙂

Now for some reason root passwd does not work out of the box, so we need to recover it by email.

mysql -u root -p
use bacula;
update webacula_users set email=’your email here’;

I preffer to use google mail because they don’t block messages from unexist sender such as root@localhost 🙂 The message will be in your spam folder but at least you’ll recieve it.

That’s all folsk, enjoy your Backup System.

Raspberry Pi kiosk-ish system

I needed to build kiosk-ish system for our reception to display pending tasks etc. I was stumbleing around of bunch of useless tutorials, which are either right and wrong at the same time. I found this one and it is tested on raspbian, work like a charm.

As much as you don’t want to use graphic display manager on your raspbery, you will have to 🙁

We’ll need the following packages:


sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install matchbox chromium x11-xserver-utils ttf-mscorefonts-installer xwit sqlite3 libnss3

If you raspberry does not dettect automaticaly it’s resolution on boot, you can edit /boot/config.txt and add following parametters:

# 1900×1200 at 32bit depth, DMT mode

Starting Chromium:

Add at the end of youre /etc/rc.local

if [ -f /boot/xinitrc ]; then
ln -fs /boot/xinitrc /home/pi/.xinitrc;
su – pi -c ‘startx’ &

… and create /boot/xinitrc file with:


# Clean up previously running apps, gracefully at first then harshly
killall -TERM chromium 2>/dev/null;
killall -TERM matchbox-window-manager 2>/dev/null;
sleep 2;
killall -9 chromium 2>/dev/null;
killall -9 matchbox-window-manager 2>/dev/null;

# Clean out existing profile information
rm -rf /home/pi/.cache;
rm -rf /home/pi/.config;
rm -rf /home/pi/.pki;

# Generate the bare minimum to keep Chromium happy!
mkdir -p /home/pi/.config/chromium/Default
sqlite3 /home/pi/.config/chromium/Default/Web\ Data “CREATE TABLE meta(key LONGVARCHAR NOT NULL UNIQUE PRIMARY KEY, value LONGVARCHAR); INSERT INTO meta VALUES(‘version’,’46’); CREATE TABLE keywords (foo INTEGER);”;

# Disable DPMS / Screen blanking
xset -dpms
xset s off

# Reset the framebuffer’s colour-depth
fbset -depth $( cat /sys/module/*fb*/parameters/fbdepth );

# Hide the cursor (move it to the bottom-right, comment out if you want mouse interaction)
xwit -root -warp $( cat /sys/module/*fb*/parameters/fbwidth ) $( cat /sys/module/*fb*/parameters/fbheight )

# Start the window manager (remove “-use_cursor no” if you actually want mouse interaction)
matchbox-window-manager -use_titlebar no -use_cursor no &

# Start the browser (See
chromium –app=http://URL.of.your/choice.html

Save it, reboot and that’s it.