Configure VNC on Ubuntu Desktop 14.04

You will find below the correct way to configure your Ubuntu Desktop to provide the same X desktop session when you connect rather than providing a whole new X session.

reboot your machine and you will now be able to connect via VNC and access your desktop.

Initial Cisco IOS Configuration

Basic configuration for a Cisco IOS Router

When generating the rsa key for SSH, you need to select 768 as the bit size for the key to enable SSHv2, choosing the default will result in SSHv1 being configured.

Installing Oracle Java JDK 8 on Ubuntu 14.04

Create dir for JDK

Open http://www.oracle.com/technetwork/java/javase/downloads/index.html 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:

HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate

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.

Installing
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

Demo
Download

Overview

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

 

Overview

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.

Parts

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