Category: Linux

Installing and Configuring MariaDB 10 on CentOS 6

This tutorial will guide you through the deployment process of MariaDB on a Red Hat-based Linux server, such as CentOS. We’ll start by configuring the hardware and then move into the installation and configuration of MariaDB.MariaDB is a fork of the very popular and open source …

EoIP tunnel on Linux

Ethernet over IP (EoIP) Tunneling is a MikroTik RouterOS protocol (stateless and lightweight ethernet level to level tunnel protocol with 28 bytes static overhead) that creates an Ethernet tunnel between two routers on prime of an IP connection. The EoIP tunnel might run over IPIP tunnel, PPTP …

How to clone MySQL database

Here is a method to create a replica of 1 database, with all its tables and their knowledge Dump your supply database into sql file # mysqldump -uroot -p manufacturing -r manufacturing.sql If you want solely schema (database with empty tables) # mysqldump -uroot -p manufacturing …

Postfix queue monitoring script

Here is a small Perl script which can be useful as a Postfix queue monitor (count number of emails in Postfix queue) #!/usr/bin/env perl   # postfix queue/s size # author: # source: http://tech.groups.yahoo.com/group/postfix-users/message/255133   use strict; use warnings; use Symbol; sub count { my ($ …

Quick search and replace inside file

sed -i 's/original/new/g' file.txt Where sed means Stream EDitor -i – in-place (for example save back to the original file) s – the substitute command original – a regular expression describing the word to replace (or just the word itself) new – the text to replace …

Heart Bleed Bug – OpenSSL

A large vulnerability has been present in OpenSSL, the open-supply software program package deal broadly used to encrypt Web communications. The flaw permits attackers to steal the knowledge that’s usually protected by SSL/TLS encryption (net purposes, e-mail, prompt messaging, VPNs, and so forth). Essentially, meaning a …

Heart Bleed Bug – OpenSSL – part 2

I keep greater than 30 servers and a number of other of them was affected with Heartbleed bug. CentOS launched update for OpenSSL package deal(s) so there are not any excuses to not update (yum update openssl, … ). In the meantime, there are a whole …

Partition X doesn’t begin on bodily sector boundary

If you run “fdisk -l” and also you get one thing like: # fdisk -l   ....   Disk /dev/sdb: one thousand.P GB, 1000204886016 bytes 255 heads, sixty three sectors/monitor, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector measurement (logical/bodily): 512 …