Install the AWS CLI Using the Bundled Installer for MAC, OS X El Captain Version 10.11.2

Follow these steps from the command line to install the AWS CLI using the bundled installer.

To install the AWS CLI using the bundled installer

  1. Download the AWS CLI Bundled Installer.
    $ curl "" -o ""
  2. Unzip the package.
    $ unzip


    If you don’t have unzip, use your Linux distribution’s built in package manager to install it.

  3. Run the install executable.
    $ sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws

The above steps as mentioned in the article, worked for me but when I tried “pip install awscli –upgrade –user” on my mac book, the installation went fine but not sure why I was unable to use the cli command “aws”.


IRC server setup using InspIRC on FreeBSD 11

This blogpost is a guide on how to setup IRC server on FreeBSD 11 64 bit and we choose InspIRC as it met our requirements which are:

  1. Only LDAP authenticated Employee should be able to login and chat
  2. The communication should be protected by SSL protocol
  3. Channel logs are to be saved on the server.(Not covered in this post)

There is a long list of IRC Server’s software list, please refer to this wiki page.

………………………………………….. For more follow the below link……………………………………………………

Source: IRC server setup using InspIRC on FreeBSD 11


Setup HA-Proxy with Keepalived

Setup HA-Proxy with Keepalived

Two Ubuntu 14.04 servers [1GB RAM each]

hostnames and IP addresses:

    haproxy1 (
    haproxy2 (

We’ll also need to allocate a third IP address to use as the virtual IP address (VIP).  
We’ll use

# vi /etc/sysctl.conf

Then we run the following command to make this take effect without rebooting:
# sysctl -p

# apt-get update && apt-get install keepalived haproxy -y

# vi /etc/keepalived/keepalived.conf

global_defs {
  router_id haproxy1
vrrp_script haproxy {
  script “killall -0 haproxy”
  interval 2
  weight 2
vrrp_instance 50 {
  virtual_router_id 50
  advert_int 1
  priority 101
  state MASTER
  interface eth0
  virtual_ipaddress { dev eth0
  track_script {


router_id to be the hostname, and
the VIP as

# vi /etc/haproxy/haproxy.cfg

    chroot /var/lib/haproxy
    user haproxy
    group haproxy
    log local0
 stats socket /var/lib/haproxy/stats
    maxconn 4000

    log    global
    mode    http
    option    httplog
    option    dontlognull
        contimeout 5000
        clitimeout 50000
        srvtimeout 50000
    errorfile 400 /etc/haproxy/errors/400.http
    errorfile 403 /etc/haproxy/errors/403.http
    errorfile 408 /etc/haproxy/errors/408.http
    errorfile 500 /etc/haproxy/errors/500.http
    errorfile 502 /etc/haproxy/errors/502.http
    errorfile 503 /etc/haproxy/errors/503.http
 errorfile 504 /etc/haproxy/errors/504.http

listen stats
        mode http
        stats enable
        stats uri /stats
        stats realm HAProxy\ Statistics
        stats auth admin:password


Local IP addressis used in the file in two locations,
in the global section for the log location, and
in the stats listener.  

When you setup the second node, make sure to use its IP address.  
Also notice the username and password in the status auth line.  Set this to whatever you want.  
Then, you will be able to access the stats page via your browser.

Edit the file /etc/default/haproxy and change ENABLED from 0 to 1

Now we can restart the services:
service keepalived restart
service haproxy restart

Once you’ve completed all of these steps on both nodes,
you should now have a highly available load balancer pair.  
At this point, our VIP should be active on one node
(assuming that you built node 1 first, it should be active on that node).  

To confirm, we can use the ip command:

# ip a | grep eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    inet brd scope global eth0
    inet scope global eth0

Notice that both the local IP and the VIP are shown.
If we now shutdown node 1, node 2 will quickly pick up the VIP.

To further confirm,
# ping
from any machine within same network & bring down the node1.

Final Note: Don’t forget to repeat all the steps on second node as well.


Install Python Version 3.5 in Ubuntu

Install Python Version 3.5 in Ubuntu

# sudo apt-get install build-essential checkinstall -y
# sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev -y

# sudo wget
If the link doesn’t work go to and search for the latest version of python to download

# sudo tar xzf Python-3.5.2.tgz

# cd Python-3.5.2

# sudo ./configure

# sudo make altinstall

# python3.5 -V

Virtual Box Installation in Ubuntu /Linux

Virtual Box Installation in Ubuntu /Linux

Step1: First Download the Virtual Box 5.0.14 from the following link:
Click here to download Virtualbox

Step2: And then Download the extension pack from following link:
Click here for Extension pack

Step3: Open Terminal Give the following command:

# sudo -i
# cd /home/karthikv/Downloads/
# dpkg -i virtualbox-5.0_5.0.14-105127~Ubuntu~trusty_amd64.deb
# cd

Step4: Graphically go to your downloads location:
eg: /home/karthikv/Downloads/

Then Right Click On the downloaded Virtualbox extension pack:
eg: Oracle_VM_VirtualBox_Extension_Pack-5.0.14-105127.vbox-extpack
and click on “open with Oracle VM Virtual Box”

click on “install”