TURN Server | Installation & Configuration On AWS

This blog post describes the way how to deploy and configure Google TURN server with all required steps. Mainly this installation and configuration has been tested on AWS(Amazon Web Services) cloud computer and confirmed. Because there are some connectivity issues while connecting to the TURN server remotely.

  1. Login to the AWS console and go to the EC2 menu and then launch new instance. In here there is called “Community AMIs”, go to that option and select the AMI called “rfc5766-turn-server”.
    Screen Shot 2015-03-24 at 10.37.52 AM
  2. There are several AMIs are listed under “rfc5766-turn-server”, take the latest version of the TURN server AMI and launch it with the relevant CPU, Memory, HDD, Network ,etc.
    Screen Shot 2015-03-24 at 10.42.17 AM
  3. Continue reading

Advertisements

Automating AWS Server Instances

This document describes how to automate server instance start/stop on AWS using a script. This automation make servers up only when they need for specific hours, as per user wants.

Please follow the steps to automate.

  1. Create an IAM role called ec2-operator using the IAM console view. (http://docs.aws.amazon.com/IAM/latest/UserGuide/creating-
    Continue reading

VM Provision In Google Cloud Platform

Following is the way to create an Google Cloud account.

Load the Google cloud platform URL and signup with the appropriate details. While creating account you will be asked to enter your credit card details, don’t worry about it because they are offering $300 free 60 days for our experimentations. Just enter your credit card details, they won’t change you until you give the proper permission.

– Once your account is successfully created, you will be given the dashboard as follows. Then you can select start with Compute Engine.

  1.  let’s follow the below steps to create a Linux machine step by step.
    Open the Google Cloud Dashboard and click on Try Compute Engine, then you will be placed in to some tutorials at the first time. In tutorials click on the “select a different project” and then click on drop down and create a new project.
    Continue reading

Configure VisualVM on Ubuntu 14.10

VisualVM is a kind of data gathering software for application which are running under the Java Virtual Machines (JVM). This retrieve information related to the Java application, like heap size, heap dumps, RAM utilization, CPU utilization, thread count and so on. There is an special interface that they use for getting information from application ends and gathered information is analyzed and displayed on the VisualVM dashboard. Remote application also can be monitored via VisualVM. Specially user can get snapshot of heat dumps also.
Follow the steps to install VisualVM on Ubuntu server.
# sudo apt-get install visualvm
# which viaualvm
# java -version
 
You can check the java is up & running up using the commands given above. And for testing purpose, I’m here using a Java testing application in the same host. Let’s open the visualVM and configure it to get the information of running applications.
# visualvm
 
if you need any help related to visualVM you can us,
# visualvm – -help

After open the VisualVM, then you will see the terms and condition that should be accepted. Please accept it and go ahead.
Continue reading

Jenkins | Deploy & Configure for Play Applications in RHEL 6.x

Jenkins is an open source server for continuous integration and written by JAVA. This is one of a world famous CI(Continuous Integration) tool. This tutorial guides you through the steps to deploy Jenkins server on RHEL(Red Hat Enterprise Linux) server. The steps are given below.

  1. Check the JAVA is available on the RHEL server.
    # java -version
    Output : java version “1.8.0_45”
    Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
    Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
  2. If there is no JAVA is installed on your, install java and get it confirmed that’s installed.
    # yum install java
  3. Add the Jenkins repository to the host machine, then install the rpm file.
    wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
    rpm –import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
  4. Install Jenkins server
    # yum install jenkins
  5. Adding jenkins to system boot
    # chkconfig jenkins on
  6. Start Jenkins and check the port 8080 is opened from the server side.
    # service jenkins start
    # netstat -tnlp | grep 8080
  7. Open your browser and load Jenkins server http://:8080
    Screen Shot 2015-05-07 at 3.49.05 PM
  8. After successfully deploy the Jenkins server, you can setup the server to build scala applications. In here the application code will be retrieved from the git server, so git server should have a separate user for jenkins. In order to achieve that, user have to generate a SSH key file from the host machine.
    Continue reading

Configure HTTP Server load balancing with HAProxy in CentOS

In here I’m going to show you how to configure HTTP server load balancing with the HAProxy server.
HAProxy is an open source high availability and high responsive solution with server load balancing mechanism and proxy server. This would be helpful to maximise server availability and prevent single point of failure of the any kind of running applications on servers.
This tutorial is guiding you through the steps to be followed for http server load balancing using HAProxy. Let’s take an example for configuring HAProxy load balancing with some http server instances.
HAProxy Server
  • Server IP : 10.101.5.3
  • OS : Cent OS release 6.5
 
HTTP-Server-01
  • Server IP : 10.101.5.4
  • OS : Cent OS release 6.5
 
HTTP-Server-02
  • Server IP : 10.101.5.4
  • OS : Cent OS release 6.5
 
HTTP-Server-03

Continue reading

Configure VisualVM on Ubuntu 14.10

VisualVM is a kind of data gathering software for application which are running under the Java Virtual Machines (JVM). This retrieve information related to the Java application, like heap size, heap dumps, RAM utilisation, CPU utilisation, thread count and so on. There is an special interface that they use for getting information from application ends and gathered information is analysed and displayed on the VisualVM dashboard. Remote application also can be monitored via VisualVM. Specially user can get snapshot of heat dumps also.

Follow the steps to install VisualVM on Ubuntu server.
# sudo apt-get install visualvm
# which viaualvm
# java -version

You can check the java is up & running up using the commands given above. And for testing purpose, I’m here using a Java testing application in the same host. Let’s open the visualVM and configure it to get the information of running applications. Continue reading

Tomcat Server Load-Balancing Using Multiple Tomcat Server Instances in Ubuntu

Hello, in here I’m going to describe how to configure load balancing among multiple Apache tomcat servers, before write this article I searched on web and found many solutions but nothing worked correctly, getting some errors. So then somehow I managed to set up tomcat server load balancing. So here are the steps that I followed to configure load balancing on tomcat servers.

Before configure multiple server load balancing, you have to install and configure multiple tomcat server instances correctly, that has been described on my previous blog post about “How to configure multiple tomcat server instances”
Continue reading

Configure A Upstart File In Ubuntu Server.

Hello Everyone today I’m going to show you how to create a simple upstart file in Ubuntu server for .jar file. So let’s look at the steps for achieve this.

  1. Login to the Ubuntu Machine and go to “/etc/init/” then create a file with your project name and the file extention should be .conf (In here let’s assume the project name is project-test)
    $ cd /etc/init/
    $ sudo vi project-test.conf

    Continue reading