<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>wesg</title>
	
	<link>http://www.wesg.ca</link>
	<description>macs and more</description>
	<lastBuildDate>Thu, 29 Jul 2010 17:49:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/wesg" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="wesg" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Drive failures are inevitable</title>
		<link>http://www.wesg.ca/2010/07/drive-failures-are-inevitable/</link>
		<comments>http://www.wesg.ca/2010/07/drive-failures-are-inevitable/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 17:49:19 +0000</pubDate>
		<dc:creator>wesg</dc:creator>
				<category><![CDATA[Thoughts]]></category>

		<guid isPermaLink="false">http://www.wesg.ca/?p=991</guid>
		<description><![CDATA[I generally modify my computers with new hard drives and additional RAM after purchasing them. I added RAM to my iBook and replaced the HDD in both my MacBook and MacBook Pro. I bought a 250GB Seagate drive for my MacBook back in 2008 sometime and used it inside my MacBook Pro when I bought [...]]]></description>
			<content:encoded><![CDATA[<p>I generally modify my computers with new hard drives and additional RAM after purchasing them. I added RAM to my iBook and replaced the HDD in both my MacBook and <a href="http://www.wesg.ca/2010/02/the-13-unibody-macbook-pro/">MacBook Pro</a>. I bought a 250GB Seagate drive for my <a href="http://www.wesg.ca/2008/10/macbooks-for-everyone/">MacBook</a> back in 2008 sometime and used it inside my MacBook Pro when I bought it in December 2009. I had no problems with it during that time. I installed Boot Camp, did 200GB+ backups and it didn&#8217;t hesitate.</p>
<p>A few weeks ago I closed the lid on my MBP to do some other work, but when I came back to it, I got the password authentication screen and the machine stalled. I left it be for a few minutes, but clearly something was wrong after 20 minutes. Forcing a shutdown, the machine booted to the grey loading screen and no further. That told me something was <em>definitely</em> wrong, so I went to the MacRumors forums and posted a message about the <a href="http://forums.macrumors.com/showthread.php?t=960775&#038;highlight=">Blank Screen of Death</a> that has <a href="http://www.wesg.ca/Heu">afflicted many other MBP owners</a>. During this time I also removed the HDD from the MBP and installed it into an enclosure for use with another MacBook. When it didn&#8217;t mount, I started to get more nervous, and the obvious beeping of the drive did not help. So I admitted defeat and prepared to purchase another drive the next day, which I did. </p>
<p>After taking the drive into a data recovery service just for an evaluation, it turns out the drive had seized, and a repair was likely to return all my data, but at the minimum charge of $500. Since I had already rebuilt the website data I had lost and most of my applications were on my 2 week old backup, I&#8217;m going to take a pass on the repair.</p>
<p>This entire event has taught me a number of things that I&#8217;ll outline here.</p>
<ol>
<li><strong>Hard drive failures are inevitable</strong><br />
It really isn&#8217;t a case of if, but when. Especially in a laptop, where the fragile spinning components are tossed and turned and operated at weird angles. Be prepared.</li>
<li><strong>Backup regularly</strong><br />
Buy an external drive, and either use <a href="http://www.wesg.ca/2008/02/when-time-machine-runs-out-of-space/">Time Machine</a> or other cloning software to create regular backups. I lost all of 1 website, most of another and a few photos from a trip. The websites I&#8217;ve since rebuilt, but if the other data had been mission critical, I could have been in big trouble.</li>
<li><strong>Check your backups</strong><br />
I use Carbon Copy Cloner to build images of the drive and store those on my <a href="http://www.wesg.ca/2009/06/build-a-ubuntu-fileserver-the-hardware/">Ubuntu file server</a>. In the process of retrieving some after replacing the drive, the image would not eject, then would not mount due to a corrupt file system. It worked out after rebooting, but was a cause for concern. Be sure to check your backups often to make sure they are updated as expected.</li>
<li><strong>Double check drive reliability</strong><br />
I probably have more than 8 hard drives in my possession right now, and most are Western Digital. Of the drives I&#8217;ve had fail, all are of the 2.5&#8243; variety and only 1 is WD. I believe I will be purchasing WD drives for the near future (my replacement drive is a 320GB Caviar Black). Before buying a new hard drive, especially for laptops, <a href="http://www.wesg.ca/5xw">research reliability data</a> for various manufacturers to see if there is more satisfaction with particular vendors.</li>
<li><strong>Data recovery is expensive</strong><br />
My $500 is the starting price of recovery, which I received because the firm believed I was a student. Many recoveries reach far higher, due exclusively to the manner in which data is recovered. If the repair is straightforward, the cost is far lower than if it requires extensive reconstruction. If your hard drive ever dies and you need recovery, prepare the platinum card because regardless of data volume, you&#8217;ll be paying a lot.</li>
<li><strong>Consider drive upgrades regularly</strong><br />
You have no way of knowing which drive will stop after 3 years or 8, but after this latest drive death, I will be upgrading storage every 2 years or so. Once SSDs are more cost effective, I&#8217;ll move to those (which brings their own problems) but I think the key to reliable storage is fresh media.</li>
</ol>
<p>Data loss is no fun for anyone, but with the right safety measures in place, you can come back from the loss with minimal downtime and lost material.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wesg.ca/2010/07/drive-failures-are-inevitable/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MythTV is too complicated</title>
		<link>http://www.wesg.ca/2010/07/mythtv-is-too-complicated/</link>
		<comments>http://www.wesg.ca/2010/07/mythtv-is-too-complicated/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 15:58:18 +0000</pubDate>
		<dc:creator>wesg</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[MacBook Pro]]></category>
		<category><![CDATA[MythTV]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[tv tuner]]></category>

		<guid isPermaLink="false">http://www.wesg.ca/?p=1006</guid>
		<description><![CDATA[My Ubuntu file server is almost complete. With multiple terabyte hard drives in place, software for sharing files among computers on the network, it provides all the services a modern home network requires. However, one of the things it is missing is PVR functionality, which MythTV provides. MythTV is one of the premier software packages [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.wesg.ca/wp-content/upload//garbled-video.png" alt="" title="garbled video" width="490" height="298" class="alignnone size-full wp-image-1007" /><br />
My Ubuntu file server is almost complete. With multiple terabyte hard drives in place, s<a href="http://www.wesg.ca/2009/08/building-a-ubuntu-fileserver-the-software/">oftware for sharing files among computers on the network</a>, it provides all the services a modern home network requires. However, one of the things it is missing is PVR functionality, which <a href="http://www.mythtv.org/">MythTV</a> provides. </p>
<p>MythTV is one of the premier software packages to come out of the open-source movement. It has been developed by hundreds of individuals who work in their free time to generate software that useful to an even greater number of people. Built for the Linux platform, it is very robust and feature filled. This power comes at a price, however, and MythTV is famous for being stubborn to install and maintain. Originally I wanted to write a blog post about how I installed a TV tuner card and conquered MythTV to create an amazing home server package, but instead I need help. </p>
<p>After adding a <a href="http://www.mythtv.org/wiki/Hauppauge_HVR-1600">Hauppauge HVR-1600</a> to a PCI port in my mid-tower, I installed the drivers and firmware and set about installing MythTV. This has proven impossible because I cannot run the setup program. As shown by the image at the top, whenever I run mythtv-setup through an Xserver session on my MacBook Pro, no video is output and the interface becomes unbearably slow. I&#8217;ve consulted with many different forums and no one has been able to offer advice, so now I want to get help from the internet at large. Has anyone see this while installing MythTV and knows how to solve it? </p>
<p>Here&#8217;s <a href="http://www.wesg.ca/2009/06/build-a-ubuntu-fileserver-the-hardware/">my hardware setup</a> to clarify things. </p>
<ul>
<li><strong>OS</strong> Ubuntu 9.04 CLI</li>
<li><strong>TV Tuner</strong> Hauppauge HVR-1600</li>
<li><strong>Network</strong> Gigabit</strong></li>
<li><strong>Remote terminal OS</strong> Mac OS X 10.6.4</li>
<li><strong>Remote terminal hardware</strong> MacBook Pro 13&#8243; Dec 2009 GeForce 9400m</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.wesg.ca/2010/07/mythtv-is-too-complicated/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Thoughts on finishing Engineering</title>
		<link>http://www.wesg.ca/2010/06/thoughts-on-finishing-engineering/</link>
		<comments>http://www.wesg.ca/2010/06/thoughts-on-finishing-engineering/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 17:32:37 +0000</pubDate>
		<dc:creator>wesg</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[careers]]></category>
		<category><![CDATA[engineering]]></category>
		<category><![CDATA[freelance]]></category>
		<category><![CDATA[jobs]]></category>
		<category><![CDATA[openticket]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[university]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.wesg.ca/?p=971</guid>
		<description><![CDATA[In March 2010 I took part in a ceremony that all engineers go through once they complete their undergraduate degree in Canada. Called the &#8220;Ritual of the Calling of an Engineer&#8220;, it serves as a basis for remembering what engineering stands for and how an engineer&#8217;s work affects the public. It was written by Rudyard [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.wesg.ca/wp-content/upload//finger.jpg" alt="" title="finger" width="490" height="300" class="alignnone size-full wp-image-977" /><br />
In March 2010 I took part in a ceremony that all engineers go through once they complete their undergraduate degree in Canada. Called the &#8220;<a href="http://en.wikipedia.org/wiki/The_Ritual_of_the_Calling_of_an_Engineer">Ritual of the Calling of an Engineer</a>&#8220;, it serves as a basis for remembering what engineering stands for and how an engineer&#8217;s work affects the public. It was written by Rudyard Kipling in the early 20th century to remind engineers of the obligation they have to work that is safe, efficient and ethical. During the ceremony, each graduating member is given a ring made of stainless steel or iron that is worn on the pinky finger of the dominant hand. This is to serve as a constant reminder of this obligation. </p>
<p>It was an interesting ceremony, to say the least, and is one that I will remember for a long time. It was a very nice way to both prepare for a future career and to commemorate the last 4 years of studying. Officially, in June I will receive my degree in Mechanical Engineering, and after registering with <a href="http://www.peo.on.ca/">Professional Engineers of Ontario</a>, I will be an EIT, or engineer in training. This means that I can begin to work under a fully licensed Professional Engineer and collect experience that is required to receive P.Eng certification. </p>
<p><a href="http://www.openticket.ca"><img src="http://www.wesg.ca/wp-content/upload//open-icon.jpg" alt="" title="open-icon" width="394" height="164" class="alignnone size-full wp-image-982" /></a></p>
<p>Since jobs don&#8217;t come overnight, and I&#8217;d like to enjoy the summer a little bit, right now I&#8217;m not focusing that intently on my full-time job search. Instead, I&#8217;m using some of the skills I picked up during high school and university related to website development. Right now I&#8217;ve joined a site called <a href="http://www.odesk.com">oDesk.com</a> that connects people looking for results with providers of services. So far I&#8217;ve been able to help a few people around the world by building some WordPress plugins to improve their site&#8217;s functionality. These include one to display popular tags in the last few posts and another that gives users the ability to vote on photos displayed on posts. Additionally, I&#8217;m also working on a number of other websites for friends and family. I currently have about 4 projects of various sizes and complexities ongoing, and most use WordPress as a backend so I&#8217;m getting pretty comfortable creating themes, plugins, administration panel pages and interacting with the WP database. Check out <a href="http://www.openticket.ca">www.openticket.ca</a> for the latest project to start up. </p>
<p>More related to engineering, I&#8217;m also spending time contributing to our university&#8217;s Formula SAE team. As a member of the drivetrain team, I did some work looking at the best differential, sprocket, half shaft and spindle combination to get the most power out of our Yamaha R6 engine. I even got to do some design work, using SolidWorks to create a 3D model of a specific part, test it with the simulation software and then have it sent out to be machined on a CNC mill. It&#8217;s very cool to see something built inside a computer become a real part.</p>
<p><img src="http://www.wesg.ca/wp-content/upload//fsaecar.jpg" alt="" title="fsaecar" width="490" height="200" class="alignnone size-full wp-image-978" /></p>
<p>In May, the team took the car to Michigan International Speedway where we participated in Formula SAE Michigan 2010, a competition between universities all over the world to see who can design, build and market the more cost effective and highest performing race car. Unfortunately the team ran into some scheduling issues during the school year, when students &#8212; rightly so &#8212; focused on school work rather than building. Since this is the first of 3 competitions during the summer (I&#8217;m hoping to get to California and England later), we took what was built on the car and learned as much as possible. It was very interesting to see what the other teams had done with their time and budgets.</p>
<p>With all that in mind, it&#8217;s easy to see why my last post here was a few months ago. I hope to write more in the coming weeks, as I will hopefully have some time to work on projects that can be shared. Engineering is a challenging field of study, but it is very rewarding in both education and contribution to society. Finishing my program and learning more outside of school has helped me realize that I&#8217;m in the right field and that the sky isn&#8217;t even the limit.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wesg.ca/2010/06/thoughts-on-finishing-engineering/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to: Backup a website with FTPcopy</title>
		<link>http://www.wesg.ca/2010/02/how-to-backup-a-website-with-ftpcopy/</link>
		<comments>http://www.wesg.ca/2010/02/how-to-backup-a-website-with-ftpcopy/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 18:19:46 +0000</pubDate>
		<dc:creator>wesg</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.wesg.ca/?p=897</guid>
		<description><![CDATA[When running a website, it is very important to have a backup of all site files, to prepare for any event that may require reloading data (file corruption, moving hosts, etc.). After building my Ubuntu file server, I knew that I had to find a way to mirror this website so files could be recovered [...]]]></description>
			<content:encoded><![CDATA[<p>When running a website, it is very important to have a backup of all site files, to prepare for any event that may require reloading data (file corruption, moving hosts, etc.). After <a href="http://www.wesg.ca/2009/05/build-a-ubuntu-fileserver-the-planning/">building my Ubuntu file server</a>, I knew that I had to find a way to mirror this website so files could be recovered if necessary.</p>
<p>I looked at <a href="http://samba.anu.edu.au/rsync/">rsync</a> and <a href="http://curlftpfs.sourceforge.net/">curlftpfs</a>, but that combination was complex to set up. Soon after, I stumbled on <a href="http://www.ohse.de/uwe/ftpcopy.html">FTPcopy</a> and have found a good solution. </p>
<p>Here is a bash script to automate the process and create a daily mirror of whatever FTP server you want to back up.</p>
<ol>
<li>Download and install FTPCopy from the repositories.
<div class="code"><code>sudo apt-get install ftpcopy</code></div>
</li>
<li>Change to a directory that will store the script and open a new text file.
<div class="code"><code>cd /path/to/directory<br />
vi ftpbackup</code></div>
</li>
<li>Press <code>i</code>, then copy and paste the following text.
<div class="code"><code>#!/bin/bash</p>
<p>USER=username<br />
HOST="website"<br />
PASS=password<br />
REMOTE="public_html/"<br />
DIR=$(echo "/path/to/backup/$HOST")<br />
cd $DIR</p>
<p># Issue FTPcopy command<br />
ftpcopy --no-delete -l 1 -u $USER -p $PASS $HOST $REMOTE .</code></div>
</li>
<li>Be sure to change the values for <em>website, storage directory, remote directory, host, username</em> and <em>password</em>.</li>
<li>Save and exit the text file by typing <code>:wq</code></li>
<li>Make the script executable by typing <code>chmod a+x /path/to/script</code></li>
<li>Add the script to the crontab so it will be executed on a regular basis. I use Webmin for this type of administration work, but it is possible to use the command line. Use <a href="http://www.linuxhelp.net/guides/cron/">this example</a> to sort out the format. Mine runs daily at 12 AM.</li>
</ol>
<p>To clarify, this code changes directories into the backup folder, then issues the ftpcopy command. The remote directory of public_html is common on many webservers, but be sure to confirm before running the script. The <em>no-delete</em> option means that files are not removed from the backup if they&#8217;ve been removed from the web server. The l option simply means provide feedback of what files are being moved &#8212; this can be viewed in your user mail.</p>
<p>After the time has passed for the first time, check the folder where your backups will reside to make sure they are being added as planned. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.wesg.ca/2010/02/how-to-backup-a-website-with-ftpcopy/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The 13″ Unibody MacBook Pro</title>
		<link>http://www.wesg.ca/2010/02/the-13-unibody-macbook-pro/</link>
		<comments>http://www.wesg.ca/2010/02/the-13-unibody-macbook-pro/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 17:01:26 +0000</pubDate>
		<dc:creator>wesg</dc:creator>
				<category><![CDATA[Gear]]></category>
		<category><![CDATA[awesome]]></category>
		<category><![CDATA[MacBook]]></category>
		<category><![CDATA[MacBook Pro]]></category>
		<category><![CDATA[reviews]]></category>

		<guid isPermaLink="false">http://www.wesg.ca/?p=913</guid>
		<description><![CDATA[With school demanding more from 3D graphics and design, and the lack of power in the GMA950 for Keynote work, it was time for a computer upgrade. Couple that with Applecare that ran out earlier this week, and you get a nice new 13&#8243; Unibody MacBook Pro. Since it&#8217;s been 2 months now since I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.wesg.ca/wp-content/upload/full_MBP.jpg" class="center" /><br />
With school demanding more from 3D graphics and design, and the lack of power in the GMA950 for Keynote work, it was time for a computer upgrade. Couple that with Applecare that ran out earlier this week, and you get a nice new 13&#8243; Unibody MacBook Pro. </p>
<p>Since it&#8217;s been 2 months now since I&#8217;ve been using it, I thought it was time for some opinions. I&#8217;ve already installed Windows 7, run Keynote presentations, taken it on a road trip, and done nearly all of my daily computer activities. In every way, this machine is superior to my previous MacBook. </p>
<h3>The Outside</h3>
<p>The solid aluminum exterior of this MacBook Pro is a massive improvement over the polycarbonate shell of the MacBook&#8211;and previously, the iBook&#8211;as it has very little flex and will be the end of the dreaded palm rest cracking that affected nearly every previous generation of MacBook. That aluminum shell means this computer is lighter and thinner as well. While likely not a very big difference (I&#8217;ve yet to break out the tape measure), you can feel it when it is in a case or backpack. </p>
<p><img src="http://www.wesg.ca/wp-content/upload/ports_MBP.jpg" class="center" /><br />
The assortment of ports on the left side has changed somewhat as well. Gone is the dedicated audio-in jack and FireWire 400 and in its place is a backwards-compatible FireWire 800 port. The single audio jack now deals with digital and analog input and output on its own. In addition to the standard Gigabit ethernet and 2 USB 2.0 ports is the new Mini DisplayPort and SD card slot. The DisplayPort requires another new dongle from the Apple Store. The SD card slot has already proven itself worthy, by copying camera photos during a brief road trip. It is an item I think probably won&#8217;t be useful all the time, but those occasional times it is required, it will be great to have. The Kensington lock slot has also been moved to the right side. This is a good thing for me, as I always put my computer ports down in my bag, and now the lock is readily accessible. Using the lock for the first time, it was very tight, but after applying some pressure, it now slips in and out fairly easily. The aluminum is slightly bent inside, but nothing major. As usual, your mileage may vary. </p>
<p><img src="http://www.wesg.ca/wp-content/upload/backlit-key_MBP.jpg" class="center" /><br />
The backlit keyboard is definitely my favourite upgrade. I had no idea that seeing what I was typing in the dark would be so handy. A side benefit of this technology is that the ambient light sensor also subtly adjusts the screen brightness to an optimum level. </p>
<p>Other changes from the Core 2 Duo MacBook are the built-in battery and &#8220;buttonless&#8221; touchpad. Technically the touchpad <em>is</em> a button, but just looking at it shows nothing. So far I&#8217;ve found it to be slightly more sensitive when using a thumb to activate. Battery life is also an improvement, though I may not get a chance to test it fully until I return to school in a few days.  </p>
<p>The display on this machine is also noticeably brighter, with more vivid colours. After putting the two machines side by side, there is a definite difference, as shown above. I had heard all the horror stories about the screens being a black mirror, but so far that has not been an issue for me. Sure, there is some reflection, but the beauty of a laptop is that it can easily be adjusted to mitigate the glare. </p>
<p>Apple has been touting their non-user-replaceable batteries in their more recent notebooks, and this MacBook Pro delivers. </p>
<h3>The Inside</h3>
<p>The inside components of a computer are certainly more important than the outside, and the upgrades to this generation of MacBook Pro make it a screamer. Even though the clock speed is only increased from 2.0 GHz to 2.26, the newer processor is far more efficient, and the faster RAM, along with a boost to 4 GB means there is virtually no wait for applications to load or for the machine to shut down. The graphics subsystem is the biggest gainer in the lot, with a move from the GMA950 chip to nVidia&#8217;s 9400M system. This means smoother transitions in Keynote, more frames in both games and iTunes visualizer and more speed in the future when more applications use Apple&#8217;s OpenCL computing language. I&#8217;m looking forward to that. </p>
<p>To put a numbers to the improvements, I took measurements of some common computing tasks of both machines. </p>
<table class="border">
<tr>
<td>&nbsp;</td>
<th width="35%">2.0 GHz MacBook</th>
<th width="35%">2.26 GHz Unibody MacBook Pro</th>
</tr>
<tr>
<td>Xbench 1.3</td>
<td>96.32</td>
<td>102.18</td>
</tr>
<tr>
<td>&#8211; CPU</td>
<td>130.45</td>
<td>158.53</td>
</tr>
<tr>
<td>&#8211; Memory</td>
<td>126.07</td>
<td>178.66</td>
</tr>
<tr>
<td>&#8211; Quartz Graphics</td>
<td>149.15</td>
<td>177.57</td>
</tr>
<tr>
<td>&#8211; OpenGL Graphics</td>
<td>264.8</td>
<td>80.92</td>
</tr>
<tr>
<td>&#8211; Disk</td>
<td>28.60</td>
<td>32.13</td>
</tr>
<tr>
<td>Windows 7 Index</td>
<td>3.2</td>
<td>4.0</td>
</tr>
<tr>
<td>iTunes Visualizer (fps)</td>
<td>60</td>
<td>60</td>
</tr>
<tr>
<td>CPU with 720p Trailer</td>
<td>35%</td>
<td>20%</td>
</tr>
</table>
<p>Overall the machine certainly feels speedy, with minimal pauses between application changes. Disk performance is basically the same, seeing as the drive was just transferred between systems. </p>
<p>A big change I have noticed is that this computer is far quieter than my previous MacBook. That one had fans that would peak at 6200 RPM when doing anything remotely computation intensive. Even watching Flash video would cause the fans to spike. On this computer, they seem to peak at 2200 RPM, as that was the maximum speed I observed while encoding some MP3 files recently. Obviously it&#8217;s a change that won&#8217;t be listed on the spec sheet, but it is a welcome change for anyone using their computer for semi-heavy lifting.</p>
<p>I&#8217;ve been very happy with this new machine and the benefits it brings. Though I said it about the last MacBook I owned, this MacBook Pro will likely stick around for a long time, thanks to its powerful processor, aluminum shell and fast graphics chip.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wesg.ca/2010/02/the-13-unibody-macbook-pro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>This is an Arduino</title>
		<link>http://www.wesg.ca/2010/01/this-is-an-arduino/</link>
		<comments>http://www.wesg.ca/2010/01/this-is-an-arduino/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 15:56:42 +0000</pubDate>
		<dc:creator>wesg</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[diy]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[engineering]]></category>
		<category><![CDATA[learning]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://www.wesg.ca/?p=930</guid>
		<description><![CDATA[After choosing a mechatronics option in my final year of mechanical engineering, I&#8217;ve gotten more interested in electronics and computer integration. Sure, I&#8217;ve done programming in the past (and present) but there is something very satisfying about writing code on a screen and having it perform an action in the real world. With that in [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.wesg.ca/wp-content/upload/arduino_board.jpg" class="center" /><br />
After choosing a mechatronics option in my final year of mechanical engineering, I&#8217;ve gotten more interested in electronics and computer integration. Sure, I&#8217;ve done programming in the past (and present) but there is something very satisfying about writing code on a screen and having it perform an action in the real world. With that in mind, I ordered myself an <a href="http://arduino.cc">Arduino microcontroller</a> from <a href="http://www.adafruit.com/index.php?main_page=product_info&#038;cPath=17&#038;products_id=170">Adafruit</a> and have spent the last few weeks learning the ins and outs of some of the included components. So far I&#8217;ve hooked up some LEDs, a DC motor and a servo motor to the breadboard and watched them blink and spin. The kit contains bonus material, but you can also get just the board to save some money. It includes components like red and green LEDs, resistors, transistors, jumpers, and the previously mentioned DC and servo motors. Programming the board requires very straight forward C language knowledge. There are dozens, perhaps even hundreds of tutorials online to program nearly all functions of the board itself.</p>
<p><img src="http://www.wesg.ca/wp-content/upload/arduino_kit.jpg" class="center" /></p>
<h3>What is it used for?</h3>
<p>You may be wondering what the real purpose of the board is, but there is no definite answer to that. In reality, Arduino, being an open source hardware project, has been used in numerous projects seen around the web. Any component that can be plugged into one of the pins can be controlled, which means people have used it to create <a href="http://www.engadget.com/2009/11/04/secret-knock-door-lock-defends-home-from-rhythmically-impaired/">secret knock opening doors</a>, <a href="http://www.instructables.com/id/Arduino-RC-Lawnmower/">a radio controlled lawnmower</a>, even a <a href="http://www.hacknmod.com/hack/create-techno-with-a-laser-harp/">laser harp</a>. This only scratches the surface. My plans, without giving too much away, include building a panoramic camera mount and adding radio controls to household/garage items (project details will be here when they are completed). If you have any interest at all in electronics, I suggest picking one up and learning about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wesg.ca/2010/01/this-is-an-arduino/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Experimenting with Google Chrome OS</title>
		<link>http://www.wesg.ca/2009/11/experimenting-with-google-chrome-os/</link>
		<comments>http://www.wesg.ca/2009/11/experimenting-with-google-chrome-os/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 18:11:38 +0000</pubDate>
		<dc:creator>wesg</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[advanced]]></category>
		<category><![CDATA[building]]></category>
		<category><![CDATA[Chrome OS]]></category>
		<category><![CDATA[compiling]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://www.wesg.ca/?p=904</guid>
		<description><![CDATA[The interwebs have been on fire in the last few days with talk of Google&#8217;s new project, Chrome OS. This is a Google version of the open-source project Chromium that aims to produce an operating system less dependent on local hardware and instead stores data in the &#8220;cloud&#8221;, or internet services. This has a number [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.wesg.ca/wp-content/upload/GoogleChromeLogo.png" class="left" />The interwebs have been on fire in the last few days with talk of Google&#8217;s new project, Chrome OS. This is a Google version of the open-source project <a href="http://www.chromium.org/">Chromium</a> that aims to produce an operating system less dependent on local hardware and instead stores data in the &#8220;cloud&#8221;, or internet services. This has a number of benefits, namely constant backups since no critical data is stored on the hardware the OS is running on. It also means it can very lightweight and run on lower level hardware, like netbooks. </p>
<p>With the updates on Thursday, I decided to take the plunge and try my hand at building the OS on my own. If you decide to do the same, keep in mind it is a fairly advanced procedure, despite the attempts of Google to automate the processes. You&#8217;ll also need a <a href="http://www.wesg.ca/2009/08/building-a-ubuntu-fileserver-the-software/">Ubuntu computer</a> with version 8.04 or later (I used my server running 9.04 Jaunty). </p>
<h3>Building Chrome</h3>
<p>All the instructions you need are on <a href="http://sites.google.com/a/chromium.org/dev/chromium-os/building-chromium-os/build-instructions">Google&#8217;s page about this very subject</a>. It contains a very detailed procedure for downloading and compiling the system to be installed on a regular computer or run with VMWare. Since I don&#8217;t have any spare hardware lying around, I went the VMWare route. </p>
<p>You&#8217;ll have to start by downloading the 200 MB files. If you wish to use the tarball version, here are the commands you can use to move to the home directory, download and unzip. </p>
<div class="code"><code>cd ~/<br />
wget http://build.chromium.org/buildbot/archives/chromiumos-0.4.22.8.tar.gz<br />
tar zxvf chromiumos-0.4.22.8.tar.gz<br />
mv chromiumos-0.4.22.8/ chromiumos/<br />
cd chromiumos</code></div>
<p>From there you can start with the steps on the above Google link.</p>
<p>The process is relatively straightforward as compared to a standard compile/install procedure, thanks to Google&#8217;s use of bash scripts. I proceeded without incident until it came time to run the ./enter_chroot.sh script. This one failed multiple times and it took me some time to figure out that I needed to run ./make_chroot.sh a second time. After that, there were no more problems, and I soon had a VMWare disk to use.</p>
<h3>Using Chrome OS</h3>
<p>If you wish to bypass the whole build process, gdgt has graciously <a href="http://gdgt.com/google/chrome-os/download/">provided a direct link</a> to a download for a VMWare image. Going that route can definitely save some time.<br />
<img src="http://www.wesg.ca/wp-content/upload/Chromium/chrome login.png" class="center" />After installing a VMWare Fusion trial, I had Chrome OS running and was presented with a nice log in screen. If you enter your Google address and password, all the applications should be set up immediately with your data and you can begin to use the OS right away. Once logged in, you really are using a giant browser.<br />
<img src="http://www.wesg.ca/wp-content/upload/Chromium/Picture_5.jpg" class="center" /> At this stage, the open-source Chromium downloads lag behind what Google presented earlier this week, so some of the features aren&#8217;t available yet. Right now there is a Chrome browser, and that&#8217;s about it. The button at the top left shows some of the applications available, like Calendar, YouTube, Documents, Hulu and more.<br />
<img src="http://www.wesg.ca/wp-content/upload/Chromium/Picture_23.jpg" class="center" />These are essentially just links to the respective Google pages. The top right corner has buttons for changing a few settings and checking battery and WiFI information. Other than that, it&#8217;s pretty spartan (there isn&#8217;t even a shutdown button).</p>
<p>It is an interesting take on the future of computing, a problem I noticed is that a weak internet connection really dampens the benefits. To truly make use of the features built in, you&#8217;ll need a solid pipe, because waiting to even check a calendar is a bit annoying. If/when this makes its way to netbooks with wireless internet solutions, that will make a very nice package.</p>
<h3>Is this the future?</h3>
<p>Using these early builds, I found myself wondering who will want to use an operating system that deals very little with local storage and functionality. Google&#8217;s intention is that it will be used almost exclusively on netbooks &#8212; the tiny 8-10&#8243; computers that are mostly used for email and web browsing. They&#8217;ve even decided that to use their version of Chromium, you&#8217;ll have to buy a new device (it won&#8217;t be available as a software only product). For that purpose, I can see it being a success. For full scale computing, I don&#8217;t think it will be usurping Windows or Mac OS X any time soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wesg.ca/2009/11/experimenting-with-google-chrome-os/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Operating system look: Windows 7</title>
		<link>http://www.wesg.ca/2009/10/operating-system-look-windows-7/</link>
		<comments>http://www.wesg.ca/2009/10/operating-system-look-windows-7/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 15:25:24 +0000</pubDate>
		<dc:creator>contributor</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[operating system]]></category>
		<category><![CDATA[surprises]]></category>

		<guid isPermaLink="false">http://www.wesg.ca/?p=639</guid>
		<description><![CDATA[Windows 7 promises to be a vast improvement over Vista. While this is most definitely a Mac-focused blog, I think it&#8217;s a good idea to compare all the next generation operating systems together &#8212; the other two being Snow Leopard and Ubuntu 9.04. Having installed the RC build 7100 and using it on and off [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.wesg.ca/wp-content/upload/win7_logo.jpg" class="left" />Windows 7 promises to be a vast improvement over Vista. While this is most definitely a Mac-focused blog, I think it&#8217;s a good idea to compare all the next generation operating systems together &#8212; the other two being <a href="">Snow Leopard</a> and Ubuntu 9.04. </p>
<p>Having installed the RC build 7100 and using it on and off for the last few weeks, I must say that I actually like this software. Despite a few annoyances here and there, overall Windows 7 is a big step up from Vista, and even XP. Let&#8217;s take a closer look.</p>
<h3>Installation</h3>
<p>Right away, I was impressed with the changes to the installation process. Nearly all irrelevant options are hidden, and the important ones are out in plain site. Formatting my Boot Camp partition was as easy as clicking &#8220;Format&#8221; and waiting less than 10 seconds. After entering the RC serial number, all files were copied, settings updated and the computer reboot into Windows. From start to finish the process took 50 minutes, but that doesn&#8217;t include the extra finagling I had to do to get the setup disk to work properly with Boot Camp.</p>
<h3>Interface</h3>
<p>There are a multitude of changes in the interface, and most of them are for the better. The taskbar has now been called the <em>smartbar</em> and it gets its name from only displaying application icons, and the way applications can be &#8220;bolted&#8221; to the bar. Personally, I find this an excellent way of managing open applications, and the fact that a simple mouseover displays the entire window means a quick look is possible to make sure you have the right application. </p>
<p>One tiny thing that has bothered me since starting with the RC Beta is that scrolling does not automatically select the window beneath the cursor. On Mac OS X, scrolling is done in the application that the cursor is presently over, regardless if it is active or not. While it sounds like I&#8217;m splitting hairs, it becomes a major nuisance when switching back and forth between applications. </p>
<p>My MacBook, with its GMA950 graphics chip, returned a <a href="http://en.wikipedia.org/wiki/Windows_System_Assessment_Tool">Windows Experience Index</a> score of 3.2, with the lowest score being the graphics system. Despite this, Windows 7 is very snappy, and the Aero interface displayed without trouble. Some machines that were unable to take full advantage of the Vista interface eye candy <em>might</em> be able to do so now.</p>
<h3>Application updates</h3>
<p>Windows 7 also sees some nice enhancements to core software functionality and application updates. A big component of Windows Media Player is the ability to stream to other devices on the network using <a href="http://www.wesg.ca/2009/08/building-a-ubuntu-fileserver-the-software/">the UPnP server</a>. While I didn&#8217;t really test this feature, I was happy to see a UPnP <em>viewer</em> included in the application. This meant I could listen to/watch any media that was stored <a href="http://www.wesg.ca/2009/05/build-a-ubuntu-fileserver-the-planning/">on my file server</a>. Unfortunately, this feature didn&#8217;t work completely correctly, as files were duplicated in the library for some reason, but the actual release version may work better.</p>
<p><img src="http://www.wesg.ca/wp-content/upload/win7_wall2.PNG" class="center" /><br />
One of the biggest surprises I found was the new take on wallpaper in Windows 7. As shown in the above picture, some of the choices are <em>very trippy</em>. That psychedelic turtle has found a place on my wallpaper, mostly because it is so unlike any of <a href="http://web.mit.edu/kayla/Public/Backgrounds/Bliss.JPG">Microsoft&#8217;s previous wallpapers</a>. </p>
<p>Many other applications have seen updates as well. Paint has more features seen in a standard image-manipulation program, Screen Capture is more versatile, network tools are more powerful and the control panel organizes things more clearly, to name a few. </p>
<p>This only really begins to scratch the surface of this massive upgrade, but from what I&#8217;ve been able to see/use on the last few months, I&#8217;d say Microsoft has done a good job listening to user complaints and acting on them. Of course, it will never fully replace the OS X installation on my MacBook, but I no longer dread booting into the alternate reality.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wesg.ca/2009/10/operating-system-look-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash script to add TV episode names</title>
		<link>http://www.wesg.ca/2009/10/bash-script-to-add-tv-episode-names/</link>
		<comments>http://www.wesg.ca/2009/10/bash-script-to-add-tv-episode-names/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 11:52:28 +0000</pubDate>
		<dc:creator>wesg</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[awesome]]></category>
		<category><![CDATA[efficiency]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.wesg.ca/?p=804</guid>
		<description><![CDATA[Earlier I wrote an Applescript that goes online to TV.com and finds the episode titles for TV show video files. While that seemed to work properly, TV.com changed their format and my Applescript went kaput. Since I really wanted to have this process automated, I wrote a bash script to do the same thing with [...]]]></description>
			<content:encoded><![CDATA[<p>Earlier <a href="http://www.wesg.ca/2008/11/applescript-get-tv-titles/">I wrote an Applescript</a> that goes online to TV.com and finds the episode titles for TV show video files. While that seemed to work properly, TV.com changed their format and my Applescript went kaput. Since I really wanted to have this process automated, I wrote a bash script to do the same thing with the command line. </p>
<p>The result is a Ubuntu bash script that renames all the formatted files in a folder with the actual episode titles. Right now <strong>it requires Linux</strong> because it uses wget and XMLStarlet to download the file data, but I may release an additional script that works with other systems.</p>
<p>The entire script is made possible by the excellent XML feed service by <a href="http://www.tvrage.com/xmlfeeds.php">TVRage.com</a>.</p>
<h3><a href="http://www.wesg.ca/wp-content/upload/tvrenamer.zip">Download the script</a></h3>
<h3>Prerequisite</h3>
<p><strong><a href="http://xmlstar.sourceforge.net/">XMLStarlet</a></strong><br />
XMLStarlet is a small command-line utility that can process XML files and text. It is required to traverse the XML structure of the TVRage.com data. To download this utility in Ubuntu, simply use the repositories.</p>
<div class="code"><code>sudo apt-get install xmlstarlet</code></div>
<h3>Usage</h3>
<p><em>Change paths where appropriate.</em></p>
<ol>
<li>Save the script to a known folder, change into that folder, and make it executable by issuing the following command
<div class="code"><code>chmod a+x ./tvrenamer.sh</code></div>
</li>
<li>Change the current directory to the folder that contains the video files.
<div class="code"><code>cd Television/Season\ 1</code></div>
</li>
<li>Rename all the files in the folder to use the format <code>SxxExx.extension</code>
<div class="code"><code>S08E01.avi<br />
S08E02.avi<br />
S08E03.avi<br />
S08E04.avi<br />
S08E05.avi<br />
S08E06.avi<br />
S08E07.avi<br />
S08E08.avi<br />
S08E09.avi<br />
S08E10.avi</code></div>
</li>
<li>Call the script and append the name of the show to the end of the command.
<div class="code"><code>/path/to/script/tvrenamer.sh Simpsons</code></div>
</li>
<li>Watch as the shows all magically change their name.
<div class="code"><code>Downloading show data for 'Simpsons'...<br />
Downloading episode guide...<br />
Simpsons - S08E01 - Treehouse of Horror VII.avi<br />
Simpsons - S08E02 - You Only Move Twice.avi<br />
Simpsons - S08E03 - The Homer They Fall.avi<br />
Simpsons - S08E04 - Burns, Baby Burns.avi<br />
Simpsons - S08E05 - Bart After Dark.avi<br />
Simpsons - S08E06 - A Milhouse Divided.avi<br />
Simpsons - S08E07 - Lisa's Date with Density.avi<br />
Simpsons - S08E08 - Hurricane Neddy.avi<br />
Simpsons - S08E09 - El Viaje Misterioso de Nuestro Jomer (The Mysterious Voyage of Homer).avi<br />
Simpsons - S08E10 - The Springfield Files.avi</code></div>
</li>
</ol>
<p>If you wish to access the script simply by typing the name (tvrenamer, for example) simply issue the following two commands:</p>
<div class="code"><code>cp /path/to/script/tvrenamer.sh /usr/local/bin/tvrenamer<br />
sudo chmod a+x /usr/local/bin/tvrenamer</code></div>
<p>From this point, you simply need to use <code>tvrenamer "TV Show"</code>.</p>
<p>The script reads all files in the folder, but will only rename files that are in the S**E** format.  TV show titles must have escaped spaces to properly search for the show, or be surrounded in &#8221; quotes. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.wesg.ca/2009/10/bash-script-to-add-tv-episode-names/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to: Compile and run Mediatomb as a daemon with Ubuntu 9.04</title>
		<link>http://www.wesg.ca/2009/09/how-to-compile-and-run-mediatomb-as-a-daemon-with-ubuntu-9-04/</link>
		<comments>http://www.wesg.ca/2009/09/how-to-compile-and-run-mediatomb-as-a-daemon-with-ubuntu-9-04/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 14:26:24 +0000</pubDate>
		<dc:creator>wesg</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Mediatomb]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://www.wesg.ca/?p=611</guid>
		<description><![CDATA[Since getting my PS3, then setting up my Ubuntu file server, I&#8217;ve really enjoyed watching movies on my TV. To get the media from computer to Playstation requires the use of software that employs the UPnP protocol, in the form of a DLNA server. If there are too many acronyms in there, just remember the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.wesg.ca/wp-content/upload/mediatomb.jpg" class="alignright" />Since getting my PS3, then setting up my <a href="http://www.wesg.ca/2009/05/build-a-ubuntu-fileserver-the-planning/">Ubuntu file server</a>, I&#8217;ve really enjoyed watching movies on my TV. To get the media from computer to Playstation requires the use of software that employs the UPnP protocol, in the form of a DLNA server. </p>
<p>If there are too many acronyms in there, just remember the name <a href="http://mediatomb.cc">Mediatomb</a>. Mediatomb is an open-source, cross-platform DLNA server that streams a variety of media formats across a local network to whatever compatible device you happen to have running at the end. It can stream video, music, photos in numerous formats, and will even transcode others so that they can stream as well. All this tinkering comes at the expense of user-friendliness, though. In most cases, the regular binaries for each operating system will do most of the cool tricks I mention here. To get the most out of the system, however, requires you to compile from source. </p>
<p>As mentioned i<a href="http://www.wesg.ca/2009/08/building-a-ubuntu-fileserver-the-software/">n my previous file server post</a>, I&#8217;m running Ubuntu 9.04 Jaunty Jackolope on a &#8220;headless&#8221; Intel server, which I control via the terminal. Since the computer doesn&#8217;t restart, I wanted it to run as a daemon, which was where I ran into a problem. For some reason, Jaunty didn&#8217;t play nice with the standard daemon package, so I had do a little digging to find the solution. </p>
<h3>Steps</h3>
<ol>
<li>Create a temporary working directory by issuing this command
<div class="code"><code>$ mkdir temp</code></div>
</li>
<li>Install the ffmpegthumbnailer libraries by installing libffmpegthumbnailer. Use the command <code>sudo apt-get install libffmpegthumbnailer</code> and enter your admin password when prompted.</li>
<li>Compile ffmpeg using the tutorial at <a href="http://juliensimon.blogspot.com/2008/12/howto-compiling-ffmpeg-x264-mp3-xvid.html">Juliensimon.blogspot.com</a> but include the configure tag <code>--enable-libffmpegthumbnailer</code>. Don&#8217;t move on until the configuration confirms thumbnailer installation.</li>
<li>Compile and install the Mediatomb binaries from source &#8212; again, I used the excellent tutorial at <a href="http://juliensimon.blogspot.com/2008/12/howto-compiling-mediatomb.html">Juliensimon.blogspot.com</a></li>
<li>Check the functionality of Mediatomb to issuing the command <code>$ mediatomb</code> then opening a web browser to http://ip_of_server:49152/</li>
<li>To make the daemon work, first download the daemon package by issuing this command (one line)
<div class="code"><code>$ wget http://mirrors.kernel.org/ubuntu/pool/universe/m/mediatomb/mediatomb-daemon_0.11.0-3ubuntu2_all.deb</code></div>
</li>
<li>Now extract the files in the package to the temporary directory created earlier
<div class="code"><code>$ dpkg-deb -x  mediatomb-daemon_0.11.0-3ubuntu2_all.deb temp</code></div>
<p> As you can see, the daemon package is just a collection of configuration files, so installing it properly is just a matter of copying the files back.</li>
<li>Change to the temporary directory with the files by typing
<div class="code"><code>$ cd temp_directory_name</code></div>
</li>
<li>Type these commands one line at a time to copy the files back to their rightful place. The commands with two lines should be printed as one single command.
<div class="code"><code>$ sudo cp etc/mediatomb/config.xml /etc/mediatomb/config.xml</p>
<p>$ sudo cp etc/default/mediatomb /etc/default/mediatomb</p>
<p>$ sudo cp etc/init.d/mediatomb /etc/init.d/mediatomb</p>
<p>$ sudo cp etc/logrotate.d/mediatomb /etc/logrotate.d/mediatomb</p>
<p>$ sudo cp usr/share/doc/mediatomb-daemon/README.Debian usr/share/doc/mediatomb-daemon/README.Debian</p>
<p>$ sudo cp usr/share/doc/mediatomb-daemon/changelog.Debian.gz /usr/share/doc/mediatomb-daemon/changelog.Debian.gz</p>
<p>$ sudo cp usr/share/doc/mediatomb-daemon/changelog.gz /usr/share/doc/mediatomb-daemon/changelog.gz</p>
<p>$ sudo cp usr/share/doc/mediatomb-daemon/copyright /usr/share/doc/mediatomb-daemon/copyright</code></div>
<p>If the copy comes back with errors about directories, you&#8217;ll likely have to use the mkdir to create the requested folders.</li>
<li>Now the important step is setting the proper permissions of the folder /var/lib/mediatomb. Change into that directory by issuing
<div class="code"><code>$ cd /var/lib/</code></div>
</li>
<li>The folder /var/lib/mediatomb should contain 3 files:
<div class="code"><code>$ ls mediatomb<br />
mediatomb.html<br />
sqlite3.db<br />
sqlite3.db-journal</code></div>
</li>
<li>Change the ownership of the folder and its contents.
<div class="code"><code>$ chown -R mediatomb:mediatomb mediatomb</code></div>
</li>
<li>Change the permissions of the HTML file.
<div class="code"><code>$ sudo chmod 666 mediatomb/mediatomb.html</code></div>
</li>
<li>Change the permissions of the remaining two files:
<div class="code"><code>$ sudo chmod 644 mediatomb/sqlite3.db<br />
$ sudo chmod 644 mediatomb/sqlite3.db-journal</code></div>
</li>
<li>Make the script run at startup.
<div class="code"><code>$ update-rc.d mediatomb defaults</code></div>
</li>
</ol>
<p>To start the server, simply issue the command <code>sudo /etc/init.d/mediatomb start</code>. If the server doesn&#8217;t start, view the Mediatomb log file to see what else is happening.
<div class="code"><code>$ vi /var/log/mediatomb.log</code></div>
<p>Exit with :q. I&#8217;ve been running this setup since I first built the server, and it has worked exceptionally well. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.wesg.ca/2009/09/how-to-compile-and-run-mediatomb-as-a-daemon-with-ubuntu-9-04/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
