Configuring Python to Access AWS using the BOTO API

In this article I will describe the step by step process for installing the Boto API under Python 2.6 that I used on my Centos 6.3 server.  Boto can be used to create and manage AWS infrastructure from a Python program or script.  Once I have installed and configured Python access using the API, I will demonstrate a “hello world” type script for starting existing server instances and also for shutting down those instances. Continue reading

Adding pip to Python 2.6

This is a very short article on how to install pip under Python 2.6.  I am doing this so that I can load the Amazon Web Services Python API called Boto.  However, since this looks like a procedure I may need to repeat in the future, I decided to make it a separate article so that I will be able to find it and refer to it easier when I need it.

Pip is a package manager for Python.  It is not present in the Python installation on my Centos 6.3 server.  So, in this article I will document the steps I used to install and configure Python 2.6 to use pip on my Centos 6.3 Linux server.

Pip can be installed using yum, but in order to do this, it is necessary to first add the EPEL repository to the configuration.  EPEL stands for “Extra Packages for Enterprise Linux”.  This configuration can be added by using wget to download an rpm and then installing it.

figure1

Figure 1

One the EPEL repository has been successfully added (you can verify this by looking in /etc/yum.repos.d for the epel.repos file), yum may be used install pip.

figure2

Figure 2

Now pip can be used to add packages to Python, such as the Boto API for AWS.

Adding space to an existing Linux 5.8 file system running under VirtualBox

While working with some VMs in the lab, I realized that I needed to increase the size of a file system.  This is actually not that big a deal since I typically create template servers and clone them.  It would very easy to just create a server that had the correct file system size and clone it.

However, as effective as that solution would be, it did not sound like much fun.  As a result I did a bit of research using Google and found several procedures for extending the file systems under VirtualBox using the Gparted utility.  I have used this utility in the past and know that it is effective.  But, again this just didn’t sound like much fun.

As I was about to try the Gparted process, I happened to find a blog post by Frank Munz at www.munzandmore.com.  I don’t know anything about Frank or his blog, but the post interested me because instead of using Gparted, he used the Linux Logical Volume Manager (LVM).  I have used LVM many years ago as a System Administrator, but had not really used it in the past few years.  As a matter of fact, 2 articles I had written years ago about using LVM with AIX and also with HPUX are still referred to by some of my readers.

Seeing his blog post made me think that using LVM instead of Gparted would be a lot more fun.  So this article describes the step by step process I used, following his lead to extend the root file system of an Oracle Linux 5.8 server running under VirtualBox from 16GB to 34GB. Continue reading

Setting up a 2 Server LAMP stack in Amazon AWS

NOTE:  The screenshots in this article show the Amazon AWS management console interface available in May 2014.

Overview

This article contains the step by step procedure for setting up a 2 server LAMP environment in the Amazon AWS cloud.  The first server will be used for Apache and PHP, while the second server will be used for MySQL.  This process consists of the following major steps:

  1. Setup the AWS Environment
  2. Create and configure the Apache/PHP Linux server.
  3. Create and configure the MySQL Linux server.
  4. Configure and verify connectivity between the Apache/PHP server and the MySQL server.

When this process is complete then you will have an proof of concept environment ready for hosting a LAMP application in Amazon AWS. Continue reading

Setting Up a 2 Server LAMP Stack in Microsoft Azure

NOTE:  The screenshots in this article show the Azure management console interface available in April 2014.

Overview

This article contains the step by step procedure for setting up a 2 server LAMP environment in the Microsoft Azure cloud.  The first server will be used for Apache and PHP, while the second server will be used for MySQL.  This process consists of the following major steps:

  1.  Setup the Azure Environment
  2. Create and configure the Apache/PHP Linux server.
  3. Create and configure the MySQL Linux server.
  4. Configure and verify connectivity between the Apache/PHP server and the MySQL server.

Continue reading

Installing Oracle 11gR2 under Linux 5.8 using PreInstall RPM

This article contains the step by step procedure for installing the Oracle 11gR2 database on Oracle Linux 5.8.  A simple installation suitable for use in a personal lab environment will be presented.  The oracle-validated RPM will be used which will eliminate much of the manual configuration that has been required for Oracle database installations before this RPM was made available.  The server hosting the database is a VM running under Oracle VirtualBox 4.2.6. Continue reading

Cloning a Linux Server with VirtualBox 4.2.6

The creation of Linux Servers for use in the lab can be simplified using the cloning feature of VirtualBox.  Cloning allows you to take an existing server VM and quickly make a copy of it that will exist as a separate server.  I will illustrate this process using the Oracle  Linux 5.8 server that I recently created.  I will make a clone of that server that will eventually be used to install the Oracle 11gR2 database on. Continue reading