Mount SMB shares in Ubuntu

ubuntuHere is a quick guide on how to install CIFS and use it to mount SMB shares (aka Windows shares) in Ubuntu.  This is tested on Ubuntu 12.04 but should work on most recent versions as well as other Debian releases. Read the rest of this post »

Posted on March 20, 2013 at 23:05 by simon · Permalink · One Comment
In: Linux · Tagged with: , , , , , ,

Which is faster iSCSI or NFS when used as an ESXi datastore

esx

I have a QNAP NAS (which is an excellent bit kit by the way), and I have 2 servers running ESXi 4 and 5 respectively.  I had some free time tonight so finally got around to setting up both an NFS and an iSCSI datastore on the NAS.  I was curious as to which would be the fastest so here are my very unscientific results. Read the rest of this post »

Posted on January 11, 2013 at 0:45 by simon · Permalink · Leave a comment
In: Linux, Vmware

Change Ubuntu keyboard layout

vector-icons-realvista-flagsTo change the layout of the keyboard in ubuntu 12.04 use the following command:

sudo dpkg-reconfigure keyboard-configuration
Posted on January 6, 2013 at 13:06 by simon · Permalink · Leave a comment
In: Linux

Change Ubuntu Time or Timezone

ubuntuIt took me a while to figure out how to change the timezone in Ubuntu 12.04.  it wasn’t at all intuituve, so to save you the bother here are the commands you’ll need:

 

Read the rest of this post »

Posted on January 6, 2013 at 13:04 by simon · Permalink · Leave a comment
In: Linux

Setting SQL Server to accept date in DD/MM/YYYY format

I’ve been working on a web based database project for the wifes business and during development I realised that half of the dates where being saved in M-D-Y format.

As I live in the UK we use the correct date format which is D-M-Y obviously ;).

The problem turned out to be a single settings on the SQL server:

Read the rest of this post »

Posted on December 3, 2012 at 23:22 by simon · Permalink · One Comment
In: ASP.NET, SQL, Tech · Tagged with: , , ,

Query AD group membership with Powershell

Here are a couple of very useful scriptlets if you ever need to enumerate or count the quantity of users in an AD group.

Read the rest of this post »

Posted on October 25, 2012 at 14:47 by simon · Permalink · Leave a comment
In: AD, Power Shell

Assign a static IP to Ubuntu (old config)

Assign a static IP to UbuntuWhen installing a new Ubuntu system it sets up the network cards to use DHCP by default.  I like to give my servers a static address.  So here are the instructions detailing how to assign a static IP to Ubuntu.  These instructions were written with Ubuntu 12.04 in mind, though will probably work on most other versions as well as many other Debian based distros.

Read the rest of this post »

Posted on October 10, 2012 at 23:44 by simon · Permalink · Leave a comment
In: Linux · Tagged with: , , ,

loop until a certain time (in powershell)

Today I needed to write a bit of code that would enable a script to run for 23 hours and 55 minutes before ending itself.  So I dug in to PowerShell and again it came up with a fantastic solution for looping until a certain time.
Read the rest of this post »

Posted on September 30, 2012 at 14:35 by admin · Permalink · 7 Comments
In: Power Shell · Tagged with: ,

Update ESXi 4 standalone server without vCentre

esx

If like me you have the free Vmware ESXi 4 standalone server you’ve probably found that updating it can be a bit tricky without having vCentre handy or a second server to migrate all  your VMs to.  So here is the process i have just followed to successfully update my 2010 v4.1 server to the latest patch level.

Read the rest of this post »

Posted on September 10, 2012 at 23:15 by simon · Permalink · Leave a comment
In: Vmware · Tagged with: , ,

Powershell NSLOOKUP

The following PowerShell one liners give you hostname to IP or vice versa.

Read the rest of this post »

Posted on August 18, 2012 at 11:17 by simon · Permalink · Leave a comment
In: Power Shell · Tagged with: , , , ,