Wednesday, August 4, 2010

Techville: Wireless Windows Woes

I've never been a with-the-grain type of tech. This, I suspect, is because I tend to be a hacker in the original sense of the word. I want things to be efficient, even if that makes things a little ugly. Being a hacker, however, I usually manage to make things both functional and attractive. And speedy.

Also, I suspect it is because most people who come into IT jobs come straight out of a college education and into a corporate world, and both college and corporate are ruled by Windows. To many of these people, I suspect that a 20 GB operating system with no default usable software is acceptable, and I guess they think a fifteen minute boot time is worth the wait.

Fifteen minutes? Exaggeration?

Hardly. Not in this case.

See, we're all issued netbooks at my place of employment, and for good reason. We cover a lot of physical ground, and are often away from the office fixing computers for hours at a stretch. We need to update our trouble tickets in the meantime, so we bring along our netbooks with solid state drives (to improve mobility and decrease hardware damage from jostling) and update tickets while connected to the ubiquitous wireless network.

There are rules applied to the use of these netbooks, mostly surrounding security, and there's an image that gets blasted onto these machines that contains the OS (Windows XP SP2), a handful of useless software (does anybody still use iTunes 6, and what purpose does that hold at work if it's too old for iPhones?), and SafeBoot (disk encryption with some remote password recovery software). All of this software presumably meets the requirements of the security department, but it all conspired against me because (and I cannot stress this enough) I hate bloat.

Furthermore, wireless didn't work. This is a Dell Inspiron Mini 10 with a Broadcom wireless chipset in it, and I tried everything. I enabled and disabled services. I switched which applications were in control of the hardware. I fiddled with the wireless switch (which is Fn+F2 on this device). Nothing worked. In the end, every single program (including the Dell WLAN management software) informed me that although the hardware was present, recognized, had the proper drivers, and was working, it was detecting no wireless networks in range.

Every computer around me, including the expensive, oversized paperweight they call an iMac was detecting the aforementioned ubiquitous wireless networks (there are two). So why wouldn't my netbook see them?

I'd been planning on tartsenefeding my computer anyway (which is like defenestrating, but backward; I'm not throwing the device out of a window, I'm throwing Windows out of the device) because of my problem with the bloated OS image, but I decided to use this as a troubleshooting opportunity as well.

I put together a bootable flash drive with Ubuntu 10.04 on it and a 1 GB persistence file, and booted to it. I installed the Broadcom STA Wireless driver and rebooted. Thanks to the persistence file, the driver remained intact upon second boot, and I immediately had access to four wireless networks. For those not counting, that's two more than every other PC in the room saw. And for those wondering, both boots and the driver install took less time than it took to boot the native Windows image once.

Thanks to Ubuntu, my netbook runs faster and more stably than anybody else's in the office, and the hacker in me is satisfied without my ever having to hack anything. I realize, too, that Ubuntu isn't exactly a lightweight distro, and that Puppy (yes, I know it's really Ubuntu) or Knoppix or even a custom-built Slackware would almost certainly run faster and more stably. But considering the convenience factor of getting Ubuntu installed (20-30 minutes), its built-in support for encrypted file systems (a mandate for these netbooks), and its overall great appearance and performance, it's probably the best distro for this netbook at the moment.

Wednesday, March 10, 2010

How to almost get Netflix Watch Instantly to work in Linux

I can make Netflix Watch Instantly work on my Linux media center.

Almost. Yes, almost. No, I don't have it working. But I thought that with a little help from the community along with instructions on how I've gotten this far might help bring some support to the topic.

Here's how I did it.

  1. Start with your favorite Linux distribution and install the latest version of WINE. I have tried on version 1.1.40 with near success.
  2. Download the latest version of Firefox for Windows and install it into your WINE instance.
  3. Launch the WINE instance of Firefox and browse to about:config
  4. Get past the warning screen, then right-click in the main region. Click New → String. You'll be given two dialogues:
  5. In the first dialogue, enter general.useragent.override
  6. In the second dialogue, enter Mozilla/5.0 (X11; U; Windows NT 6.0; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6
  7. Close Firefox and relaunch it.
  8. Browse to netflix.com, log in, and go to the watch instantly page. Magically, you'll be transported beyond the "OS not supported" page you're used to, and you'll be given the option to install the Silverlight plugin. Do so.

It's about here that you'll notice a crash. Firefox in WINE doesn't like it when the Silverlight plugin tries to install and fails. When you repeat step 8, you'll notice that you actually get to the page where the video ordinarily plays, but the image is scrambled and Firefox soon crashes.

So here's the part where I ask for some support from the amazing Linux community. Does anybody have any suggestions as to where to go from here? I'm not sure what parts of the user agent string are being looked at, but it seems more like the Silverlight plugin for Firefox just doesn't work in WINE. How can we go about making Silverlight work?