Archive for category Tutorial

Mount a file or RAM Disk

There are many times when you would want to create a file and mount it as a filesystem, this is great for testings and also moving whole mounts between servers using something like scp.

First you’ll need create the loop file, to do this follow the belew command to create a loop file Read the rest of this entry »

No Comments

AWS S3 Wildcard copy

In order to download recursively from S3 using the AWS CLI to you can add the —recursive option however if you only want to download one type of file, xml for example, you can use the —exclude and —include options Read the rest of this entry »

No Comments

Aspera Shares Linux Command Line

The Aspera Command-Line Interface is a collection of Aspera tools for performing secure transfers from the command line. In order to download from Aspera Shares you can use the command line tools efficiently download directly come a linux command line Read the rest of this entry »

No Comments

Inline Regex with Perl

Grep and EGrep are great tools for searching through text files however I often find that I need to only display matching regex groups when looking through log files, a great way to do this is with inline perl regex. Read the rest of this entry »

No Comments

Can I connect to an amazon instance and create more instances?

Can I connect to an amazon instance and create more instances? I have heard this question several times now and the answer is yes. You are limited to running 20 On-Demand and 100 Spot Instances per region with Amazon EC2. If that not enough for you then you’ll need to file a Request to Increase the EC2 Instance Limit, to use more instances.

Each instance is basically a virtual machine running on amazons infrastructure, and each instance is allocated its own address allowing you to connect to it. Because each instance runs independently you can connect to as many as you want simultaneously. Read the rest of this entry »

, , , , , , , , , , , , ,

No Comments

Save Outlook 2010 Archive Remotely

Save Outlook 2010 Archive Remotely

Have you ever had your computer lost or stolen, had to format it, or had a corrupted HDD, well if you have you’ll know its a pain, especially when trying to get you data back. Now with high-speed networks and cheap storage its becoming more common to backup are data remotely. This helps reduce data lost in the event your computer is lost or damaged.

This is all fair and well for your documents, you just copy them to a remote server and you can sleep safe in the knowledge your files will be OK. But what about your emails, these can be just as important, if not more, then your documents, in fact someone told me the other day that his emails were like is calendar and identity and would be completely lost without them, so its worth ensuring they are all backed up correctly. Read the rest of this entry »

, , , , , , , , , ,

1 Comment

How to edit Host File Windows 7

The host file in windows is a file that maps host names to IP Address. This works much like a simple DNS, however only one Host Name can go to one IP Address. This can be useful in many situations, for example if you are setting up a small office and don’t have the resources for a DNS you could set-up a host file to resolve internal Host Names for you.

Back in the days of Windows XP and NT all you had to do was open you host file and edit the data. But when windows Vista and 7 came along things became a bit more complicated as you have to open as administrator, so what if your not logged in as an administrator? Read the rest of this entry »

, , , , , , , ,

1 Comment

Find Mailbox Size In Outlook 2010

How do you know how much space your emails are taking up on your computer. Well if you are using outlook there is a simple way to find out how much space your using.

Outlook stores all its emails in something called a data file (or .pst file) these can usually be found in your local settings folder (“C:\users\[USER NAME]\AppData\Local\Microsoft\Outlook”). In outlook 2010 these data files are shown as either your Mailbox, Archive or Personal Folders. So how do we find out how big these files are: Read the rest of this entry »

, , , , , , , ,

No Comments

Snort Email Reports

Snort has many logging ability’s, syslog, unixsock, tcpdumps, csv, xml, unified and my favourite, database. All these logging methods are great if you are going to look through your logs regularly. But if your busy doing other things or maintaining snort isn’t you main priority how are you expected to keep up to date with the logs.

I find that having snort email me every morning with a simple report is a much better way of ensuring that no one is attacking my systems. It only takes me a minute to read through the report and if there is something I think needs looking at I can easily log into my database and get as much information on the event as I need. So how do you setup email reports, well if you installed Snort on a Debian based system it is already installed, just not setup correctly: Read the rest of this entry »

, , , , , , , , , , , , ,

3 Comments

Extenting Your Laptop Battery Life

Laptop batteries are generally Lithium-ion batteries, they work buy moving Lithium Ions from the negative electrode to the positive when being used and the opposite when they are charging. They are often used for laptops as they have the best energy-to-weight ratio of all the battery types and only slightly loose change when not in use (about 5-10% per month).

They do, as many of you will know, have several disadvantages, the most prominent being their shelf life. When you charge a Lithium-Ion battery it causes deposits in the electrolyte (much like limescale in your kettle). These deposits reduce the total charge of the battery as well as increasing internal resistance. This is why your laptop batteries eventually die and why laptop manufactures do no cover batteries under warranty, classing them as consumables. Read the rest of this entry »

, , , , , , , , , ,

No Comments