Category Archives: Linux

Highly-Available WordPress Installation inside AWS VPC using Ansible

In this post,we’ll learn that how we can do Highly-Available WordPress Installation inside AWS VPC using Ansible, for this purpose we’ll be using Ubuntu 14.04 LTS EC2 Instances but you can modify it easily for RPM-based systems. If you don’t know about the Ansible, please check this link.

The purpose of Ansible AWS VPC Highly-Available WordPress(AAVHAW) is to create a fully operational AWS VPC infrastructure(subnets,routeing tables,igw etc), it will also create everything that need to be for creating EC2 and RDS instances (security key, security group, subnet group).

It will also create the Elastic Load Balancer and add the EC2 instance(s) automatically that were created using this playbook as well as creating the Route53 entry for this wordpress site and add the ELB alias to it.

Beside that, this playbook will also run the essential role(updating and patching the OS, configuring NTP,creating users etc) and deploy the wordpress on them, that will be fault tolerant and highly available.

NOTE: The part of the play, ‘webserver.yml‘, is not idempotent. Every time it run, will create a new EC2 instances.

Read more of this post

Installing the VNC server on Ubuntu using Ansible

In this post,we’ll learn that how we can install the VNC server on Ubuntu 14.04 LTS using Ansible. If you don’t know about Ansible, please check this link.

If you want manual step by step procedure to install the VNC server on Ubuntu, please refer this post.

First, download this Repository from the GitHub:

git clone https://github.com/arbabnazar/ansible-roles.git

Note: If git is not installed then you can simply download the zip file.

Read more of this post

Installing the WordPress on Ubuntu using Ansible

In this post,we’ll learn that how we can install the WordPress on Ubuntu 14.04 LTS using Ansible. If you don’t know about Ansible, please check this link.

If you want manual step by step procedure to install the WordPress on Ubuntu, please refer this post.

Note: This role depends on LEMP Stack role, it will automatically install the LEMP Stack before installing the WordPress.

First, download this Repository from the GitHub:

git clone https://github.com/arbabnazar/ansible-roles.git

Note: If git is not installed then you can simply download the zip file.

Read more of this post

Installing the Samba server on Ubuntu using Ansible

In this post,we’ll learn that how we can install the Samba server on Ubuntu 14.04 LTS using Ansible. If you don’t know about Ansible, please check this link.

If you want manual step by step procedure to install the Samba server on Ubuntu, please refer this post.

First, download this Repository from the GitHub:

git clone https://github.com/arbabnazar/ansible-roles.git

Note: If git is not installed then you can simply download the zip file.

Read more of this post

Installing the LEMP Stack on Ubuntu using Ansible

In this post,we’ll learn that how we can install the latest LEMP (Nginx, MySQL & PHP) Stack and it’s initial configuration on Ubuntu 14.04 LTS using Ansible. If you don’t know about Ansible, please check this link.

If you want the manual procedure to install the LEMP stack, please refer this link.

First, download this Repository from the GitHub:

git clone https://github.com/arbabnazar/ansible-roles.git

Note: If git is not installed then you can simply download the zip file.

Read more of this post

Provision & Configure EC2 instance with Vagrant and Ansible

In this Simple tutorial, I’ll show you that how you can use the Vagrant with Ansible to provision and configure the EC2 instance on AWS. I am assuming that you already have Vagrant installed and have an AWS account(and know how to use both).

First you need to install the Vagrant AWS plugin:

vagrant plugin install vagrant-aws

After installing the plugin, add dummy AWS box:

vagrant box add aws https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box

Read more of this post

Post Installation steps on Ubuntu using Ansible

Ansible is a configuration management and provisioning tool, similar to Chef, Puppet or Salt. It’s one of the simplest and the easiest to get started with because it’s “just SSH”; It uses SSH to connect to servers and run the configured Tasks.

Ansible Introduction – Please must read this really good and detail Ansible Introduction

Here are the steps to install the Ansible on Ubuntu 14.04 LTS:

sudo apt-add-repository -y ppa:ansible/ansible
sudo apt-get update
sudo apt-get install -y ansible

Read more of this post

Backup MySQL DBs to Amazon S3 Bucket using Python

In this tutorial I’ll show you the simple Python script that takes the compressed MySQL dumps and then upload it to AMAZON S3 Bucket. The script will also automatically delete the backup that are older than the days (mentioned in the script).

Requirements:

This script requires boto. Install boto using pip:

sudo pip install boto
Configuration:

Read more of this post

Enable remote access of MySql on Ubuntu

By default MySQL only listens to localhost, if we want to enable the remote access to it, then we need to made some changes in my.cnf file:

sudo vi /etc/mysql/my.cnf

1

Read more of this post

IP Setting on CentOS6 using Shell Script

In this tutorial, I’ll show you that how we can do initial settings on CentOS6.x using shell script:

First create the script :

vi setting.sh

Screen Shot 2014-09-16 at 1.40.23 pm

Read more of this post