Crippa Andrea

Tag: centos

Centos 5.5 available

This entry was posted by admin ( Crippa Andrea ) on 20 May 2010 at 19:39 and have got 45 reads . It's field under Linux and tagged , , . Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback: Trackback URL.

The CentOS team is pleased to announce the availability of CentOS 5.5. Major changes in CentOS 5.5 compared to CentOS 5.4 include:

OpenOffice.org Update to version 3.1.1
Samba3x in version 3.3.8
PostgreSQL84 in version 8.4
Freeradius2

The latter three aren’t installed by default, but they can be used to upgrade from the still included older versions of these packages.

Other upgrades include newer version of the wireless drivers suite, including newer versions of the ath9k driver and the iwlwifi drivers. The GNU Debugger gdb, Valgrind and SystemTap also have been updated.

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
Leave a Comment :, , more...

Installare e Configurare Bacula Client 5.0.2 su una macchina Centos 5.4

This entry was posted by admin ( Crippa Andrea ) on 2 May 2010 at 18:11 and have got 492 reads . It's field under Linux and tagged , , , . Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback: Trackback URL.

Per l’installazione del Server Bacula, prego fate riferimento a QUESTO articolo.

DOWNLOAD E INSTALLAZIONE DI BACULA
Scaricate bacula ed estraete la tarball :
wget http://sourceforge.net/projects/bacula/files/bacula/5.0.2/bacula-5.0.2.tar.gz/download
tar -zxf bacula-5.0.2.tar.gz
cd bacula-5.0.2

Configurate Bacula per la compilazione :
CFLAGS="-g -Wall" \
./configure \
--sbindir=/usr/share/bacula/bin \
--sysconfdir=/usr/share/bacula/etc \
--with-pid-dir=/usr/share/bacula/bin/working \
--with-subsys-dir=/usr/share/bacula/bin/working \
--with-working-dir=/usr/share/bacula/bin/working \
--enable-client-only

Compliate ed installate Bacula :
make
make install

CONFIGURATE IL SISTEMA PER L’AVVIO AUTOMATICO
Copiate lo script di start-stop da /usr/share/bacula/bin a /etc/init.d
cp /usr/share/bacula/bin/bacula /etc/init.d
cp /usr/share/bacula/bin/bacula-fd /etc/init.d

Modificate lo script di startup (/etc/init.d/bacula) , aggiungendo questa riga all’inizio (al fine di ottenere che bacula sia compatibile con chkconfig) :
# chkconfig: - 87 26

NOTE : The script modified need to be something like this
#! /bin/sh
# chkconfig: - 87 26
#
# bacula This shell script takes care of starting and stopping
# the bacula daemons.
#
# This is pretty much watered down version of the RedHat script
# that works on Solaris as well as Linux, but it won't work everywhere.
#
# description: It comes by night and sucks the vital essence from your computers.

Eseguite il comando seguente :
chkconfig bacula on
service bacula start

CONFIGURARE IL FIREWALL
Configurate il Firewall, editando il file /etc/sysconfig/iptables. Aggiungere una linea come questa prima dei REJECT :
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 9102 -j ACCEPT
Riavviare il, servizio di Firewall
service iptables restart

CONFIGURARE BACULA
Andate in /usr/share/bacula/etc ed editate (vi) bacula-fd.conf
Trovate la prima sezione Director e quindi, dopo la direttiva Name, inserite la direttiva Address con l’indirizzo IP del server Bacula o con il suo FQDN
Address = XXX.XXX.XXX.XXX
oppure
Address= fully.qualified.domain.name

Commentate o rimuovete la seconda sezione Director, lasciate la sezione FileDaemon invariata

Modificate la sezione Messages in modo da farla puntare al server Bacula.
#director = bacula-client.yyyyyy.it-dir = all, !skipped, !restored
director = bacula-srv.yyyyyy.it-dir = all, !skipped, !restored

Di seguito riporto un esempio completo di bacula-fd.conf script funzionante :
#
# Default Bacula File Daemon Configuration file
#
# For Bacula release 5.0.2 (28 April 2010) -- redhat
#
# There is not much to change here except perhaps the
# File daemon Name to
#

#
# List Directors who are permitted to contact this File daemon
#
Director {
Name = bacula-srv.xxxxxx.it-dir
Address = XXX.XXX.XXX.XXX
Password = "PASSWORD CASUALE"
}

#
# "Global" File daemon configuration specifications
#
FileDaemon { # this is me
Name = bacula-client.xxxxxx.it-fd
FDport = 9102 # where we listen for the director
WorkingDirectory = /usr/share/bacula/bin/working
Pid Directory = /usr/share/bacula/bin/working
Maximum Concurrent Jobs = 20
}

# Send all messages except skipped files back to Director
Messages {
Name = Standard
director = bacula-srv.xxxxxx.it-dir = all, !skipped, !restored
}

CONFIGURARE IL SERVER BACULA TRAMITE IL FILE bacula-dir.conf

Ora dobbiamo controllare la sezione Storage Device nel file di configurazione.
Controllate la direttiva Address … cambiate il parametro localhost con l’indirizzo IP del server bacula (on con l’fqdn del server)

Address = XXX.XXX.XXX.XXX
oppure
Address = fully.qualified.domain.name

AGGIUNGERE UN CLIENT AL SERVER BACULA

Riavviate Bacula sia sul Server che sul Client
service bacula restart

Via WebMin, aggiungete un nuovo backup client, fate attenzione ad inserire la giusta password , quella presente nel file bacula-fd.conf del client client.

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
Leave a Comment :, , , more...

Installare Bacula 5.0.2 su Centos 5.4 tramite VMWARE con supporto per MySQL e Gui WebMin

This entry was posted by admin ( Crippa Andrea ) on 2 May 2010 at 10:43 and have got 1117 reads . It's field under Linux and tagged , , , , , , , , , , , , , . Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback: Trackback URL.

Configurare l’Ambiente Virtuale

1) – Create una Macchina Virtuale come Red Hat Linux 5
2) – Rimuovete la scheda di rete creata di Default
3) – Aggiungete una nuova scheda di rete come VMXNET3

NOTA BENE : Potresti preferire una Macchina Virtuale con 2 schede di rete : La prima dedicata all’accesso remoto (vedi SSH) e la seconda su una VLAN dedicata per il traffico legato alla funzione di LAN BACKUP.

Creazione del SISTEMA BASE

Installate Centos 5.4. Durante l’installazione, DESELEZIONATE :
– Desktop : gnome
Mettete lo spunto su “personalizza ora” , e selezionate su SVILUPPO :
– Librerie di Sviluppo
– Tool di Sviluppo
– Sviluppo del Software Antiquato
Selezionate su SISTEMA BASE
– Supporto del Software Antiquato

INSTALLARE E CONFIGURARE I VMWARE TOOL
– Iniziate l’installazione dei VMWare Tool
– Montate il CDROM
– Copiate il file .tar.gz in /tmp
– Smontate il CDROM
– Estraete la tarball (tar -zxf) and eseguite l’installazione (./vmware-install.pl)

Alla fine della installazione, eseguite i seguenti comandi :
kudzu
service network restart

– Configurate le impostazioni di rete, ramite /etc/sysconfig/network-scripts/ifcfg-eth0 come preferite

INSTALLARE IL DATABASE SERVER
Per installare il database , fate questo :
yum install mysql-server
yum install mysql-devel.i386

NOTA BENE : Potete installare MySQL anche durante il setup inziale, in questo caso lanciate solo l’installazione di mysql-devel.i386

SCARICARE ED INSTALLARE BACULA
Download bacula and extract it :
wget http://sourceforge.net/projects/bacula/files/bacula/5.0.2/bacula-5.0.2.tar.gz/download
tar -zxf bacula-5.0.2.tar.gz
cd bacula-5.0.2

Configura Bacula for compiling (please note that u have to change the email settings) :
CFLAGS="-g -Wall" \
./configure \
--sbindir=$HOME/bacula/bin \
--sysconfdir=$HOME/bacula/bin \
--with-pid-dir=$HOME/bacula/bin/working \
--with-subsys-dir=$HOME/bacula/bin/working \
--with-mysql \
--with-working-dir=$HOME/bacula/bin/working \
--with-dump-email=your@address.com \
--with-job-email=your@address.com \
--with-smtp-host=localhost

NOTE : La mia installazione di default è la seguente :

CFLAGS="-g -Wall" \
./configure \
--sbindir=/usr/share/bacula/bin \
--sysconfdir=/usr/share/bacula/etc \
--with-pid-dir=/usr/share/bacula/bin/working \
--with-subsys-dir=/usr/share/bacula/bin/working \
--with-mysql \
--with-working-dir=/usr/share/bacula/bin/working \
--with-dump-email=x@y.it \
--with-job-email=x@y.it \
--with-smtp-host=XXX.XXX.XXX.XXX

Compile and install bacula :
make
make install

CREATE DEFAULT DATABASE FOR BACULA
service mysqld start

Andate in /usr/share/bacula/etc ed eseguite gli script seguenti :
./grant_mysql_privileges
./create_mysql_database
./make_mysql_tables

CONFIGURARE IL SISTEMA PER L’AVVIO AUTOMATICO
Copiate gli script di start-stop da /usr/share/bacula/bin in /etc/init.d
cp /usr/share/bacula/bin/bacula /etc/init.d
cp /usr/share/bacula/bin/bacula-sd /etc/init.d
cp /usr/share/bacula/bin/bacula-fd /etc/init.d
cp /usr/share/bacula/bin/bacula-dir /etc/init.d

Modicate lo script di startup (/etc/init.d/bacula), aggiungendo questa linea all’inizio (per rendere lo script di avvio compatibile con chkconfig) :
# chkconfig: - 87 26

NOTE : Lo script così modificato somiglierà a questo …
#! /bin/sh
# chkconfig: - 87 26
#
# bacula This shell script takes care of starting and stopping
# the bacula daemons.
#
# This is pretty much watered down version of the RedHat script
# that works on Solaris as well as Linux, but it won't work everywhere.
#
# description: It comes by night and sucks the vital essence from your computers.

Lanciate il seguente comando :
chkconfig mysqld on
chkconfig bacula on
service bacula start

DOWNLOAD E AVVIO DI WEBMIN
Scaricate il software webmin :
cd /tmp
wget http://downloads.sourceforge.net/project/webadmin/webmin/1.510/webmin-1.510.tar.gz?use_mirror=heane

Installate Perl-Net-SSL se avete intenzione di usare SSL per l’interfaccia grafica di webmin :
yum install perl-Net-SSLeay.i386

Estraete webmin dalla tarball :
tar -zxf webmin-1.510.tar.gz
cd webmin-1.510

Eseguite lo script di setup :
./setup.sh

NOTE : Le impostazioni di default sono sufficienti, semplicemente specificate una password.

CONFIGURARE IL FIREWALL
Configurate il firewall di Centos per permettere l’accesso alla interfaccia Web di WebMin (si suppone che sia stata preservata la configurazione di default com ascolto sulla porta 10000) editando il file di configurazione /etc/sysconfig/iptables. Aggiungete la seguente riga prima del REJECT :
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 9101 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 9102 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 9103 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 10000 -j ACCEPT

Riavviate il firewall :
service iptables restart

CONFIGURATE WEBMIN
Accedete a WebMin , compilate il box di ricerca con la parola “bacula”
Fate click sul primo risultato, e cambiate la configurazione del modulo.
- Cambiate "Database Type" in MySql
- Cambiate "config dir" in /usr/share/bacula/etc

Congratulazioni …. avete instalato bacula con supporto a MySQLe accesso via WebMin

VN:F [1.9.3_1094]
Rating: 9.0/10 (4 votes cast)
VN:F [1.9.3_1094]
Rating: +1 (from 1 vote)
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
5 Comments :, , , , , , , , , , , , , more...