The Surgery | The doctor is IN

TAG | Western Digital

I recently blogged about Western Digital’s new WD TV Live Media Streamer.

It’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.

“Samba” 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 Primary Domain Controller, so the Windows workstations on the network think they’re talking to a Windows PDC, when in actual fact they’re talking to a Linux system emulating a PDC, providing enormous flexibility and saving thousands of dollars in Microsoft licensing.  Pretty cool, huh?

But I digress.  At home, I have a Windows workgroup. I also have a Linux server running Fedora 9 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’m not like normal people. And I’m running a business from home and I need the flexibility which a Linux server affords.

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 “share” this drive on the network, so I could access it from the new WD TV Live.

This is not a tutorial in connecting USB devices and mounting external drives in Linux. Also, this isn’t a tutorial in setting Linux file and directory permissions. For help doing that, you’ll need to hit Google.

Anyway, my new drive was mounted in my Linux file system at “/home/ron/elements”. (Co-incidentally it’s a Western Digital ‘Elements’ external hard disk.) I didn’t have Samba installed, so I installed it like this:

yum install samba

“Yum” is the Yellow-Dog Updater which is an easy and safe way to install commonly-used Fedora packages via the internet. I added my username “ron” to the SMB users’ file, like this:

/usr/bin/smbpasswd -a ron

…and added a new, browsable share in the Samba config file, like this:

[elements]
comment = WD Elements Share
path = /home/ron/elements
public = yes
writable = yes
createmask = 0777
directorymask = 0777
browseable = yes
printable = no

Then I started Samba, and added it to the correct startup runlevels like this:

service smb start
service nmb start
chkconfig smb on
chkconfig nmb on

All good! I could see the share by browsing on a Windows machine to the IP address, like this:

\\192.168.2.2\elements

…BUT a hit a brick wall at this point.  There were two problems which I couldn’t resolve. The second, I suspected, was directly related to the first:

  1. I couldn’t browse the machine by its NetBIOS name, “derek”, which I’d specified in the smb.conf file, and
  2. The WD TV Live couldn’t see the Samba share.

Graeme Callaghan helped me over this hurdle; with another 5 minutes fiddling, I had the problem solved.

Graeme’s Fix for Samba – NetBIOS problems – don’t forget your DHCP daemon!

There were two settings in the Samba config file which I had left as the default, being “remmed out”.  These were:

wins support = yes
dns proxy = yes

I un-remarked these.

Then, I un-remarked a critical setting in my DHCP server’s configuration file, which was also on the same machine:

option netbios-name-servers  192.168.2.2;

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’s IP address.

Then I restarted dhcpd, smb & nmb. Low-and-behold, my Fedora server was suddenly browsable by its NetBIOS name; e.g.

\\derek\elements

Even better, The WD TV Live picked up the changes straight away.  The server “DEREK” was now available in my list of “Shared Folders” on the WD TV Live menu.

I needed to *turn off* a setting in the WD TV Live called Settings / Network Setting / Auto login to network share. Then I browsed to DEREK in the Video / Shared Folders list, entered my network credentials (which I had created earlier with the “smbpasswd” command) and verified I could see all the folders correctly and access the media OK. I then reset the Auto login to network share to ON so I wasn’t prompted for a username and password every time I tried to access this network resource.

There seems to be a lot of consternation on message boards about WD TV Live connecting to Samba shares. It’s easy when you know how (thanks again Graeme). Hopefully this is useful to someone.

For info, package versions are:

  • samba-3.2.11-0.28.fc9.i386
  • dhcp-4.0.0-22.fc9.i386

· · · · · ·

One of my New Year’s Resolutions was to cable a network socket to the lounge room, and a network socket to the bedroom.

This would enable me, in theory, to stream audio and video from my network to the television and sound system in my living room; and to stream audio and video from my network to the television in the master bedroom.

Why not just use wireless?

I’ve been using WiFi to the lounge room Media Centre for some time (well, years) now. It works adequately. But wireless technology is designed for portable devices, and in the case where I’ve got a Media Centre PC which never moves, the better option from a technical standpoint is to connect to the network using a wired network port. A fixed network connection is faster than wireless, more reliable, and my Media Centre won’t be competing with other wireless devices for bandwidth, using the same hotspot ‘legitimately’ (e.g. net books, smart phones etc.).

Conspiracy theorists that obsess about security will also agree that a wired network connection is a better option than wireless. I, however, do not obsess about such things. Honestly.

Yesterday I got out the fashionable white overalls, retrieved my toolbox from a bygone era and proceeded to cable new network points to the lounge room and the master bedroom. This involved much swearing, grunting, bashing-of-head-against-low-floorboards and grazed elbows, but I got there eventually.

In Australia, make sure any infrastructure cabling, at work or at home, is undertaken by a licensed cabler.  Like me.

Lounge Room – wired for internets!

I plugged the Media Centre into its new network port, and was pleased to see a noticeable improvement in network speed. I’ll keep using the PC as a Media Centre in the lounge room. It makes a lot of sense to me to have a networked PC connected to your television and sound system.

The Bedroom Solution

- or -

“How to browse internets and network file shares in your bedroom without a computer”

A PC in the bedroom, however, is a bit excessive (IMHO). So what’s the best way to access content on the network and stream it to the television?

I had my eye on a fashionable media streamer from Western Digital which Andrew spoke about on Tech Talk Radio in November. After seeing a demonstration, viewing a Blu-Ray rip over Andrew’s network in his lounge room, I was sold. The quality was great.

There are three versions of these little boxes, and I bought the most expensive one, the WD TV Live, which supports networking. This set me back $198 from JB Hi Fi.

Western Digital's WD TV Live

Western Digital's WD TV Live

The WD TV Live is a small unassuming box which provides an interface between your television and your computer network, with a nifty little remote control (yes, batteries are included!). All the WD TV Live needs is power and a nearby network connection, which I now have, thanks to yesterday’s wrangling.

The WD TV Live outputs to composite or component video (cables supplied) or HDMI (cable not supplied), in full HD 1080P video. When it powers-up, the WD TV Live finds shares on your computer network and lets you watch video and listen to music. It also has 2 x USB ports so you can connect external drives, memory sticks and the like.

Rear of the WD TV Live

Rear of the WD TV Live - from L to R: power, USB, HDMI, optical, LAN, composite out & component out

To get it going, all I needed to do was connect HDMI to my television, connect the blue network cable and plug-in the power. The WD TV Live did everything else, and the default settings are very usable. It found my network’s DHCP server, assigned itself an IP address, found my network shares and just started working.

Format Support

According to the documentation, supported video formats include AVI (Xvid, AVC, MPEG 1, 2 & 4, WMV9 & VC-1), MPG/MPEG, VOB, MKV (H.264, X.264, AVC, MPEG 1, 2 & 4, WMV9 & VC-1), TS / TP / M2T (MPEG 1, 2 & 4, AVC & VC-1), MP4/MOV (MPEG4 & H.264), M2TS & WMV9.

Supported image formats include JPEG, GIF, TIFF, BMP & PNG.

Supported audio formats include MP3, WAV/PCM/LPCM, WMA, AAC, FLAC, MKA, AIF/AIFF, OGG, Dolby Digital & DTS.

The WD TV Live also supports common playlist and subtitle formats, and it’s got the DLNA stamp of approval.

Andrew says he’s had huge success with MKV video formats, in terms of quality.

User Interface

Nice.  Fast and smooth.

WD TV Live - User Interface

There’s also a nice interface which streams content directly from Google’s video-sharing website YouTube, popular photo-sharing site Flickr and Live 365 internet radio. You can login to YouTube if you have an existing account.

WD TV Live - browsing YouTube with the built-in UI

WD TV Live - browsing YouTube with the built-in UI

My only gripe is the on-screen keyboard, which is clunky and frustrating. You’re driving it with the up/down/left/right arrows on the remote control, so I’m not really sure how Western Digital could improve on this. You only need to use the on-screen keyboard if you’re entering custom network settings, or user names and passwords for network shares and such things. Fortunately the WD TV Live remembers these settings, so you rarely need to use the on-screen keyboard.

Problems with HomeGroup Networking

Tech Talk’s Graeme Callaghan also purchased one of these little boxes some weeks ago. He told me that the only difficulties he has experienced have been with Windows 7 “HomeGroup” networking, which apparently does strange things, e.g. causing network shares to disappear, reappear then disappear again. Graeme said that after he disabled HomeGroup networking, in favour of traditional Windows workgroups, everything worked consistently and well. I’m sharing content off a Windows 7 Professional machine in traditional ‘workgroups’ mode and everything with the WD TV Live has been smooth-sailing.

The Verdict

Good.

Easy to set up; reliable; intuitive user interface; excellent playback quality. High WAF*. This is a media streamer which fills a fundamental hole in the digital lounge room.

Or, in this case, Dr Ron’s Digital Bedroom.

* Wife Acceptability Factor

· · · · · · · · ·

Theme Design by devolux.nh2.me