Language Selection

English French German Italian Portuguese Spanish

Nook Ebook Reader & DRM

I'm 62 years old, and I've always been a reader. So, a few months ago, I finally coughed up the money to purchase a Barnes and Noble Nook ebook reader. Despite being a Linux user and occasionally enjoying tinkering with the innards of things, I haven't rooted my Nook, or installed any other OS variant—it is completely stock.

Unlike my wife's Amazon Kindle (with its E-Ink display), my Nook's battery doesn't last long. The other day I was reading a good short novel I had just downloaded from Barnes and Noble. I'm about half way through the novel when my Nook's battery level gets very low.

Here's the rub: my charger unit has an intermittent electrical short, and I can't immediately plug it in to continue reading while recharging my nook (a couple of days later, I fix this).

But I want to finish reading my novel now! I've got the time, and I'm really into the story.

So, I'll go to my desktop computer, download a copy to it, and continue reading. Good plan, but after going to the B & N (mynook.barnesandnoble.com/library.html) site and downloading the .epub file, I can't read it. Gibberish on the screen with a warning about DRM encryption protection. Searching on Barnes and Noble's web site reveals that they don't have a Linux DRM reader, only a client for Macintosh and Microsoft Windows PC's.

OK, among the 3 laptops and 3 desktop computers we have here at home, we do have one installation of Microsoft Windows (on a Linux-MS Win dual-boot machine). I use MS-Win for occasional video editing and transcoding, and I don't want to have to restart the computer and boot into windows, just to finish reading the novel.

I consider running WINE on my main desktop Linux machine, but by now, I'm getting really irritated about this stupid DRM.

Bear in mind, I DO NOT STEAL CONTENT. I don't unlawfully download music, software, videos, and books. And when I purchase content, I don't electronically copy and redistribute it to others.

Feeling frustrated, I start looking on the Internet for a way to decrypt my novel so I can continue reading it on my Linux box.

Turns out that someone has written a couple of Python scripts—one to generate the Barnes and Noble encryption key, and one to decrypt the DRM'd .epub books and content. These Python scripts rely on your having the PyCrypto library installed (the script also uses the PyTKinter library for GUI).

Now, Barnes and Noble use an insecure method to generate the key. It is generated from two pieces of information: your name, and your credit card number.

So, I download the two Python scripts (source), and check them through to see if they contain any nefarious code designed to transmit my credit card number to the bad guys—the code is clean.

I invoke the keygen script, and type-in my name and number. Then I run the decrypt program and tell it to work on my novel, not really expecting this to work. Wow—it works perfectly. And now, I've got decrypted copies I can read on any of my electronic devices.

And DRM still stinks. Not only that, it reeks.

And I finish reading the novel.

More in Tux Machines

Android Leftovers

Baidu puts open source deep learning into smartphones

A year after it open sourced its PaddlePaddle deep learning suite, Baidu has dropped another piece of AI tech into the public domain – a project to put AI on smartphones. Mobile Deep Learning (MDL) landed at GitHub under the MIT license a day ago, along with the exhortation “Be all eagerness to see it”. MDL is a convolution-based neural network designed to fit on a mobile device. Baidu said it is suitable for applications such as recognising objects in an image using a smartphone's camera. Read more

AMD and Linux Kernel

  • Ataribox runs Linux on AMD chip and will cost at least $250
    Atari released more details about its Ataribox game console today, disclosing for the first time that the machine will run Linux on an Advanced Micro Devices processor and cost $250 to $300. In an exclusive interview last week with GamesBeat, Ataribox creator and general manager Feargal Mac (short for Mac Conuladh) said Atari will begin a crowdfunding campaign on Indiegogo this fall and launch the Ataribox in the spring of 2018. The Ataribox will launch with a large back catalog of the publisher’s classic games. The idea is to create a box that makes people feel nostalgic about the past, but it’s also capable of running the independent games they want to play today, like Minecraft or Terraria.
  • Linux 4.14 + ROCm Might End Up Working Out For Kaveri & Carrizo APUs
    It looks like the upstream Linux 4.14 kernel may end up playing nicely with the ROCm OpenCL compute stack, if you are on a Kaveri or Carrizo system. While ROCm is promising as AMD's open-source compute stack complete with OpenCL 1.2+ support, its downside is that for now not all of the necessary changes to the Linux kernel drivers, LLVM Clang compiler infrastructure, and other components are yet living in their upstream repositories. So for now it can be a bit hairy to setup ROCm compute on your own system, especially if running a distribution without official ROCm packages. AMD developers are working to get all their changes upstreamed in each of the respective sources, but it's not something that will happen overnight and given the nature of Linux kernel development, etc, is something that will still take months longer to complete.
  • Latest Linux kernel release candidate was a sticky mess
    Linus Torvalds is not noted as having the most even of tempers, but after a weekend spent scuba diving a glitch in the latest Linux kernel release candidate saw the Linux overlord merely label the mess "nasty". The release cycle was following its usual cadence when Torvalds announced Linux 4.14 release candidate 2, just after 5:00PM on Sunday, September 24th.
  • Linus Torvalds Announces the Second Release Candidate of Linux Kernel 4.14 LTS
    Development of the Linux 4.14 kernel series continues with the second Release Candidate (RC) milestone, which Linus Torvalds himself announces this past weekend. The update brings more updated drivers and various improvements. Linus Torvalds kicked off the development of Linux kernel 4.14 last week when he announced the first Release Candidate, and now the second RC is available packed full of goodies. These include updated networking, GPU, and RDMA drivers, improvements to the x86, ARM, PowerPC, PA-RISC, MIPS, and s390 hardware architectures, various core networking, filesystem, and documentation changes.

Red Hat: ‘Hybrid Cloud’, University of Alabama, Red Hat Upgrades Ansible and Expectations