Apache · Apache 2.4 · PHP · Ubuntu · Ubuntu 16.04 · Web applications · Web Server · Wordpress

WordPress 4 on Ubuntu 16.04

WordPress needs a working LAMP stack. Let start off the installation by setting up a LAMP stack first. It can be done using the following command.
Continue reading “WordPress 4 on Ubuntu 16.04”

Advertisements
Linux Distribution · Raspberry Pi

Building a Raspberry pi kiosk

One thing many people want to achieve with a Raspberry Pi is a functioning simple web kiosk. Combined with a touchscreen, it could potentially replace ATM machines. Yes, it’s high time we switched to low cost, secure ATM kiosks based on easily available commodity hardware. ATM machines and Kiosks mostly run a Windows XP (!?) on a machine that’s configured to launch only one application and in the event the application crashes, the system shuts down and sends an alert to the bank staff. This can easily be done with a Raspberry Pi. The system should have no problem delivering the complete set of functionality, should be fairly easy to deploy, maintain and secure on a large scale and hey, Raspberry Pi is so tiny, we’ll be spoilt for space inside the ATM machine. (More cash, Yay!). I’m not even going to elaborate on the savings on electricity (go figure!).

RPi awesomeness
By Chris Sheppard on Flickr

The idea of this exercise is simple. You start the system and you get dumped onto a web browser with a specific site loaded. That’s it. Nothing more, nothing less. If the web browser crashes, the system attempts to restart the browser or dies trying >:D

We also need this kiosk thing to be gentle on system resources. So we’ll use lightweight (albeit effective and powerful) applications. The ingredient list is as follows:

  1. Auto Log-in: nodm
  2. Auto X start: we use a simple .xsession file
  3. Window Manager: We’ll be using the full awesomeness of matchbox
  4. Browser: uzbl. Haven’t heard of it? You should totally check it out.
  5. Splash screen: fbi. Yea I know how that sounds. 😛

Let’s see how to set each one of these babies up

Continue reading “Building a Raspberry pi kiosk”

Information Security · OpenVPN · Ubuntu 14.04 · VPN

Accessing AWS VPC instances using OpenVPN-NL

Pre-requisites

  1. Amazon VPC CIDR (the /16 one) – 172.31.0.0/16 is our example

  2. Ubuntu 14.04 instance launched in a public subnet with EIP attached

  3. EIP of the above machine – 54.63.44.120 is our example
  4. SSH connection to the Ubuntu instance

Setting up the server

We are going to use a distribution of OpenVPN called OpenVPN-NL (http://openvpn.fox-it.com/) because it has more secure defaults than the standard OpenVPN installation that is distributed with Ubuntu. Also, OpenVPN-NL makes use of mbed-TLS (previously PolarSSL) instead of OpenSSL because of its compactness and ease of auditability (is that even a word?). Run all following commands as the root user: Continue reading “Accessing AWS VPC instances using OpenVPN-NL”

Cloud · Glance · Liberty · Neutron · Open vSwitch · OpenStack · OpenStack installation guide · Ubuntu · Ubuntu 14.04

OpenStack Liberty on Ubuntu 14.04 and Ubuntu 15.10 – Single machine setup

Install Ubuntu with partitioning scheme as per your requirements. Note: Run all the commands as super-user. We assume that the IP of the Single machine is 10.0.0.1. Continue reading “OpenStack Liberty on Ubuntu 14.04 and Ubuntu 15.10 – Single machine setup”