Installing Oracle Java JDK 8 on Ubuntu 14.04

Create dir for JDK

Open and copy the link of the latest version of JDK

untar the compressed file

Move jdk folder

We will create a symlink so that we can easily upgrade version of jdk

Now we will use the update-alternatives command to configure java path

Install Google Chrome on Ubuntu 14.04

Google Chrome

Add Key:

Set repository:

Install package:

WSUS Clients With The Same SUSclient ID

This issue can happen when we image systems and the clients end up having the same SUSclientID. The result is that only one among these clients will appear in the console. You may also see that out of a group of these clients, only one appears at a time but the exact one that does appear may change over time. For those clients that are not registering due to the SUS GUID issue we can use the following:


Installing EPEL Repo on CentOS 7

What is EPEL
EPEL (Extra Packages for Enterprise Linux) is open source and free community based repository project from Fedora team that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL), Oracle Linux (OL).

Epel project is not a part of RHEL/Cent OS but it is designed for major Linux distributions by providing lots of open source packages like networking, sys admin, programming, monitoring and so on. Most of the epel packages are maintained by Fedora repo.

You can install the EPEL repo using yum on CentOS 7, or you can manually obtain and install using yum.

Or manually.

Enable VNC on Mac OS X Mavericks

Raspberry Pi Temperature Monitor Web Interface Using Google Charts/PHP/MySQL

Temperature Monitor Web Interface



In this guide we will be showing you how to create a web interface that displays the temperature from a MySQL database which has been collected using the Raspberry Pi like the image above (The guide to setting up your Raspberry Pi to monitor temperature is here). We will need to throw together some HTML, PHP, & Javascript to get the web interface working. We will be using a PDO connection to MySQL.

Web Interface

To create a web interface we will be using a simple HTML table to display the last reading in the MySQL table collected by the Raspberry Pi, we will also be using Google Charts to display a line graph of the past 24 hours stored in our MySQL Database.

File/Directory Structure

Below is the file/directory structure that the code for Raspberry Pi Temperature Monitor Web Interfaces uses.

Continue reading

Temperature Monitoring on the Raspberry Pi

Temperature Monitoring



The Raspberry Pi is a small single-board computer (SBC) developed here in the UK, by Raspberry Pi Foundation. It runs various versions of linux on ARM and has a set of I/O pins which you can use to attach external components such as sensors, buttons etc. The Raspberry Pi unfortunately doesn’t have a built in Analog-to-Digital converter so we are unable to use a analog temperature sensor like the TMP36 which works great with the Arduino, the alternative is to use a digital temperature sensor.


Raspberry Pi
DS18B20 Temperature Sensor
4.8k Ohm Resistor
Prototyping Plate
Pi Cobbler
Half-sized breadboard
Jumper wire pack


Continue reading

Log Fail2Ban Bans To MySQL Using Fail2SQL

You most likely have heard of Fail2Ban or another Intrusion Detection System(IDS) which are great tools for blocking repeated attempts at breaking into systems.

I use Fail2Ban to block repeated SSH bruteforce attacks, as well as other services. I also like to be able to capture and visualise data and to do this I am using a PHP script called Fail2SQL, using a table in a MySQL database and modifying one of the actions associated with Fail2Ban you can log the iptable bans put in place by Fail2Ban.

Fail2SQL is written in PHP and makes use of MaxMind GeoIP PHP API so you can perform Geographical looks up from the IP addresses.

Fail2SQL stores the following information with the MySQL database

  • Name (from fail2ban)
  • Protocol
  • Port
  • IP
  • Count (total banned)
  • Longitude
  • Latitude
  • Country Code
  • Geo Data (city, country)

The data can be retrieved using the PHP file itself

Continue reading

Temporary GPO Fix for Microsoft Word 0Day Exploit

Microsoft announced today that attackers are exploiting a previously unknown(0Day) vulnerability in Microsoft Word, that affects all version of Microsoft Word making use of a flaw that when opening .rtf(Rich Text Format) files they can be crafted in a way that leads to remote code execution. This also effect Outlook if you have Word set to preview files in Outlook.

Microsoft has reported that a select number of users of Microsoft Word 2010 have been affected but that remote code execution can be made on all versions and have released various articles describing in detail. I will post various links at the bottom.

This post will provide a way of deploying an Group Policy Object(GPO) for deployment in business networks so you do not have to manually apply the “Fix it for me” solution Microsoft has provided.(see link below) Other solutions are to deploy the “Fix it for me” software via GPO.

The solution provided by below is a temporary fix which only disables .rtf (which is the cause of attack) from opening with Microsoft Word, the advantage to the method provided below using a GPO allows easy and quick re-enabling of opening .rtf files in Microsoft Word without having to again manually apply the “Fix it for me” solution by Microsoft to uninstall the fix.

Continue reading

How To Install & Configure BIND9 on Raspbian Wheezy

About BIND9

BIND is the most widely used DNS system on the internet, on Unix like operating systems its the de facto standard. Originally written by four graduate students at the Computer Systems Research Group at the University of California, Berkeley (UCB), the name originates as an acronym from Berkeley Internet Name Domain, reflecting the application’s use within UCB. BIND 9 was released in September 2000.

Raspbian is an unofficial port of Debian wheezy armhf with compilation settings adjusted to produce code that uses “hardware floating point”, the “hard float” ABI and will run on the Raspberry Pi.

Step One – Install BIND9

Step Two – Configure BIND9

Open up the BIND local configuration file:

We need to add a forward and reverse lookup zone:

Continue reading