<?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>Dustin&#039;s Blog &#187; Computing</title>
	<atom:link href="http://blog.dustinrue.com/archives/category/computing/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.dustinrue.com</link>
	<description>Mac, Linux and things in between</description>
	<lastBuildDate>Sat, 28 Jan 2012 15:04:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Announcing ControlPlane, context sensitive computing for OS X</title>
		<link>http://blog.dustinrue.com/archives/913</link>
		<comments>http://blog.dustinrue.com/archives/913#comments</comments>
		<pubDate>Fri, 29 Jul 2011 15:04:07 +0000</pubDate>
		<dc:creator>Dustin</dc:creator>
				<category><![CDATA[Computing]]></category>

		<guid isPermaLink="false">http://blog.dustinrue.com/?p=913</guid>
		<description><![CDATA[ControlPlane is a fork of MarcoPolo project that I&#8217;m officially releasing today.  You can learn more about ControlPlane at http://controlplane.dustinrue.com/]]></description>
			<content:encoded><![CDATA[<p>ControlPlane is a fork of MarcoPolo project that I&#8217;m officially releasing today.  You can learn more about ControlPlane at <a href="http://controlplane.dustinrue.com/">http://controlplane.dustinrue.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dustinrue.com/archives/913/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OS X Lion and netatalk</title>
		<link>http://blog.dustinrue.com/archives/909</link>
		<comments>http://blog.dustinrue.com/archives/909#comments</comments>
		<pubDate>Thu, 21 Jul 2011 23:53:04 +0000</pubDate>
		<dc:creator>Dustin</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Lion]]></category>
		<category><![CDATA[netatalk]]></category>
		<category><![CDATA[os x]]></category>

		<guid isPermaLink="false">http://blog.dustinrue.com/?p=909</guid>
		<description><![CDATA[I recently upgraded to Mac OS X Lion (10.7) and found that I couldn&#8217;t connect to my netatalk server anymore. Thanks to this blog post I was able to get Lion connected to my Linux based AFP server.]]></description>
			<content:encoded><![CDATA[<p>I recently upgraded to Mac OS X Lion (10.7) and found that I couldn&#8217;t connect to my netatalk server anymore. Thanks to <a href="http://www.trollop.org/2011/03/06/netatalk-afp-mac-os-x-10-7-lion/">this blog post</a> I was able to get Lion connected to my Linux based AFP server.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dustinrue.com/archives/909/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Today, March 31, 2011 is World Backup Day</title>
		<link>http://blog.dustinrue.com/archives/861</link>
		<comments>http://blog.dustinrue.com/archives/861#comments</comments>
		<pubDate>Thu, 31 Mar 2011 17:32:21 +0000</pubDate>
		<dc:creator>Dustin</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[World Backup Day]]></category>

		<guid isPermaLink="false">http://blog.dustinrue.com/?p=861</guid>
		<description><![CDATA[http://www.worldbackupday.net/ As good a day as any to start backing up your data or check that your backups are working.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.worldbackupday.net/">http://www.worldbackupday.net/</a></p>
<p>As good a day as any to start backing up your data or check that your backups are working.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dustinrue.com/archives/861/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alarmingly out of touch</title>
		<link>http://blog.dustinrue.com/archives/858</link>
		<comments>http://blog.dustinrue.com/archives/858#comments</comments>
		<pubDate>Wed, 30 Mar 2011 23:58:23 +0000</pubDate>
		<dc:creator>Dustin</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Tablets]]></category>
		<category><![CDATA[Craig Mundie]]></category>
		<category><![CDATA[Steve Ballmer]]></category>
		<category><![CDATA[Steve Jobs]]></category>

		<guid isPermaLink="false">http://blog.dustinrue.com/?p=858</guid>
		<description><![CDATA[Via Appleinsider.com &#8220;Today you can see tablets and pads and other things that are starting to live in the space in between (a PC and a smartphone),&#8221; Mundie said. &#8220;Personally, I don&#8217;t know whether that space will be a persistent &#8230;<p class="read-more"><a href="http://blog.dustinrue.com/archives/858">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.appleinsider.com/articles/11/03/30/microsoft_exec_says_tablets_like_apples_ipad_may_be_just_a_fad.html">Via Appleinsider.com</a></p>
<blockquote><p>&#8220;Today you can see tablets and pads and other things that are starting  to live in the space in between (a PC and a smartphone),&#8221; Mundie said.  &#8220;Personally, I don&#8217;t know whether that space will be a persistent one or  not.&#8221;</p></blockquote>
<p>Sorry Mr. Mundie, but I think you have your head in the sand on this one and I suppose I can understand why.  The tablet isn&#8217;t situated between the PC and the smartphone, it is <em>replacing</em> the PC.  This surely scares the hell of you.</p>
<blockquote><p>&#8220;Last year, Jobs compared the PC market to the U.S. automobile industry,  noting that most vehicles in America at first were trucks, because they  were driven by farmers. But as cars became more popular with the growth  of cities, and features like power steering and automatic transmission  were added, the truck came to represent a smaller number of vehicles on  the road. &#8220;PCs are going to be like trucks,&#8221; he said.</p>
<p>Microsoft Chief Executive Steve Ballmer later <a href="http://www.appleinsider.com/articles/10/06/03/microsoft_ceo_hopes_to_reenter_phone_market_disputes_pc_shift.html">fired back</a> with a different spin on Jobs&#8217; analogy: &#8220;There may be a reason they  call them Mack Trucks,&#8221; Ballmer said, referring to Apple&#8217;s Mac line of  computers. &#8220;But Windows machines are not going to be trucks.&#8221;"</p></blockquote>
<p>Apparently Ballmer took offense to Jobs stating that &#8220;PCs are going to be like trucks&#8221; and completely miss that what Jobs meant was that PCs would become much more of a utility device.  A lot of people buy trucks because they have a heavy job to do.</p>
<p>Of course, Ballmer&#8217;s response is to attempt to put Windows everywhere even if it means <a href="http://www.inc.com/tech-blog/yipes-windows-tablet-for-2012.html">allowing the market to pass them by</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dustinrue.com/archives/858/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>On Apple replacing samba with their own</title>
		<link>http://blog.dustinrue.com/archives/837</link>
		<comments>http://blog.dustinrue.com/archives/837#comments</comments>
		<pubDate>Sat, 26 Mar 2011 13:57:18 +0000</pubDate>
		<dc:creator>Dustin</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[GPLv3]]></category>
		<category><![CDATA[Patents]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[Signed Code]]></category>

		<guid isPermaLink="false">http://blog.dustinrue.com/?p=837</guid>
		<description><![CDATA[A lot of people think Apple is replacing samba with their own version because of the GPLv3 and patents.  I&#8217;m not so sure that is the case and I think this comment is more on the mark The reason is &#8230;<p class="read-more"><a href="http://blog.dustinrue.com/archives/837">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>A lot of people think Apple is replacing samba with their own version because of the GPLv3 and patents.  I&#8217;m not so sure that is the case and I think this comment is more on the mark</p>
<blockquote><p>The reason is that binaries in /System are signed with Apple&#8217;s keys,  which the haven&#8217;t made public. As far as I know this is also disallowed  by GPLv3.</p></blockquote>
<p>Of course it might also be that Apple isn&#8217;t satisfied with the progress of samba.</p>
<p><a href="http://http://www.osnews.com/thread?467967">Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dustinrue.com/archives/837/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Puppet to manage your infrastructure</title>
		<link>http://blog.dustinrue.com/archives/815</link>
		<comments>http://blog.dustinrue.com/archives/815#comments</comments>
		<pubDate>Tue, 08 Mar 2011 01:56:32 +0000</pubDate>
		<dc:creator>Dustin</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[Puppet]]></category>

		<guid isPermaLink="false">http://blog.dustinrue.com/?p=815</guid>
		<description><![CDATA[Great post on how to use puppet to manage your infrastructure.  This is something I need to get back to looking at and implementing. Source]]></description>
			<content:encoded><![CDATA[<p>Great post on how to use puppet to manage your infrastructure.  This is something I need to get back to looking at and implementing.</p>
<p><a href="http://www.engineyard.com/blog/2011/why-puppet-should-manage-your-infrastructure/?src=bitly">Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dustinrue.com/archives/815/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Did Steve Jobs bend the truth?  Yes and no, but mostly no</title>
		<link>http://blog.dustinrue.com/archives/803</link>
		<comments>http://blog.dustinrue.com/archives/803#comments</comments>
		<pubDate>Sat, 05 Mar 2011 04:01:05 +0000</pubDate>
		<dc:creator>Dustin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Ignorance]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[Tablets]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[iPad2]]></category>
		<category><![CDATA[Nook]]></category>
		<category><![CDATA[Steve Jobs]]></category>
		<category><![CDATA[Tablet]]></category>
		<category><![CDATA[XOOM]]></category>

		<guid isPermaLink="false">http://blog.dustinrue.com/?p=803</guid>
		<description><![CDATA[Seth Weintraub writing for CNNMoney.com wonders if Steve Jobs distorted the truth during his iPad 2 announcement.  He starts by trying to examine Job&#8217;s &#8220;First dual core tablet to ship in volume&#8221; comment. &#8220;First dual core tablet to ship in &#8230;<p class="read-more"><a href="http://blog.dustinrue.com/archives/803">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p><a title="Posts by Seth Weintraub" href="http://tech.fortune.cnn.com/author/sethweintraub/" target="_blank">Seth Weintraub</a> writing for <a href="CNNMoney.com" target="_blank">CNNMoney.com</a> wonders if <a href="http://tech.fortune.cnn.com/2011/03/03/steve-jobs-reality-distortion-takes-its-toll-on-truth/" target="_blank">Steve Jobs distorted the truth</a> during his iPad 2 announcement.  He starts by trying to examine Job&#8217;s &#8220;First dual core tablet to ship in volume&#8221; comment.</p>
<blockquote><p>&#8220;First dual core tablet to ship in volume.&#8221; That&#8217;s funny, <a href="http://tech.fortune.cnn.com/2011/01/31/review-dells-4g-streak-on-t-mobile/">I tested </a>a Dell (<a rel="external" href="http://money.cnn.com/quote/quote.html?symb=DELL">DELL</a>) Streak 7, which had a dual core Nvidia Tegra 2 chip<strong><em><a href="http://tech.fortune.cnn.com/2011/01/31/review-dells-4g-streak-on-t-mobile/"> in January</a></em></strong>. They&#8217;ve been shipping ever since on T-Mobile.</p>
<p>In volume.</p>
<p>Of course, the Motorola (<a rel="external" href="http://money.cnn.com/quote/quote.html?symb=MMI">MMI</a>) XOOM also has this same dual core processor and is certainly shipping in volume as well. In fact, I&#8217;ve been using an Android <strong><em>phone</em></strong> (the Atrix) with a dual core chip for weeks and it <a rel="external nofollow" href="http://www.engadget.com/2010/12/15/lg-optimus-2x-first-dual-core-smartphone-launches-with-android/" target="new">wasn&#8217;t the first</a> to ship in volume.  As for Apple (<a rel="external" href="http://money.cnn.com/quote/quote.html?symb=AAPL">AAPL</a>), they haven&#8217;t shipped <strong><em>one</em></strong> iPad 2 yet &#8212; iPad 2&#8242;s hit shelves on March 11.</p></blockquote>
<p>Seth isn&#8217;t the only one to latch onto this quote and try to debunk it but what a lot of people are failing to realize is that, while others may be shipping dual-core tablets, it&#8217;s very safe for Steve Jobs to say that Apple will ship <em>and sell</em> a higher volume of iPad 2&#8242;s than any other dual-core tablet available today simply based on sales of the first iPad.  Indeed, if previous iPad sales are any indication at all, iPad 2 is  going to be a huge hit. What other tablet device can claim that today?</p>
<p>And to say that Apple hasn&#8217;t shipped any iPads is completely naive.  Apple has a stock pile of second generation either en-route to stores or in stores already.  This is very common for any product.</p>
<p>Seth also tries to pick apart Jobs&#8217; &#8220;&gt;90% market share&#8221; bullet point.</p>
<blockquote><p>Apple would have needed to sell <strong><em>3.2 million</em></strong> more to reach 90% of 2010&#8242;s tablet market share against just Samsung <em><strong>alone (in triple the time)</strong></em>.   That&#8217;s not including all of the Android-powered Nooks out there, those  cheap $100 Androids you can buy at Walgreens or Amazon and even  Windows-powered Tablet PCs (which are mentioned two bullet points  above!).  If you choose to include the Kindle, Apple may not have even  reached 50% of the market.</p></blockquote>
<p>While he might have a point about the actual market share number his supporting arguments are just ridiculous.  First, the sales of &#8220;cheap $100 Androids&#8221; don&#8217;t even register, to the point where nobody is actually tracking them.  Second, there is no such thing as a Windows powered Tablet PC when you consider how tablets have come to be defined because of the iPad.  Nobody is selling a Windows powered tablet.  And last, attempting to bring in Kindle sales simply doesn&#8217;t make sense as the Kindle is a reading device, not a general purpose tablet device.  Talk about skewing data in your favor.  &#8220;Pot, meet kettle.&#8221;</p>
<p>Seth goes on to point out hardware specs and pricing.</p>
<blockquote><p>Perhaps Jobs could have also compared the iPad 2 to other Android  tablets&#8217; prices? Samsung&#8217;s Galaxy Tab and Dell&#8217;s Streak both now start  at $499 and have better cameras, 3G radios and GPS, which seem to  compete well with Apple&#8217;s $499 Wifi-only offering.  Reality distorted.</p></blockquote>
<p>Know why the Tab and the Streak both now start at $499?  Because they&#8217;re not selling.</p>
<p>But hey the XOOM has better specs right?</p>
<blockquote><p>But then consider that the XOOM has a much better, bigger 720P+ screen  compared to the iPad&#8217;s 1024&#215;768 job (it has less Retina™).</p></blockquote>
<p>Where Seth wants to pick on Jobs&#8217; use of the word &#8220;volume&#8221; saying it is subjective, so to is saying the XOOM&#8217;s screen is &#8220;much better.&#8221;  The iPad&#8217;s screen is an IPS panel giving it a much wider viewing angle where as the XOOM does not.  While it is true that the XOOM has a 720p display Seth, like so many other reviewers and Apple nay-sayers, fails to realize is that the iPad&#8217;s 4:3 format display makes much more sense than a 16:9 display format.  By giving a tablet a 16:9 display format you&#8217;ve essentially limited the device to a horizontal layout.  The iPads 4:3 format allows developers to create apps that favor either layout and still get good use from it.  Remember, the iPad is a general purpose device, not just some common movie player.</p>
<p>The only thing Seth got right in his troll piece is that Jobs misquoted Samsung&#8217;s CEO.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dustinrue.com/archives/803/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>When mdadm says &#8220;device busy&#8221; for no apparent reason</title>
		<link>http://blog.dustinrue.com/archives/748</link>
		<comments>http://blog.dustinrue.com/archives/748#comments</comments>
		<pubDate>Wed, 29 Dec 2010 00:26:41 +0000</pubDate>
		<dc:creator>Dustin</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[device mapper]]></category>
		<category><![CDATA[dmsetup]]></category>
		<category><![CDATA[RAID]]></category>
		<category><![CDATA[software RAID]]></category>

		<guid isPermaLink="false">http://blog.dustinrue.com/?p=748</guid>
		<description><![CDATA[I just spent that last couple of hours trying to figure out why I couldn&#8217;t create a new software RAID set on my Ubuntu 10.04 system. Long story short, it turned out to be device mapper grabbing hold of the &#8230;<p class="read-more"><a href="http://blog.dustinrue.com/archives/748">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>I just spent that last couple of hours trying to figure out why I couldn&#8217;t create a new software RAID set on my Ubuntu 10.04 system.  Long story short, it turned out to be device mapper grabbing hold of the drives at boot.  No amount of lsof would show that the devices were busy.  The key was running dmsetup table and seeing that the drives in question were indeed &#8220;locked&#8221; by the device mapper.</p>
<p>This thread was the key I needed to get it all figured out &#8211; http://www.mail-archive.com/linux-raid@vger.kernel.org/msg10661.html</p>
<p>After issuing dmsetup remove followed by the device name shown in dmsetup table I was off and running.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dustinrue.com/archives/748/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft is set to show off some more vaporware at the next CES</title>
		<link>http://blog.dustinrue.com/archives/746</link>
		<comments>http://blog.dustinrue.com/archives/746#comments</comments>
		<pubDate>Wed, 15 Dec 2010 05:13:27 +0000</pubDate>
		<dc:creator>Dustin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Rumors]]></category>
		<category><![CDATA[Tablets]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Clueless]]></category>
		<category><![CDATA[Lost]]></category>
		<category><![CDATA[Slide-out Keyboards]]></category>
		<category><![CDATA[Tablet]]></category>

		<guid isPermaLink="false">http://blog.dustinrue.com/?p=746</guid>
		<description><![CDATA[Microsoft is at it again. They&#8217;re making wild claims about having a number of iPad killers at 2011&#8242;s CES based on their Windows 7 OS. I really hope that they came up with a way to make Windows 7 more &#8230;<p class="read-more"><a href="http://blog.dustinrue.com/archives/746">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Microsoft is at it again.  They&#8217;re making wild claims about having <a href="http://www.informationweek.com/news/security/antivirus/showArticle.jhtml?articleID=228800543">a number of iPad killers</a> at 2011&#8242;s CES based on their Windows 7 OS.  I really hope that they came up with a way to make Windows 7 more appropriate for a tablet.  </p>
<p>But after reading this I dare say they haven&#8217;t</p>
<blockquote><p>The Times, citing unnamed sources, said the Samsung devices would be &#8220;similar in size and shape&#8221; to the iPad, but not as thin and equipped with a slide-out keyboard.</p></blockquote>
<p>A slide-out keyboard?!  Are f&#038;($ing kidding me?  Congratulations, you just made a more cumbersome laptop</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dustinrue.com/archives/746/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multicore Solr on Ubuntu 10.04</title>
		<link>http://blog.dustinrue.com/archives/690</link>
		<comments>http://blog.dustinrue.com/archives/690#comments</comments>
		<pubDate>Wed, 10 Nov 2010 04:56:42 +0000</pubDate>
		<dc:creator>Dustin</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Solr]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apache Solr]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Multicore]]></category>

		<guid isPermaLink="false">http://blog.dustinrue.com/?p=690</guid>
		<description><![CDATA[UPDATE: New post on getting Multicore Solr 3.4 running on Ubuntu 10.04 Been working a lot lately with the Apache Solr project. Solr is the popular, blazing fast open source enterprise search platform from the Apache Lucene project. Its major &#8230;<p class="read-more"><a href="http://blog.dustinrue.com/archives/690">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE</strong>: New post on getting <a href="http://blog.dustinrue.com/archives/927">Multicore Solr 3.4 running on Ubuntu 10.04</a></p>
<p>Been working a lot lately with the <a href="http://lucene.apache.org/solr/">Apache Solr</a> project.</p>
<blockquote><p>Solr is the popular, blazing fast open source enterprise search platform from the Apache Lucene project. Its major features include powerful full-text search, hit highlighting, faceted search, dynamic clustering, database integration, and rich document (e.g., Word, PDF) handling. Solr is highly scalable, providing distributed search and index replication, and it powers the search and navigation features of many of the world&#8217;s largest internet sites.</p>
<p>Solr is written in Java and runs as a standalone full-text search server within a servlet container such as Tomcat. Solr uses the Lucene Java search library at its core for full-text indexing and search, and has REST-like HTTP/XML and JSON APIs that make it easy to use from virtually any programming language. Solr&#8217;s powerful external configuration allows it to be tailored to almost any type of application without Java coding, and it has an extensive plugin architecture when more advanced customization is required.</p></blockquote>
<p>One of the features of Solr is called multicore. Multicore in the context of Solr simply means running multiple instances of Solr using the same servlet container allowing for separate configurations and indexes per core while still allowing administration through one interface. The <a href="http://wiki.apache.org/solr/CoreAdmin">Solr wiki</a> defines it as:</p>
<blockquote><p>Multiple cores let you have a single Solr instance with separate configurations and indexes, with their own config and schema for very different applications, but still have the convenience of unified administration. Individual indexes are still fairly isolated, but you can manage them as a single application, create new indexes on the fly by spinning up new SolrCores, and even make one SolrCore replace another SolrCore without ever restarting your Servlet Container.</p></blockquote>
<p>Although I&#8217;ve setup a few instances of Solr using tomcat, I thought I&#8217;d write out just how easy it is to get Solr up and running using Ubuntu Server 10.04 as well as talk about some of the scripts I&#8217;ve written to make the process of adding, removing and reloading cores easier. This post assumes you have already installed Ubuntu server with internet access as well having a basic understanding of how to use Ubuntu and Linux in general.</p>
<p><strong>Installing Solr</strong><br />
On your Ubuntu server, become root using &#8216;sudo su -&#8217; and issue the following command:</p>
<pre>apt-get install solr-tomcat curl -y</pre>
<p>This will install Solr from Ubuntu&#8217;s repositories as well as install and configure Tomcat. At this point, you have a fully working Solr installation that only needs to be tweaked for your environment. Solr itself lives in three spots, /usr/share/solr, /var/lib/solr/ and /etc/solr. These directories contain the solr home director, data directory and configuration data respectively.</p>
<p><strong>Enable Multicore</strong><br />
Enabling multicore is as simple as creating solr.xml in the /usr/share/solr directory and restarting Tomcat. Once you&#8217;ve done this, you only need to restart under certain conditions. Under normal operations, you should never need to restart Tomcat.</p>
<p>Using your favorite text editor create a file called solr.xml at /usr/share/solr with the following contents:</p>
<pre>&lt;solr persistent="true" sharedLib="lib"&gt;
 &lt;cores adminPath="/admin/cores"&gt;
 &lt;/cores&gt;
&lt;/solr&gt;</pre>
<p>Next, you need to ensure that Tomcat is able to write out new versions of the solr.xml file.  As cores are added or removed, this file is updated.  The following commands ensure Tomcat has write permissions to needed directory and file</p>
<pre>chown tomcat6.tomcat6 /usr/share/solr/solr.xml
chown tomcat6.tomcat6 /usr/share/solr</pre>
<p>That&#8217;s it.  You can now issue the following command to restart Tomcat and in turn Solr:</p>
<pre>service tomcat6 restart</pre>
<p><strong>Managing Cores</strong><br />
At this point you&#8217;re ready to start creating new cores. Before you can do so however you need create config files, directories and set permissions. In order to make this process a bit easier I created a set of scripts that do all of this for you based on a template config directory.</p>
<p>Create the template config directory by issuing the following command:</p>
<pre>cp -av /etc/solr/conf /etc/solr/conftemplate</pre>
<p>Next, edit /etc/solr/conftemplate/solrconfig.xml and find the dataDir option. Change the dataDir line from:</p>
<pre>&lt;dataDir&gt;/var/lib/solr/data&lt;/dataDir&gt;</pre>
<p>To:</p>
<pre>&lt;dataDir&gt;/var/lib/solr/data/CORENAME&lt;/dataDir&gt;</pre>
<p>This will ensure the scripts work correctly.</p>
<p><em>Creating a new Core</em></p>
<p>Below is the newCore script.  Copy and paste it into a file and call it newCore</p>
<pre>#!/bin/bash

# creates a new Solr core
if [ "$1" = "" ]; then
echo -n "Name of core to create: "
read name
else
name=$1
fi

mkdir /var/lib/solr/data/$name
chown tomcat6.tomcat6 /var/lib/solr/data/$name

mkdir -p /etc/solr/conf/$name/conf
cp -a /etc/solr/conftemplate/* /etc/solr/conf/$name/conf/
sed -i "s/CORENAME/$name/" /etc/solr/conf/$name/conf/solrconfig.xml
curl "http://localhost:8080/solr/admin/cores?action=CREATE&amp;name=$name&amp;instanceDir=/etc/solr/conf/$name"</pre>
<p>You can now create a new core by issuing the following command</p>
<pre>./newCore core0</pre>
<p>On screen you should get something similar to this if it was successful:</p>
<pre>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;response&gt;
&lt;lst name="responseHeader"&gt;&lt;int name="status"&gt;0&lt;/int&gt;&lt;int name="QTime"&gt;352&lt;/int&gt;&lt;/lst&gt;&lt;str name="core"&gt;core0&lt;/str&gt;&lt;str name="saved"&gt;/usr/share/solr/solr.xml&lt;/str&gt;
&lt;/response&gt;</pre>
<p>If you get any other response, particularly one about permissions, go back and review this post as you&#8217;ve most likely missed something.</p>
<p>This script has created a new Solr core with the configuration directory set to /etc/solr/conf/core0/conf.  There you can edit the schema.xml file.  To view the default schema.xml file, you can visit <a href="http://localhost:8080/solr/core0/admin/">http://localhost:8080/solr/core0/admin/</a>. Replace localhost with the hostname or IP address of your Solr server if it is not localhost.</p>
<p>Next time I&#8217;ll talk about how to import documents into a core as well as how to reload a core, swap cores or remove/unload a core and merge the index between two or more cores.</p>
<p>Update:  Here are the rest of the scripts I&#8217;ve written for Solr</p>
<p><strong>Reload a Core</strong></p>
<p>Save to a file called reloadCore <strong><br />
</strong></p>
<pre>#!/bin/bash

# reloads a Solr core
if [ "$1" = "" ]; then
  echo -n "Name of core to reload: "
  read name
else
  name=$1
fi

if [ ! -d /var/lib/solr/data/$name ] || [ $name = "" ]; then
  echo "Core doesn't exist"
  exit
fi

curl "http://localhost:8080/solr/admin/cores?action=RELOAD&amp;core=$name"</pre>
<p>&nbsp;</p>
<p><strong>Swap Cores</strong></p>
<p>Save to a file called swapCores<strong><br />
</strong></p>
<pre>#!/bin/bash

# swaps two Solr cores
if [ "$2" = "" ]; then
  echo -n "Name of first core: "
  read name1
  echo -n "Name of second core: "
  read name2
else
  name1=$1
  name2=$2
fi

if [ ! -d /var/lib/solr/data/$name ] || [ $name2 = "" ]; then
  echo "Core doesn't exist"
  exit
fi

curl "http://localhost:8080/solr/admin/cores?action=SWAP&amp;core=$name1&amp;other=$name2"</pre>
<p><strong>Unload/Delete a Core</strong></p>
<p>Save to a file called unloadCore<strong><br />
</strong></p>
<pre>#!/bin/bash

clear
echo "*************************************************************************"
echo "*************************************************************************"
echo
echo "            You are about to *permanently* delete a core!"
echo "                      There is no going back"
echo
echo "*************************************************************************"
echo "*************************************************************************"
echo
echo -n "Type 'delete core' to continue or control-c to bail: "
read answer

if [ "$answer" != "delete core" ]; then
 exit
fi
# removes a Solr core
if [ "$1" = "" ]; then
 echo -n "Name of core to remove: "
 read name
else
 name=$1
fi

if [ ! -d /var/lib/solr/data/$name ] || [ $name = "" ]; then
 echo "Core doesn't exist"
 exit
fi

curl "http://localhost:8080/solr/admin/cores?action=UNLOAD&amp;core=$name"
sleep 5
rm -rf /var/lib/solr/data/$name

rm -rf  /etc/solr/conf/$name</pre>
<p><strong>Merge Cores</strong></p>
<p>Save to a file called mergeCores<strong><br />
</strong></p>
<pre>#!/bin/bash

# merges two Solr cores
if [ "$2" = "" ]; then
  echo -n "Name of first core: "
  read name1
  echo -n "Name of second core: "
  read name2
else
  name1=$1
  name2=$2
fi

if [ ! -d /var/lib/solr/data/$name ] || [ $name2 = "" ]; then
  echo "Core doesn't exist"
  exit
fi

curl "http://localhost:8080/solr/$name1/update" --data-binary '' -H 'Content-type:text/xml; charset=utf-8'
curl "http://localhost:8080/solr/$name2/update" --data-binary '' -H 'Content-type:text/xml; charset=utf-8'
curl "http://localhost:8080/solr/admin/cores?action=mergeindexes&amp;core=$name1&amp;indexDir=/var/lib/solr/data/$name2/index"
curl "http://localhost:8080/solr/$name1/update" --data-binary '' -H 'Content-type:text/xml; charset=utf-8'
curl "http://localhost:8080/solr/$name2/update" --data-binary '' -H 'Content-type:text/xml; charset=utf-8'</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.dustinrue.com/archives/690/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

