Bacula - The open Souce Network backup solution


Installing Bacula on CentOS 6

Install EPEL repo from
#yum install webmin

Install mysql and Bacula

# yum install mysql-devel mysql-server
#yum install bacula-storage-mysql bacula-docs bacula-director-mysql bacula-console bacula-client bacula-traymonitor

Initiate Bacula databaseand scripts included in Bacula.

#/usr/libexec/bacula/grant_mysql_privileges -u root –p
#/usr/libexec/bacula/create_mysql_database -u root –p
#/usr/libexec/bacula/make_mysql_tables -u root –p
#/usr/libexec/bacula/grant_bacula_privileges -u root –p

Download As PDF

Configure logging server

Configure logging server:
This is one of the RHCE exam objective under system administration. Logging server generally accepts different logs from clients. It's most useful if some can't login to remote system and check the logs also provides easy log management.
Edit the following directives to accept log files in /etc/rsyslog.conf
To accept UDP log files
#$ModLoad imudp
#$UDPServerRun 514 
To accept TCP logs
Download As PDF

RHCE Exam objectives - HTTP/HTTPS


RHCE Exam objectives - HTTP/HTTPS

Apache is the far most web server in use today. Based on the HTTP daemon (httpd), Apache provide simple and secure access to all types of content using regular HTTP protocol as well as its secure cousin, HTTPS.
Apache 2.2:
As befits its reliability, the best version to use is 2.2.22. It includes all updates to support the latest web pages, with the best possible security from the risks associated with the Internet.
Installation:
Download As PDF

RHCE exam objectives - DNS services


RHCE exam objectives - DNS services 



Types of DNS server
  •  A master DNS server, authoritative for one or more domains, includes host records for that domain
  •  A slave DNS server, which relies on a master DNS server for data, can be used in place of that master DNS server.
  • A caching-only DNS server stores recent requests like a proxy server. If configured with forwarding features, it refers to other DNS servers for requests not in its current cache.
  •    A forwarding only DNS server refers all requests to other DNS servers

Installation:
#yum install bind bind-chroot bind-devel bind-utils

Configure caching only name server
The default version of /etc/named.conf is set up for a caching-only nameserver, limited to localhost system. Minor changes are required to open that server up to a local network. The default named.conf file is shown below.
To extend caching-only nameserver to local network edit the following directives,
listen-on port 53              { 127.0.0.1;  192.168.122.0/24; };
allow-query                       { localhost;  192.168.122.0/24; };
save the file and start service
#/etc/init.d/named start
#chkconfig  named on

Forwarding nameserver
It’s simple and straightforward configuration.
options {
listen-on port 53 { 127.0.0.1; };          
listen-on-v6 port 53 { ::1; };
directory       "/var/named";
forward only;
forwarders  {
192.68.122.1;
192.168.0.1;
};
                };
  
Caching-only nameserver to forward DNS queries
Requests not in the local cache would be forwarded to the name servers specified with the forwarders directive. Here is an example for forwarding DNS queries,
options {
listen-on port 53 { 127.0.0.1; 192.168.122.0/24; };
listen-on-v6 port 53 { ::1; };
directory       "/var/named";
forward only;
forwarders  {
192.68.122.1;
192.168.0.1;
};
dump-file       "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query     { localhost; 192.168.0.0/24; };
recursion yes;
};

#rndc flush   --flush DNS query cache
#rndc status  --show the running DNS server status
   
Download As PDF

RHCSA - Logical Volume Management

Logical Volume Management (LVM)
LVM – logical volume manager can allow you to manage the space allocated to appropriate directories. As an example, assume the /var and /home directories are configured on separate logical volumes (LV). If extra space is available on the volume associated with the /var directory, you can reallocate space to the volume associated with the /home directory.

Download As PDF

RHCSA Exam objective – Manage Security

RHCSA Exam objective – Manage Security
  • Configure firewall settings using system-config-firewall or iptables.
  • Set enforcing and permissive modes for SELinux.
  • List and identify SELinux file and process context.
  • Restore default file contexts.
  • Use boolean settings to modify system SELinux settings.
  • Diagnose and address routine SELinux policy violations.


Download As PDF

Common samba share problems



Common samba share problems
1.       Samba access denied (Error 12)
2.       Samba mount error 6 no such a device or address
3.       Cannot create folder/file into samba share
4.       Cannot un mount samba share (the device or resource is busy)
Sample samba share
[share]
comment = Samba share
Download As PDF

RHCSA – Exam objectives – Create and configure set-GID directories for collaboration


RHCSA – Exam objectives – User and Directory permissions
One of the RHCSA exam objectives is to share a directory among users and setting up right permissions.
Scenario
Configure the following users for RHEL: nancy, randy, donna, and mike. Make nancy and randy part of a group named angels. Create a /home/angels directory and allow them to share files without having to change permissions or ownership on any file they put in this directory. Do not give donna or mike read privileges on this directory
Download As PDF