<?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>wesg &#187; Ubuntu</title>
	<atom:link href="http://www.wesg.ca/category/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wesg.ca</link>
	<description>macs and more</description>
	<lastBuildDate>Fri, 10 Jun 2011 03:16:43 +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 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>Wes</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>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>Wes</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>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>Wes</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>
		<item>
		<title>Building a Ubuntu fileserver: The Software</title>
		<link>http://www.wesg.ca/2009/08/building-a-ubuntu-fileserver-the-software/</link>
		<comments>http://www.wesg.ca/2009/08/building-a-ubuntu-fileserver-the-software/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 17:44:31 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[custom PC]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Mac Software]]></category>
		<category><![CDATA[media server]]></category>

		<guid isPermaLink="false">http://www.wesg.ca/?p=613</guid>
		<description><![CDATA[After planning and building a Ubuntu-based fileserver, it&#8217;s time to add software to the mix, so that the computer does the work it was originally meant for. In the case with my command-line only server, the software I added was for file sharing and media serving. The software I&#8217;m explaining here was all installed via [...]]]></description>
			<content:encoded><![CDATA[<p>After planning and building a Ubuntu-based fileserver, it&#8217;s time to add software to the mix, so that the computer does the work it was originally meant for. In the case with my command-line only server, the software I added was for file sharing and media serving. </p>
<p>The software I&#8217;m explaining here was all installed via the command line. To do any of this with the GUI of Ubuntu, simply open a terminal window.</p>
<h4>Mediatomb</h4>
<p><img src="http://www.wesg.ca/wp-content/upload/mediatomb.jpg" class="alignright" />The priority of my project was that the media on the computer would be accessible on my PS3 via wireless network. To do that, I researched a number of software projects, and settled on <a href="http://mediatomb.cc">MediaTomb</a> because I had heard good things about it. MediaTomb has lots of great features including, but not limited to: web administration, daemon operation, transcoding and instantaneous library additions. </p>
<p>After finding <a href="http://juliensimon.blogspot.com/2008/12/howto-compiling-mediatomb.html">an excellent tutorial</a> on adding all the necessary  and optional libraries to get every feature working, I had a good setup. I highly recommend reading that blog post and others on it to find out about all that MediaTomb can do. Essentially, the task involves downloading and compiling MediaTomb to use all the features. While initially the MediaTomb daemon did not run, I was able to fix the problem and got everything working. I&#8217;ll be sharing the process in an upcoming post. </p>
<h4>Webmin</h4>
<p><img src="http://www.wesg.ca/wp-content/upload/webmin.jpg" class="alignright" />Using the command-line doesn&#8217;t really bother me, but I wanted another way to administer the server over the network and a browser. To do that, I used <a href="http://www.webmin.com">Webmin</a>, which enables users to change many aspects of the system, without using the terminal. </p>
<p>Installing Webmin is quite easy, because it is included in the Ubuntu repositories. Simply open a terminal window and type </p>
<div class="code"><code>sudo apt-get install webmin</code></div>
<p>Enter your admin password when prompted, and Webmin will be downloaded and installed automatically. Once it is installed, open a new browser window and navigate to http<strong>s</strong>://ip_of_server:10000 then enter your user credentials. Once logged in, you can do many operations without using the terminal. I have found the best benefit so far to be local disk management &#8212; after all, mess that up, and your data vanishes.</p>
<h4>ffmpeg</h4>
<p>Ffmpeg is a suite of libraries and applications for operating on videos and multimedia. Once installed with all the add-ons, nearly every type of video can be modified and converted. Once again, <a href="http://juliensimon.blogspot.com/2008/12/howto-compiling-ffmpeg-x264-mp3-xvid.html">the blog of Julien Simon</a> has an excellent tutorial about making the program work with Ubuntu. Following his instructions, you&#8217;ll have a fully operational ffmpeg installation for other applications to use. </p>
<p>The only thing I&#8217;ll add to his tutorial is a fix for ffmpegthumbnailer, which is necessary for MediaTomb thumbnails. Install ffmpegthumbnailer by running
<div class="code"><code>sudo apt-get install libffmpegthumbnailer2</code></div>
<p> then make an addition to the ffmpeg configure code. Add the text <code>--enable-libffmpegthumbnailer2</code> to the configure stage, and you should see ffmpegthumbnailer &#8212; yes when the configuration has finished. </p>
<h4>Netatalk</h4>
<p><img src="http://www.wesg.ca/wp-content/upload/netatalk.jpg" class="left" />Netatalk is an open-source file server that can be configured to use the Apple File Protocol. To do this, I <a href="http://www.kremalicious.com/2008/06/ubuntu-as-mac-file-server-and-time-machine-volume/">followed these instructions</a>, and was up and running in no time. Once installed, Netatalk is very easy to administer from the command line. I was able to create multiple shares for guest and user access and can now access my files from any Mac in the house.</p>
<p>To enable guest access, an additional element must be added to the <code>/etc/netatalk/afpd.conf</code> file. Add the following text</p>
<div class="code"><code>uams_guest.so</code></div>
<p>so that the entire line is
<div class="code"><code> - -transall -uamlist uams_randnum.so,uams_dhx.so,uams_guest.so - nosavepassword -advertise_ssh</code></div>
<p>This will enable you to access shares without entering a password, provided the shares themselves are open to the use <code>nobody</code>.</p>
<h4>rtorrent + screen</h4>
<p>Torrents are a convenient way to download large files like Linux distributions, and a media server is a perfect platform for unattended downloads. <a href="http://libtorrent.rakshasa.no/">rTorrent</a> is a powerful but easy to use command line client that can be customized for any situation. On its own, rTorrent will not run as a daemon, but coupled with screen, it can run in the background.</p>
<p>Install rTorrent and screen by executing the following commands in the Terminal.</p>
<div class="code"><code>sudo apt-get install rtorrent<br />
sudo apt-get install screen</code></div>
<p>Once installed, start screen and attach rTorrent to it.</p>
<div class="code"><code>screen -S torrents<br />
rtorrent</code></div>
<p>Detach the screen session by pressing <code>ctrl + a, d</code> and you&#8217;ll be back to the main prompt. Now rtorrent will remain running even when you disconnect from SSH. </p>
<p>To rejoin the rTorrent session, you must attach to it.</p>
<div class="code"><code>screen -r torrents</code></div>
<h4>avidemux</h4>
<p><a href="http://avidemux.org/admWiki/index.php?title=Main_Page">Avidemux</a> is set of audio/video tools for the command line that can do many operations. So far I&#8217;ve used it to shift audio inside video tracks. Like most other programs, it simply requires a few arguments to do whichever job you need.</p>
<div class="code"><code>sudo apt-get install avidemux</code></div>
<h4>mencoder</h4>
<p>Slightly different than ffmpeg, <a href="https://help.ubuntu.com/community/MEncoder">mencoder</a> is another suite of video conversion for a variety of formats. This is an excellent tool to use for converting MKV or OGM files to AVI (video does not need to be converted). Again, it requires basic command line arguments, and can be used in a screen session to work in the background.</p>
<div class="code"><code>sudo apt-get install mencoder</code></div>
<h4>lm-sensors</h4>
<p>An important part of running a headless media server is making sure the hardware is operating within its temperature restraints. A tool do monitor that is called lm-sensors and must be set up with the specific hardware in your computer. I could explain the system, but <a href="http://ubuntuforums.org/showthread.php?t=2780">a post on the Ubuntu forums</a> does a much better job. Once installed, simply issue the command <code>sensors</code> to see the temperature of various compontents, and &#8212; if your motherboard supports it &#8212; the chassis fan speed.</p>
<p>Of course, this only begins to scratch the surface of possible software for a Ubuntu fileserver, but I think the applications shown are important for running a system without local input. Set them up, and enjoy central storage for all the computers in your house.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wesg.ca/2009/08/building-a-ubuntu-fileserver-the-software/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Build a Ubuntu fileserver: The Hardware</title>
		<link>http://www.wesg.ca/2009/06/build-a-ubuntu-fileserver-the-hardware/</link>
		<comments>http://www.wesg.ca/2009/06/build-a-ubuntu-fileserver-the-hardware/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 16:46:06 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[custom PC]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.wesg.ca/?p=574</guid>
		<description><![CDATA[With the planning of a new computer done, it&#8217;s time to begin the process of buying and assembling the parts together. The more you read about compatibility and user satisfaction, the better your final product will be. I highly suggest perusing Newegg.com (or .ca in Canada) to read about other users&#8217; experiences with a prospective [...]]]></description>
			<content:encoded><![CDATA[<p>With the <a href="http://www.wesg.ca/2009/05/build-a-ubuntu-fileserver-the-planning/">planning of a new computer done</a>, it&#8217;s time to begin the process of buying and assembling the parts together. The more you read about compatibility and user satisfaction, the better your final product will be. I highly suggest perusing <a href="http://www.newegg.com">Newegg.com</a> (or .ca in Canada) to read about other users&#8217; experiences with a prospective part. I used this site to read about parts, then sourced them locally to get instant gratification. </p>
<h3>The components</h3>
<p>While I won&#8217;t talk about physically assembling the computer (there are hundreds of articles like that across the web for that), I will explain what parts are necessary and which ones I bought.</p>
<ul>
<li>Case &#8212; <a href="http://canadacomputers.com/index.php?do=ShowProduct&#038;cmd=pd&#038;pid=015142&#038;cid=CS.874">In Shin M135 Mini Tower</a></li>
<li>Motherboard &#8212; <a href="http://www.wesg.ca/asus-P5KPL-CM" target="_blank">ASUS P5KPL-CM</a></li>
<li>Processor &#8212; <a href="http://www.newegg.ca/Product/Product.aspx?Item=N82E16819116072" target="_blank">Intel Pentium E5200 Wolfdale</a></li>
<li>RAM &#8212; 2GB</li>
<li>Hard drive 1 &#8212; <a href="http://www.wesg.ca/WD-500GB">Western Digital 500GB 7200RPM SATA</a></li>
<li>Hard drive 2 &#8212; <a href="http://www.wesg.ca/WD-1TB">Western Digital 1TB 7200RPM SATA</a></li>
</ul>
<h3>The Choices</h3>
<p><img src="http://www.wesg.ca/wp-content/upload/m135case.jpg" class="alignleft"/>I purchased these parts because each met very specific needs for a fileserver. The case includes 4 internal 3.5&#8243; drive bays, with 3 5.25&#8243; and 2 3.5&#8243; external bays. This leaves plenty of space for expansion. Additionally, the case includes a 120 mm chassis fan, meaning it will blow a lot of air, but will remain quiet. The cooling and noise factor is especially important for computers that will be on constantly. </p>
<p>The Intel E5200 was picked because the 45nm manufacturing process means it will require less power and cooling that comparable processors. The fairly high clock speed is just a bonus, but one that allows this computer to work as a video processing station. Remember, a few extra dollars spent at the outset means your system will likely satisfy your needs for much longer. </p>
<p>The hard drive choice is largely a matter of budget and ambitions, but I highly recommend a separate drive for the OS and main storage. Originally I didn&#8217;t really want a 500 GB boot drive, but my local store had a sale. The separate drives mean you can upgrade or even replace the operating system without touching your media files. It also means you can create filesystems like RAID or LVM without modifying your home folder. </p>
<p><img src="http://www.wesg.ca/wp-content/upload/mobo.jpg" class="alignright"/>The motherboard is perhaps the most important component in the build, and requires the most research. As previously mentioned in the planning post, the motherboard will make or break the connectivity of your machine, both to internal components and the network. The ASUS unit I chose has 4 SATA connectors and Gigabit Ethernet. It was one of the few &#8212; if not the only &#8212; motherboard I found that has both of these features and a MicroATX form factor. The gigabit connection means I can transfer data across the network at speeds of 40 MB/s!</p>
<p>A central storage database can make using multiple computers much simpler and convenient, and with properly chosen components, it can be built with a fairly small investment.</p>
<div class="faded"><strong>Disclosure</strong><br />
Newegg provides a small affiliate payout for items purchased through these links. I recommend Newegg because of their rapid shipping, low prices and excellent customer service.
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.wesg.ca/2009/06/build-a-ubuntu-fileserver-the-hardware/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Build a Ubuntu fileserver: The Planning</title>
		<link>http://www.wesg.ca/2009/05/build-a-ubuntu-fileserver-the-planning/</link>
		<comments>http://www.wesg.ca/2009/05/build-a-ubuntu-fileserver-the-planning/#comments</comments>
		<pubDate>Sat, 16 May 2009 20:26:31 +0000</pubDate>
		<dc:creator>Wes</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[custom PC]]></category>
		<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://www.wesg.ca/?p=561</guid>
		<description><![CDATA[If you have multiple computers in the house, you can probably benefit from a single system with centralized storage. A fileserver, as it is usually known, is a computer with multiple hard drives that often sits unattended somewhere and simply gives file access to other computers. This can be an older model, with a minimal [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.wesg.ca/wp-content/upload/UbuntuLogo.png" class="alignright" />If you have multiple computers in the house, you can probably benefit from a single system with centralized storage. A fileserver, as it is usually known, is a computer with multiple hard drives that often sits unattended somewhere and simply gives file access to other computers. This can be an older model, with a minimal amount of computing power, or a fairly up to date system with dual cores and lots of memory. </p>
<p>I decided to build myself one of these systems, so what I hope to do here is explain what I did to get up and running, and hopefully help you solve some of the same problems I encountered on the way.</p>
<h3>The Hardware</h3>
<p>Since this computer will mostly work as a file server, a high end system is not really necessary. In fact, an old computer sitting in your basement with Windows 98 on it will probably do just fine. </p>
<p>There are things to remember, however, that might swing you in favour of building a new system.</p>
<ul>
<li>Processing power for other jobs</li>
<li>Expandability</li>
<li>Network connectivity</li>
<li>Cooling/Noise</li>
</ul>
<p>If you want to be able to do other tasks with the system outside of serving files, you might want some more power. For instance, I&#8217;ve set up my box to act as a video conversion system, which frees my MacBook from churning through videos all night.</p>
<p>Disk drives will always be improving, so don&#8217;t limit yourself to a case with only 1 or 2 3.5&#8243; drive bays. Look for something with at least 3 or maybe 4. For example, my original plan was to use the shell of a Dell computer, so that I wouldn&#8217;t need a new case, but I quickly learned there was very little internal storage, which would have crippled the setup right out of the box.</p>
<p>You&#8217;ll definitely not want to go wireless with a server like this. Wired ethernet is the only way to go, and Gigabit is certainly preferable. This of course means you&#8217;ll either have to put the computer near your main network station, or run a cable to another part of the house.</p>
<p>Finally, you must take into account the cooling/noise requirements for a system like this. It will be on 24 hours per day, 7 days a week, unless manually shut down, so you won&#8217;t want a case that makes living next to it unbearable. Look for a case with 120mm case fans, and use a high quality CPU heat sink that dissipates heat with a large fan that moves air while turning slowly.</p>
<h3>The Software</h3>
<p>The second half of the equation is the software to run the hardware, and do what you want it to do. I suggest using a Linux variant: it is free, very stable, and has a very enthusiastic support community. From there, depending on your level of knowledge, you need to choose a GUI version, or command line version. The benefit of a GUI is that configuration and usage is significantly easier, but it also means you more or less need to physically be at the computer to make changes. A command line version, however, allows complete control over all aspects of the system, but can be done remotely via SSH (the terminal).</p>
<p>I chose to use the command line server version of Ubuntu Jaunty Jackalope, because it had come out just days before I set up my system. It is available at <a href="http://www.ubuntu.com">Ubuntu.com</a> in 64 or 32 bit versions. The command line ensures that all processing power available to the computer is used for productive computing instead of running the interface. With the OS in place, you must plan what software you&#8217;ll run to do the serving.</p>
<p>Ubuntu Server contains numerous packages that can be configured out of the box to create a working server. This is a list of packages I installed immediately after setting up the computer (* denotes a package installed after the build):</p>
<ul>
<li>SSH</li>
<li>LAMP (Linux Apache MySQL PHP web server)</li>
<li>SAMBA (Windows file sharing)</li>
<li>Mediatomb* (UPnP media sharing)</li>
<li>Netatalk* (Apple file sharing)</li>
<li>Webmin* (Web interface for administering computer)</li>
<li>ProFTPD* (FTP server)</li>
</ul>
<p>These servers provide services to the entire network, which means I need to do little or no interaction with the server once they&#8217;re running. </p>
<p>A Ubuntu file server can provide centralized storage for a large network and provide many other services to all the computers connected. It can store and stream media, backup important files and even process files, all while sitting unattended under a desk or in a closet. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.wesg.ca/2009/05/build-a-ubuntu-fileserver-the-planning/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

