<?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>The Surgery &#187; network</title>
	<atom:link href="http://www.drron.com.au/tag/network/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.drron.com.au</link>
	<description>The doctor is IN</description>
	<lastBuildDate>Sun, 11 Jul 2010 07:28:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A note about WDTV Live and Samba shares</title>
		<link>http://www.drron.com.au/2010/01/16/a-note-about-wdtv-live-and-samba-shares/</link>
		<comments>http://www.drron.com.au/2010/01/16/a-note-about-wdtv-live-and-samba-shares/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 09:38:52 +0000</pubDate>
		<dc:creator>Dr Ron</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[media streamer]]></category>
		<category><![CDATA[NetBIOS]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[WD TV Live]]></category>
		<category><![CDATA[Western Digital]]></category>

		<guid isPermaLink="false">http://www.drron.com.au/?p=138</guid>
		<description><![CDATA[I recently blogged about Western Digital&#8217;s new WD TV Live Media Streamer.
It&#8217;s going great guns, but I had some difficulty setting up Samba shares on my Linux server, and seeing these shares from the WD TV Live.
&#8220;Samba&#8221; is an implementation of the Server Message Block (SMB) networking protocol. Samba shares look like Windows shares to [...]]]></description>
			<content:encoded><![CDATA[<p>I recently blogged about <a href="http://www.drron.com.au/2010/01/08/western-digitals-wd-tv-live-robust-hd-media-player-with-high-level-waf/">Western Digital&#8217;s new WD TV Live Media Streamer</a>.</p>
<p>It&#8217;s going great guns, but I had some difficulty setting up <a href="http://en.wikipedia.org/wiki/Samba_(software)">Samba shares</a> on my Linux server, and seeing these shares from the WD TV Live.</p>
<p>&#8220;Samba&#8221; is an implementation of the Server Message Block (SMB) networking protocol. Samba shares look like Windows shares to a Windows workstation, and behave the same way. Samba can also be setup to do clever things like emulate a Windows <a href="http://en.wikipedia.org/wiki/Primary_Domain_Controller">Primary Domain Controller</a>, so the Windows workstations on the network think they&#8217;re talking to a Windows PDC, when in actual fact they&#8217;re talking to a Linux system emulating a PDC, providing enormous flexibility and saving thousands of dollars in Microsoft licensing.  Pretty cool, huh?</p>
<p>But I digress.  At home, I have a Windows workgroup. I also have a Linux server running <a href="http://fedoraproject.org/">Fedora 9</a> which I use for my internet gateway, firewall, DHCP, Network Address Translation (NAT) and other stuff. For most people, all this stuff is done by their ADSL router or similar device. But I&#8217;m not like normal people. And I&#8217;m running a business from home and I need the flexibility which a Linux server affords.</p>
<p>I wanted to have all my media on an external (portable) drive, connected to the Linux server, which is always on. Then I wanted to &#8220;share&#8221; this drive on the network, so I could access it from the new WD TV Live.</p>
<p>This is not a tutorial in connecting USB devices and mounting external drives in Linux. Also, this isn&#8217;t a tutorial in setting Linux file and directory permissions. For help doing that, you&#8217;ll need to hit Google.</p>
<p>Anyway, my new drive was mounted in my Linux file system at &#8220;/home/ron/elements&#8221;. (Co-incidentally it&#8217;s a <a href="http://www.wdc.com/en/products/products.asp?driveid=674">Western Digital &#8216;Elements&#8217; external hard disk</a>.) I didn&#8217;t have Samba installed, so I installed it like this:</p>
<pre style="padding-left: 30px;">yum install samba</pre>
<p>&#8220;Yum&#8221; is the <a href="http://en.wikipedia.org/wiki/Yellowdog_Updater,_Modified">Yellow-Dog Updater</a> which is an easy and safe way to install commonly-used Fedora packages via the internet. I added my username &#8220;ron&#8221; to the SMB users&#8217; file, like this:</p>
<pre style="padding-left: 30px;">/usr/bin/smbpasswd -a ron</pre>
<p>&#8230;and added a new, browsable share in the Samba config file, like this:</p>
<pre style="padding-left: 30px;">[elements]</pre>
<pre style="padding-left: 30px;">comment = WD Elements Share</pre>
<pre style="padding-left: 30px;">path = /home/ron/elements</pre>
<pre style="padding-left: 30px;">public = yes</pre>
<pre style="padding-left: 30px;">writable = yes</pre>
<pre style="padding-left: 30px;">createmask = 0777</pre>
<pre style="padding-left: 30px;">directorymask = 0777</pre>
<pre style="padding-left: 30px;">browseable = yes</pre>
<pre style="padding-left: 30px;">printable = no</pre>
<p>Then I started Samba, and added it to the correct startup runlevels like this:</p>
<pre style="padding-left: 30px;">service smb start</pre>
<pre style="padding-left: 30px;">service nmb start</pre>
<pre style="padding-left: 30px;">chkconfig smb on</pre>
<pre style="padding-left: 30px;">chkconfig nmb on</pre>
<p>All good! I could see the share by browsing on a Windows machine to the IP address, like this:</p>
<pre style="padding-left: 30px;">\\192.168.2.2\elements</pre>
<p>&#8230;BUT a hit a brick wall at this point.  There were two problems which I couldn&#8217;t resolve. The second, I suspected, was directly related to the first:</p>
<ol>
<li>I couldn&#8217;t browse the machine by its <a href="http://en.wikipedia.org/wiki/NetBIOS">NetBIOS</a> name, &#8220;derek&#8221;, which I&#8217;d specified in the smb.conf file, and</li>
<li>The WD TV Live couldn&#8217;t see the Samba share.</li>
</ol>
<p><a href="http://www.techtalkradio.com.au/graeme-callaghan.php">Graeme Callaghan</a> helped me over this hurdle; with another 5 minutes fiddling, I had the problem solved.</p>
<h2>Graeme&#8217;s Fix for Samba &#8211; NetBIOS problems &#8211; don&#8217;t forget your DHCP daemon!</h2>
<p>There were two settings in the Samba config file which I had left as the default, being &#8220;remmed out&#8221;.  These were:</p>
<pre style="padding-left: 30px;">wins support = yes</pre>
<pre style="padding-left: 30px;">dns proxy = yes</pre>
<p>I un-remarked these.</p>
<p>Then, I un-remarked a critical setting in my DHCP server&#8217;s configuration file, which was also on the same machine:</p>
<pre style="padding-left: 30px;">option netbios-name-servers  192.168.2.2;</pre>
<p>This setting controls NetBIOS name visibility on your network. If your Samba server is on a different physical machine, point the IP address in your DHCP config file to the Samba machine&#8217;s IP address.</p>
<p>Then I restarted dhcpd, smb &amp; nmb. Low-and-behold, my Fedora server was suddenly browsable by its NetBIOS name; e.g.</p>
<pre style="padding-left: 30px;">\\derek\elements</pre>
<p>Even better, The WD TV Live picked up the changes straight away.  The server &#8220;DEREK&#8221; was now available in my list of &#8220;Shared Folders&#8221; on the WD TV Live menu.</p>
<p>I needed to *turn off* a setting in the WD TV Live called<strong> Settings / Network Setting / Auto login to network share</strong>. Then I browsed to DEREK in the Video / Shared Folders list, entered my network credentials (which I had created earlier with the &#8220;smbpasswd&#8221; command) and verified I could see all the folders correctly and access the media OK. I then reset the <strong>Auto login to network share</strong> to ON so I wasn&#8217;t prompted for a username and password every time I tried to access this network resource.</p>
<p>There seems to be a lot of consternation on message boards about WD TV Live connecting to Samba shares. It&#8217;s easy when you know how (thanks again Graeme). Hopefully this is useful to someone.</p>
<p>For info, package versions are:</p>
<ul>
<li><strong>samba</strong>-3.2.11-0.28.fc9.i386</li>
<li><strong>dhcp</strong>-4.0.0-22.fc9.i386</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.drron.com.au/2010/01/16/a-note-about-wdtv-live-and-samba-shares/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
