Teaching How to Install and configuring Firewall (GUFW) in Ubuntu

For more information, refer to: https://help.ubuntu.com/community/Gufw

Gufw is a firewall powered by UFW (Uncomplicated Firewall). For an overview of firewalls, please see Firewall.

Continue reading “Teaching How to Install and configuring Firewall (GUFW) in Ubuntu”

Teaching How to Install SSH server in your XUbuntu (16.0.4) Dev env

I took these instructions from: http://ubuntuhandbook.org/index.php/2016/04/enable-ssh-ubuntu-16-04-lts/

  1. To install it, open terminal (Ctrl+Alt+T) or log in Ubuntu server and run command:

    sudo apt-get install openssh-server

  2. After that, you should have SSH service enabled in your system, you may check its status by running command:

    sudo service ssh status

  3. You may change some settings (e.g., the listening port, and root login permission) by editing the configuration file via command. Otherwise if you are happy with the default settings, you are done!

    sudo nano /etc/ssh/sshd_config

Finally apply the changes by restarting or reloading SSH:

sudo service ssh restart

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:




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

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-

    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.*


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


VBoxManage list runningvms

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

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

"Integration_12." {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


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

Name: /VirtualBox/GuestInfo/Net/0/V4/IP, value:, 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. --vsys 0 --eula accept

						- Setting the NIC interface to bridge:

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

     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


    VBoxManage modifyvm Integration_12. --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”