<?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/"
		xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>ben.parmeter</title>
	<atom:link href="http://www.parmeter.net/ben/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.parmeter.net/ben</link>
	<description>welcome to ben's home</description>
	<lastBuildDate>Mon, 30 Apr 2012 04:52:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<copyright>2006-2008 </copyright>
	<managingEditor>ben@parmeter.net (ben.parmeter)</managingEditor>
	<webMaster>ben@parmeter.net (ben.parmeter)</webMaster>
	<ttl>1440</ttl>
	<image>
		<url>http://www.parmeter.net/ben/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
		<title>ben.parmeter</title>
		<link>http://www.parmeter.net/ben</link>
		<width>144</width>
		<height>144</height>
	</image>
	<itunes:subtitle></itunes:subtitle>
	<itunes:summary>welcome to ben's home</itunes:summary>
	<itunes:keywords></itunes:keywords>
	<itunes:category text="Society &#38; Culture" />
	<itunes:author>ben.parmeter</itunes:author>
	<itunes:owner>
		<itunes:name>ben.parmeter</itunes:name>
		<itunes:email>ben@parmeter.net</itunes:email>
	</itunes:owner>
	<itunes:block>no</itunes:block>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://www.parmeter.net/ben/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<item>
		<title>new host</title>
		<link>http://www.parmeter.net/ben/2012/04/29/new-host/</link>
		<comments>http://www.parmeter.net/ben/2012/04/29/new-host/#comments</comments>
		<pubDate>Mon, 30 Apr 2012 04:52:06 +0000</pubDate>
		<dc:creator>nebhead</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.parmeter.net/ben/?p=945</guid>
		<description><![CDATA[Quick post this evening.  Caving to peer pressure and the fact that my domain/hosting was expiring soon, I have moved to a new hosting provider.  Thanks to P-Cass for the tip, I am now saving money and enjoying a much faster more responsive server.  Hooray!  One more reason to start blogging more regularly again.]]></description>
			<content:encoded><![CDATA[<p>Quick post this evening.  Caving to peer pressure and the fact that my domain/hosting was expiring soon, I have moved to a new <a href="http://hostgator.com" target="_blank">hosting provider</a>.  Thanks to <a href="http://cassleman.com" target="_blank">P-Cass</a> for the tip, I am now saving money and enjoying a much faster more responsive server.  Hooray!  One more reason to start blogging more regularly again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.parmeter.net/ben/2012/04/29/new-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the great ubuntu NAS project, continued&#8230;</title>
		<link>http://www.parmeter.net/ben/2012/03/19/the-great-ubuntu-nas-project-continued/</link>
		<comments>http://www.parmeter.net/ben/2012/03/19/the-great-ubuntu-nas-project-continued/#comments</comments>
		<pubDate>Tue, 20 Mar 2012 01:15:38 +0000</pubDate>
		<dc:creator>nebhead</dc:creator>
				<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://www.parmeter.net/ben/?p=883</guid>
		<description><![CDATA[In my last &#8220;great ubuntu NAS project&#8221; post, I explained how to get an ubuntu server OS up and running with the absolute basics.  Now let&#8217;s get this thing customized.  I personally wanted to add the following to my rig: Web UI for Administration (Ajenti) Subsonic Transmission Plex Media Server Let&#8217;s dive into the details&#8230; [...]]]></description>
			<content:encoded><![CDATA[<p>In my last &#8220;great ubuntu NAS project&#8221; post, I explained how to get an ubuntu server OS up and running with the absolute basics.  Now let&#8217;s get this thing customized.  I personally wanted to add the following to my rig:</p>
<ul>
<li>Web UI for Administration (Ajenti)</li>
<li>Subsonic</li>
<li>Transmission</li>
<li>Plex Media Server</li>
</ul>
<p>Let&#8217;s dive into the details&#8230;</p>
<p>&nbsp;</p>
<p><span id="more-883"></span></p>
<p><strong>Web UI for Administration (Ajenti)</strong></p>
<p>Because I&#8217;m coming from FreeNAS, I wanted something comparable to the slick (and useful) Web UI that they have on that project.  I&#8217;m a lazy admin and I don&#8217;t like to SSH into my server to every time I want to check the uptime.   I had searched around and found a few options for Web Admin panels.  Webmin is a powerful, yet clunky/ugly (sorry Webmin) option.  I&#8217;m sure it&#8217;s great, but I just couldn&#8217;t get past its looks.  OpenPanel is pretty, but didn&#8217;t appear to be as functional as the others.  It&#8217;s probably all about personal preference.  (I really do miss FreeNAS and it&#8217;s webUI &#8211; it holds a special place in my heart)</p>
<p>I finally settled on Ajenti which was very pretty, self contained, and useful to boot.  Here&#8217;s how you install it on the server (or you can go to http://ajenti.org and follow the latest instructions there).  First edit your sources:</p>
<pre class="qoate-code">sudo nano /etc/apt/sources.list</pre>
<p>Add the Ajenti APT repository:</p>
<pre class="qoate-code">deb &lt;a href="http://repo.ajenti.org/debian"&gt;http://repo.ajenti.org/debian&lt;/a&gt; main main</pre>
<p>At the terminal type the following to get the keys:</p>
<pre class="qoate-code">wget &lt;a href="http://repo.ajenti.org/debian/key"&gt;http://repo.ajenti.org/debian/key&lt;/a&gt; -O- | sudo apt-key add -</pre>
<p>And we are done with the hard part.  Now you can browse to your server using your favorite browser at the following address/port to start the configuration:</p>
<pre class="qoate-code">http://your.server.ip.here:8000</pre>
<p>&nbsp;</p>
<p><strong>Subsonic</strong></p>
<p>I&#8217;ve gushed about Subsonic many times on this blog in the past.  I love, love, love it.  I think anyone setting up a home NAS should make this a requirement.  Who wouldn&#8217;t want to have access to their music and movies on their PC&#8217;s and smart phones wherever they have an internet connection?  Let&#8217;s get started.  All the instructions for Debian/Ubuntu are <a href="http://www.subsonic.org/pages/installation.jsp#debian" target="_blank">here</a>.</p>
<p>Download the deb package here: <a href="http://www.subsonic.org/pages/download.jsp">http://www.subsonic.org/pages/download.jsp</a></p>
<p>Now, from the terminal do the following:</p>
<pre class="qoate-code">sudo apt-get install openjdk-6-jre

sudo dpkg -i subsonic-x.x.deb</pre>
<p>Once installed, you can plug find your server at:</p>
<pre class="qoate-code">http://your.server.ip.here:4040</pre>
<p>Your mileage may vary, but I ran into an issue with the automagical uPnP port-forwarding feature in Subsonic on Ubuntu.   I got some joy after turning off the built-in firewall, but for some reason it forwarded to the wrong IP.  And if you&#8217;d like to try the same, run this command.  Let me know if you are able to get this to work or know what&#8217;s wrong.</p>
<pre class="qoate-code">sudo ufw disable</pre>
<p><em>Sourced from this site: <a href="http://www.cyberciti.biz/faq/ubuntu-server-disable-firewall/">http://www.cyberciti.biz/faq/ubuntu-server-disable-firewall</a></em></p>
<p>&nbsp;</p>
<p><strong>Transmission</strong></p>
<p>I love bittorrent.  And having the ability to seed torrents directly on my NAS had great appeal to me.  Transmission (the bittorrent daemon) was a comfortable option for me and it has the ability to run headless with both Remote GUI options (for pretty much any OS including Android), and a Web UI built right it.  It takes a bit of work to get this thing up and running, but it&#8217;s well worth it.</p>
<p>Setup the Transmission CLI w/WebGUI, Blocklists and Remote Management.  From the command line start by installing these packages:</p>
<pre class="qoate-code">sudo apt-get install transmission-cli transmission-common transmission-daemon</pre>
<p>Now we&#8217;ll need to edit the configuration file to get things set up.  Note!  You&#8217;ll need to STOP the daemon before editing the configuration file or your changes will not be made.  Here&#8217;s how you start and stop the daemon:</p>
<pre class="qoate-code">sudo /etc/init.d/transmission-daemon stop

sudo /etc/init.d/transmission-daemon start</pre>
<p>Open the configuration file for editing (again, make sure you stop the daemon before making edits):</p>
<pre class="qoate-code">sudo nano /etc/transmission-daemon/settings.json</pre>
<p>Some of the items that I really wanted to make sure were setup:</p>
<ul>
<li>Block List</li>
<li>RPC (Remote Access)</li>
<li>Seeding folder location on my shared drive</li>
</ul>
<p>I ran into file permissions problems and ended up doing the following things.</p>
<p>Added transmission user to users group:</p>
<pre class="qoate-code">sudo ​usermod -G users debian-transmission</pre>
<p>Opened the persmissions up on my seeding directory completely:</p>
<pre class="qoate-code">sudo chmod 777 /mnt/sharedrive/seeding</pre>
<p>Don&#8217;t forget to start your server back up again.  Now that everything is up and running you should be able to access your web UI at the following address:</p>
<div>
<pre class="qoate-code">http://your.server.ip.here:9091</pre>
</div>
<p>And if all that doesn&#8217;t help, try these other sites which helped me get things up and running properly:</p>
<ul type="disc">
<li><a href="http://www.danielandrade.net/2011/08/29/diy-home-ubuntu-nas-server/">http://www.danielandrade.net/2011/08/29/diy-home-ubuntu-nas-server/</a></li>
<li><a href="http://www.webupd8.org/2009/12/setting-up-transmission-remote-gui-in.html">http://www.webupd8.org/2009/12/setting-up-transmission-remote-gui-in.html</a></li>
</ul>
<p>Configuration File Examples:</p>
<ul type="disc">
<li><a href="https://trac.transmissionbt.com/wiki/EditConfigFiles">https://trac.transmissionbt.com/wiki/EditConfigFiles</a></li>
<li><a href="http://home.inestdia.com/localserver/transmission-daemononubuntulocalserver">http://home.inestdia.com/localserver/transmission-daemononubuntulocalserver</a></li>
</ul>
<p>&nbsp;</p>
<p><strong>Plex Media Server</strong></p>
<p>Plex Media Server is slowly growing on me.  For those who may not know what this is, it allows me to stream videos across my network to Android, Roku, etc.  As a new owner of a Roku, this is probably the <em>best </em>way to stream local media from your ubuntu NAS server.  It&#8217;s been a bit sluggish and buggy&#8230; up until a few days ago when they released an update.  They&#8217;ve clearly worked on the responsiveness and overall look &amp; feel.</p>
<p>Installing it on your ubuntu server is actually quite simple.</p>
<p>Open your sources list for editing (/etc/apt/sources.list):</p>
<pre class="qoate-code">sudo nano /etc/apt/sources.list</pre>
<p>Add the following to the file and exit:</p>
<pre class="qoate-code">deb http://www.plexapp.com/repo lucid main</pre>
<p>Then install with the following command:</p>
<pre class="qoate-code">sudo apt-get update

sudo apt-get install plexmediaserver</pre>
<p>Now, fire up a web browser and point it to:</p>
<pre class="qoate-code">http://your.server.ip.here:32400/manage</pre>
<p>&nbsp;</p>
<p><strong>To Be Continued&#8230;</strong></p>
<p>That&#8217;s it for now.  Later I&#8217;ll talk about setting up other miscellaneous items like a web server, etc.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.parmeter.net/ben/2012/03/19/the-great-ubuntu-nas-project-continued/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>the great ubuntu NAS project</title>
		<link>http://www.parmeter.net/ben/2012/03/08/the-great-ubuntu-nas-project/</link>
		<comments>http://www.parmeter.net/ben/2012/03/08/the-great-ubuntu-nas-project/#comments</comments>
		<pubDate>Thu, 08 Mar 2012 21:05:52 +0000</pubDate>
		<dc:creator>nebhead</dc:creator>
				<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://www.parmeter.net/ben/?p=827</guid>
		<description><![CDATA[Here we go folks.  Complete, yet half-baked documentation on how to setup your very own home NAS using free Linux software.  I know this has been written about before, and in fact I have pulled from many fine sources (see my acknowledgement below).  This is documented here mainly so I don&#8217;t forget how I did this.  It&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Here we go folks.  Complete, yet half-baked documentation on how to setup your very own home NAS using free Linux software.  I know this has been written about before, and in fact I have pulled from many fine sources (see my acknowledgement below).  This is documented here mainly so I don&#8217;t forget how I did this.  It&#8217;s not really for you &#8211; sorry internet.  Let&#8217;s get started:<br />
<span id="more-827"></span><strong></strong></p>
<p><strong>Step 1:</strong> First, goto ubuntu.com and download the latest ISO for ubuntu server.  Today I&#8217;m using Ubuntu Server 11.10 64-bit.  Burn the CD, create a bootable USB, whatever suits you best.   I chose to use a bootable CD, easy.</p>
<p><img class="size-full wp-image-872 alignleft" style="border-style: initial; border-color: initial;" title="Courtesy of Lexar.com" src="http://www.parmeter.net/ben/wp-content/uploads/2012/03/Echo_ZX_32GB.png" alt="Courtesy of Lexar.com" width="124" height="110" /></p>
<p><strong>Step 2:</strong> Select a boot device for your NAS.  In my case, I&#8217;m selecting a 16GB Lexar USB flash drive.  It&#8217;s really low profile and will plug right into the back of the system without any clutter.  It&#8217;s so tiny that it doesn&#8217;t run the risk of being bumped or dislodged from the back of the system.  No need to buy an expensive HDD to add to the system.  With USB flash drives with huge capacity being so ubiquitous and inexpensive, it was an attractive option.</p>
<p>&nbsp;</p>
<div><strong>Step 3:</strong> Boot system from newly created CD with the ubuntu server install.  Because I&#8217;m installing <em><strong>to</strong></em> a USB flash drive, I manually partitioned my drives.  There is a really good step-by-step guide <a href="http://www.ubuntugeek.com/step-by-step-ubuntu-11-04-natty-lamp-server-setup.html" target="_blank">here</a> on UbuntuGeek, which is for an older version of the install but it was close enough to fit my needs.  I have to say that the installation process was a bit convoluted when setting up the drive partitions.  Here&#8217;s what my drive situation looks like:</div>
<ul>
<ul>
<li>1.5TB HDD (/sda)</li>
<li>1.5TB HDD (/sdb)</li>
<li>16GB Lexar USB (/sdc)</li>
</ul>
</ul>
<p>I configured the 16GB Lexar USB drive first, since it is essentially my boot drive.  I made this drive primary, set the mount to /, set the file system to ext4 and made it bootable.  (later you&#8217;ll need to go into your BIOS setup to ensure that this device is in your boot device list such that it auto-boots to this device)  I used the entire 16GB of this drive for root.  Note:  It&#8217;s probably a really good idea to have your server restart after a power outage, so poke around in your BIOS settings to setup this behavior.  Usually it called &#8220;After G3 Enable&#8221;, or sometimes BIOS screens are a little less cryptic and actually state behavior after power-loss.</p>
<p>I configured the RAID as RAID 1 (mirroring), with two drives (members), as you can probably guess the 1.5TB HDD&#8217;s.  Ubuntu uses mdadm which I happen to be fairly comfortable using, but it&#8217;s awful nice that they will help you setup these devices upon install of the OS.   After installation you&#8217;ll find your array at /dev/md0 happily synching (hopefully) and you can check this via this command:</p>
<pre class="qoate-code">mdadm -D /dev/md0</pre>
<p>Time to install some software packages.  Again, also super nice, makes things easy to get started.  Here&#8217;s what the screen looks like (apparently there is bug in Ubuntu 11.10 which causes an extra option to show up called Ubuntu  usb or something of that sort &#8211; ignore that).<span style="text-align: center;"> </span></p>
<p style="text-align: center;"><a href="http://www.parmeter.net/ben/wp-content/uploads/2012/02/ubuntu-server-install-00.png"><img class="size-medium wp-image-829 aligncenter" style="margin-top: 5px; margin-bottom: 5px;" title="ubuntu-server-install-00" src="http://www.parmeter.net/ben/wp-content/uploads/2012/02/ubuntu-server-install-00-300x136.png" alt="" width="300" height="136" /></a></p>
<p>I chose OpenSSH, LAMP, and Samba for my server.  You may have other needs.  Follow the prompts and finish the installation.   This may take ages… I&#8217;m pretty impatient, but wow.  It&#8217;s probably due to the fact that I was installing from a CD to a flash drive.  Slow reads <em>and</em> writes.</p>
<p><strong>Step 4:</strong> Once you&#8217;ve rebooted, it&#8217;s time to do some house cleaning and getting things setup.  Here&#8217;s what I did:</p>
<p><span style="text-decoration: underline;">Configure a Static IP Address</span></p>
<p>(excerpt found here:  <a href="https://help.ubuntu.com/11.10/serverguide/C/network-configuration.html">https://help.ubuntu.com/11.10/serverguide/C/network-configuration.html</a>)</p>
<p>To configure your system to use a static IP address assignment, add the static method to the inet address family statement for the appropriate interface in the file <em>/etc/network/interfaces</em>.</p>
<pre class="qoate-code"> sudo nano /etc/network/interfaces</pre>
<p>The example below assumes you are configuring your first Ethernet interface identified as eth0. Change the address, netmask, and gateway values to meet the requirements of your network.</p>
<pre class="qoate-code">auto eth0

iface eth0 inet static

address 10.0.0.100

netmask 255.255.255.0

gateway 10.0.0.1

dns-nameservers 8.8.8.8 8.8.4.4</pre>
<p>By adding an interface configuration as shown above, you can manually enable the interface through the ifup command.</p>
<pre class="qoate-code">sudo ifup eth0</pre>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;">Update all software packages:</span></p>
<p>Open the sources.list file and uncomment any sources that you may want to use.  I found that with 11.10, it had defaulted to pretty much everything I wanted (including multi-verse, etc. )</p>
<pre class="qoate-code">sudo nano /etc/apt/sources.list</pre>
<p>To update the apt package database with the latest software lists type the following command:</p>
<pre class="qoate-code">apt-get update</pre>
<p>Then to install all the latest updated packages (if there are any) type this command:</p>
<pre class="qoate-code">apt-get upgrade</pre>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;">Mount the RAID Array and Make it Persistent (show up after reboot)</span></p>
<p>MDADM is a great, solid solution for RAID under Linux.  Now, since we have already configured a RAID array during the server install (and hopefully it is done syncing &#8211; see the display status command above), we can simply format and mount the array.  More details can be found in <a href="http://www.parmeter.net/ben/2007/07/28/raiding-the-archives/" target="_blank">one of my previous posts</a> or in <a href="http://www.howtogeek.com/51873/how-to-setup-software-raid-for-a-simple-file-server-on-ubuntu/" target="_blank">this article</a> form the How-to Geek.</p>
<p>Format the newly created RAID array:</p>
<pre class="qoate-code">sudo mkfs -t ext4 /dev/md0</pre>
<p>Create mount pount:</p>
<pre class="qoate-code">sudo mkdir /mnt/sharename

sudo chmod 777 /mnt/sharename</pre>
<p>Add it to /etc/fstab:</p>
<pre class="qoate-code">sudo nano /etc/fstab</pre>
<p>Add the following line to the end of the file:</p>
<pre class="qoate-code">/dev/md0  /mnt/sharename auto defaults 0 0</pre>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;">Configure Windows File Sharing (a.k.a. Samba, SMBD or CIFS) </span></p>
<p>The heart and soul of your new NAS will likely be Windows file sharing, which allows your other PC&#8217;s in the house (Mac, Linux, Android, Windows, etc.) to access your files over the network (that is unless you want to setup NFS, which is probably better, but likely only for the Linux users out there).  I found <a href="https://help.ubuntu.com/10.10/serverguide/C/samba-fileserver.html" target="_blank">this article</a> very helpful on the Ubuntu website.</p>
<p>Open the samba daemon configuration file for editing:</p>
<pre class="qoate-code">sudo nano /etc/samba/smb.conf</pre>
<p>Create a new section at the bottom of the file, or uncomment one of the examples, for the directory to be shared:</p>
<pre class="qoate-code">[sharename]

comment = Ubuntu File Server Share
path = /mnt/sharename
browsable = yes
guest ok = yes
read only = no
create mask = 0755</pre>
<p>Now that Samba is configured, the directory needs to be given ownership and the permissions changed. From a terminal enter:</p>
<pre class="qoate-code">sudo chown -R nobody:nogroup /mnt/sharename

sudo chmod -R 755 /mnt/sharename</pre>
<p>Finally, restart the samba services to enable the new configuration:</p>
<pre class="qoate-code">sudo restart smbd

sudo restart nmbd</pre>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;">Startup / Shutdown Beep (Needs Update)</span></p>
<p>Normally your server will likely be running headless (with no monitor attached).  And in this case it&#8217;s nice to have some kind of audible beep to indicate when a system is either shutting down or has started up (and is ready).  This is the part where I tell you that it <em>should </em>be simple.  Unfortunately I have yet to get this to actually work on my server.  I know my PC Speaker is working (the BIOS beeps on startup), but I cannot get <a href="http://www.howtoforge.com/ubuntu-home-fileserver-p3" target="_blank">these instructions</a> to work for me.  Your mileage may vary.  (leave me a comment if you have any clever ideas)</p>
<pre class="qoate-code">sudo apt-get install beep</pre>
<p>&nbsp;</p>
<p><strong>Other Useful Terminal Commands</strong></p>
<p>Check the status of your RAID Array:</p>
<pre class="qoate-code">sudo mdadm -D /dev/md0</pre>
<p>Reboot your server:</p>
<pre class="qoate-code">shutdown -r now</pre>
<p>Check your memory usage.  Remember, since we omitted a SWAP partition, we need to make sure that we&#8217;re not dangerously close to overflowing system memory.</p>
<pre class="qoate-code">free</pre>
<p>Don&#8217;t freak out if your system memory is fully utilized.  Linux is pretty heavily optimized to utilize the actual free memory as a file cache.  So if you subtracted the &#8220;cache&#8221; size from the used memory size you&#8217;ll get your actual used memory.</p>
<p><strong>Additional Considerations If converting from FreeNAS…</strong></p>
<p><strong></strong>I had backed up all of my data onto an external USB HDD on Freenas v0.7.2 (Sabanda) to transfer to the RAID array after it was setup.  FreeNAS 0.7.2 uses UFS and doesn&#8217;t really support EXT4 which is what really wanted to use, but luckily my ubuntu server also supports UFS.   For mounting A UFS partition from a FreeNAS 0.7.2.5543 (Sabanda)box based on FreeBSD 7.2, enter the following in your terminal:</p>
<pre class="qoate-code"> sudo mount -r -t ufs -o ufstype=ufs2 /dev/sdx1  /media/usbDrive/</pre>
<p>&nbsp;</p>
<p><strong>Stayed tuned for our next next installment, which will cover additional software installation like Web UI, Subsonic, Transmission (bittorrent), etc. </strong></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Resources &amp; Citations</strong></p>
<p><em>The internet helped me greatly in completing this project.  The following sites were referenced above but are compiled here for quick access.</em></p>
<ul>
<li><a href="http://www.ubuntugeek.com/step-by-step-ubuntu-11-04-natty-lamp-server-setup.html" target="_blank">http://www.ubuntugeek.com/step-by-step-ubuntu-11-04-natty-lamp-server-setup.html</a></li>
<li><a href="https://help.ubuntu.com/11.10/serverguide/C/network-configuration.html" target="_blank">https://help.ubuntu.com/11.10/serverguide/C/network-configuration.html</a></li>
<li><a href="http://www.parmeter.net/ben/2007/07/28/raiding-the-archives/" target="_blank">http://www.parmeter.net/ben/2007/07/28/raiding-the-archives/</a></li>
<li><a href="http://www.parmeter.net/ben/2007/07/28/raiding-the-archives/" target="_blank">http://www.howtogeek.com/51873/how-to-setup-software-raid-for-a-simple-file-server-on-ubuntu/</a></li>
<li><a href="https://help.ubuntu.com/10.10/serverguide/C/samba-fileserver.html" target="_blank">https://help.ubuntu.com/10.10/serverguide/C/samba-fileserver.html</a></li>
<li><a href="http://www.howtoforge.com/ubuntu-home-fileserver-p3" target="_blank">http://www.howtoforge.com/ubuntu-home-fileserver-p3</a></li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.parmeter.net/ben/2012/03/08/the-great-ubuntu-nas-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>switching from FreeNAS to Ubuntu Server</title>
		<link>http://www.parmeter.net/ben/2012/02/20/switching-from-freenas-to-ubuntu-server/</link>
		<comments>http://www.parmeter.net/ben/2012/02/20/switching-from-freenas-to-ubuntu-server/#comments</comments>
		<pubDate>Tue, 21 Feb 2012 05:22:19 +0000</pubDate>
		<dc:creator>nebhead</dc:creator>
				<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://www.parmeter.net/ben/?p=817</guid>
		<description><![CDATA[This is basically part two of my previous post about troubles in NAS-land.  That experience got me thinking about switching up my NAS solution.  Here&#8217;s why: FreeNAS v0.7.x is based on FreeBSD which is a fairly foreign OS to me.  Everything, I mean everything, that I do in that OS is a complete and total [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.parmeter.net/ben/wp-content/uploads/2012/02/freenas.jpg"><img class="size-full wp-image-820 aligncenter" style="margin-top: 5px; margin-bottom: 5px;" title="freenas" src="http://www.parmeter.net/ben/wp-content/uploads/2012/02/freenas.jpg" alt="" width="79" height="75" /></a><a href="http://www.parmeter.net/ben/wp-content/uploads/2012/02/ubuntu.jpg"><img class="size-medium wp-image-821 aligncenter" style="margin-top: 5px; margin-bottom: 5px;" title="ubuntu" src="http://www.parmeter.net/ben/wp-content/uploads/2012/02/ubuntu-300x77.jpg" alt="" width="300" height="77" /></a></p>
<p>This is basically part two of my previous post about troubles in NAS-land.  That experience got me thinking about switching up my NAS solution.  Here&#8217;s why:</p>
<ol>
<li>FreeNAS v0.7.x is based on FreeBSD which is a fairly foreign OS to me.  Everything, I mean everything, that I do in that OS is a complete and total learning experience.  While it&#8217;s easy to setup initially, debugging is a chore.  I&#8217;m much more comfortable in either a Windows or Linux environment.</li>
<li>FreeNAS v0.7.x has basically been EOL&#8217;d and is now in &#8220;legacy&#8221; support.  That leaves me wondering about security and stability issues when upgrading to new hardware (see my previous post).</li>
<li>FreeNAS v0.7.x transfer speeds have been shown to be a bit slower than (reference needed) other solutions for SAMBA or NFS.</li>
<li>FreeNAS v0.7.x uses UFS (<a href="http://en.wikipedia.org/wiki/Unix_File_System" target="_blank">Unix File System</a>).  Yeah… I don&#8217;t know either.  Mounting EXT4 or NTFS is not an option, but would be extremely handy when swapping data around.</li>
<li>FreeNAS v0.7.x has questionable USB drivers which seemed to hang on my system when doing large RSYNC or file copy sessions.  Bad.  Also… slooow.</li>
<li>FreeNAS v0.7.x has PHP4 and Lighttp instead of PHP5 and Apache2.  There were a bunch of cool web applications that I wanted to install on FreeNAS but didn&#8217;t because I didn&#8217;t want to hassle with installing PHP5 and Apache and screwing up the Web UI.  It looks messy and difficult.</li>
</ol>
<p>Given that I&#8217;m comfortable with Linux (Ubuntu specifically), I was eager to see if I could make the switch to something more Linux&#8217;y, and still have the nice features and flexibility of FreeNAS.  Here was what I wanted:</p>
<ol>
<li>I want to run the OS from a USB flash drive.  Well ideally it would be nice to run it from an SSD, but I&#8217;m not made of money.</li>
<li>I want a comparable Web UI to FreeNAS (huge selling point).  Needs to have the ability to manage shares, services, show me uptime, transfer rate, etc.</li>
<li>RAID 1 mirror capability is a must.  I have data that I want protected from a drive failure.  Redundancy is key to my strategy.</li>
<li>Services like SMB/CIFS, SSH, NFS, FTP, etc. are important to access the data.</li>
<li>File system flexibility.  I&#8217;d like the capability to attach new storage in different formats.  Linux gives me that flexibility.  EXT4 gives me the performance and the protection from issues like power-outages that killed my previous NAS solution dead.</li>
<li>Remote Bittorrent.  Gotta have it.</li>
<li>Subsonic (hell yes)</li>
<li>Exandability.  I want to install my own web apps, servers like Plex Server, Tonido, OwnCloud, and a host others that would have just been a pain in FreeNAS.</li>
<li>Good hardware support and regular security updates.</li>
<li>Good support community.</li>
</ol>
<p>Here was my final verdict:</p>
<ol>
<li>Yes, you can run Ubuntu Server from a USB flash drive.  Some folks have pointed out that USB flash drives may run the risk of wear-out and warn to not install an OS on a USB flash drive.  You can minimize the amount of writes that are targeted at the flash device by removing the swap partition (make sure you have enough system memory for this).  Others say that you should probably never run into a problem with a good quality USB device.</li>
<li>I started to look for alternative Web UI&#8217;s for server administration and I stumbled across a few.  I was most impressed by Ajenti (<a href="http://ajenti.org">http://ajenti.org</a>), however it&#8217;s still in an very early stage of development.  I&#8217;ll probably go with this, but Webmin appears to be pretty widely used UI and I may fall back on this to get more functionality.</li>
<li>Yup, I&#8217;ve done a lot with RAID Mirroring on Ubuntu in the past.  I&#8217;ll just dig up this old post (<a href="http://www.parmeter.net/ben/2007/07/28/raiding-the-archives/" target="_blank">raiding the archives</a>) and implement a mirror as I did before with MDADM.  Easy.</li>
<li>Check.  SMB/CIFS, SSH, NFS, FTP are all a snap to install on ubuntu.  Just pull from the repositories, configure and off we go.  Ajenti has some capability to manage these services from the Web UI as well.</li>
<li>Yes again.  Flexibility abounds.  I will choose EXT4 thank you very much.</li>
<li>Same as FreeNAS, I&#8217;ll pull in the latest Transmission Deamon.</li>
<li>Yup &#8211; and easier to install, upgrade and manage on Ubuntu.  It&#8217;s a deb package so I won&#8217;t have to much other than configure it once it&#8217;s installed.</li>
<li>Resounding yes.  I will have full flexibility to install the latest PHP, Apache, MySQL, etc… this means I can go crazy installing other fun projects on the NAS in the future.</li>
<li>Yes and yes.</li>
<li>Yes &#8211; while FreeNAS has a great community, Ubuntu has a bigger user base and a bigger support community.</li>
</ol>
<p>So that&#8217;s it.  I&#8217;ve made up my mind.   Ubuntu Server here we come.   It&#8217;s going to be quite a project to get this initially setup, but I think it will be an enriching and useful project.  It&#8217;ll open my home server up to new capabilities and hopefully enhanced performance.   FreeNAS is great, but it&#8217;s sort of like riding a bike with the training wheels on.  It&#8217;s time to ride on two wheels now.</p>
<p><em>P.S. I should also mention that during my research, I ran across OpenMediaVault (<a href="http://openmediavault.org/">http://openmediavault.org/</a>).   The original FreeNAS project forked into two projects.  The first fork was FreeNAS 8.0 based on FreeBSD8, which is aimed at higher-end server equipment.   I avoided this version because it is still in it&#8217;s infancy, requires a kind of ridiculous amount of power and it&#8217;s still based on FreeBSD.  I recently discovered that the second fork is actually a Debian Linux based fork aimed more at the home NAS market.   Now they have me second guessing things.  Since it&#8217;s based on debian, perhaps this would be the easier route… naw.   </em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.parmeter.net/ben/2012/02/20/switching-from-freenas-to-ubuntu-server/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>troubles in NAS-land</title>
		<link>http://www.parmeter.net/ben/2012/02/15/troubles-in-nas-land/</link>
		<comments>http://www.parmeter.net/ben/2012/02/15/troubles-in-nas-land/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 06:27:44 +0000</pubDate>
		<dc:creator>nebhead</dc:creator>
				<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://www.parmeter.net/ben/?p=810</guid>
		<description><![CDATA[If you&#8217;ve followed my blog in the past, you probably have noticed that I have been a big fan and user of FreeNAS for my home NAS needs.  FreeNAS is a great project and quite excellent for those who want a basic, easy to use, polished NAS OS for free.  I can&#8217;t speak enough to [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve followed my blog in the past, you probably have noticed that I have been a big fan and user of FreeNAS for my home NAS needs.  FreeNAS is a great project and quite excellent for those who want a basic, easy to use, polished NAS OS for free.  I can&#8217;t speak enough to how good FreeNAS is.  However, recently, I&#8217;ve had some challenges that caused me to re-think my home NAS strategy.</p>
<p>I should probably follow the old saying that &#8220;if it ain&#8217;t broke, don&#8217;t fix it&#8221;.  In this case, I totally disregarded that wise advice and &#8220;fixed&#8221; with wild abandon.  With my current NAS operating relatively glitch free for over a year on FreeNAS, of course it was time for some upgrading and tinkering.</p>
<p>It started out as an idea for offsite backup, which involved installing duplicity (which turned out to not be that hard), which presented some challenges.  More on that later.  I was also doing some large file transfer across my home network, which is gigabit but was struggling to achieve a decent transfer rate.  I decided after some research that my hardware was holding me back, it was probably my 2-3 year old chipset bottlenecking transfer speeds.  Fortunately, I had just decommissioned another system in my home with considerably greater horsepower.  That&#8217;d be great to replace this aging slow NAS system.  So backed up my data on the NAS to some old HD&#8217;s laying around the house (slowly… across the network), and switched to the new hardware.  Upgraded FreeNAS in the process to the latest stable v0.7.2.  Restored my config.  Good so far.</p>
<p>Then, my FreeNAS box started rebooting randomly.  Worse, it rebooted and hung while we were away in Hawaii for two weeks.  Nothing I hate worse than having no access to my tunes, let alone other data, and having a broken system that I can&#8217;t do anything about, a thousand miles away.  At first I thought I was getting power-outages.  But I discovered later that it was nothing to do with our power at the house.   After a look through syslogs, and some internet searching I found my problem.  <a href="http://sourceforge.net/apps/phpbb/freenas/viewtopic.php?f=78&amp;t=6428&amp;start=10" target="_blank">Corruption.</a></p>
<p>I was able to run fsck (file system check) on the RAID array and get the darn think back serviceable again… but the reboots continued.   What… the… hell.  I started to go through my mental checklist of what could be going wrong with the system.  Why the crazy random reboots?  And absolutely no warnings in the log files, no errors, no kernel panic, nothing.  Had to be something with the motherboard, cpu, memory or power-supply or something.  After a while I decided to replace the motherboard first… which forced me to replace the memory.  Two more variables removed.  Still, reboots.  Finally I replaced the power-supply.  Bingo &#8211; problem solved.   Why did I even bother to do an upgrade in the first place?!</p>
<p>Well, at least we are stable for now.  Stay tuned for part two… switching to Ubuntu Server from FreeNAS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.parmeter.net/ben/2012/02/15/troubles-in-nas-land/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>accessing your files on freenas from anywhere</title>
		<link>http://www.parmeter.net/ben/2012/01/16/accessing-your-files-on-freenas-from-anywhere/</link>
		<comments>http://www.parmeter.net/ben/2012/01/16/accessing-your-files-on-freenas-from-anywhere/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 08:54:28 +0000</pubDate>
		<dc:creator>nebhead</dc:creator>
				<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://www.parmeter.net/ben/?p=801</guid>
		<description><![CDATA[You may remember that I had posted about setting up a remote file server (via the web interface), a little while ago. Well I just stumbled across this post which talks about using secure FTP via the ssh tunnel. It&#8217;s dead simple to setup and is actually quite an elegant solution.  It does require FTP [...]]]></description>
			<content:encoded><![CDATA[<p>You may remember that I had posted about setting up a remote file server (via the web interface), a little while ago. Well I just stumbled across <a href="http://www.makeuseof.com/tag/set-freenas-server-access-files/" target="_blank">this post</a> which talks about using secure FTP via the ssh tunnel. It&#8217;s dead simple to setup and is actually quite an elegant solution.  It does require FTP software that supports SFTP, so it&#8217;s not quite as user friendly or configurable, but it&#8217;s great for power-users.  I think I audibly said, &#8220;duh!&#8221; when I stumbled upon this.  Also, it&#8217;s nice having the SSH capability exposed externally.  Note that the tutorial is for FreeNAS 8, but is totally applicable to FreeNAS 7 (if you&#8217;re like me an are sticking to the legacy server software).</p>
<p>And regarding security, I would definitely use a different port than the standard SSH port, at least externally. Otherwise you&#8217;ll get clobbered with traffic from hackers attempting to connect to your server for not so nice reasons.  You may want to consider using a keyfile as well &#8211; which makes it less convenient, but much more secure.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.parmeter.net/ben/2012/01/16/accessing-your-files-on-freenas-from-anywhere/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>a year of results</title>
		<link>http://www.parmeter.net/ben/2012/01/03/a-year-of-results/</link>
		<comments>http://www.parmeter.net/ben/2012/01/03/a-year-of-results/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 00:04:10 +0000</pubDate>
		<dc:creator>nebhead</dc:creator>
				<category><![CDATA[fitness]]></category>
		<category><![CDATA[musing]]></category>

		<guid isPermaLink="false">http://www.parmeter.net/ben/?p=790</guid>
		<description><![CDATA[The year 2011 just flew by.  I&#8217;m happy to report that after a year of dedication to a new weight loss strategy, I actually got some pretty good results.  Let&#8217;s re-wind a little.  Way back in April of 2011, I briefly touched on my efforts to lose some weight over the course of the year. [...]]]></description>
			<content:encoded><![CDATA[<p>The year 2011 just flew by.  I&#8217;m happy to report that after a year of dedication to a new weight loss strategy, I actually got some pretty good results.  Let&#8217;s re-wind a little.  Way back in <a href="http://www.parmeter.net/ben/2011/04/04/need-motivation/" target="_blank">April of 2011</a>, I briefly touched on my efforts to lose some weight over the course of the year.  Back then, I was talking about this new fad diet and how I had little motivation to exercise.  At the beginning of the year, I started the slow carb diet (inspiration from Tim Ferriss) and started meticulously documenting my weight and body fat percentage daily (also documented my measurements).  I&#8217;m proud to say I kept it all up over the entire year.</p>
<p>Only one thing has changed since then. I&#8217;m still on that fad diet and I still haven&#8217;t found my motivation to exercise.   However, my weight has dropped pretty drastically despite my sedentary nature.  I dropped over 40 pounds during the year to be more accurate.  That&#8217;s more than three (3) average sized bowling balls worth of extra weight that I was carrying with me everywhere, putting stress on my bones, my heart and my mind.</p>
<p>This is great and all, but there is another good 10 or so pounds that I need to drop to be back in the normal weight category (right now, I&#8217;m still overweight for a 6&#8217;1&#8243; dude).  So, this year I resolve to actually start that exercise at least a couple of times a week to move that body-fat percentage down even more, and hopefully lose those last 10 lbs in the process.  I&#8217;ve been thinking that getting back into running again might do the trick.  However, Suzy and turned me on to this whole <a href="http://suzyness.com/2011/12/30/the-damage/" target="_blank">rebounding</a> thing which involves a trampoline (how <em>fun</em> is that?).  While I feel pretty silly effectively bouncing on a tiny trampoline (and probably look pretty silly too), it leaves my muscles sore and jelly-like after only 20 minutes of jumping.  Seriously&#8230; even my abdominal muscles are sore.  <a href="http://www.rebound-aerobics.com/NASA_rebounder_report.htm" target="_blank">NASA can&#8217;t be wrong about this&#8230; </a></p>
<p>For additional motivation, I&#8217;m posting my 2011 data here (call it a <a href="http://twitter.com/#!/drewmagary/status/6702292082" target="_blank">public humiliation diet</a> tactic).  I apparently love fads&#8230; slow-carb, rebounding, public humiliation.  I&#8217;m such a chump.</p>
<p><a href="http://www.parmeter.net/ben/wp-content/gallery/2011-weight-loss-summary/2011-weightloss-graphic.jpg" title="" class="thickbox" rel="singlepic937" ><br />
	<img class="ngg-singlepic ngg-center" src="http://www.parmeter.net/ben/wp-content/gallery/cache/937__320x240_2011-weightloss-graphic.jpg" alt="2011-weightloss-graphic" title="2011-weightloss-graphic" /><br />
</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.parmeter.net/ben/2012/01/03/a-year-of-results/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>challenge accepted</title>
		<link>http://www.parmeter.net/ben/2011/11/28/challenge-accepted/</link>
		<comments>http://www.parmeter.net/ben/2011/11/28/challenge-accepted/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 20:44:33 +0000</pubDate>
		<dc:creator>nebhead</dc:creator>
				<category><![CDATA[family]]></category>
		<category><![CDATA[holidays]]></category>
		<category><![CDATA[musing]]></category>
		<category><![CDATA[updates]]></category>

		<guid isPermaLink="false">http://www.parmeter.net/ben/?p=780</guid>
		<description><![CDATA[Uncle Rick threw down the gauntlet during our yearly Parmeter Thanksgiving get-together, deep in the forested hills of Oregon. A challenge to post something (even if it is only a weak one liner) to their respective blogs. Well, here you go. It&#8217;s not much, but it will do. Now Uncle Rick, let&#8217;s see if you [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://parmeter.net/rick" target="_blank">Uncle Rick</a> threw down the gauntlet during our yearly Parmeter Thanksgiving get-together, deep in the forested hills of Oregon. A challenge to post <em>something</em> (even if it is only a weak one liner) to their respective blogs. Well, here you go. It&#8217;s not much, but it will do. Now Uncle Rick, let&#8217;s see if you can match your challenge as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.parmeter.net/ben/2011/11/28/challenge-accepted/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>remote web file manager for freenas</title>
		<link>http://www.parmeter.net/ben/2011/09/11/remote-web-file-manager-for-freenas/</link>
		<comments>http://www.parmeter.net/ben/2011/09/11/remote-web-file-manager-for-freenas/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 05:47:29 +0000</pubDate>
		<dc:creator>nebhead</dc:creator>
				<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://www.parmeter.net/ben/?p=754</guid>
		<description><![CDATA[Another geeky freenas related post today.  All those not interested in reading through techy garbage, please feel free to leave early.  For those of you here to learn about said techy garbage, please open your text books to page 204 and follow along. For some time now, I have been aware of the rather handy [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.parmeter.net/ben/wp-content/uploads/2011/09/ajaxplorer.jpg"><img class="alignleft size-medium wp-image-772" style="margin: 5px;" title="ajaxplorer" src="http://www.parmeter.net/ben/wp-content/uploads/2011/09/ajaxplorer-300x221.jpg" alt="" width="300" height="221" /></a>Another geeky freenas related post today.  All those not interested in reading through techy garbage, please feel free to leave early.  For those of you here to learn about said techy garbage, please open your text books to page 204 and follow along.</p>
<p>For some time now, I have been aware of the rather handy feature that Windows Home Server boasts with a web based file manager (I believe they call it Remote Web Access or some such generic name).  Being a stalwart FreeNAS guy, I was impressed, but didn&#8217;t let my jealousy shine through.  How cool is it that you can log into your NAS from outside the network and upload/download any file that is there via a spiffy web interface?  Very cool.  Want.</p>
<p>Sure, you can setup an FTP server, but I really don&#8217;t like exposing an FTP to the outside world.  Too many security issues with FTP.  Yes,  I know you can setup an SSH tunnel and do FTP, but that&#8217;s kinda boring and not everyone has the patience to setup their own SSH client, etc. Plus I wanted an easy way to allow my friends and/or family to log into the server to grab things like photos or videos or even upload their own files.  I&#8217;m certainly not going to get 99% of these folks to setup a secure FTP session via SSH.</p>
<p>Recently, I came across this <a href="http://feeds.gawker.com/~r/lifehacker/full/~3/C2I_U7N7gRs/how-to-turn-your-freenas-box-into-an-internet-pvr-with-sabnzbd-and-sick-beard" target="_blank">LifeHacker article</a> about setting up FreeNAS to run SickBeard and SABnzbd to do a sort of Internet PVR.  After reading this, and seeing the techniques they used to get this up and running I was suddenly inspired to work on the above project.  I knew there had to be a way to shoehorn something in.  So I began to look at my options.  I finally stumbled upon a slick PHP/Ajax based Web File Manager front end with decent security that would work for me and decided to give it a shot.  (<a href="http://ajaxplorer.info" target="_blank">Ajaxplorer</a>)</p>
<p>If you want to be the master of your domain, and show your Windows Home Server friends up, then this setup is for you.  Enough background, let&#8217;s get started.</p>
<p><strong>Get the Necessary Pieces:</strong></p>
<ul type="disc">
<li>Step 1: Go to the Ajaxplorer website and download the latest zip (<a href="http://ajaxplorer.info">http://ajaxplorer.info</a>).  As of the publication of this post, I downloaded Ajaxplorer v3.2.4 and I should also mention that I am using FreeNAS 0.7 in my configuration.  (sorry FreeNAS 8 folks, but I&#8217;m guessing these steps will work equally well on your server?)</li>
<li>Step 2: No step two?  Alright, on with it!</li>
</ul>
<p><strong>Configure FreeNAS:</strong></p>
<ul type="disc">
<li>Step 1: Open the admin web interface and navigate to the &#8220;Services&#8221; tab.</li>
<li>Step 2: Open &#8220;Webserver&#8221;</li>
<li>Step 3: Check the box to &#8220;Enable&#8221; your LightHTTPd webserver in the upper right hand corner (this doesn&#8217;t actually instantly enable anything, just allows you to start configuring)</li>
<li>Step 4: Choose HTTP from the protocol drop down (at least initially &#8211; we&#8217;ll talk about securing this before we poke a hole in your router and expose the NAS to the internet)</li>
<li>Step 5:  Select a port number (i.e. 1234).  (don&#8217;t select port 80, try not to conflict with other ports on the server and of course something between 0-64999)</li>
<li>Step 6: Choose webserver base directory (or document root).  I put mine on my mounted drives, rather than installing directly on the flash drive (OS drive).  For example:  \mnt\sharename\www\ (of course you will need to go and create this directory on your drive first)</li>
<li>Step 7: Leave Authentication and Directory Listing un-checked.</li>
<li>Step 8: Click the &#8220;Save and Restart&#8221; button.  You should get message stating: &#8220;The changes have been applied successfully&#8221; after a few tense seconds.</li>
</ul>
<p><strong>Install Ajaxplorer</strong></p>
<ul type="disc">
<li>Step 1: Unpack the ajaxplorer-3.x.x.zip into a directory off of your webserver base.  For example &#8220;. \www\ajxp&#8221;.  Confirm that all of the directories and files were created properly and that permissions were set properly (see this page for more details: <a href="http://www.ajaxplorer.info/wordpress/documentation-3/chapter-basics/">http://www.ajaxplorer.info/wordpress/documentation-3/chapter-basics/</a> ).</li>
<li>Step 2: Point your browser to your FreeNAS IP and new webserver port (i.e. http://192.168.1.101:1234/ajxp) to get started.   A diagnostic tool will be ran once to check that your configuration is ok.  On FreeNAS you&#8217;ll get some warnings letting you know that you won&#8217;t have image previews due to the lack of PHP5, etc.  Despite these warnings you should have a mostly functional web file manager installed.</li>
<li>Step 3: Click continue and you should see a warning telling you that the user « admin » has been created with the password « admin » : log in with this id/password, and go the the « Settings » panel to change the admin password.</li>
<li>Step 4: Configure your users and repositories.  (<a href="http://www.ajaxplorer.info/wordpress/documentation-3/chapter-features/gui-overview/">http://www.ajaxplorer.info/wordpress/documentation-3/chapter-features/gui-overview/</a> )</li>
</ul>
<p><strong>Additional Security Concerns</strong></p>
<p>I&#8217;m not much of a security expert, however it was absolutely essential to me that this be a decently secure solution.   I really don&#8217;t want people hacking around in my NAS from the outside.</p>
<p>In this configuration there are at least 3 caveats with regards to security:</p>
<ol type="1">
<li value="1">When using this interface over the internet, the traffic is unencrypted (as is your login and password).  You&#8217;ll want to setup a secure connection to your FreeNAS box and the easiest way to do this is to configure HTTPS on your box.  (<a href="http://www.freenaskb.info/kb/?View=entry&amp;EntryID=284">http://www.freenaskb.info/kb/?View=entry&amp;EntryID=284</a> ).  You&#8217;ll be self-signing your certificate, which means that your credentials will not be recognized by any reputable certificate authority &#8211; and that your browser will likely throw up all kinds of alarm bells when accessing your site.  But since you know you&#8217;re trustworthy, you can just ignore those warnings.  Do this step first such that you can generate the credentials, and the configuration file for your webserver &#8211; in the next step we&#8217;re going to use the newly created configuration as a base for a new webserver.  Just read on&#8230;</li>
<li>FreeNAS&#8217;s LightHTPPd does not support .htaccess files (which are for Apache), which means that you&#8217;ll need to go and lock down any sensitive directories (i.e. .\server\conf, etc. ) manually.  Although it seems it may not be necessary after poking around a bit more, better safe than sorry.  More information can be found here: <a href="http://redmine.lighttpd.net/wiki/1/Docs:ModAccess" target="_blank">http://redmine.lighttpd.net/wiki/1/Docs:ModAccess</a>.  I found that there are two configuration files under FreeNAS.  One for the WebUI and one for the web server that you just enabled.  You&#8217;ll want to edit the configuration file found here: \var\etc\websrv.conf.  Add something like this to the end of the file:<br />
<blockquote><p>$HTTP["url"] =~ &#8220;^/ajxp/server/conf&#8221; {<br />
url.access-deny = (&#8220;&#8221;)<br />
}</p></blockquote>
<p>Now, to my surprise, if you disable and re-enable the webserver via the web UI or reboot the system you&#8217;ll completely blow away any changes you made to the config file (http://sourceforge.net/apps/phpbb/freenas/viewtopic.php?f=86&amp;t=1941). This is apparently how FreeNAS is designed. So, here&#8217;s how I got around things. I made a copy of the <strong>websrv.conf</strong> file named <strong>mywebsrv.conf</strong> and instead of launching the default web server, launched my own via a config script. Do this by adding the following to System &gt; Advanced &gt; Command Scripts:</p>
<blockquote><p>/usr/local/sbin/lighttpd -D -f /var/etc/mywebsrv.conf -m /usr/local/lib/lighttpd</p></blockquote>
<p>Make this a <strong>post-init</strong> script meaning it runs after the system boots and initializes.  Ensure to add all of the directories that you would like to deny access to into the configuration file.  After you&#8217;re done with this step, make sure you disable the other default webserver via the web gui before you reboot the system. This should do the trick and forbid access to your sensitive directories.</li>
<li>Ajaxplorer comes with a standard Admin account creatively named &#8216;admin&#8217; so you&#8217;ll probably want to change that to avoid dictionary attacks.  I created a new account with admin privileges and a strong password and then deleted the admin account.</li>
</ol>
<p>If you&#8217;re reading this and can think of more, please do let me know so that I can plug those holes too.</p>
<p><strong>Poke a Hole in your Router</strong></p>
<p>Because everyone has a different type of router at home, I won&#8217;t even attempt to begin to tell you how to do this.  However, you&#8217;ll want to make sure that you port-forward whatever port you defined in your LightHTTPd configuration above.  You can use a different outside port if you desire, but I like to keep it simple and use the same port number.</p>
<p>Now you can access your stuff anywhere you have an Internet connection.  If you have a Dynamic DNS service to help you remember your IP, even better!</p>
<p><strong>Final Thoughts</strong></p>
<p>While I&#8217;m pretty happy with the results, I&#8217;m sure there are improvements that can be made to the installation etc.  Others have used Ajaxplorer in place of the Quixplorer that is currently running on FreeNAS (which can be used on the internal network).  Ajaxplorer can be a bit sluggish, and it doesn&#8217;t integrate perfectly with FreeNAS, but it gets the job done.  If you have any suggestions, tweaks or improvements let me know and I&#8217;ll include them here!  I hope this helps anyone that has been thinking of doing this.  It&#8217;s certainly been a learning experience for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.parmeter.net/ben/2011/09/11/remote-web-file-manager-for-freenas/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>waffle</title>
		<link>http://www.parmeter.net/ben/2011/08/22/waffle/</link>
		<comments>http://www.parmeter.net/ben/2011/08/22/waffle/#comments</comments>
		<pubDate>Mon, 22 Aug 2011 16:27:57 +0000</pubDate>
		<dc:creator>nebhead</dc:creator>
				<category><![CDATA[family]]></category>
		<category><![CDATA[gizmo]]></category>
		<category><![CDATA[vehicles]]></category>

		<guid isPermaLink="false">http://www.parmeter.net/ben/?p=737</guid>
		<description><![CDATA[Remember a couple of years back where I made a rather bold, stake-in-the-ground, statement in a blog post?  Back then, I had such a different, pre-dad point of view.  It was such an innocent time.  A time with boundless amounts of energy, optimism and vanity.  At the time, it was all about maintaining that youthful, kid-less [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.parmeter.net/ben/wp-content/uploads/2011/08/Honda-Odyssey-01.jpg"><img class="alignleft size-medium wp-image-751" style="margin: 5px;" title="Honda-Odyssey-01" src="http://www.parmeter.net/ben/wp-content/uploads/2011/08/Honda-Odyssey-01-300x146.jpg" alt="" width="300" height="146" /></a>Remember a couple of years back where I made a rather bold, stake-in-the-ground, statement in a <a href="http://www.parmeter.net/ben/2009/06/09/an-end-to-an-era/" target="_blank">blog post</a>?  Back then, I had such a different, pre-dad point of view.  It was such an innocent time.  A time with boundless amounts of energy, optimism and vanity.  At the time, it was all about maintaining that youthful, kid-less image.  It was about caring about style over function, performance over comfort.  At the time, a cross-over SUV seemed like a way to cling to those values, while getting some small level of practicality.</p>
<p>Mark your calendars (if you&#8217;re keeping track at home).  On August 12th, 2011 my will was finally broken and I have become a mini-van owner.  This post-dad point of view is 100% on-board with a mini-van and the lifestyle that it promises.  Mini-van&#8217;s are all about convenience and comfort.  They&#8217;re all about capacity and doors that open themselves with the push of a button.  They&#8217;re all about cup holders and arm rests and tinted windows.  They are about incrementally improving the family travel experience.</p>
<p>Just like last time, this is a new era.  An era that I fully admit that I resisted before but have come to completely embrace.  Next time I&#8217;m thinking about taking a stand on the topic, I&#8217;ll just remember this humbling moment when I waffled.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.parmeter.net/ben/2011/08/22/waffle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
