<?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>Talk Unafraid &#187; servers</title>
	<atom:link href="http://www.talkunafraid.co.uk/tag/servers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.talkunafraid.co.uk</link>
	<description>The (occasionally coherent) ramblings of a geek</description>
	<lastBuildDate>Sat, 07 Jan 2012 22:24:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>MythTV and Freesat</title>
		<link>http://www.talkunafraid.co.uk/2011/06/mythtv-and-freesat/</link>
		<comments>http://www.talkunafraid.co.uk/2011/06/mythtv-and-freesat/#comments</comments>
		<pubDate>Sat, 25 Jun 2011 17:01:54 +0000</pubDate>
		<dc:creator>James Harrison</dc:creator>
				<category><![CDATA[Awesome Stuff]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[dvb-s]]></category>
		<category><![CDATA[dvb-s2]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[mythtv]]></category>
		<category><![CDATA[satellite]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[stuffisawesome]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.talkunafraid.co.uk/?p=1333</guid>
		<description><![CDATA[Or- how to make TV worthwhile if you happen to have a leftover Sky dish on your house. So when I moved in to my current university digs, the previous tenants had left a few things behind. Notably, they&#8217;d had Sky. So we had a Sky box in the living room and a dish on [...]]]></description>
			<content:encoded><![CDATA[<p>Or- how to make TV worthwhile if you happen to have a leftover Sky dish on your house.</p>
<p>So when I moved in to my current university digs, the previous tenants had left a few things behind. Notably, they&#8217;d had Sky. So we had a Sky box in the living room and a dish on the wall. In the UK, if you want fast internet these days, you need Virgin Media. VM gives you cable TV in the bundle, so I didn&#8217;t want to pay for Sky. But Freesat&#8217;s got some nice stuff on it, including BBC HD and that sort of thing. So how about we get ourselves some free TV?<span id="more-1333"></span></p>
<p>Now, Sky uses the same satellite for the UK as a lot of Freesat stuff. So ignore the dish- all you need is to leave that bit alone, and make sure that you&#8217;ve got a cable from the dish LNB to somewhere you can put your PC. Where it&#8217;s pointed is probably 28.2 East, which has a bunch of appropriate satellites.</p>
<p>What you then need is a capture card. DVB-S is the standard for satellite, though DVB-S2 is used for some HD encoding (specifically, BBC HD is now on DVB-S2). DVB-T is for terrestrial stuff, and comes in on coax from a standard TV aerial &#8211; you can get combo cards, which will let you pull down extra stuff if you&#8217;ve got the coax feed. Stuff from your LNB typically comes on F-type cables/connectors, down 75 ohm cable. I have yet to find a decent UK supplier for patch or extension leads &#8211; if you know one, let me know.</p>
<p>The LinuxTV wiki maintains a huge list of hardware compatibility with Linux and capture cards, so check there before you go buy anything. I got a Compro S350 card, which works great for DVB-S &#8211; I&#8217;ve also ordered a Technisat S2 HD card, which should do DVB-S2, and I&#8217;m going to look out for a DVB-T card.</p>
<p>Now, we need to tie all this together next. So we need some software and a PC. The PC wants to be a decent spec &#8211; I&#8217;m using a Pentium 4 box with 768MB of RAM as my server, which is on the low end of things. A faster machine would be better, obviously, but it&#8217;s all I have to hand. I stuck a decent (GeForce 6600) graphics card in there, too. Fast CPU is the priority, really- we&#8217;re talking high definition decoding, encoding, transcoding and playback. If you&#8217;re on a budget, look into Intel quad-core chips (Q6600s, that sort of thing). Intel is the way to go wherever possible. If you&#8217;re doing this properly, high-end i7 would be my choice- that or a Xeon or similar. 6-12 core chips would be just the ticket. High-end (newer 8800 series and above) nVidia cards support VPDAU, which lets you offload video decoding and processing to the GPU.</p>
<p>The software to use is MythTV. I&#8217;m using a standard Ubuntu 10.04/11.04 (&#8216;Classic&#8217; mode on 11.04) install, and then installing MythTV atop that. On the server, just install the mythtv, mythtv-themes, xmltv and mythweb packages. On any other clients you can install the mythtv-frontend package, and optionally the mythtv-themes package. The client-server model of MythTV means you can combine backends and frontends to build your system. It&#8217;s crazy powerful in terms of flexibility. But the short story is, you can have a very nice TV system in very little configuration.</p>
<p>See this <a href="http://parker1.co.uk/mythtv_freesat.php">excellent guide</a> for more information on how to set up MythTV with Freesat. Basically you just need to tune it in to the right satellite and set up the input properly so it&#8217;ll get the channel list. MythTV&#8217;s config options take some getting used to, but it&#8217;s eminently doable. And once you&#8217;ve gotten everything talking, you have a -very- capable system.</p>
<p>So, well done to the MythTV team. One hell of a package, that&#8217;s for sure. And Linux DVRs are now in my mind far, far more capable than any other potential choice for DVRs. With MythWeb, I essentially have my own private little iPlayer- but for every single bit of Freesat&#8217;s programming. What&#8217;s not to like?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.talkunafraid.co.uk/2011/06/mythtv-and-freesat/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Monitoring radio, and the joys of realtime feedback</title>
		<link>http://www.talkunafraid.co.uk/2010/12/monitoring-radio-and-the-joys-of-realtime-feedback/</link>
		<comments>http://www.talkunafraid.co.uk/2010/12/monitoring-radio-and-the-joys-of-realtime-feedback/#comments</comments>
		<pubDate>Tue, 28 Dec 2010 00:56:40 +0000</pubDate>
		<dc:creator>James Harrison</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Odds and Ends]]></category>
		<category><![CDATA[Radio]]></category>
		<category><![CDATA[Servers and Software]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[gpio]]></category>
		<category><![CDATA[insanity]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[nsca]]></category>
		<category><![CDATA[radio]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://www.talkunafraid.co.uk/?p=1197</guid>
		<description><![CDATA[Monitoring and logging of broadcast systems is often overlooked in smaller setups like university radio stations. Which is a shame. If we&#8217;d had monitoring in place last year at Insanity, we&#8217;d have known exactly how much dead air went out. Now, we&#8217;ve got a much better setup. It&#8217;s cheap(ish), a little bit homebrew, but there&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Monitoring and logging of broadcast systems is often overlooked in smaller setups like university radio stations. Which is a shame. If we&#8217;d had monitoring in place last year at Insanity, we&#8217;d have known exactly how much dead air went out. Now, we&#8217;ve got a much better setup. It&#8217;s cheap(ish), a little bit homebrew, but there&#8217;s nothing fundamentally wrong about that. It works, and I know we&#8217;ve had 53m 34s of dead air in the last year &#8211; and it&#8217;s all accounted for. We also know when we were running on backup audio &#8211; showing that we&#8217;d have been on dead air for a goodly 1 day, 17 hours, if it weren&#8217;t for our silence detector and backup playout unit.</p>
<p>So, what&#8217;s the best way to approach all this? With a new set of equipment to monitor, and a lot of old equipment still unmonitored (our desk&#8217;s GPIO and the AM transmission gear, for instance), hardware GPIO lines are order of the day. Mostly, this can be done with relays, pull-up resistors, optoisolators and a steady hand with a soldering iron (bolted onto an Arduino &#8211; see my last post). This is all well and good &#8211; but now you need to get that into a sensible format, record it, log it, and take action depending on the state (emails, indicators in the studio, etc). Which is where Nagios comes in.</p>
<p>Nagios is scarily flexible. It&#8217;s also extremely lightweight for small setups, and very easy to configure, with excellent documentation. And since it&#8217;s widely used in larger IT outfits, there&#8217;s an infinitude of addons, plugins, and so on to expand it. It&#8217;s at heart a monitoring program, with support for active checks (where Nagios polls the host or service), and passive checks (where the host/service reports in to Nagios itself). Once you&#8217;ve gotten things inside Nagios you can use a flexible set of rules for notifications, and use some of the many addons (we use check_mk&#8217;s livestatus) to get data out into other programs. We use CoffeeSaint on dashboards to provide single heads-up displays (with camera displays combined), and we&#8217;ll soon have Nagios integrated into the Insanity website&#8217;s admin backend so that staff can see a general overview of the system alongside all the other vital information like listening figures and cameras from wherever they are in the world.</p>
<p>At the moment because we&#8217;re poor, we don&#8217;t have ethernet shields for our Arduinos, so we have an Arduino Mega and an Arduino doing two things- driving a matrix LED display, and monitoring our silence detector. The latter is done by the Mega, which will later be expanded with ethernet and various boards to break out the DB25/DB15/DB9 connectors from the mixing desk into Arduino-compatible levels. For now though it&#8217;s just hooked up on USB. The Mega also drives a set of Bliptronics LED RGB modules- these are currently spread along the top of the mixing desk in the studio where presenters can see it.</p>
<p>The Mega is set up to simply watch the two inputs of the silence detector and their alarm states, and to display one of four messages describing that state to serial over USB, where it&#8217;s picked up by a small Ruby script, which then sends a NSCA (Nagios Status Check Acceptor) packet to the NSCA daemon on the monitoring box. This packet contains the information about the silence detector in a format that maps to the host and services described in Nagios. This means we get very rapid updates on the silence detector compared to active monitoring. Even more rapid is the LED strip, which is controlled wholly in C. If the station&#8217;s output gets switched to the backup source because the silence detector thinks the studio is too quiet, then the strip goes red (normally green) &#8211; and if a presenter is in there, he/she now knows that there&#8217;s a problem, they&#8217;re no longer going out on air, and they can either work out the problem by themselves (previously the staff wouldn&#8217;t know that this had even happened without going out and listening to the radio) or call for support.</p>
<p>It&#8217;s one thing to have standards, and another thing entirely to monitor your performance and hold yourself to them; and when there&#8217;s a problem with your metrics, then you can fix it. We&#8217;ve dramatically improved the actual quality of broadcast radio that Insanity puts out in the last year; partly it&#8217;s a human change, we&#8217;ve had some great presenters join us this year and a very determined board, but there&#8217;s an element of technical change and a lot of instant feedback for presenters to help them; and this has really helped people spot problems where previously they wouldn&#8217;t even have known they were there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.talkunafraid.co.uk/2010/12/monitoring-radio-and-the-joys-of-realtime-feedback/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduinos and Telemetry for Radio</title>
		<link>http://www.talkunafraid.co.uk/2010/11/arduinos-and-telemetry-for-radio/</link>
		<comments>http://www.talkunafraid.co.uk/2010/11/arduinos-and-telemetry-for-radio/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 02:47:22 +0000</pubDate>
		<dc:creator>James Harrison</dc:creator>
				<category><![CDATA[Awesome Stuff]]></category>
		<category><![CDATA[Radio]]></category>
		<category><![CDATA[am]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[fm]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[insanity]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[radio]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[snmp]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[stl]]></category>

		<guid isPermaLink="false">http://www.talkunafraid.co.uk/?p=1164</guid>
		<description><![CDATA[So, those of you who come here expecting EVE Online content &#8211; well, this blog started out as a personal blog and that&#8217;s all it ever has been. I&#8217;ve moved on, so here&#8217;s stuff on what I&#8217;ve moved on _to_. Recently I&#8217;ve been building equipment for Insanity Radio, the student radio station where I currently [...]]]></description>
			<content:encoded><![CDATA[<p>So, those of you who come here expecting EVE Online content &#8211; well, this blog started out as a personal blog and that&#8217;s all it ever has been. I&#8217;ve moved on, so here&#8217;s stuff on what I&#8217;ve moved on _to_.</p>
<p>Recently I&#8217;ve been building equipment for Insanity Radio, the student radio station where I currently serve as Head of Technology. We&#8217;re a student radio station and this poses lots of problems to successful technology implementation:</p>
<ul>
<li>Cost &#8211; our budget is very small, and mostly goes on licensing fees to PRS/PPL/MCPS.</li>
<li>Reliability &#8211; the station as a whole has to be able to operate unattended for months at a time over the summer holidays</li>
<li>Ease of operation &#8211; the station is typically only crewed in the live segments of our programming by the presenters doing their show. We have no full-time or on-shift producers or crew</li>
<li>Ease of expandability, upgrades and maintenance &#8211; the technical staff of the station changes on a year-by-year basis</li>
</ul>
<p>Bearing all these in mind we have to be careful when implementing new tech or building new systems that we don&#8217;t make anything that the technical staff after us won&#8217;t be able to handle, and which (where relevant) can be operated by an unskilled user.</p>
<p>We&#8217;ve recently been granted a FM license by Ofcom, and are currently waiting on lots of paperwork and things to be done so we can get the ball rolling on that particular project &#8211; namely, setting up a complete FM STL and new transmission system. Of course, the transmission system is something we&#8217;re getting outside broadcast engineers with a lot more experience than us to do (namely Radica, who did our AM mast many years ago). But facets of the system- namely, the STL (Studio-Transmitter Link) and telemetry (allowing us to, via remote operation pins and monitoring outputs on equipment, remotely monitor the status of equipment and control equipment where needed) can be done without needing to splash out on consultants. In fact, most of the solutions you can buy off-the-shelf for transmission site telemetry are quite restrictive, using proprietary protocols that only work with the supplier&#8217;s software. In my mind this completely doesn&#8217;t fit the bill for a telemetry system. What you basically need is an open, non-proprietary protocol that you can use to query devices.</p>
<p>Is this sounding familiar? It should be &#8211; datacenters got this problem solved years ago. And the networking industry came up with SNMP. It&#8217;s extensively used on switches but also on UPSes, environmental monitoring gear, and more.</p>
<p>SNMP is the Simple Network Management Protocol and it supports a very flexible schema for remotely monitoring equipment. And somebody&#8217;s rather handily built a library to run on an Arduino microprocessor platform with an Ethernet shield for the TCP/IP component.</p>
<p>Now, going back to the issue of cost &#8211; £30 for the Arduino Mega and £40 for the Ethernet shield brings us to £70 per node. But now to interface with all that gear we need pull-up resistors (trivial), relays (not so much &#8211; £4 each for DIL mounting reed relays) and optoisolators. All of which brings our total cost closer to the £100 mark once we&#8217;ve bought all this and soldered it up on to a breadboard and interfaced it all. In theory. I&#8217;m currently working on an Arduino Shield to provide the relay and optoisolator etc outputs on screw terminals, and I&#8217;m looking to get the PCBs made by BatchPCB.</p>
<p>I have yet to actually build one of these nodes but plan to do so soon as a proof of concept. We have roughly 125 pins of I/O from our mixing console to interface (mostly on 25 and 15 pin d-subminiature connectors), 15 pins of I/O on our silence detector, 15 pins of I/O on the AM transmitter, and soon we will have an entire remote transmission site to monitor. The first one of these devices will be a proof of concept, and hopefully will pave the way to future development of this sort of technology.</p>
<p>Of course, the huge benefit of SNMP is that it can be tied into anything. Let&#8217;s go back to the reliability and ease of operation points in the list above &#8211; we&#8217;re now using Nagios for monitoring all of the station&#8217;s IT resources (Not a small challenge in and of itself), and we&#8217;ll be expanding that to cover the STL and network itself. Now imagine we can bring hardware and environment into Nagios &#8211; now we have complete monitoring, end-to-end, from the studio playout computer being happy and running the radio playout program, all the way to the transmission site, all in one open and extensible monitoring system. No proprietary systems, no vendor lock-in, nothing &#8211; just a flexible and reliable system that many people are already familiar with.</p>
<p>There&#8217;s another huge benefit of keeping things flexible, of course. We&#8217;ve recently installed a set of RGB LED lights in the studio, as well as a LED matrix display. These are driven by a pair of Arduinos hooked up to serial over USB on our monitoring PC. We can have the monitoring software feed presenters information, or set the lights to indicate problems. This has already yielded fruit &#8211; we have the silence detector alarms hooked up so the lights go red when presenters are being so quiet (ie getting their levels wrong) that the studio fails over to a backup playout system. This quick visual feedback has provided presenters with real instant feedback on their show and lets them correct a problem, rather than the issue going unnoticed. In the world of student radio that means you&#8217;ve now saved several phone calls and potentially large swathes of missing content, not to mention made presenters happier because they now get positive feedback when everything&#8217;s going well! Lots of small steps like this can lead to big changes in the professionalism and quality of shows and allows presenters to be more daring and experimental in their shows, meaning better and more interesting shows and content. And if that&#8217;s not a huge success for a few simple additions, I don&#8217;t know what is.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.talkunafraid.co.uk/2010/11/arduinos-and-telemetry-for-radio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

