Teaching how to Update the hostname in your XUbuntu (16.0.4) Dev environment

I based these instructions from: http://askubuntu.com/questions/9540/how-do-i-change-the-computer-name

If, for whatever reason you need to change your hostname, as I had to, you need to edit the computer name in two files:

/etc/hostname

and

/etc/hosts

Continue reading “Teaching how to Update the hostname in your XUbuntu (16.0.4) Dev environment”

Advertisement

Teaching How to Install VirtualBox in your Dev env

Installing VirtualBox and running your own VBox VMs

 

In this section we are going to install a headless VirtualBox. I like the idea of keeping it at the command line (i.e. no graphical interface), so that it consumes less resources and also so that it can be easily scripted and automated. Otherwise if you prefer to install a graphical user interface, there are a few options; you can use an x11 server tunnelling though your laptop and simply export the display into your machine. Another option is to use a remote desktop software like VNC or NoMachine.

 

In order to install a headless version of VirtualBox in RedHat and Fedora distributions follow the next set of instructions:

 

These instructions were taken from: http://tecadmin.net/install-oracle-virtualbox-on-centos-redhat-and-fedora/#

 

  • Add Required Yum Repositories. Firstly you are required to add VirtualBox yum repository in your system. Download repository file from its official site and place it under at /etc/yum.repos.d/virtualbox.repo – First navigate to /etc/yum.repos.d/ directory and get the repo

     

    cd /etc/yum.repos.d/

    sudo wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo

     

  • Similarly, add EPEL yum repository:

     

    rpm -Uvh http://epel.mirror.net.in/epel/6/x86_64/epel-release-6-8.noarch.rpm

     

  • Before installing VirtualBox make sure to install all required packages to run VirtualBox like kernel-headers, kernel-devels etc. Use following command to install required packages.

     

    sudo yum install gcc make patch dkms qt libgomp

    sudo yum install kernel-headers kernel-devel fontforge binutils glibc-headers glibc-devel

     

  • Setup the environment variable KERN_DIR. VirtualBox installation required kernel source code to install required modules. We need to configure environment variable KERN_DIR to which VirtualBox get kernel source code. In my case latest kernel source is available in 2.6.32-642.6.1.el6.x86_64 directory under /usr/src/kernels/ – Make sure you are using correct source path.

     

    export KERN_DIR=/usr/src/kernels/2.6.32-642.6.1.el6.x86_64

     

  • Install Oracle VirtualBox now. Use following command to install VirtualBox 5.1 using yum command line tool. It will install latest version of VirtualBox 5.1.x on your system.

     

    sudo yum install VirtualBox-5.1

     

  • After installation we need to rebuild kernel modules using following command:

     

    sudo yum install kernel-uek-devel-3.8.13-68.2.2.3.el6uek.x86_64

    sudo /sbin/vboxconfig

     

     

How to install Virtualbox 5.1 in Ubuntu:

1. The 5.1 release conflicts with the old 5.0 or 4.x releases, so first open terminal (Ctrl+Alt+T) and run command to remove the previous VBox installation (if any):

sudo apt remove virtualbox virtualbox-5.0 virtualbox-4.*

Or:

sudo apt-get purge virtualbox*

2. Download Virtualbox 5.1 for your OS (i386=32bit, amd64=64bit):

Download Virtualbox for Linux

Double click the deb file and install via Ubuntu Software.

3. For those who want to install VBox 5.1 from official Linux repository and receive future updates via Software Updater. Run the commands below one by one in terminal:

 

Note: According to your Ubuntu codename, replace xenial with wilytrusty, or precise.

 

 

sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian xenial contrib" >> /etc/apt/sources.list.d/virtualbox.list'

wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -

sudo apt update

sudo apt install virtualbox-5.1

 

Congratulations!!! That's it.

 

NOTE: If you are within a proxy, then try:

sudo http_proxy=http://www-proxy.au.oracle.com:80 apt update

sudo http_proxy=http://www-proxy.au.oracle.com:80 apt install virtualbox-5.1

 

 

If you want to manage your VMs from within the Host Machine, you can use VBoxManage – See https://www.virtualbox.org/manual/ch08.html for more information. Some useful commands are:

  • List all loaded VMs

VBoxManage list vms

  • List all running VMs

VBoxManage list runningvms

E.g.

VBoxManage list runningvms

"ICS16.3.5_OP" {088457a8-c9cc-424a-8720-4bc02cce9298}

"API_Platform_Beta_1" {5de85cbd-2203-46cd-949e-f94f79ae797f}

"Integration_12.2.1.1.0_OTN" {b8191645-04d6-4c3e-b6f3-c42e5cb8e514}

  • List info about a specific guest VM

VBoxManage guestproperty enumerate [VM_Name]

  • A variation of the latest in order to just get the IP Address:

VBoxManage guestproperty enumerate [VM_Name] | grep IP

E.g. 

VBoxManage guestproperty enumerate "ICS16.3.5_OP" | grep IP

Name: /VirtualBox/GuestInfo/Net/0/V4/IP, value: 10.0.0.50, timestamp: 1476324285478581000, flags:

 

  • Control Running VMs lifecycle:

  VBoxManage controlvm <vmname> pause|resume|reset|poweroff|savestate
- Get the complete list of options with:
VBoxManage controlvm

  • In order to start your VM in headless mode:

    VBoxManage startvm <vmname> --type headless

 

  • Import a New Appliance:

  VBoxManage import [Appliance]


- Authorising certificates:

    VBoxManage import Integration_12.2.1.1.0_OTN.ova --vsys 0 --eula accept


						- Setting the NIC interface to bridge:
							

    VBoxManage showvminfo [VM Name], e.g. VBoxManage showvminfo Integration_12.2.1.1.0_OTN

     See the NIC interface number in use:
						

    VBoxManage modifyvm [VM Name] --nic<1-N> none|null|nat|natnetwork|bridged|intnet|hostonly|generic --cableconnected<1-N> on|off

    e.g. 

    VBoxManage modifyvm Integration_12.2.1.1.0_OTN --nic1 bridged --cableconnected1 on

 

Teaching How to Build your own Local Development Environment

When creating your Development environment it is recommended that you move to a Linux platform. This is so that you can make use of the Docker containers, as well as avoiding multiple issues that exist when running some Modules of Node JS, such as socket.io

There are multiple ways you can get access to a Linux environment, even while working on a Windows platform. The recommended way in this guide is by using Oracle VirtualBox.

  • Go to VirtualBox website (https://www.virtualbox.org/) and download the latest version. At the moment of writing this document, the latest version is 5.0.16 for Windows x86/amd64

Notice that if using OS X, you can still download a VirtualBox distribution. The main reason why you would still want to do it is because that way you can standardise a single platform among a team members, as well as having the ability to recreate your development environments over and over again, without affecting your host OS (Windows/OSX). For the case of this example, we are going to standardise using Xubuntu.

Continue reading “Teaching How to Build your own Local Development Environment”

Teaching How to Configure JDeveloper to deploy into SOACS

Creating an Application Server connection in JDeveloper to any SOACS environment is slightly different than doing it against a traditional WebLogic and SOA environment. The main difference is that the SOA CS environment is governed by Oracle Compute Cloud Service (IaaS), which by default establishes a few network restrictions.

There are multiple ways to open access from SOACS Compute Cloud Service to allow connectivity from JDeveloper, but in this document we have mentioned what we believe it is the easiest and less intrusive way. If this approach is not applicable to your situation, feel free to contact and discuss other ways with the owners of this document.

Continue reading “Teaching How to Configure JDeveloper to deploy into SOACS”

Teaching how to run VirtualBox VM in a new Oracle IaaS Environment

This section shows you how to use Oracle IaaS in order to create a new OEL environment. For this, it is assumed that you already have access to Oracle IaaS, if not, either go to cloud.oracle.com and request a trial account or contact your local Oracle representative directly.

Oracle VirtualBox allows running a machine image on a virtualisation layer. Given Oracle IaaS is itself a virtualisation layer (Xen based) you cannot simply install VirtualBox on an Oracle IaaS VM and upload your VirtualBox VMs. That won’t work, as you cannot run VirtualBox on top of a Xen based virtualisation.

Continue reading “Teaching how to run VirtualBox VM in a new Oracle IaaS Environment”

Teaching how to run ICS APIs from a DevOps perspective

In this blog I am going to show you how to interact with ICS system APIs, in order to simplify the deployment of ICS Integrations being stored and retrieved out of version control repositories (e.g. Git). This can be applied as a Continuous Integration or Continuous Delivery task, removing with this, manual interventions to export, import, configure connectors, activate integrations, run tests, etc.

I am going to be running these APIs via CURL commands and JSON objects, so that these commands can be easily ported into shell scripts, perhaps part of a CI/CD step using Hudson or Jenkins, for example.

Continue reading “Teaching how to run ICS APIs from a DevOps perspective”

Teaching how to integrate with Twilio APIs

In this section we are going to build a simple REST API that calls a “Programmable Voice call and SMS” via using Twilio APIs.

This example is based in one of the samples provided by Twilio (see below).

Original Calling clicktocall-node NodeJS project.

Continue reading “Teaching how to integrate with Twilio APIs”

Teaching how to create an Orchestration in ICS

This section shows you how to use ICS to create an orchestration across multiple service-endpoints. For this, we are going to existing REST APIs for:

  • Post a message to Facebook
  • Post a message update to LinkedIn
  • Updates a Campaign description in Salesforce
  • Creates an event in Google Calendar

Continue reading “Teaching how to create an Orchestration in ICS”

Teaching how to integrate Google Calendar with ICS

This section shows you how to use the Google Calendar ICS Connector that comes out of the box.

Obtain your Google Calendar Connector in ICS

In order to create a Google Calendar Connector you need to get the client id and client secret of the Google Calendar Account you want to connect to. For this:

Continue reading “Teaching how to integrate Google Calendar with ICS”

Teaching how to integrate LinkedIn with ICS

This section shows you how to use the LinkedIn ICS Connector that comes out of the box.

Obtain your LinkedIn Connector in ICS

In order to create a LinkedIn Connector you need to get the client id and client secret of the LinkedIn Account you want to connect to. For this:

Continue reading “Teaching how to integrate LinkedIn with ICS”

%d bloggers like this: