VMWare Integrated Openstack issues

by on Dec.14, 2015, under Openstack, Sys Admin

Standing up the environment with the integrated Database is easy enough however if you want to add Active Directory into the mix it gets more fun.
During this I encountered the following issues:

  1. No way to change without blowing away the deployment and re-deploying.
  2. Error messages were often misleading.
  3. AD Structure very Important
  4. Forward Slashes in AD “cn” are BAD!!
  5. Users without a UPN cause issues.

(continue reading…)

Leave a Comment :, , , , more...

Compile Raspberry Pi Kernel

by on Feb.10, 2015, under Raspberry Pi

update: 2015-02-10: Removed folder sync as was causing builds to fail

Decided to play about with the Raspberry Pi Kernel but setting up the toolchain for a cross compile was a bit of pain not to mention remembering to download everything.
So I put together a Vagrantfile that should auto do it.

Following Variables can be edited at the top of the Vagrantfile:
(continue reading…)

5 Comments :, , , , , , , more...

CentOS 7 and OpenVPN 2.3.5 (Routed)

by on Nov.05, 2014, under General, Linux, OpenVPN, Servers, Sys Admin, Windows

Decided to setup a openvpn server on a new CentOS 7 box and it was not exactly straight forward so below are the steps required, this should be enough to get started

On a (minimal) centOS 7 box:

yum -y install gcc rpm-build vim openssl-devel lzo-devel pam-devel wget
rpmbuild -tb openvpn-2.3.5.tar.gz

if using a seperate server for as the VPN server:

scp ./RPMS/x86_64/openvpn-2.3.5-1.x86_64.rpm server:/tmp

(continue reading…)

Leave a Comment :, , , , more...

MSBuild and 7Zip SFX

by on Jun.02, 2014, under msbuild, TFS, Windows

The following allows you to package up your build output into a SFX file with custom properties that appear when someone right clicks the SFX and chooses properties.

Useful if you need to create a zip that can be signed but want your company/product information to appear on the SFX.EXE.

(continue reading…)

Leave a Comment :, , , , , more...

Update sshd_config to use Protocol 2

by on Jun.02, 2014, under AIX, shell, SunOS_Solaris, Sys Admin

Had to write an script to update SSHD to only use protocol 2 without changing any of the other settings, to be deployed via BMC Bladelogic (horrible horrible tool), but you work with what you have. The script should work across Linux, AIX and Solaris.

$> update [1|2]
$> rollback

(continue reading…)

Leave a Comment :, , , , , , , , , , more...

Convert XML and XSL to HTML

by on Oct.03, 2013, under Coding/Scripting, Sys Admin

Just a quickie. I have a script that outputs an XML file and I use an XSL file to display it but Management wanted HTML files, the thought of having to re-code the output was disheartening to say the least. I then came across “msxsl.exe” it’s a Microsoft tool that takes a XML file and a XSL file and then generates the resultant rendered output in HTML.

msxsl.exe -o

Leave a Comment :, , , , , more...

Changing TFS 2010 $(sourcedir)

by on Sep.03, 2013, under Sys Admin, TFS, Windows

Seemingly this can be set by editing the TfsBuildServer.exe.config on the build agent machine and changing the value of the following Key:

On a 2010 build agent this isn’t possible (continue reading…)

Leave a Comment :, , , , more...

TFS queue build from powershell

by on Aug.12, 2013, under Coding/Scripting, powershell, Sys Admin, TFS, Windows

I was doing some testing on TFS and got fed up queuing new builds via right-click -> queue new build -> ok. So here is a powershell script that can be used to kick off a build.

I’ve included some extra assemblies that don’t need to be used as I have other functions that do use them in the same module file. example useage below

Queue-TFSBuild -TFSServer http://tfsserver:8080/tfs/col -Project Project1 -Definition DailyBuild

$arrAssemblies = @(
Foreach ($assembly in $arrAssemblies) {
Remove-Variable assembly, arrAssemblies

Function Queue-TFSBuild {
    Param (

    Process {
        [Microsoft.TeamFoundation.Client.TfsTeamProjectCollection]$tfsc = [Microsoft.TeamFoundation.Client.TfsTeamProjectCollectionFactory]::GetTeamProjectCollection($TFSServer)
        $IBS = [Microsoft.TeamFoundation.Build.Client.IBuildServer]

        [Microsoft.TeamFoundation.Build.Client.IBuildServer] $buildserver = $tfsc.GetService($IBS)
        [Microsoft.TeamFoundation.Build.Client.IBuildDefinition] $BuildDef = $buildserver.GetBuildDefinition($Project,$Definition)
        [Microsoft.TeamFoundation.Build.Client.IBuildRequest] $BuildReq = $BuildDef.CreateBuildRequest();
Leave a Comment :, , , , , , more...

Flashing eeprom during imaging via PXE

by on Jul.11, 2013, under Coding/Scripting, Linux, Servers, shell, Sys Admin

I had a requirement to flash the eeprom on a FTDI chip while dropping a clonezilla image onto the system which is done via a PXE server

The 1st thing we need to do is get ftdi_eeprom tools on the clonezilla image, we do this by setting up an ubuntu system (I used ubuntu 12.04)

apt-get install squashfs-tools unzip

wget -O

mkdir clonezilla-src clonezilla-sqfs
cd  clonezilla-src
unzip ../
cd ../clonezilla-sqfs
unsquashfs ../clonezilla-src/live/filesystem.squashfs
cd squashfs-root/root


rm *.deb

chroot ~/clonezilla-sqfs/squashfs-root
cd root

dpkg -i libconfuse-common_2.7-4_all.deb
dpkg -i libconfuse0_2.7-4_amd64.deb
dpkg -i ftdi-eeprom_0.3-2_amd64.deb

cat > ./eeprom.conf <<@


cd ~/clonezilla-sqfs

mksquashfs squashfs-root filesystem.squashfs -comp xz -Xbcj x86 -b 1024k

Replace the Fields above with the values you want to use most important is the two _id fields as they tell ftdi_eeprom which device to attempt to flash, you can get these by running the command “lsusb” and identifying the device.

Copy the file “filesystem.squashfs” that has just been created and overwrite the one on the PXE server used to deploy the image. When you next PXE boot the target machines you will find ftdi_eeprom is available to use.

Now during the deployment run the command
ftdi_eeprom –flash-eeprom /root/eeprom.conf

Leave a Comment :, , , , , , , , , more...

Get Numeric Values from an Enum in powershell

by on Jul.10, 2013, under Coding/Scripting, powershell, Sys Admin, TFS

I needed to get the values for a enum in order to generate the correct flags for a function call here’s how to do it.

[Enum]::GetValues() will return a list of all the values

::.value__ will return the numeric value enum

[Enum]::GetValues([Microsoft.TeamFoundation.Build.Client.BuildStatus]) | foreach {
$Name = $_
$Value = ([Microsoft.TeamFoundation.Build.Client.BuildStatus]::$_).value__
Write-Output "$Name = $Value"
Leave a Comment :, , , , more...