<?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>Lonnie Knows Everything &#187; linux</title>
	<atom:link href="http://blog.oneduality.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.oneduality.com</link>
	<description>So you don&#039;t have to!</description>
	<lastBuildDate>Wed, 30 Nov 2011 19:37:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Linux Lightwave Render Farm: Getting BNR (butterfly netrender) to work in Debian, and possibly others.</title>
		<link>http://blog.oneduality.com/2009/01/14/getting-bnr-butterfly-netrender-to-work-in-linux/</link>
		<comments>http://blog.oneduality.com/2009/01/14/getting-bnr-butterfly-netrender-to-work-in-linux/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 13:51:21 +0000</pubDate>
		<dc:creator>Lonnie</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bnr]]></category>
		<category><![CDATA[lightwave]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.oneduality.com/?p=5</guid>
		<description><![CDATA[What can I say? it&#8217;s been somewhat of an adventure to get this functioning because the documentation is very sparse on the linux side! but after many hours of tinkering and with the help of Paul Lord and Joe Laffey, I&#8217;ve managed to get it running, and running well!  To give you an idea, a [...]]]></description>
			<content:encoded><![CDATA[<p>What can I say? it&#8217;s been somewhat of an adventure to get this functioning because the documentation is very sparse on the linux side! but after many hours of tinkering and with the help of Paul Lord and Joe Laffey, I&#8217;ve managed to get it running, and running well!  To give you an idea, a scene that used to render for me in just over 4 minutes can now be rendered out in just over a minute with the addition of two linux render nodes.</p>
<p>Hopefully this guide will help you get a Linux render farm in action using <a href="http://www.butterflynetrender.com/">Butterfly Net Render</a> as well!</p>
<p><span id="more-5"></span><br />
First of all I&#8217;ll give you a run down of my environment!</p>
<blockquote><p><strong>Render Controller:</strong></p>
<p>Windows XP Professional, 64 bit<br />
Lightwave 9.3<br />
Butterfly Netrender 4.x</p></blockquote>
<blockquote><p><strong>Linux Nodes:</strong></p>
<p>HP Proliant ML 250<br />
Quad Core Xeon, 2.33ghz<br />
Debian Linux (Etch)<br />
KDE<br />
Wine 1.0.1-174 (Could not get this to work with Wine 0.9)</p></blockquote>
<p><strong>Windows Configuration</strong></p>
<p>The first thing we did was install BNR and make sure that Linux support was selected, believe it or not, most people forget this step and don&#8217;t even realize it. If you forgot to do this, reinstall!</p>
<p>Follow the instructions and get the netrender folder shared, in our case, we shared it and then mapped a drive on the controller to that share called R:</p>
<p>Next, map another drive to your lightwave content folder and then map a drive to that share, in our case we lettered that one N:</p>
<p><strong>Linux Configuration:</strong></p>
<p>Install smbfs if it&#8217;s not already there, using apt-get install smbfs</p>
<p>Create two folders, I used /lightwave and /lightwave-content .. these will be our mount points</p>
<p>Mount the shared netrender (R:) folder to /lightwave, and mount the shared lightwave content folder (N:) to /lightwave-content</p>
<p>Set up wine drive letters, in my case, wine was installed as root so I did this by going into /root/.wine/dosdevices and creating some symlinks &#8230; make sure the drive letters match up with our windows controller, like so:</p>
<blockquote><p>ln -s /lightwave r:<br />
ln -s /lightwave-content n:</p></blockquote>
<p>Make a folder somewhere for the netrender software, I just made a folder called /home/netrender and copied bnrclient and bnetnode.lw in there, but rename bnetnode.lw to bnetnode.load</p>
<p>There will be a file in the /lightwave share called lwext9.cfg, in my case it&#8217;s /lightwave/NETRENDER/lw9intel/lwext9.cfg .. I copied this file to /lightwave/NETRENDER/lw9intel/lwext9lnx.cfg and then edited this new file..  I changed all the paths to linux paths because the instructions alluded to this, though I&#8217;m not sure this is necessary since lwsn will be fired off using wine .. so far I&#8217;ve not noticed any problems, so go ahead and do it, but remember that you&#8217;ve done it :)</p>
<p>Edit your bnetnode.load file back in /home/netrender .. I&#8217;ll go over some of the important variables.By the way, <strong>important note!</strong> the bnetnode.lw file that ships with bnrclient has one major problem with it .. some of the lines have tab characters after the ending semicolon, check for these and remove them! the semicolon <strong>MUST</strong> be the final character or you&#8217;ll have issues that make no sense.. just trust me on this.</p>
<blockquote><p><strong>CONTROLLER_IP,</strong> should be the IP address of the controller, I think this is straight forward</p>
<p><strong>COMPUTER_NAME</strong> and <strong>USERNAME</strong>, I set these both to rnode01 (or rnode02, rnode03&#8230; it doesn&#8217;t matter)</p>
<p><span style="text-decoration: line-through;"><strong>NODES</strong>, set this to the number of processors in the system! please note that each node consumes a license.</span>  SEE MY EDITS AT THE BOTTOM OF THIS ARTICLE</p>
<p><strong>MFLOPS, </strong>according to Paul, this variable is no longer used so delete it! (if using bnr 4.x especially)</p>
<p><strong>BNR_SCENEDIR, </strong>this is the linux path to the scene directory, in my case, /lightwave/NETRENDER/build</p>
<p><strong>BNR_FRAMEDIR, </strong>similarly, mine is /lightwave/NETRENDER/framesThe next few variables are important to get right, so rather than explain them, I&#8217;ll put my configright here on the blog and it&#8217;ll make sense! if it doesn&#8217;t, do it anyway and just make sure the paths are correct to your environment :)</p>
<p><strong>LINUX_LW_LWSN</strong>=wine &#8220;/lightwave/NETRENDER/lw9intel/programs/lwsn.exe&#8221;;</p>
<p><strong>LINUX_LW_CFG</strong>=R:/NETRENDER/lw9intel/lwext9lnx.cfg;</p>
<p><strong>LINUX_LW_TEMPDIR</strong>=/tmp;</p>
<p><strong>LINUX_LWCONTENTDIR</strong>=/lightwave-content;</p></blockquote>
<p>Note the command <strong>wine</strong> added to the front of  <strong>LINUX_LW_LWSN </strong>above, this is important and not documented.</p>
<p>Once you&#8217;ve done all this, from within KDE, you can launch bnrclient &#8230;</p>
<blockquote><p>cd /home/netrender;./bnrclient</p></blockquote>
<p>If all goes well, you won&#8217;t see any errors and you&#8217;ll see 4 nodes (in my case) connecting to the controller, assuming that the controller is running! ;)</p>
<p><strong>Controller Configuration:</strong></p>
<p>I&#8217;m a linux guy and another person in our office maintains the controller, but what I can tell you as that you&#8217;ll see these new nodes pop up in the list, you&#8217;ll need to right click and select properties on each of these fellas and set the platform to Linux Lightwave, which is on one of them tabs</p>
<p>You&#8217;ll also want to make sure in the scene properties, once you&#8217;ve added a scene that is, that you&#8217;re pointing to your shared drive letter .. in my case, N:</p>
<p><strong>Additional Tips:</strong></p>
<p>Windows XP Professional has a 10 concurrent tcp connection limit, so one thing that I did that helps limit the number of connections to the controller is to utilize our pre-existing linux file server&#8230; What you say? I&#8217;ll explain!</p>
<p>I mount the xp shares on the linux file server as mentioned above, and then I RE-SHARE those mount points in samba &#8230; follow me?  all my render nodes mount off of the file server at that point, which means I don&#8217;t have to have a seperate connection just for those shares.  At any time, only the file server is mounting those shares over a single connection..  Think about it, if you had 5 nodes mounting the directories, that&#8217;s 5 connections being used up.. with thise configuration, you could have 9 nodes running and it&#8217;d still only be a single connection for the shared drives, brilliant I know. :) </p>
<p>That should do it!</p>
<p>If you found this helpful, please consider a <a href="http://blog.oneduality.com/donate/">donation</a>!</p>
<p>If you have a question you&#8217;d like me to try to solve, go ahead and <a href="http://blog.oneduality.com/contact-us/">ask it </a>:)</p>
<p> </p>
<p><strong>Edit (number of nodes): </strong></p>
<p>In the first version above, I pointed out that nodes should be set to the number of CPU’s that you have in the machine, which is probably what was intended by the authors of the software, however, when you do this you end up maxing out the system which can cause it to freeze up entirely or drastically degrade performance.</p>
<p>I would configure as such:</p>
<p>1 Processor: Upgrade your system!<br />
2 Processors: 1 node<br />
3 Processors: 2 nodes<br />
4 Processors: 2 nodes for intensive scenes, 3 nodes for light renders.</p>
<p>Tweaking the number of nodes really makes a difference, we noticed that in our quad core machines that dropping the node count to two rather than four increased performance by about 30%</p>
<p>Also note that when I say &#8220;Processor&#8221; you could also consider that the total number of cores in the machine, if you have one physical processor but it&#8217;s dual core, then consider it 2 processors and configure a single node.</p>
<p><strong>Another Update:</strong></p>
<p>I noticed I was mentioned (albeit briefly) in the <a href="http://www.newtek.com/lightwave/newsletter.php?pageNum_monthlynews=1&amp;totalRows_monthlynews=5" target="_blank">January Newtek Newsletter</a> as an alternative to their <a href="http://lordtangent.blogspot.com/2007/01/running-lightwave-screamernet-lwsn.html" target="_blank">screamernet on wine article</a> ..</p>
<h4>Incoming search terms:</h4><ul><li>linux render farm</li><li>lightwave linux</li><li>render farm linux</li><li>butterfly net render linux</li><li>lightwave linux render</li><li>butterfly net render</li><li>lightwave render farm</li><li>butterfly net render crack</li><li>linux butterfly netrender</li><li>renderfarm case</li></ul><!-- SEO SearchTerms Tagging 2 plugin took 0.598 ms -->]]></content:encoded>
			<wfw:commentRss>http://blog.oneduality.com/2009/01/14/getting-bnr-butterfly-netrender-to-work-in-linux/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

