Virgin Media Speeds In Nottingham

Somewhat off-topic today, but something that I’ve recorded here to showcase the current state and see if anyone else is getting similar issues. A colleague of mine and I have been measuring our broadband speeds since the start of the year. We both live in Nottingham and pay for a residential Virgin Media 200mbps line which

Simple iptables Rules for Ubuntu/ Debian VPS

The following iptables rules are are a starting point to add basic firewall security to a public facing server, such as a public VPS. The primary focus is to stop any inbound traffic other than SSH, which is required for shell access. The biggest issue with public VPS providers is that often some iptables features

Setting Memory Resource Limits With LXC

  Linux Container (LXC) management is now often dealt with by LXD, the Canonical lead project built on top of LXC. LXD offers a suite of options for controlling Linux Container resources and setting limits where appropriate. This post will talk about setting constraints on CPU, however other options are available for limiting almost any

LXC 2.x/ LXD Cheat Sheet

Here are some of the most used commands for creating and managing an LXC/ LXD host and containers. It’s assumed that you have a working environment and a privileged SSH connection to the LXC server for issuing the commands. Basics Start and Stop a LXC Container Starting out with the basics here – starting and

Setting CPU Resource Limits With LXC

Linux Container (LXC) management is now often dealt with by LXD, the Canonical lead project built on top of LXC. LXD offers a suite of options for controlling Linux Container resources and setting limits where appropriate. This post will talk about setting constraints on CPU, however other options are available for limiting almost any sort

Add systemd Startup Script For CouchDB

Currently, version 2.0 of CouchDB doesn’t come with any form of startup script. I’m sure that as the CouchDB 2 branch becomes more mature and it’s added to the various software repositories startup scripts will be shipped as standard, but until then we have to make do. The below script is a systemd startup script

Basic IPTable Rules

Here are some basic IPTable rules to enable essential connectivity from the host. Outbound connectivity such as ping, DNS and HTTP are all enabled, along with inbound SSH. All external sources are enabled for SSH so it’s advisable to restrict this further once you’re up and running. This IPTables script is intended to be a starting point

Skip Certificate Checks with Wget

This is a reminder for myself more than anything else. I don’t know why the wget developers couldn’t have chosen a switch that’s easier to remember. Anyway, if you haven’t installed or updated your certificate Authority certificates on your box and try and download something from an SSL URL with wget you’re going to run into trouble. This

Apt-get error: E: The method driver /usr/lib/apt/methods/https could not be found

I’ve been getting the following error when using apt-get update with Debian Wheezy recently. [crayon-578cc50f4f2f7166336499/] It seems that apt-get only supports HTTP connections by default, and throws an error with any HTTPS URLs.  You’ll likely see this error message if you add a new apt source URL that starts with https. What’s most annoying is that apt doesn’t simply ignore