<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>davidrickard.net &#187; Computers</title>
	<atom:link href="http://www.davidrickard.net/category/computers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidrickard.net</link>
	<description>Random stuff, randomly updated.</description>
	<lastBuildDate>Fri, 23 Dec 2011 18:54:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Meet Eric and Ernie</title>
		<link>http://www.davidrickard.net/2011/12/23/meet-eric-and-ernie/</link>
		<comments>http://www.davidrickard.net/2011/12/23/meet-eric-and-ernie/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 18:54:13 +0000</pubDate>
		<dc:creator>David Rickard</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.davidrickard.net/?p=615</guid>
		<description><![CDATA[I&#8217;ve recently set myself up with a &#8216;little&#8217; virtualisation rig: It&#8217;s two HP workstations (Eric is an xw6400, and Ernie is an xw6200). Originally I intended buying just the xw6400, but I cheaped out and went for the xw6200 instead, thinking it would happily run ESXi 5. I was right, it does run it. The [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently set myself up with a &#8216;little&#8217; virtualisation rig:</p>
<p><a href="http://www.davidrickard.net/wordpress/wp-content/uploads/2011/12/EricandErn.png"><img class="aligncenter size-full wp-image-617" title="Eric and Ernie's stats" src="http://www.davidrickard.net/wordpress/wp-content/uploads/2011/12/EricandErn.png" alt="" width="716" height="314" /></a></p>
<p>It&#8217;s two HP workstations (Eric is an xw6400, and Ernie is an xw6200). Originally I intended buying just the xw6400, but I cheaped out and went for the xw6200 instead, thinking it would happily run ESXi 5. I was right, it does run it. The trouble is the processors don&#8217;t have the Intel vt-x extensions, so they can&#8217;t run 64-bit virtual machines. I mulled over my options, sold some stuff on eBay, and decided to get the xw6400 as well, as it DOES support vt-x. It actually worked out quite nicely as it now means I have 16 gig of RAM between two machines, a reasonable amount of disk, and the ability to spread loads. Basically the plan being to run 32-bit stuff and clients on Ernie, and anything that needs 64-bit can go on Eric.</p>
<p>You&#8217;ll notice two vSwitches on the boxes. What I have is two Broadcom NICs in each box. One connects to my local LAN, the other two connect back to back with the Virtual Machines vSwitch on them. All the VMs connect to this switch, save for one, which runs m0n0wall and bridges onto the main network too. It&#8217;s configured just to route, and do not much else; my main router (running DD-WRT) has a static route pointing to it, so clients on the Virtual Machines vSwitch are able to get out onto the internet, but not send any wayward data onto my main LAN.  I may change m0n0wall it for something a little more suitable in time, but for now it works. I&#8217;d like something which is a routing firewall, rather than a slightly knocked around NAT gateway.</p>
<p>Finally, there&#8217;s an NFS filesystem exported from my NAS with ISO images on from Technet and elsewhere, so I can install software and not waste space on the local datastores.</p>
<p>So far I&#8217;ve only thrown a few VMs on, but it seems to work quite nicely, and they aren&#8217;t particularly noisy when running. I only turn them on as needed, so power isn&#8217;t a big concern either. Hopefully with this setup I can play around with stuff to my heart&#8217;s content.</p>
<p>If you&#8217;re wondering where I picked up this stuff, it was from a company on eBay called <a title="bargain*hardware eBay store" href="http://stores.ebay.co.uk/bargainhardware" target="_blank">bargain*hardware</a> selling ex-corporate workstations. Pretty good prices for the kit you can get.</p>
<div id="attachment_620" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.davidrickard.net/wordpress/wp-content/uploads/2011/12/2011-12-23-18.20.532.jpg"><img class="size-full wp-image-620" title="Eric and Ernie" src="http://www.davidrickard.net/wordpress/wp-content/uploads/2011/12/2011-12-23-18.20.532.jpg" alt="" width="600" height="450" /></a><p class="wp-caption-text">Eric and Ernie (and the NAS)</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrickard.net/2011/12/23/meet-eric-and-ernie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>There and back again</title>
		<link>http://www.davidrickard.net/2011/07/01/there-and-back-again/</link>
		<comments>http://www.davidrickard.net/2011/07/01/there-and-back-again/#comments</comments>
		<pubDate>Fri, 01 Jul 2011 23:27:29 +0000</pubDate>
		<dc:creator>David Rickard</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://www.davidrickard.net/?p=609</guid>
		<description><![CDATA[I&#8217;ve moved web hosts again. Or rather, I&#8217;ve moved back. Many moons ago I had hosting with the fine chaps at UK Websolutions Direct. They provided an excellent service, but I wanted to do more fancy things with my hosting, so I moved to a VPS with Rapidswitch. For a while I was managing my [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" style="border: 0px initial initial;" src="http://ukwebsolutionsdirect.co.uk/img/banners/468x60.gif" border="0" alt="UK Web.Solutions Direct" width="468" height="60" />I&#8217;ve moved web hosts again. Or rather, I&#8217;ve moved back. Many moons ago I had hosting with the fine chaps at <a title="UK Websolutions Direct" href="http://ukwebsolutionsdirect.co.uk/portal/aff.php?aff=007" target="_blank">UK Websolutions Direct</a>. They provided an excellent service, but I wanted to do more fancy things with my hosting, so I moved to a VPS with Rapidswitch. For a while I was managing my own email, and hosting my domains on this little box. However, I&#8217;d neglected to think about the fact said box needs to be maintained.</p>
<p>My problem was I&#8217;d spend all day at work maintaining boxes, then come home and occasionally have to maintain another box. Not only that but I was paying the best part of £10 a month for this. It just suddenly didn&#8217;t add up any more. I had a look for some new hosting and was recommended iPage.</p>
<p>Their support was excellent, and their package was very generous (for the price). The problem was, their hosting is in the US in Boston. It seems their routing and peering is really not up to capacity, so page load times were horrendous. They actually use the caching system Akmai to give better page load times, and it&#8217;s a freebie for UK customers; in hindsight, that should&#8217;ve set off the alarm bells. With dynamic content like a WordPress blog, it&#8217;s really a pointless endeavour using caching as it was the initial connection and page load which took time, not pulling down static content like images. Although the images were slow too they weren&#8217;t as noticeable as staring at a blank page for anything up to ten seconds. I also host the bnluk.net site, and it just wasn&#8217;t good enough, as it was frustrating users.</p>
<p>The final nail in the coffin came earlier this week when their database server decided to hose itself, and my databases with it. It came back up, seemingly OK, but the databases weren&#8217;t working properly. I resurrected it and then started looking for new hosts.</p>
<p>After a great many recommendations from various people I found myself back at UKWSD, signing up to a slightly higher tier of service than I&#8217;d had before, which gave me the extra scope to host what I wanted. The account was set up in no time, all the data slurped over, and the DNS was switched. iPage refunded me my hosting charges.</p>
<p>If I was hosting a site aimed at US-based users, then I&#8217;d possibly use iPage again, but for UK-based users it&#8217;s a no-go. It&#8217;s a shame because as I say, their support and general service was great. Just a shame their network isn&#8217;t.</p>
<p>Rapidswitch were in the throes of migrating all their VPS customers to a sister company&#8217;s platform, and my cancellation request seemed to have dropped through the cracks, so I now need to unravel that too. I still need to tidy up my domain registrations &#8211; they&#8217;re between two hosts still!</p>
<p>But, I DO have two working domains. So that&#8217;s the main thing. All thanks to <a title="UK Websolutions Direct" href="http://ukwebsolutionsdirect.co.uk/portal/aff.php?aff=007" target="_blank">UK Websolutions Direct</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrickard.net/2011/07/01/there-and-back-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cheetah, Namemapper, and &#8216;the docs don&#8217;t say that&#8217;.</title>
		<link>http://www.davidrickard.net/2011/02/22/cheetah-namemapper-and-the-docs-dont-say-that/</link>
		<comments>http://www.davidrickard.net/2011/02/22/cheetah-namemapper-and-the-docs-dont-say-that/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 18:41:50 +0000</pubDate>
		<dc:creator>David Rickard</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Rant]]></category>

		<guid isPermaLink="false">http://www.davidrickard.net/2011/02/22/cheetah-namemapper-and-the-docs-dont-say-that/</guid>
		<description><![CDATA[You may find this useful (I did). If you’re installing the Python Cheetah library, you’ll most likely follow the instructions, which say to do the following: To install Cheetah in your system-wide Python library: Login as a user with privileges to install system-wide Python packages. On POSIX systems (AIX, Solaris, Linux, IRIX, etc.), the command [...]]]></description>
			<content:encoded><![CDATA[<p>You may find this useful (I did).</p>
<p>If you’re installing the Python <a href="http://www.cheetahtemplate.org/" target="_blank">Cheetah</a> library, you’ll most likely <a href="http://www.cheetahtemplate.org/docs/users_guide_html/users_guide.html#SECTION000420000000000000000" target="_blank">follow the instructions</a>, which say to do the following:</p>
<blockquote><p>To install Cheetah in your system-wide Python library:</p>
<ol>
<li>Login as a user with privileges to install system-wide Python packages. On POSIX systems (AIX, Solaris, Linux, IRIX, etc.), the command is normally &#8216;su root&#8217;. On non-POSIX systems such as Windows NT, login as an administrator. </li>
<li>Run <font face="Courier New">python setup.py install</font> at the command prompt. </li>
<li>The setup program will install the wrapper script <b>cheetah</b> to wherever it usually puts Python binaries (&quot;/usr/bin/&quot;, &quot;bin/&quot; in the Python install directory, etc.) </li>
</ol>
</blockquote>
<p>Quite simple. However, what it neglects to mention is that there is a little module within the library called ‘namemapper’. What it does, I don’t entirely know (something to do with mapping names would be my guess), but this module is written in C. Simply running the install as per the Cheetah docs won’t build this module, which results in much slower performance from Cheetah overall as it falls back to a python-based internal equivalent. However, if you run the command <font face="Courier New">python setup.py build</font> BEFORE the install command, it will happily compile said module. The install will then install it along with everything else, and all is well. Obviously you need gcc installed to do this (I had the dev pattern installed on my OpenSuSE box).</p>
<p>Why the docs don’t mention this, I don’t know. Still, nice to know there’s a simple fix.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrickard.net/2011/02/22/cheetah-namemapper-and-the-docs-dont-say-that/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Don&#8217;t touch that dial!</title>
		<link>http://www.davidrickard.net/2010/06/18/dont-touch-that-dial/</link>
		<comments>http://www.davidrickard.net/2010/06/18/dont-touch-that-dial/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 22:18:36 +0000</pubDate>
		<dc:creator>David Rickard</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[TV]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.davidrickard.net/2010/06/18/dont-touch-that-dial/</guid>
		<description><![CDATA[VideoLan (or VLC as it is otherwise known) is a great piece of software. It’s capable of playing a plethora of video and audio file types. It’s also capable of converting files, streaming files over the network, and viewing live TV via any TV cards you might have. Because of the way it works, it’s [...]]]></description>
			<content:encoded><![CDATA[<p>VideoLan (or VLC as it is otherwise known) is a great piece of software. It’s capable of playing a plethora of video and audio file types. It’s also capable of converting files, streaming files over the network, and viewing live TV via any TV cards you might have.</p>
<p>Because of the way it works, it’s possible to take any input, and spit it out in any way pretty much. Some time ago I’d seen a discussion on a mailing list about using VLC and a digital TV card to broadcast live TV over the network (using multicast). I’d had a quick play, but never got it working. A discussion popped up on the Multiplay forums, so I thought I’d try and get it working again. Last night I was successful, so I thought I’d blog it up in case it’s useful for others. VLC is documented, but the documentation is a bit hit and miss in places – always the problem for many Open Source projects.</p>
<p>Read more after the jump.</p>
<p><span id="more-586"></span></p>
<h3>Background</h3>
<p>Digital TV, using either satellite (DVB-S) or terrestrial (DVB-T) is fundamentally the same – MPEG2 Transport Streams, which are multiplexed into one stream, then broadcast on a single frequency. The tuner will tune to the frequency, then pick the stream it wants, and play it on screen.</p>
<p>The idea behind what we’re doing here is to take that multiplex, and pick out the streams we want, then just multicast them as is onto the network. Using the SAP protocol, it’s possible to announce them in a nice neat way so clients can pick them up easily.</p>
<p>Because it’s already MPEG2, no re-encoding is really needed. I suppose you could do that, but I’ve not tried. This method uses hardly any CPU time, as it’s just pulling data in, patting it about a bit, and throwing it out the other side. In the original mailing list postings I read, the author was using some old Pentium 4 PCs with hardly any RAM. They were capable of tuning multiple channels with ease.</p>
<p>One caveat of this is that the tuner can only lock onto one frequency, so one multiplex is all you can play with; on Terrestrial (i.e. Freeview), the BBC multiplex contains all the BBC channels. If you wanted to multicast BBC and ITV channels for example, you’d need to add a second tuner and tune to the ITV multiplex.</p>
<p>In my investigations, I had the following setup:</p>
<table border="0" cellspacing="0" cellpadding="2" width="400">
<tbody>
<tr>
<td width="200" valign="top"><strong>Server</strong></td>
<td width="200" valign="top"><strong>Client PC</strong></td>
</tr>
<tr>
<td width="200" valign="top">Windows 7<br />
Hauppauge WinTV HVR-1300 Terrestrial Digital card<br />
VLC 1.0.5</td>
<td width="200" valign="top">Mac OSX 10.6<br />
VLC 1.0.5</td>
</tr>
</tbody>
</table>
<p>Both are connected over a Gigabit network. However, the video streams are quite small (5-6Mb/s). Even 10Mb network could cope with that, although not many concurrently!</p>
<h3>The server end</h3>
<p>First of all, here’s the full command to kick start VLC on the Server.</p>
<pre>vlc dvb-t://frequency=578000000 :adapter=0:dvb-bandwidth=8 --programs=4171,4235
--sout #duplicate{dst=std{access=udp,mux=ts,dst=239.255.255.239,sap,name="BBC One",
group="BBC"},select="program=4171",dst=std{access=udp,mux=ts,dst=239.255.255.238,
sap,name="BBC Two",group="BBC"},select="program=4235"</pre>
<p>That’s all on one line, I had to break it up a bit!</p>
<p>So an explanation of it. Basically it runs VLC, tunes the frequency, using a selected adapter and channel bandwidth. It then selects the two programs I want (BBC One and Two), then outputs them via UDP on two different multicast addresses, using SAP to announce it.</p>
<p>First of all, I’d recommend running VLC up manually. Go to <strong>Media</strong> &gt;<strong>Open Capture Device</strong>. Change the capture mode to <strong>DVB Directshow</strong>. Select the video format you’re using (I’m using DVB-T). Then dial in the frequency of the multiplex you want. Select <strong>8Mhz</strong> for the bandwidth. You can find out the multiplex frequency using <a href="http://www.ukfree.tv/" target="_blank">UKfree.tv</a>.</p>
<p><img style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="Opening the TV card" src="http://www.davidrickard.net/wordpress/wp-content/uploads/2010/06/OpenCard.png" border="0" alt="Opening the TV card" width="548" height="545" /></p>
<p>Click Play, and it should open.</p>
<p><a href="http://www.davidrickard.net/wordpress/wp-content/uploads/2010/06/VideoWorking.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="Testing the video works" src="http://www.davidrickard.net/wordpress/wp-content/uploads/2010/06/VideoWorking_thumb.png" border="0" alt="Testing the video works" width="644" height="361" /></a></p>
<p>If it doesn’t you might need to select your video adapter explicitly. I have two in my PC. The DVB-T card is adapter 0, whilst my DVB-S card is adapter 1. Click <strong>Media</strong> &gt; <strong>Open Capture Device</strong> again , then tick<strong> Show more options</strong> and enter “<strong>:adapter=0</strong>” into the options box. In the previous screenshot I have highlighted this. Change the number until it works.</p>
<p>Once you are able to see the video, go to <strong>Tools</strong> &gt; <strong>Messages</strong>. Change the Verbosity to <strong>2</strong>. Stop and start VLC and watch the log fill up. There’s too much to try and work with it in the window, so click <strong>Save as…</strong>. Open the file you have saved, and look for a section similar to the following:</p>
<pre>ts debug: new SDT ts_id=4107 version=3 current_next=1 network_id=9018
ts debug:   * service id=4171 eit schedule=1 present=1 running=4 free_ca=0
ts debug:     - type=1 provider=BBC name=BBC ONE
main debug: EsOutProgramMeta: number=4171
ts debug:   * service id=4235 eit schedule=1 present=1 running=4 free_ca=0
ts debug:     - type=1 provider=BBC name=BBC TWO
main debug: EsOutProgramMeta: number=4235
ts debug:   * service id=4415 eit schedule=1 present=1 running=4 free_ca=0
ts debug:     - type=1 provider=BBC name=BBC NEWS
main debug: EsOutProgramMeta: number=4415
ts debug:   * service id=4479 eit schedule=0 present=1 running=4 free_ca=0
ts debug:     - type=1 provider=BBC name=BBC Red Button
main debug: EsOutProgramMeta: number=4479
ts debug:   * service id=4671 eit schedule=1 present=1 running=4 free_ca=0
ts debug:     - type=1 provider=BBC name=CBBC Channel
main debug: EsOutProgramMeta: number=4671
ts debug:   * service id=4351 eit schedule=1 present=1 running=4 free_ca=0
ts debug:     - type=1 provider=BBC name=BBC THREE
main debug: EsOutProgramMeta: number=4351</pre>
<p>Notice all the Service IDs. As you can probably tell, each of these represents a TV channel within the multiplex. You need to note down the ones you want to multicast. In this case I want BBC One (4171) and BBC Two (4235).</p>
<p>The next part of the command selects those programs and outputs them:</p>
<pre>--programs=4171,4235 --sout</pre>
<p>The next part is to make up the multicast. As the video is already in MPEG2 we don’t need to go re-encoding it, so it’s simply a case of spitting it out.</p>
<p>I’ll be honest, I’m not sure what this next section does – I <em>think</em> it is basically saying take the input and duplicate it to output elsewhere (i.e. other than on screen).</p>
<pre>#duplicate{</pre>
<p>We are going to broadcast on a multicast address (anything in the range 224.0.0.0 to 239.255.255.255). You need to choose your addresses. On a large network with multicast enabled, these could be in use, so it’s worth checking first. If you know you don’t have any multicast I think it’s fairly safe to pick a random address. I chose 239.255.255.255.239 and went down from there!</p>
<p>This next line is where we select UDP, make it a Transport Stream, select the target IP, and advertise it with SAP. The channel name, and group name are set here too:</p>
<pre>dst=std{access=udp,mux=ts,dst=239.255.255.239,sap, \
name="BBC One",group="BBC"},select="program=4171",</pre>
<p>Repeat for BBC Two. Use a different multicast address though!</p>
<pre>dst=std{access=udp,mux=ts,dst=239.255.255.238,sap, \
name="BBC Two",group="BBC"},select="program=4235"</pre>
<p>Now we have a full command, it’s a case of running it. I used a command prompt and ran VLC from there, but you could of course put it into a shortcut, batch file, registry run key, or whatever.</p>
<p><a href="http://www.davidrickard.net/wordpress/wp-content/uploads/2010/06/Multicasting.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="Multicasting" src="http://www.davidrickard.net/wordpress/wp-content/uploads/2010/06/Multicasting_thumb.png" border="0" alt="Multicasting" width="644" height="444" /></a> Once it’s running, a very simple, hacky way of checking it is working is to look at your network switch. If it’s flashing away merrily on all ports, then it’s doing <em>something</em>!</p>
<h3>The clients</h3>
<p>Run VLC on another PC, Go into <strong>Preferences</strong> &gt; <strong>Playlist</strong> &gt; <strong>Services Discovery</strong> and tick <strong>SAP</strong>. You might need to re-start VLC. Go to the playlists, and you should see a group with the name you made, and your channels. Click one, it plays!</p>
<p><a href="http://www.davidrickard.net/wordpress/wp-content/uploads/2010/06/Screenshot20100618at23.14.41.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="Screen shot 2010-06-18 at 23.14.41" src="http://www.davidrickard.net/wordpress/wp-content/uploads/2010/06/Screenshot20100618at23.14.41_thumb.png" border="0" alt="Screen shot 2010-06-18 at 23.14.41" width="644" height="394" /></a> As you can see, I’m doing this on my Mac, so it’s truly cross platform!</p>
<p>I did find in testing that it caused an effective DoS on my Wireless. I&#8217;m guessing the multicast was too fast for the slowest wireless device associated to the AP, and just wiped the lot out or something. Wired carried on working fine though. Something to bear in mind anyway!</p>
<p>I’m sure it’s possible to refine this a little more. The original version of this I saw had VLC daemonizing itself, which I’m not entirely sure is possible in Windows. Still, it’s a great way to get video served up over the network.</p>
<p>Oh, and remember, you still need a TV licence!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrickard.net/2010/06/18/dont-touch-that-dial/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Bridgedy-doo-dah</title>
		<link>http://www.davidrickard.net/2010/05/26/bridgedy-doo-dah/</link>
		<comments>http://www.davidrickard.net/2010/05/26/bridgedy-doo-dah/#comments</comments>
		<pubDate>Wed, 26 May 2010 07:47:47 +0000</pubDate>
		<dc:creator>David Rickard</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://www.davidrickard.net/?p=572</guid>
		<description><![CDATA[At work we often have a requirement to test out things on our network, as if we were an external user. It&#8217;s useful to check that firewall settings are right, or to check access rights. We recently had an ADSL connection installed which serves that purpose. Via some spare fibres and various spare switches, we&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>At work we often have a requirement to test out things on our network, as if we were an external user. It&#8217;s useful to check that firewall settings are right, or to check access rights. We recently had an ADSL connection installed which serves that purpose.</p>
<p>Via some spare fibres and various spare switches, we&#8217;ve got access to it in various switch closets. I wanted to be able to access it from my desktop. My preference was to use a virtual machine, which I could set up with all the software I needed and test. This would mean bridging said virtual machine to that network.</p>
<p>I added a second network adapter to my PC, unbound it from all the local protocols (so my PC doesn&#8217;t touch that network) and set VMware Player to use bridged mode. With VMware workstation, you can use the virtual network tool to configure which NIC bridges to the virtual machines. However, that tool is missing with VMware player. By default, it was bridging to my first NIC, which was no good, as it was on the uni network.</p>
<p>A little bit of clicking around, and I found that there is a protocol bound to all the network cards called VMware Bridge Protocol. By default, it seems to bind itself to all the NICs. I simply unbound it from my main NIC:</p>
<p><a href="http://www.davidrickard.net/wordpress/wp-content/uploads/2010/05/mainadapter1.png"><img class="aligncenter size-full wp-image-576" title="mainadapter" src="http://www.davidrickard.net/wordpress/wp-content/uploads/2010/05/mainadapter1.png" alt="" width="377" height="474" /></a><a href="http://www.davidrickard.net/wordpress/wp-content/uploads/2010/05/mainadapter.png"></a></p>
<p>And left it bound to the NIC connected to the ADSL network:</p>
<p><a href="http://www.davidrickard.net/wordpress/wp-content/uploads/2010/05/zenadsl.png"><img class="aligncenter size-full wp-image-575" title="zenadsl" src="http://www.davidrickard.net/wordpress/wp-content/uploads/2010/05/zenadsl.png" alt="" width="377" height="474" /></a></p>
<p>I restarted VMware Player, and my virtual machine nows bridges to the ADSL connection.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrickard.net/2010/05/26/bridgedy-doo-dah/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dear Opera, I&#8217;m not in Norway!</title>
		<link>http://www.davidrickard.net/2010/05/06/dear-opera-im-not-in-norway/</link>
		<comments>http://www.davidrickard.net/2010/05/06/dear-opera-im-not-in-norway/#comments</comments>
		<pubDate>Thu, 06 May 2010 20:43:42 +0000</pubDate>
		<dc:creator>David Rickard</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Rant]]></category>

		<guid isPermaLink="false">http://www.davidrickard.net/2010/05/06/dear-opera-im-not-in-norway/</guid>
		<description><![CDATA[I upgraded Opera (it told me to) a few weeks ago. I don’t use it often – I just keep it around for testing, and as ‘another’ browser. It’s also configured with a lot of things turned off, so it’s useful for browsing to sites I don’t like the look of. Post update, it decided [...]]]></description>
			<content:encoded><![CDATA[<p>I upgraded Opera (it told me to) a few weeks ago. I don’t use it often – I just keep it around for testing, and as ‘another’ browser. It’s also configured with a lot of things turned off, so it’s useful for browsing to sites I don’t like the look of.</p>
<p>Post update, it decided to redirect me to google.nl all the time. No idea why, as it had been working fine previously. Checking every option I could within Opera, I could find no reason why.</p>
<p>The answer, lies in a config file, which lives here: (I’m on Windows 7, so yours may vary slightly)</p>
<p>C:\Users\&lt;Your Username&gt;\AppData\Roaming\Opera\Opera\operaprefs.ini</p>
<p>Towards the end of the UserPrefs section, is this line:</p>
<blockquote><p>Google TLD Default=.google.nl</p>
</blockquote>
<p>That was the one! I changed it to .co.uk, restarted Opera, <em>et voila</em>, it now goes where it’s meant to. I can only assume it’s something the installer did. My system is set to UK everything (I checked) and I’ve never had anything else go whizzing off to google.nl. Even going to google.com redirected properly.</p>
<p>Very odd!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrickard.net/2010/05/06/dear-opera-im-not-in-norway/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8216;BT&#8217; fail</title>
		<link>http://www.davidrickard.net/2010/04/21/bt-fail/</link>
		<comments>http://www.davidrickard.net/2010/04/21/bt-fail/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 19:47:46 +0000</pubDate>
		<dc:creator>David Rickard</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[Unified Comms]]></category>

		<guid isPermaLink="false">http://www.davidrickard.net/2010/04/21/bt-fail/</guid>
		<description><![CDATA[I was sitting at my desk at work this morning, doing something probably very important when the phone rang. I answered it, and a nice lady began by telling me she was calling from British Telecom, and was updating customer information. She asked if it was OK to do this. I replied that we’d been [...]]]></description>
			<content:encoded><![CDATA[<p>I was sitting at my desk at work this morning, doing something probably very important when the phone rang. I answered it, and a nice lady began by telling me she was calling from British Telecom, and was updating customer information. She asked if it was OK to do this. I replied that we’d been trying for ages to get all our customer info updated (we have various company names, and errors in invoices and bills – trivial stuff, but it’s messy). She then started asking really basic questions, like company name, and address. I didn’t answer anything, and asked her to prove she was looking at our account. She reeled off some really basic facts you could find off the website (including the URL of the University website). I wasn’t convinced she may have been from BT, so asked her to confirm an account number or something, but she waffled on about asking about line useage, and products we wanted. I told her I wasn’t interested and hung up.</p>
<p>The thing about the call which intrigued me the most was that BT are notoriously bad at acting on changes of information. Indeed, somebody from BT told me that a lot of their billing hangs off company names and addresses, so changing it causes all sorts of headaches for the billing department – hence why they don’t! </p>
<p>I can’t help but feel my friend on the phone was cold calling from some random agency, basically looking to find info about us and what we do and needed, which they’d then cold call us about and try to sell to us. Maybe I was being over-cautious, and she was legit. I don’t know, and don’t care. Frankly BT, there’s much better ways of doing this!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrickard.net/2010/04/21/bt-fail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 7 x64 VT camera II drivers &#8211; They do exist (ish)</title>
		<link>http://www.davidrickard.net/2010/03/01/windows-7-x64-vt-camera-ii-drivers-they-do-exist-ish/</link>
		<comments>http://www.davidrickard.net/2010/03/01/windows-7-x64-vt-camera-ii-drivers-they-do-exist-ish/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 16:19:52 +0000</pubDate>
		<dc:creator>David Rickard</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Unified Comms]]></category>

		<guid isPermaLink="false">http://www.davidrickard.net/2010/03/01/windows-7-x64-vt-camera-ii-drivers-they-do-exist-ish/</guid>
		<description><![CDATA[If like me, you have a 64-bit Windows box, but a Cisco VT II camera, you&#8217;ll have found Cisco in their infinite wisdom have decided to not bother writing drivers. However, there is a way around it: Windows 7 x64 VT camera II drivers &#8211; Cisco Support Community OK, so it&#8217;s horribly hacky, but it [...]]]></description>
			<content:encoded><![CDATA[<p>If like me, you have a 64-bit Windows box, but a Cisco VT II camera, you&#8217;ll have found Cisco in their infinite wisdom have decided to not bother writing drivers. However, there is a way around it:<a href="https://supportforums.cisco.com/message/1319567;jsessionid=6895474C6CC9CE1A27D40A3E85C04049.node0"></a></p>
<p><a href="https://supportforums.cisco.com/message/1319567;jsessionid=6895474C6CC9CE1A27D40A3E85C04049.node0">Windows 7 x64 VT camera II drivers &#8211; Cisco Support Community</a></p>
<p>OK, so it&#8217;s horribly hacky, but it DOES work. My camera is working quite happily now!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrickard.net/2010/03/01/windows-7-x64-vt-camera-ii-drivers-they-do-exist-ish/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Totally faxed up</title>
		<link>http://www.davidrickard.net/2010/01/29/totally-faxed-up/</link>
		<comments>http://www.davidrickard.net/2010/01/29/totally-faxed-up/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 23:30:47 +0000</pubDate>
		<dc:creator>David Rickard</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Unified Comms]]></category>

		<guid isPermaLink="false">http://www.davidrickard.net/2010/01/29/totally-faxed-up/</guid>
		<description><![CDATA[The CallManager system I look after recently developed an odd issue. Faxes had been working quite happily for some time, but suddenly they were failing left, right and centre. Not only that, we had quite a few credit card machines running over VoIP which were failing to take payments. All ran via Cisco ATA 186 [...]]]></description>
			<content:encoded><![CDATA[<p>The CallManager system I look after recently developed an odd issue. Faxes had been working quite happily for some time, but suddenly they were failing left, right and centre. Not only that, we had quite a few credit card machines running over VoIP which were failing to take payments. All ran via Cisco ATA 186 analogue gateways.</p>
<p>I ran various tests and found that faxes between ATAs internally were perfectly fine. As soon as they went through the gateways, they failed miserably. I ran through some of Cisco’s help guides but was drawing complete blanks. I’d ran the <a href="http://www.cisco.com/en/US/products/hw/gatecont/ps514/products_configuration_example09186a0080094adf.shtml" target="_blank">prserv tool</a> to see what the ATAs were up to whilst making calls. I’d see ‘resync’ go whizzing by with a load of other seemingly random numbers. The word ‘resync’ suggested to me that the ATA was hiccuping on something, and doing something to the audio stream. </p>
<p>Analogue modems expect a constant stream of data. It might get fuzzy, or drop out, but it will always come along in a specific order, at a certain time. It’s predictable. Resyncing something mid-stream isn’t a good idea to a modem. In all cases when I saw the word ‘resync’ the fax would end up corrupted or dropped entirely, depending on when it happened during the call.</p>
<p>I did a little digging on the Cisco TAC case collection, and found what I was looking for. It was something I fiddled with some time ago.</p>
<p>ISDN circuits rely on a clock. Generally speaking, the clock is the telco end. We have four ISDN links on our gateways – two out to the PSTN, and two QSIG links to the old PBX. We had some odd issues with echo, and one thing we tried was forcing clock sync on the E1 controllers. </p>
<p>E1 and T1 controllers can exhibit something known as ‘slipped seconds’. This is basically where the clocks at both ends get slightly out of sync with eachother. In some instances it can cause echo, so we’d nailed up the QSIG links to use the clock at the legacy PBX end. However, it seems with the 2-port WICs, this causes BOTH ports to sync to that clock. </p>
<p>Up to this point it hadn’t been the issue. There was the odd dropped fax, but nothing overly bad. A week or so ago (the week I was off, natch), the faxes all pretty much failed simultaneously. Voice calls remained perfectly fine, which made it all the more perplexing. Luckily I found the info I needed in the TAC collection.</p>
<p>The issue will manifest itself as slipped seconds. On the router, I did the following:</p>
</p>
<pre>router#sh controller e1 0/0/0
E1 0/0/0 is up.
  Applique type is Channelized E1 - balanced
  No alarms detected.
  alarm-trigger is not set
  Version info Firmware: 20060707, FPGA: 13, spm_count = 0
  Framing is CRC4, Line Code is HDB3, Clock Source is Line.
  CRC Threshold is 320. Reported from firmware  is 320.
  Data in current interval (618 seconds elapsed):
     0 Line Code Violations, 0 Path Code Violations
     181 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins
     181 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs
  Data in Interval 1:
     0 Line Code Violations, 0 Path Code Violations
     262 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins
     262 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs</pre>
</p>
<p>There we see some ‘slip secs’. </p>
<p>The ‘fix’ is quite simple. I switched to the interface, and then issued the commands:</p>
<pre>network-clock-participate wic 0
network-clock-select 1 E1 0/0/0</pre>
<p>The first line selects the WIC you wish to use, then the second selects the clock source (interface) you wish to use. Once I’d done that, the faxes magically all worked again.</p>
<p><a href="http://www.cisco.com/cisco/web/support/index.html">http://www.cisco.com/cisco/web/support/index.html</a> – TAC case collection requires a CCO login.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrickard.net/2010/01/29/totally-faxed-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco Useful thing: Why isn&#8217;t this on by default?!</title>
		<link>http://www.davidrickard.net/2009/09/23/cisco-useful-thing-why-isnt-this-on-by-default/</link>
		<comments>http://www.davidrickard.net/2009/09/23/cisco-useful-thing-why-isnt-this-on-by-default/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 19:01:28 +0000</pubDate>
		<dc:creator>David Rickard</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Rave]]></category>

		<guid isPermaLink="false">http://www.davidrickard.net/2009/09/23/cisco-useful-thing-why-isnt-this-on-by-default/</guid>
		<description><![CDATA[If you’ve ever worked on a Cisco IOS device, you’ve probably encountered the joy that is the terminal monitoring of events. IOS will happily dump bits of information onto the screen (very useful) but it’s also horribly disruptive if you’re typing in a command. Everything disappears into this sea of debug output or other info. [...]]]></description>
			<content:encoded><![CDATA[<p>If you’ve ever worked on a Cisco IOS device, you’ve probably encountered the joy that is the terminal monitoring of events. IOS will happily dump bits of information onto the screen (very useful) but it’s also horribly disruptive if you’re typing in a command. Everything disappears into this sea of debug output or other info.</p>
<p>In my case, I often do ISDN Q.931 debugs to find out what’s going on on my voice gateways. I’ve gotten used to it now, but typing ‘undebug all’ whilst a ton of information whizzes by is less fun than it sounds.</p>
<p>Today, I found this useful command:</p>
<p>“logging synchronous”</p>
<p>If you enable that on your vtys or con (or aux) ports, it basically causes IOS to dump the debug still, but it’ll do it on all other lines EXCEPT the one you’re typing on, leaving it alone. I imagine it could cause some slowdowns as it has to draw your command in the same place, whilst interleaving other junk, so it could potentially cause problems on a direct console, but if you remotely telnet (I really should enable SSH one day), it’ll be a lot easier to see what’s going on.</p>
<p>Here’s the gist of what you need to do:</p>
<pre>  Router(config)#line con 0
  Router(config-line)#logging synchronous
  Router(config-line)#line vty 0 4
  Router(config-line)#logging synchronous</pre>
<p>Then wr mem as usual.</p>
<p>Easy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrickard.net/2009/09/23/cisco-useful-thing-why-isnt-this-on-by-default/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

