Get AD site name on Locked Down XP System

Everyone on the web seemed to point to

Found myself on a locked down XP system needing to get this programmatically and came up with the below

Not fast but it works reliably to date

Posted in Tip at September 19th, 2013. No Comments.

Subversion 1.7 Debian

Update: Confirmed that this process works on svn 1.7.3 and 1.7.4, Works well on Debian Lenny (5.0) so if you have problems and your running Etch (4.0) or older please try and upgrade

At the time of writing Subversion 1.7.x wasn’t in the Debian Apt tree, and as i wanted to use the new HTTPv2 access method i decided to try my hand at building it from source.

I started with a bare bones Debian 6.0.3 box, the only non standard package i installed was ssh.

First off lets let apt-get do all the hard work when it comes to solving the dependencies for building SVN 1.7, we also may as well install Apache2 at this point. I have also added vim as its my text editor of choice for CLI

Be warned, for me i needed 477 (432mb) packages to this may take awhile to get and install

From here, lets use wget to grab the latest source package, the latest version should aways be listed on the Source Downloads on the Subversion website. at time of writing this is 1.7.1

Once this is done extract and install like any other package

Now if our like me you plan to use Apache2 need to copy the modules to the appropriate dir

Now to build a few config files, i prefer vim for my CLI text editing so i’m going to install it now, feel free to

Simple config just copy and paste the text below

Now lets enable the module and restart apache

If you don’t get any errors, Chances everything is installed and configured correctly, you can always use the –version switch on svn or svnadmin to confrim

So its installed, but lets setup a quick and dirty test repo to confrim that apache is working

Config for /etc/apache2/conf.d/svn_test

Restart Apache then you should be good to go

Now browse to http://your_server/svn and you should see a screen similar to the one below

What you should see in your browser

From here you have the worlds most basic SVN server setup, no restrictions or limitations but if your just installing something on your local pc/network this may be enough for you, I plan to follow this up with a post about how i migrated 200gb 300,000+ revision corporate repo from my old 1.6.x server to my new 1.7.1 server

Posted in Guide at October 28th, 2011. 8 Comments.

PowerShell Get AD Password Age

Wanted to be able confirm that a user had really changed their Active Directory password when they claimed they had, Powershell was easy enough, but took me a bit to find it

or if you just want all the properties of the user, drop the pipe to filter

Posted in Tip at October 25th, 2011. No Comments.

XenDesktop 5.5 Second Hard Drive

So running my first Citrix XenDesktop 5.5 Deployment, Did the pilot and the design on 5.0 SP1 but when 5.5 came out the first day i saw no reason not to jump straight to 5.5. As i work for a software development company the requirements for developer are quite high so we took some careful consideration when designing the environment as one must when every user us utalising their own Oracle or MS SQL Database plus some JBoss and Eclipse thrown in for good measure.

Long story short we split up the system to a C: and a D: drive for OS and installs respectively, All well and good, nothing in any of the citrix design guides i read saying this wasent possable? XenDesktop just links into VMware and esentially clones the VM right? Wrong! think its best summed up by the one line i got from Citrix support

The Machine Creation Service will always recognise only the first drive, if you require desktops with multiple drives you would work around the MCS by using PVS to stream disks, use partitioning, or manually add disks after MCS has deployed the VM’s.

Thanks Citrix…..

Posted in Rant at September 6th, 2011. No Comments.

VTP Cisco Nexus 5020

There’s alot of talk about the Nexus OS not supporting VTP and where it does its only on the 7K series ant it only supports transparent mode. This is a bit out of date.

Once little thing i found after a moderate ammount of digging it is fully supported in the 5.x series of NX-OS, Namely Cisco NX-OS Release 5.0(2)N2(1)

Version Info

All modes supported

Generic Config

Posted in Tip at June 30th, 2011. No Comments.

Limit Apache Bandwith Debian

Install and Enable the mod

Apply config to vhost

Restart Apache

Posted in Guide at February 3rd, 2010. No Comments.

Site Upgrades

Upgraded from Highlight Source Pro to CodeColorer as one of the latest updates fixed a bug where it didn’t like my theme. Also upgraded to the latest WordPress Version

Shouldn’t cause any problems but if someone gets a mangled page let me know

Posted in Uncategorized at July 22nd, 2009. No Comments.

Install Crowd Apache2 Module

For all those who use Atlassian Products such as Jira or Confluence, you may or may not be familiar with Crowd now for anyone using Jira and Confluence it can allow you to use your existing user DB for multiple other systems, Personally i use it as a client access database to keep external users out of my AD database wherever possible while allowing internal users to still access these systems with their AD accounts.

With the right plug-in’s you can hook the system into pretty much everything, the most flexible one is the Apache 2 module, personalty i use it mostly as i had endless troubles getting recursive sub group lockups working with the free Apache modules floating around.

If you need to use a proxy, set it now

For Debian just copy and past the commands below, for other Distrobutions you will need to install the equivalent packages

Then to download, install and build the required modules the commands below should work.

From Here the Atlassian Article Integrating Crowd with Apache is the best place to go

Posted in Guide, Uncategorized at July 22nd, 2009. 1 Comment.

Debian: Upgrade Svn 1.6.1 to 1.6.3

My Previous post Subversion 1.6 on Debian Lenny has been quite popular! So i thought i should post this next snippet for people, Its the process i used for upgrading my 1.6.1 setup as detailed in the previous post to 1.6.3.

The previous post pulled packages from the experimental branch, This one pulls from the Sid (unstable) branch as it is more up to date then experimental.

Below are the commands i used for a 64bit OS, dont have any 32bit SVN servers lying around anymore so i don’t have a system to work out the require 32bit packages but in theory it should be as simple as changing “amd64″ to “i386″ in all the URL’s below

You will need to restart Apache after the upgrade

Posted in Guide at July 22nd, 2009. 2 Comments.

Subversion 1.6 on Debian Lenny

Currently the Version of Subversion in Debian Lenny is 1.5.1, there are a few bugs in this that could be show stoppers if you are using a write through proxy setup for your SVN Repo’s as i have. There are two bugs that keep cropping up, one that is solved in 1.5.5, the other in 1.6, however if you want to use debian packages the easiest way i have found to install them is as follows

Update 1: Few people are having problems, this guide assumes your running lenny with the default svn packages already installed, to do this try running the command below to install the latest version from apt (1.5.x as i write this) including the required Apache modules

Update 2: New post on how to extend this guide to go from svn 1.6.1 to svn 1.6.3 – Debian: Upgrade Svn 1.6.1 to 1.6.3

Update 3:This post was originally just some notes for me on highly critical production servers that all had to be running exactly the same versions and i had to have a very controled upgrade, However google sends a few hundred people here a month! So i thought id include the better general way that has been in the comments for awhile

Update 4: Guide now available for SVN 1.7

The best way are the commands below.

Original Post

32Bit

64 Bit

Posted in Guide at May 9th, 2009. 12 Comments.