Showing posts with label hack. Show all posts
Showing posts with label hack. Show all posts

Wednesday, June 5, 2013

Linux Mint 15 and Amazon Video (This also affects other video sites)

I just bought a new drive for my HTPC, A 3tb WD Red, but that's for another post. I had Amazon video working on Mythbuntu (just had to install HAL) but installing HAL on my (fairly) fresh new Linux Mint 15 install didn't work. I finally figured it out, with some help of course

What I've found:
  1. Amazon's error is completely useless. It makes you think that you have the wrong version of flash.
  2. If you haven't already, you need to install hal and libhal1 "sudo apt-get install hal libhal1"
  3. Adobe has a guide for sorting out these problems once you figure out it's DRM related. Here the test page was the most helpful.
  4. The test page gave me the cryptic error 3322 - device binding failed. 
  5. I tried the solution found here, "rm -r ~.adobe/Flash_Player" it didn't work, but was needed later, after I actually fixed the problem
  6. It turns out HAL wasn't starting, I ran "sudo hald --daemon=no --verbose=yes" it spat out a bunch of errors and died. I found the solution here, I'm not sure it's a perfect solution, but I ran "sudo rm -r /etc/hal" then "sudo ln -sn /usr/share/hal /etc/hal" and HAL runs! I think I will copy rather than link it at some point, but that's what I did.
  7. I rebooted and the test page still doesn't work, I had to do step 5 again, now it works.
Whew, only took me half the night to figure that one out.

Notes:
I tried this on Linux Mint 14.1 and just installing HAL worked, I couldn't reproduce the problem on 15 by removing the /etc/hal directory. It's possible I corrupted something at some point, I'll try on a clean Mint 15 install sometime and report back.

I also got a 3323 error while HAL was broke, also fixed with #5.


Update: Only steps 2, 5, and 6 are necessary to solve the problem, the others are either diagnostics or irrelevant. (Thanks Douglas Roberts!)

Update 2: This affects other sites (Thanks NikAmi!), I don't really have the time to determine which ones myself, so I'll do a list and update it if anyone finds one that needs it (Post it in the comments). It may help someone else.
Known Sites Also Affected:
NBC Sports

Update 3: There is a package available (at least in Arch Linux's AUR) called HAL-Flash that lets you play DRM Flash content without needing the HAL package / daemon. I'm using it on both my laptop and HTPC and it seems to work fine.

Update 4: Chromium no longer supports NPAPI (netscape plugin API), pepper-flash doesn't work with protected files. Firefox still uses NPAPI and works with Amazon Prime Video. HD doesn't seem to work for me, but SD works fine. I'm not sure why.

Monday, December 26, 2011

Laptop on a wall

What do you do when you get a laptop with a broken screen? I priced a screen and it cost half a new laptop.

I've been using my laptop as a desktop for several years now and the biggest problem I've run into is the amount of space it takes up on my desk. I could shove it in a drawer or something, but then I can't turn it on...

A while back my father broke the screen on his laptop, after pricing a new screen he bought a new laptop, and the old one was buried in a closet. I've been pondering what to do with it ever since, it seemed a waste to just throw it out.

I finally decided to mod the power switch so it would be outside the case, then I could shove it somewhere and still turn it on and off, unfortunately it won't power on when the lid is closed. 

I've always liked "naked" electronics. All the components, right there for anyone to see, no silly plastic designed to look good, covering up an amazing array of traces, chips, caps, etc. So I tore it down, mounted it to the wall and hooked it up. I'm thinking about a plexiglass cover and some sort of frame to hide the wires eventually. I think it's cool, and I now have half my desk back.