<?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>hzn!</title>
	<atom:link href="http://humphrey.za.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://humphrey.za.net</link>
	<description></description>
	<lastBuildDate>Tue, 01 May 2012 08:15:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>ESXi RDM mapping local SATA storage</title>
		<link>http://humphrey.za.net/2012/05/01/rdm-mapping-of-sata-storage/</link>
		<comments>http://humphrey.za.net/2012/05/01/rdm-mapping-of-sata-storage/#comments</comments>
		<pubDate>Tue, 01 May 2012 08:15:24 +0000</pubDate>
		<dc:creator>nitr8</dc:creator>
				<category><![CDATA[Wayne]]></category>

		<guid isPermaLink="false">http://humphrey.za.net/?p=308</guid>
		<description><![CDATA[My college suggested I just create 4 VMDK’s on each 3TB disks I have, at point blank refused to create 4 3TB VMDK’s (one of each drive) so I set about figuring out how to create Raw Device Mappings (RDMs) of the local SATA drives. There were a couple of posts on the net that...]]></description>
			<content:encoded><![CDATA[<p>My college suggested I just create 4 VMDK’s on each 3TB disks I have, at point blank refused to create 4 3TB VMDK’s (one of each drive) so I set about figuring out how to create Raw Device Mappings (RDMs) of the local SATA drives. There were a couple of posts on the net that got me a little closer, but no guide/article had the whole thing down, so here it is.</p>
<p><strong>Step 1</strong><br />
Once you had your drives installed, SSH to your ESXi box (now even easier in vSphere 4.1) and go to the /dev/disks directory. There, if you perform a ls -l, you’ll see your drives listed:</p>
<p>TODO [img]</p>
<p>Ignore the instances of your drives which show them as VM stores (vm1.*****). We want to look at the raw devices.</p>
<p><strong>Step 2</strong><br />
Now move to the /vmfs/volumes folder. Here you can see your existing local datastore(s). If, like me, you had a solitary hard-drive, you’ll just see localdisk01 or whatever you chose to name the local datastore:</p>
<p>TODO [img]</p>
<p><strong>Step 3</strong><br />
Now we are going to use the vmkfstools utility to create our RDM’s. Remember that a RDM is just another VMDK, but instead of the VMDK pointing to a xxx-flat.vmdk file (which is the actual virtual hard disk), the VMDK points to our physical device. Being as we still need to create this VMDK file we need to save it somewhere. Since we just have the one local datastore, we are going to create the RDM VMDK files in it’s root.</p>
<p>TODO [img]</p>
<p>The following command creates the RDM VMDK for us:</p>
<p>vmkfstools -z /vmfs/devices/disks//.vmdk</p>
<p>In my personal example below, I am creating an RDM called rdm_WD2DWCAVU0477582.vmdk and it is being stored in the location /vmfs/volumes/localdisk01/ I chose the name of the VMDK to match the name of the serial number of the physical drive (and what is shown in Step 1) to help with troubleshooting in the future when I get an inevitable drive failure). You can call your RDM’s whatever you wish.</p>
<p>The name of the RAW device (t10.ATA____WDC_WD10EARS2D00Z5B1__________________________WD2DCAVU0477582 in my example) you will have noted from Step 1 when you listed all local devices attached to your ESXi host. This is why the tech Gods created Copy n Paste! You will want to copy the full device name as shown in Step 1 in to the vmkfstools command.</p>
<p><strong>Step 4</strong><br />
Once you have repeated the steps for all of your local SATA drives, you can navigate to where you created the RDM’s (in my case /vmfs/volumes/localdisk01) and perform an ls -l *.vmdk to see the new VMDK’s you have created:</p>
<p>TODO [img]</p>
<p>Don’t panic – the xxx-rdmp.vmdk files will reflect the size of the RAW devices they are mapping to, but rest assured it will be taking no more space than a few bytes on your local disk!</p>
<p><strong>Step 5</strong><br />
You can now add your RDM’s to an existing VM. vSphere doesn’t recognise this as a true RDM (to a SAN) so you just browse the local disk datastore for the VMDK files that we created.</p>
<p>Edit the properties of an existing VM and click <strong>Add…</strong></p>
<p>TODO [img]</p>
<p><strong>Step 6</strong><br />
Select Use an <strong>existing virtual disk</strong> and click <strong>Next</strong> &gt;</p>
<p>TODO [img]</p>
<p><strong>Step 7</strong><br />
Click <strong>Browse</strong>. You now need to navigate your local datastore and select the VMDK’s that we created in Step 3).</p>
<p>Once complete you will be shown a confirmation window. Repeat Steps 5 through 7 to add additional RDM’s to your VM.</p>
<p><strong>TODO [img]</strong></p>
<p><strong>Step 8</strong><br />
You should now see your new Hard Disk’s in your VM and vSphere will correctly identify them as <strong>Mapped Raw LUN.</strong></p>
<p><strong>TODO [img]</strong></p>
<p><strong>NOTE:</strong> One thing I forgot to show in the screen shots, is that you should create your RDM’s on a new SCSI controller! You do this by simply selecting a new SCSI ID starting with 1:x instead of 0:x. Existing VMDK’s should be on SCSI Controller 0. Your RDM’s should be on SCSI controller 1. Although my screenshot shows 0:3 this should read 1:3.</p>
<p>You can now save your VM configuration. Your VM will now access the RAW SATA drives and be able to use things like SMART to monitor its health.</p>
]]></content:encoded>
			<wfw:commentRss>http://humphrey.za.net/2012/05/01/rdm-mapping-of-sata-storage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ESXi 5 &#8211; First Thoughts</title>
		<link>http://humphrey.za.net/2012/04/28/esxi-5/</link>
		<comments>http://humphrey.za.net/2012/04/28/esxi-5/#comments</comments>
		<pubDate>Sat, 28 Apr 2012 11:04:03 +0000</pubDate>
		<dc:creator>nitr8</dc:creator>
				<category><![CDATA[Wayne]]></category>

		<guid isPermaLink="false">http://humphrey.za.net/?p=300</guid>
		<description><![CDATA[SSH configuration To enable the local or remote ESXi Shell from the vSphere Client 1 Select the host, click the Configuration tab, and click Security Profile in the Software panel. 2 In the Services section, click Properties. 3 Select ESXi Shell and click Options. 4 Change the ESXi Shell options. 5 Click Start and stop...]]></description>
			<content:encoded><![CDATA[<p><strong>SSH configuration</strong></p>
<p>To enable the local or remote ESXi Shell from the vSphere Client<br />
1 Select the host, click the Configuration tab, and click Security Profile in the Software panel.<br />
2 In the Services section, click Properties.<br />
3 Select ESXi Shell and click Options.<br />
4 Change the ESXi Shell options.<br />
5 Click Start and stop with host. The change will take effect the next time you reboot the host.<br />
5 Click OK.</p>
<p>To suppress informational warnings related to SSH and ESXi shell access and set the timeout:<br />
Select the ESXi host in the Inventory.<br />
Click the Configuration tab.<br />
Under Software, click Advanced Settings.<br />
Click UserVars.<br />
Change the value of UserVars.SuppressShellWarning to 1.<br />
Change the value of UserVars.ESXiShellTimeOut to 60<br />
Click OK.</p>
<p><span style="color: #000000;"><strong><br />
</strong></span></p>
]]></content:encoded>
			<wfw:commentRss>http://humphrey.za.net/2012/04/28/esxi-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>napp-it &amp; openindiana</title>
		<link>http://humphrey.za.net/2012/04/27/napp-it-openindiana/</link>
		<comments>http://humphrey.za.net/2012/04/27/napp-it-openindiana/#comments</comments>
		<pubDate>Fri, 27 Apr 2012 10:31:01 +0000</pubDate>
		<dc:creator>nitr8</dc:creator>
				<category><![CDATA[Wayne]]></category>

		<guid isPermaLink="false">http://humphrey.za.net/?p=295</guid>
		<description><![CDATA[TBD Allowing root ssh logins to Solaris machines: There are currently 3 things you have to do to violate this security truism on openindiana: 1) Modify PermitRootLogin to yes in /etc/ssh/sshd_config. 2) Comment out the “CONSOLE=/dev/console” line in /etc/default/login. 3) Remove “;type=role” from the root entry in /etc/user_attr. Setup your ZFS Server ready to use:...]]></description>
			<content:encoded><![CDATA[<p>TBD</p>
<p><strong>Allowing root ssh logins to Solaris machines:</strong></p>
<p>There are currently 3 things you have to do to violate this security truism on openindiana:<br />
1) Modify PermitRootLogin to yes in /etc/ssh/sshd_config.<br />
2) Comment out the “CONSOLE=/dev/console” line in /etc/default/login.<br />
3) Remove “;type=role” from the root entry in /etc/user_attr.</p>
<p><strong>Setup your ZFS Server ready to use:</strong><br />
login as root and enter from home-directory<br />
wget -O &#8211; www.napp-it.org/nappit | perl<br />
reboot</p>
<p>Open a browser and enter http://serverip:81<br />
If you do not know your serverip, go back to console, login and enter: ifconfig -a<br />
If you need to manually start/ restart nappit in case of problems: /etc/init.d/napp-it restart [start,stop,restart]<br />
Manage your server, create a datapool with menu pool, create datasets (ZFS Folder, partitions) with menu ZFS folder<br />
and share these datasets from menu ZFS folder by klicking to the entry below SMB or NFS.</p>
]]></content:encoded>
			<wfw:commentRss>http://humphrey.za.net/2012/04/27/napp-it-openindiana/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSD &#8211; how to use a USB Stick as SWAP</title>
		<link>http://humphrey.za.net/2010/11/28/ssd-how-to-use-a-usb-stick-as-swap/</link>
		<comments>http://humphrey.za.net/2010/11/28/ssd-how-to-use-a-usb-stick-as-swap/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 12:20:55 +0000</pubDate>
		<dc:creator>nitr8</dc:creator>
				<category><![CDATA[Wayne]]></category>

		<guid isPermaLink="false">http://humphrey.za.net/?p=291</guid>
		<description><![CDATA[To save my SSD&#8217;s on none laptop pcs, i use a cheap USB stick for my swap. shred -v -n 1 -z /dev/sdX sudo mkswap /dev/sdX sudo swapon /dev/sdX sudo vi /etc/fstab add the following: /dev/sdX none swap sw 0 0 now run free: total used free shared buffers cached Mem: 1543508 463972 1079536 0...]]></description>
			<content:encoded><![CDATA[<p>To save my SSD&#8217;s on none laptop pcs, i use a cheap USB stick for my swap.<br />
<span id="more-291"></span><br />
shred -v -n 1 -z /dev/sdX<br />
sudo mkswap /dev/sdX<br />
sudo swapon /dev/sdX<br />
sudo vi /etc/fstab<br />
add the following:<br />
/dev/sdX   none  	   swap  	sw  		   0 	0</p>
<p>now run free:<br />
total           used       free               shared    buffers     cached<br />
Mem:       1543508     463972    1079536          0            18552      299028<br />
Swap:      1957880     0             1957880</p>
]]></content:encoded>
			<wfw:commentRss>http://humphrey.za.net/2010/11/28/ssd-how-to-use-a-usb-stick-as-swap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>our new home</title>
		<link>http://humphrey.za.net/2010/09/25/our-new-home/</link>
		<comments>http://humphrey.za.net/2010/09/25/our-new-home/#comments</comments>
		<pubDate>Sat, 25 Sep 2010 09:44:46 +0000</pubDate>
		<dc:creator>nitr8</dc:creator>
				<category><![CDATA[Wayne]]></category>

		<guid isPermaLink="false">http://humphrey.za.net/?p=275</guid>
		<description><![CDATA[This has been a long road&#8230;. We got the call today, our offer was the higest and accepted so we now have a new home Its a but far from home but its in the Alps so who cares? Located just outside Interlaken, this is a nice little project for Angela and I. We have...]]></description>
			<content:encoded><![CDATA[<p>This has been a long road&#8230;. We got the call today, our offer was the higest and accepted so we now have a new home <img src='http://humphrey.za.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Its a but far from home but its in the Alps so who cares?</p>
<p><span id="more-275"></span></p>
<p>Located just outside Interlaken, this is a nice little project for Angela and  I. We have big hopes for the place, It is divided into two places, but we plan on making it one big house, bottom floor (house1) will be the &#8220;sleeping&#8221; area, and the top floor (house2) will be the &#8220;living&#8221; area.</p>
<p>Specs:<br />
Canton &#8211; Bern<br />
Rooms &#8211; 8<br />
Size &#8211; 360 m2</p>
<p>So our new playground:<br />
Summer<br />
<img class="aligncenter size-full wp-image-283" title="map-summer" src="http://humphrey.za.net/wp-content/uploads/2010/09/map-summer.jpg" /><br />
Winter<br />
<img class="aligncenter size-full wp-image-283" title="map-summer" src="http://humphrey.za.net/wp-content/uploads/2010/09/map-winter.jpg" /></p>
<p>Here are some pics from the estate agent:<br />
<img class="aligncenter size-full wp-image-283" title="map-summer" src="http://humphrey.za.net/wp-content/uploads/2010/09/01.jpg" /><br />
<img class="aligncenter size-full wp-image-283" title="map-summer" src="http://humphrey.za.net/wp-content/uploads/2010/09/02.jpg" /><br />
<img class="aligncenter size-full wp-image-283" title="map-summer" src="http://humphrey.za.net/wp-content/uploads/2010/09/03.jpg" /><br />
<img class="aligncenter size-full wp-image-283" title="map-summer" src="http://humphrey.za.net/wp-content/uploads/2010/09/04.jpg" /><br />
<img class="aligncenter size-full wp-image-283" title="map-summer" src="http://humphrey.za.net/wp-content/uploads/2010/09/05.jpg" /><br />
<img class="aligncenter size-full wp-image-283" title="map-summer" src="http://humphrey.za.net/wp-content/uploads/2010/09/06.jpg" /><br />
<img class="aligncenter size-full wp-image-283" title="map-summer" src="http://humphrey.za.net/wp-content/uploads/2010/09/07.jpg" /></p>
]]></content:encoded>
			<wfw:commentRss>http://humphrey.za.net/2010/09/25/our-new-home/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>xbmc &amp; mysql = multi-room sync</title>
		<link>http://humphrey.za.net/2010/09/25/xbmc-mysql-multi-room-sync/</link>
		<comments>http://humphrey.za.net/2010/09/25/xbmc-mysql-multi-room-sync/#comments</comments>
		<pubDate>Sat, 25 Sep 2010 09:21:06 +0000</pubDate>
		<dc:creator>nitr8</dc:creator>
				<category><![CDATA[Wayne]]></category>

		<guid isPermaLink="false">http://humphrey.za.net/?p=266</guid>
		<description><![CDATA[The primary reason I decided to use mysql is because I am always reinstalling my htpc for testing purposes. I am sick an tired of loosing all my watched flags, re-scraping with 20 threads still takes around 6 hours. I therefore use mysql and also store the thumbnails on a nfs share but now my...]]></description>
			<content:encoded><![CDATA[<p>The primary reason I decided to use mysql is because I am always reinstalling my htpc for testing purposes. I am sick an tired of loosing all my watched flags, re-scraping with 20 threads still takes around 6 hours.  I therefore use mysql and also store the thumbnails on a nfs share but now my laptop, tv and desktop xbmc look alike and one change is replicated throughout. I had a couple of issues hence documenting how its done.<br />
<span id="more-266"></span><br />
I use a NAS &#8211; QNAP 509p for my storage, I already use MySQL on the QNAP so decided to use that not to use more resources on the htpc and remove a single point of failure.</p>
<h2>Setting up MySQL</h2>
<p>If you add the relevant section to advancedsettings.xml and start xbmc, it will create the relevant databases however with the default collation which is not  latin1_general_ci. For some reason I kept on getting:<br />
[cc lang='bash' ]ERROR: SQL: The table does not exist[/cc]</p>
<p>So, to get it all working is simple, I used mysql admin however, use phpMyAdmin as I have tested this and it works fine.</p>
<p>[cc lang='mysql' ]<br />
CREATE USER &#8216;xbmc&#8217; IDENTIFIED BY &#8216;xbmc&#8217;;<br />
CREATE DATABASE xbmc_music CHARACTER SET latin1 COLLATE latin1_general_ci;<br />
CREATE DATABASE xbmc_video CHARACTER SET latin1 COLLATE latin1_general_ci;<br />
GRANT ALL ON *.* TO &#8216;xbmc&#8217;;<br />
[/cc]<br />
Things are slow with large databeses, so I suggest greating an indiex. A index is a data structure that improves the speed of operations in a table. On the xbmc_music database:<br />
[cc lang='mysql' ]<br />
ALTER TABLE song ADD INDEX ix_idArtist(idArtist);<br />
ALTER TABLE song ADD INDEX ix_idGenre(idGenre);<br />
ALTER TABLE song ADD INDEX ix_idAlbum(idAlbum);<br />
[/cc]<br />
This reduced my Artist Look up by ~35 seconds (before &#8211; 35.4523 : after &#8211; 0.1138 )</p>
<p>That&#8217;s it for SQL, move on to configure xbmc.</p>
<h2>Setting up xbmc</h2>
<p>First thing is to update advancedsettings to tell xbmc to use MySQL<br />
[cc lang='bash' ]vi .xbmc/userdata/advancedsettings.xml[/cc]<br />
And add the following:<br />
[cc lang='xml' ]<br />
  <videodatabase><br />
    <type>mysql</type><br />
    <host>10.0.0.10</host></p>
<port>3306</port>
    <user>xbmc</user></p>
<pass>xbmc</pass>
   <name>xbmc_video</name><br />
  </videodatabase><br />
  <musicdatabase><br />
    <type>mysql</type><br />
    <host>10.0.0.10</host></p>
<port>3306</port>
    <user>xbmc</user></p>
<pass>xbmc</pass>
    <name>xbmc_music</name><br />
  </musicdatabase><br />
[/cc]<br />
Replace 10.0.0.10 with the relevent server thats hosing MySQL</p>
<p>Restart xbmc, and you good to rock and roll.</p>
<h2>Setting up thumbnails on NFS</h2>
<p>The reason for this is my Thumbnails is 2.3 GB and I don&#8217;t want to rebuild these on each pc, or on a reinstall.  I also use dds, which is hell fast, however needs to be built from the tbn which takes time.<br />
[cc lang='bash' ]<br />
du -h Thumbnails/<br />
2.3G	 Thumbnails/<br />
[/cc]<br />
You can use CIFS too, however I prefer nfs. Add your share to fstab:<br />
[cc lang='bash' ]sudo vi /etc/fstab[/cc]<br />
At the end add:<br />
[cc lang='bash' ]10.0.0.10:/Thumbnails /home/xbmc/.xbmc/userdata/Thumbnails nfs   soft,intr,rsize=8192,wsize=8192[/cc]<br />
Replace 10.0.0.10 with the relevant server that you have your nfs share on.</p>
<p>To save a bit of time if you already have thumbnails:<br />
[cc lang='bash' ]<br />
cd ~/.xbmc/userdata/<br />
mv Thumbnails Thumbnails-old<br />
mkdir Thumbnails<br />
sudo mount -a<br />
mv Thumbnails-old/* Thumbnails/<br />
rm -Rf Thumbnails-old<br />
[/cc]<br />
That&#8217;s it you now have xbmc using a remote MySQL database and storing yoru Thumbnails on a remote server to</p>
<h2>Using DX1 DDS</h2>
<p>This is simple, just add useddsfanart to advancedsettings.xml, this increases my switch times tenfold. I will never look back.</p>
<p>[cc lang='bash' ]vi .xbmc/userdata/advancedsettings.xml[/cc]<br />
And add the following:<br />
[cc lang='xml' ]<br />
  <useddsfanart>true</useddsfanart><br />
[/cc]</p>
]]></content:encoded>
			<wfw:commentRss>http://humphrey.za.net/2010/09/25/xbmc-mysql-multi-room-sync/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>SickBeard &amp; SABnzbs+</title>
		<link>http://humphrey.za.net/2010/09/22/sickbeard-sabnzbs/</link>
		<comments>http://humphrey.za.net/2010/09/22/sickbeard-sabnzbs/#comments</comments>
		<pubDate>Wed, 22 Sep 2010 10:08:19 +0000</pubDate>
		<dc:creator>nitr8</dc:creator>
				<category><![CDATA[Wayne]]></category>

		<guid isPermaLink="false">http://humphrey.za.net/?p=213</guid>
		<description><![CDATA[To get need to add blurb &#8230;. SickBeard &#038; SABnzbs+ on QNAP 509p Prerequisites Install the following qpks on the QNAP Optware &#8211; http://resources.qnap.com/~qnap/Storage/QPKG/X86/Optware_0.99.163_x86.zip Python &#8211; http://resources.qnap.com/~qnap/Storage/QPKG/X86/Python_2.7_x86.zip SABnzbdplus &#8211; http://resources.qnap.com/~qnap/Storage/QPKG/X86/SABnzbdplus_0.5.3_x86.zip Git [cc lang='bash'] ipkg update ipkg install git [/cc] Configure SABnzbdplus connect to http://NAS_IP:8800 Set the defaults for SABnzbdplus, change the port to 8082 Once...]]></description>
			<content:encoded><![CDATA[<p>To get need to add blurb &#8230;. SickBeard &#038; SABnzbs+ on QNAP 509p<br />
<span id="more-213"></span></p>
<h2>Prerequisites</h2>
<p>Install the following qpks on the QNAP<br />
<strong>Optware</strong> &#8211; http://resources.qnap.com/~qnap/Storage/QPKG/X86/Optware_0.99.163_x86.zip<br />
<strong>Python</strong> &#8211; http://resources.qnap.com/~qnap/Storage/QPKG/X86/Python_2.7_x86.zip<br />
<strong>SABnzbdplus</strong> &#8211; http://resources.qnap.com/~qnap/Storage/QPKG/X86/SABnzbdplus_0.5.3_x86.zip<br />
<strong>Git</strong><br />
[cc lang='bash']<br />
ipkg update<br />
ipkg install git<br />
[/cc]</p>
<h2>Configure SABnzbdplus</h2>
<p>connect to http://NAS_IP:8800<br />
Set the defaults for SABnzbdplus, change the port to 8082<br />
Once restarted go to http://NAS_IP:8082<br />
Select Config<br />
General<br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/sab-gen.png" /><br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/sab-folder.png" /><br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/sab-sever.png" /><br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/sab-rss.png" /><br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/sab-email.png" /><br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/sab-index.png" /><br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/sab-cat.png" /><br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/sab-sort.png" /><br />
Config &#8211;> Sorting<br />
Enable Series Sorting<br />
Set the Sort String to:<br />
%s.n/Season.0%s/%s.n.S%0sE%0e.%ext<br />
This will give you a nice name for example:<br />
Show.Name/Season.01/Show.Name.S01E05.avi</p>
<p>Sorting is done using replaceable values such as %sn for the show name.</p>
<table>
<tbody>
<tr>
<td><strong>Meaning</strong></td>
<td><strong>Pattern</strong></td>
<td><strong>Result</strong></td>
</tr>
<tr>
<td>Show Name</td>
<td>%sn</td>
<td>Show Name</td>
</tr>
<tr>
<td></td>
<td>%s.n</td>
<td>Show.Name</td>
</tr>
<tr>
<td></td>
<td>%s_n</td>
<td>Show_Name</td>
</tr>
<tr>
<td>Season Number</td>
<td>%s</td>
<td>1</td>
</tr>
<tr>
<td></td>
<td>%0s</td>
<td>01</td>
</tr>
<tr>
<td>Episode Number</td>
<td>%e</td>
<td>5</td>
</tr>
<tr>
<td></td>
<td>%0e</td>
<td>05</td>
</tr>
<tr>
<td>Episode Name</td>
<td>%en</td>
<td>Episode Name</td>
</tr>
<tr>
<td></td>
<td>Episode.Name</td>
<td>%e.n</td>
</tr>
<tr>
<td></td>
<td>%e_n</td>
<td>Episode_Name</td>
</tr>
<tr>
<td>File Extension</td>
<td>%ext</td>
<td>avi</td>
</tr>
</tbody>
</table>
<h2>Install SickBeard</h2>
<p>[cc lang='bash']<br />
cd /share/MD0_DATA/.qpkg<br />
git clone git://github.com/midgetspy/Sick-Beard.git &#8220;sickbeard&#8221;<br />
[/cc]<br />
Run SickBeard to create initial config file:<br />
[cc lang='bash']/usr/bin/python /share/MD0_DATA/.qpkg/sickbeard/SickBeard.py[/cc]<br />
once fully started hit ctrl+c</p>
<p>Edit the config file:<br />
[cc lang='bash']<br />
vi sickbeard/config.ini<br />
change web_port to 8081<br />
web_port = 8081<br />
[/cc]<br />
Start up SickBeard and finnish the configuration.<br />
[cc lang='bash']/usr/bin/python /share/MD0_DATA/.qpkg/sickbeard/SickBeard.py[/cc]<br />
Then go to ttp://NAS_IP:8081<br />
Select the Config Tab<br />
General | Episode Downloads | Search Providers | Notifications<br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/config-general.png" /><br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/config-episode.png" /><br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/config-provider-01.png" /><br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/config-provider-02.png" /><br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/config-provider-03.png" /><br />
<img class="aligncenter size-full wp-image-251" title="sab-gen" src="http://humphrey.za.net/wp-content/uploads/2010/09/config-notification.png" /><br />
Let SABnzbdplus startup script start SickBeard<br />
[cc lang='bash']vi SABnzbdplus/sabnzbd.sh[/cc]<br />
after:<br />
[cc lang='bash']<br />
# starting sabnzbd&#8230;<br />
echo &#8221; Daemonizing&#8230; &#8221;<br />
export LD_LIBRARY_PATH=&#8221;${QPKG_DIR}/lib/sabnzbd&#8221;<br />
${SABNZBD} ${OPTIONS}<br />
RETVAL=$?<br />
/bin/sleep 5<br />
[/cc]<br />
add:<br />
[cc lang='bash']<br />
echo &#8220;staring SickBeard&#8221;<br />
/usr/bin/python /share/MD0_DATA/.qpkg/sickbeard/SickBeard.py &#038;<br />
/bin/sleep 5<br />
[/cc]<br />
before:<br />
[cc lang='bash']<br />
echo &#8220;Shutting down ${QPKG_NAME}&#8230; &#8221;<br />
/bin/kill -9 `ps -ef | grep [S]ABnzbd | awk &#8216;{ print $1 }&#8217;` > /dev/null 2>&#038;1<br />
RETVAL=$?<br />
/bin/sleep 3<br />
[/cc]<br />
add:<br />
[cc lang='bash']<br />
echo &#8220;Shutting down SickBeard&#8221;<br />
/usr/bin/wget &#8220;http://10.0.0.10:8081/home/shutdown/&#8221; -O /dev/null<br />
/bin/sleep 2<br />
[/cc]<br />
Now stop and start SABnzbdplus via the qnap qui<br />
Home &#8211;> Applications &#8211;> QPKG Plugins &#8211;> SABnzbdplus<br />
Disable then Enable Again</p>
<p>Test to see if SABnzbdplus and SickBeard started up<br />
SickBeard &#8211; 8081<br />
SABnzbdplus &#8211; 8082</p>
]]></content:encoded>
			<wfw:commentRss>http://humphrey.za.net/2010/09/22/sickbeard-sabnzbs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Run Ember Media Manager on Ubuntu</title>
		<link>http://humphrey.za.net/2010/09/12/run-ember-media-manager-on-ubuntu/</link>
		<comments>http://humphrey.za.net/2010/09/12/run-ember-media-manager-on-ubuntu/#comments</comments>
		<pubDate>Sun, 12 Sep 2010 11:23:20 +0000</pubDate>
		<dc:creator>nitr8</dc:creator>
				<category><![CDATA[Wayne]]></category>

		<guid isPermaLink="false">http://humphrey.za.net/?p=234</guid>
		<description><![CDATA[Ember Media Manager (aka EMM or Ember) is an open source movie and TV Show collections management tool which initially has been created to use with XBMC, but it contains Modules for a few media center application, moreover it should virtually support most of the other media center application out there. It empowers home theater...]]></description>
			<content:encoded><![CDATA[<p>Ember Media Manager (aka EMM or Ember) is an open source movie and TV Show collections management tool which initially has been created to use with XBMC, but it contains Modules for a few media center application, moreover it should virtually support most of the other media center application out there. It empowers home theater enthusiasts to manage and organize their entire movie and TV Show collections. EMM will scrape movie and TV Show information (plot, cast, genre, studio, mpaa certification, etc) from various sites, together with posters, fanart, actor photos and even movie trailers. It also automatically extracts media meta data like resolution, codecs, audio and subtitle streams. EMM can also be used as a standalone movie organizer/cataloger, but the primary aim is to export all the data and images to a format which can then be imported into your favorite media center application. In order to achieve this, EMM stores all data and images in files which are saved next to the media files. Media center applications can pick up those files and import the information to their own internal database<br />
<span id="more-234"></span><br />
Install Pre-Reques<br />
[cc lang='bash']<br />
sudo add-apt-repository ppa:shiki/mediainfo<br />
sudo apt-get update<br />
sudo apt-get install mono-winforms-a11y libmono-microsoft-visualbasic8.0-cil libzen0 libmediainfo0 -y<br />
[/cc]<br />
Download the ember installer and execute it:<br />
[cc lang='bash']<br />
wget http://www.embermm.com/Updates/EmberSetup.exe<br />
mono EmberSetup.exe<br />
[/cc]<br />
After Instlation:<br />
[cc lang='bash']<br />
cd ember_instlation_folder<br />
sudo mono &#8220;Ember Media Manager.exe&#8221;<br />
[/cc]</p>
]]></content:encoded>
			<wfw:commentRss>http://humphrey.za.net/2010/09/12/run-ember-media-manager-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>From iPhone to Android – Samsung Galaxy S i9000</title>
		<link>http://humphrey.za.net/2010/09/01/from-iphone-to-android-%e2%80%93-samsung-galaxy-s-i9000/</link>
		<comments>http://humphrey.za.net/2010/09/01/from-iphone-to-android-%e2%80%93-samsung-galaxy-s-i9000/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 12:33:12 +0000</pubDate>
		<dc:creator>nitr8</dc:creator>
				<category><![CDATA[Wayne]]></category>

		<guid isPermaLink="false">http://humphrey.za.net/?p=223</guid>
		<description><![CDATA[Ok, so I did it. I went from my truly lovely iPhone (3Gs) to a Android phone. My choice is the Samsung Galaxy S i9000. So, how is the experience so far? Actually, I can say nothing else but good things about it. The Android OS feels just like…. natural. You realize quickly, that Google...]]></description>
			<content:encoded><![CDATA[<p>Ok, so I did it. I went from my truly lovely iPhone (3Gs) to a Android phone. My choice is the Samsung Galaxy S i9000. So, how is the experience so far?</p>
<p><span id="more-223"></span></p>
<p>Actually, I can say nothing else but good things about it. The Android OS feels just like…. natural. You realize quickly, that Google has put in a lot of efforts into this system. Actually, they put in a lot of efforts in their latest products (Chrome, Picasa, etc.). In any case, I could get everything running in short time.</p>
<p>If you have a Google (or Google Apps) account then synching and setting up the phone is a breeze. All you have to do is to enter your eMail address and password and your phone pulls all the eMail, Calendar and Contacts from Google. Nothing else to do there. I actually had a funny thing with Contact synching. Exchnage webdav support is also nice.  Quicker and easier to setup than the iPhone.</p>
<p>You can feel that Android was build for working with Google Apps. eMails come in almost as instantly as on any desktop app. GTalk is integrated also and you get notification going all over the place. One thing that Android has definitely gotten right, are the notification in general. They don’t only work for some applications, but work for about everything. This is especially useful if you are on Twitter (who isn’t? btw: follow me at @thenitai) and someone mentions you or is sending you a message. This works with Seesmic or Hootsuite and any other app. Very nice.</p>
<p>Another thing is the geo location functionality. Google Maps with direction just blows aways about everything you have seen before. Did you ever try to use Directions on the iPhone? The last time in London, I ended up in a total different place. Anyhow, all I’m saying is that Android is really a good system and if they continue like this, they will give everyone a run for their money (yes, Apple I mean you).</p>
<p>Not being a “game” guy, I did not play one game on it yet, but can imagine that the Galaxy screen just screams for it  Talking about the screen. WOW. This Super Alomed screen is just marvelous. The phone itself is bigger then the iPhone (3g and 4G) but just a little. Since it is lighter then the iPhone 4G you actually don’t feel a difference at all. Actually, you won’t even notice a big difference between the iPhone and the Samsung, until you start working with it and realize that Android is not just a “Linux” and “Geek” system, but a grown up operating system for the phone. And a fun one as well. Turn on “Live Wallpaper” and you know what I mean…</p>
<p>At the end, I recommend the phone wholeheartedly to everyone who is thinking of switching from the iPhone.</p>
<h2>Setup GPRS and MMS for Swisscom network</h2>
<p>If you, like me, have not bought the phone from Swisscom directly you have to setup the phone manually to be able to connect to any Internet service on 3G. Swisscom offers a “setup your device” website which will send you a SMS and will automatically configure the phone, but unfortunately the Samsung Galaxy can not be configured this way. Thus we have to do some hand work here.</p>
<p>Go to “Settings”, click on “Wireless and network” and then on “Mobile networks”. Within click on “Access Point Names”. You will probably see a black screen. Thus we will have to add a APN now. Click on the menu key and “New APN” (do it once for GPRS and one time for MMS). Then simply enter all the required paramaters according to the list below:</p>
<p>For GPRS:<br />
Name: Swisscom GPRS<br />
APN: gprs.swisscom.ch<br />
Proxy:<br />
Port:<br />
User name: gprs<br />
Password: gprs<br />
Server:<br />
MMSC:<br />
MMS-Proxy:<br />
MMS-Port:<br />
MCC: 228<br />
MNC: 01<br />
Authentication type:<br />
APN-Typ: Internet + MMS</p>
<p>For GPRS:<br />
Name: Swisscom MMS<br />
APN: event.swisscom.ch<br />
Proxy:<br />
Port:<br />
User name:<br />
Password:<br />
Server:<br />
MMSC: http://mms.natel.ch:8079<br />
MMS-Proxy: 192.168.210.2<br />
MMS-Port: 8080<br />
MCC: 228<br />
MNC: 01<br />
Authentication type:<br />
APN-Typ: MMS</p>
<p>That’s it. Now you should be able to see the “3G” sign in the upper menu bar and will be able to connect to Twitter et all on your mobile network.</p>
]]></content:encoded>
			<wfw:commentRss>http://humphrey.za.net/2010/09/01/from-iphone-to-android-%e2%80%93-samsung-galaxy-s-i9000/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android emulator on Ubuntu</title>
		<link>http://humphrey.za.net/2010/08/29/android-emulator-on-ubuntu/</link>
		<comments>http://humphrey.za.net/2010/08/29/android-emulator-on-ubuntu/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 07:14:50 +0000</pubDate>
		<dc:creator>nitr8</dc:creator>
				<category><![CDATA[Wayne]]></category>

		<guid isPermaLink="false">http://humphrey.za.net/?p=215</guid>
		<description><![CDATA[I have been considering ditching the iphone for a while now, to get the SDK EMU working was a must to see if I can get all the stuff I use on my iphone working in android (exchange support, train timetables etc.)This is the step-by-step instructions for how to install the Android emulator on Ubuntu...]]></description>
			<content:encoded><![CDATA[<p>I have been considering ditching the iphone for a while now, to get the SDK EMU working was a must to see if I can get all the stuff I use on my iphone working in android (exchange support, train timetables etc.)This is the step-by-step instructions for how to install the Android emulator on Ubuntu 10.04.<span id="more-215"></span></p>
<h2>Java? Java!</h2>
<p>You will need Java, the standard OpenJDK implementation will work just fine:</p>
<p>[cc lang='bash']sudo apt-get install openjdk-6-jdk[/cc]<br />
Once that&#8217;s installed, you might want to verify that it seems to work:</p>
<p>[cc lang='bash']java -version<br />
java version &#8220;1.6.0_18&#8243;<br />
OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-4ubuntu3)<br />
OpenJDK 64-Bit Server VM (build 16.0-b13, mixed mode)[/cc]</p>
<h2>Downloading the Android SDK</h2>
<p>Grab the latest Android SDK tarball from <a href="http://dl.google.com/android/android-sdk_r06-linux_86.tgz">here</a>, and install it somewhere under your home directory. Once you do that, you should add the newly-installed tools/ subdirectory to your search path, since you&#8217;re going to want to be running the android and emulator executables real soon now. Once you do that, naturally, log out and log back in to make sure you have the updated search path.<br />
[cc lang='bash']<br />
wget http://dl.google.com/android/android-sdk_r06-linux_86.tgz<br />
gzip -dc android-sdk_r06-linux_86.tgz | tar -xvf -[/cc]</p>
<p>And now, the real downloading starts.</p>
<h2>Adding the SDK components</h2>
<p>At this point, you need to download and install the SDK components for whatever versions of Android you want to support. Initially, you can tell that you have no SDK versions downloaded:</p>
<p>[cc lang='bash']android list<br />
Available Android targets:<br />
Available Android Virtual Devices:<br />
[/cc]<br />
So what you need to do is run the following, and select whatever versions of the SDK you&#8217;re going to need. Unless you&#8217;re being frugal, just select everything since you never know if you&#8217;ll need to support older versions:</p>
<p>[cc lang='bash']android update sdk[/cc]<br />
Depending on your download speed, take a break. Once the entire download is done, you can verify that it&#8217;s all there with:</p>
<p>[cc lang='bash']android list<br />
Available Android targets:<br />
id: 1 or &#8220;android-2&#8243;<br />
Name: Android 1.1<br />
Type: Platform<br />
API level: 2<br />
Revision: 1<br />
Skins: HVGA-P, QVGA-P, HVGA (default), QVGA-L, HVGA-L<br />
id: 2 or &#8220;android-3&#8243;<br />
Name: Android 1.5<br />
Type: Platform<br />
API level: 3<br />
Revision: 4<br />
Skins: HVGA-P, QVGA-P, HVGA (default), QVGA-L, HVGA-L<br />
id: 3 or &#8220;android-4&#8243;<br />
Name: Android 1.6<br />
Type: Platform<br />
API level: 4<br />
Revision: 3<br />
Skins: HVGA (default), WVGA854, WVGA800, QVGA<br />
id: 4 or &#8220;android-5&#8243;<br />
Name: Android 2.0<br />
Type: Platform<br />
API level: 5<br />
Revision: 1<br />
Skins: HVGA (default), WVGA854, WVGA800, WQVGA400, WQVGA432, QVGA<br />
id: 5 or &#8220;android-6&#8243;<br />
Name: Android 2.0.1<br />
Type: Platform<br />
API level: 6<br />
Revision: 1<br />
Skins: HVGA (default), WVGA854, WVGA800, WQVGA400, WQVGA432, QVGA<br />
id: 6 or &#8220;android-7&#8243;<br />
Name: Android 2.1-update1<br />
Type: Platform<br />
API level: 7<br />
Revision: 2<br />
Skins: HVGA (default), WVGA854, WVGA800, WQVGA400, WQVGA432, QVGA<br />
id: 7 or &#8220;android-8&#8243;<br />
Name: Android 2.2<br />
Type: Platform<br />
API level: 8<br />
Revision: 2<br />
Skins: HVGA (default), WVGA854, WVGA800, WQVGA400, WQVGA432, QVGA<br />
Available Android Virtual Devices:<br />
[/cc]<br />
So that tells us that we have support for various versions of Android, but no virtual devices yet. No problem. Time to create some virtual devices.</p>
<h2>Creating a virtual device or two</h2>
<p>A fairly simple procedure:</p>
<p>[cc lang='bash']android[/cc]<br />
Select &#8220;New,&#8221; give your new Android Virtual Device (AVD) a name and so on, but there&#8217;s one caution &#8212; apparently, there&#8217;s still a bug (reported by your humble author) that you can&#8217;t select an SD card image of size 2G or larger so just pick something smaller. Once that appears to be done, close the window and verify you have a new AVD (given some values I pulled out of thin air):</p>
<p>[cc lang='bash']android list avds<br />
Available Android Virtual Devices:<br />
Name: avd2.2<br />
Path: /home/rpjday/.android/avd/avd2.2.avd<br />
Target: Android 2.2 (API level <img src='http://humphrey.za.net/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /><br />
Skin: HVGA<br />
Sdcard: 1024M<br />
[/cc]</p>
<h2>Run the EMU!</h2>
<p>[cc lang='bash']emulator @avd2.2[/cc]<br />
Note that, the first time you run the emulator on a new AVD, it might take a while so be patient. And now, the fun part &#8212; installing a new app.</p>
<h2>Installing a new app on your emulator</h2>
<p>A detailed explanation of how to install a new Android app can be found here, but let&#8217;s keep it short. Assuming you have your new app in .apk file format, simply make sure your emulator is running:</p>
<p>[cc lang='bash']adb devices<br />
List of devices attached<br />
emulator-5554	device<br />
[/cc]<br />
at which point, install the app with:</p>
<p>[cc lang='bash']adb install [.apk filename here][/cc]<br />
whereupon the icon for your new app should show up in the emulator.</p>
]]></content:encoded>
			<wfw:commentRss>http://humphrey.za.net/2010/08/29/android-emulator-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

