Set up Kubuntu 12.10 and an HP printer for batch scanning in Xsane

This process needs to be much easier, but until then, here’s a script to get you set up. This is an update of an older post here: http://thetarah.com/2010/10/12/how-to-batch-scan-using-xsane/ to make this more intuitive. Instead of having you follow a long list of instructions, I’ve been testing out scripts to get my common tasks done upon my numerous Kubuntu rebuilds. I have to redo a lot of the things that I’ve posted instructions on, so I’m going to start building and posting helper scripts instead. It’s a good habit to be in anyway. I rebuild my Kubuntu box about once every two months because I am constantly breaking things.

As previously mentioned, I have an HP OfficeJet 6500 Wireless All-In-One. I am using the HP OfficeJet 6500 e709n, hpcups 3.12.6 driver; you should choose whatever driver is recommended for you. Cups printing seems to work
better and be less buggy, especially over the network. Please understand that the following script is imperfect and totally tailored to my hardware; you may need to break it apart and run it piecemeal depending on your setup. However, this should help. As usual, the links that helped me are at the bottom. Nota bene: you may need to rerun ‘hp-check –fix’ two or three times to have it complete all the repairs it needs.


#!/bin/bash
sudo apt-get install xsane libsane-extras hplip-gui -y
name=$(whoami)
echo "$name"
sudo usermod -G saned -a $name
sudo usermod -G scanner -a $name
sudo usermod -G lp -a $name
echo hpaio >> /etc/sane.d/dll.conf
hp-setup
hp-check -r
hp-check --fix
sudo reboot

https://help.ubuntu.com/community/CompileSaneFromSource
http://ubuntuforums.org/
showthread.php?t=1878250

https://bugzilla.redhat.com/show_bug.cgi?id=626984
https://answers.launchpad.net/hplip/+question/159829
https://bbs.archlinux.org/viewtopic.php?id=65431

Dream gizmos

There’s a refrigerator that runs Linux now. That seems like a bit of overkill to me, but there are a few devices around the house that I think could use a bit of OSS ingenuity.

We have hibernation features for most laptops; is there a way to hibernate, say, a kitchen? Energy vampires like toasters (and I’m only going off of popular rumor, not fact here) are supposed to suck watts even when powered down. Wouldn’t it be handy to run a script that actually interfaces with your house’s power systems? I bet Bill Gates’ house does that already, so it’s time for the NIX crew to get it together 😉

My dream device: A kitchen touch screen computer like this one, but which can also be interfaced with remotely, and which can control the oven, the yogurt maker, the coffee
pot, and the dishwasher. With that, I’d be able to interface my OurGroceries list with the kitchen’s DB on food stores, cook something remotely that requires a long cooking period with changes in temperature over time (like a crown roast), preheat the oven as I’m getting home to throw a pizza in, and which can warn me if the freezer or refrigerator rise above a certain temperature (a sure sign that the cats have found a way to knock open a door).

How about you?

Is “rooting” unethical?

I have a friend–we’ll call her “Sarah Keeler”–who owns a G1 phone. This is an HTC Dream, if you care about such things. It’s made to work on the T-Mobile network, which happens to be “Sarah Keeler’s” cell phone provider.

Sarah rooted her phone so she could use it as a 3G (refers to the speed of the network) modem for her netbook. This is expressly against the terms of Sarah’s T-Mobile contract, and she knows it.

What is rooting? In essence, a smartphone is just a handheld computer–the second cousin to a scientific calculator. Most people use their computers with a GUI, or graphic user interface. A GUI, like Windows or KDesktop or GNOME or Enlightenment or whatever the unholy Mac user fanboy conglomerate uses–is just a series of windows and menus that are designed to make using a computer easier. On many operating systems, it’s hard to get behind the GUI and get to a command line–sometimes that’s because the code is
proprietary and the makers don’t WANT you to see what’s happening behind the curtain.

That’s the case with Android, the operating system for Sarah’s G1. In simplistic terms, because T-Mobile doesn’t want to allow their cell phone users to use the unlimited data plans provided for their cell phones as a modem for their computers, the capacity to ‘tether’ your phone (by plugging it into your computer via a USB cable or by setting up the Bluetooth modem) is not available as an option on the standard Android installation on these phones. The real irony here is that Android is an open source operating system that a community of developers all work to support, and T-Mobile is deliberately limiting Android’s capacity.

T-Mobile doesn’t actually WANT users to USE their unlimited data plans; they merely want to advertise the existence of the plan. As a result, anything that could make the use of that plan easier isn’t available as an option on the phone.

So, rooting. To root a
phone is to install an operating system of your choosing as opposed to the default one that comes on it. Sarah chose to use a CyanogenROM; this is basically an Android OS with a LOT more bells and whistles–it unlocks the REAL functionality of the phone. Tethering this phone now is a matter of heading to the settings and activating it.

So, what are the ethics of this situation? When I consider Sarah’s situation, I see two different sides. First, I see that T-Mobile is providing a service that Sarah is under no obligation to use. Sarah could go without cell phone service, or abide strictly by the terms of service provided by T-Mobile. T-Mobile offers an additional plan for netbooks and laptops; it’s a card you plug into the back of your computer. Think of it as a cell phone with no dialpad or screen; it only exists to plug into the 3G or Edge networks that T-Mobile supports. Needless to say, this is a separate service and has overage charges (I believe that they have an asterisk on that
unlimited data plan, meaning that it’s not REALLY unlimited if they don’t like the amount of bandwidth you’re consuming).

T-Mobile as a company is not obligated to provide service to anyone. Regardless of the fact that Sarah specifically bought that phone to use as a mobile data point and a modem, T-Mobile was very clear in the TOS that tethering is not allowed. Just because Sarah didn’t know what the word ‘tethering’ meant when she read the TOS (ok–SKIMMED the TOS) doesn’t make T-Mobile liable for her ignorance.

And then there’s the other side of the argument. Everyone needs a cell phone. We could argue about the consumerist culture and whether your possessions own YOU, but the facts on the ground are that people need to be reachable for their jobs and social lives, and the expectation that they ARE available creates the necessity for them to BE available. I don’t know too many employers who would be thrilled to know that their employees are not reachable over the weekend,
period.

T-Mobile offered a phone with an unlimited data plan, and didn’t bother to explain to anyone that you can only use that plan in ways that are severely circumscribed and functionally useless to someone who wants to use this phone as a mobile data point. It’s the same problem as Comcast has when they advertise their unlimited data plan for a cable modem; they’re happy to advertise the existence of such a plan, but if you go over 200GB of bandwidth in a month, they start calling you up and letting you know that while what you did isn’t against the TOS, they will exercise their right to not service your home any longer if you do it again…because they can end their service to you at any time, for any reason.

T-Mobile is playing the same jiggery-pokery with their advertising. Sarah purchased a handheld computer, and should be able to do precisely what she wants with it. To not be permitted to do so is the equivalent of Dell selling you a laptop and telling you that even though
you own that hardware, you are absolutely not permitted to install anything other than Windows on it–or they’ll never sell you another laptop again. While there are dozens of computer manufacturers, our choices for cell phone providers are distinctly more limited.

Sarah owns a piece of hardware; most of its usefulness, however, comes from a service that operates WITH that hardware. At what point does Sarah’s ownership of that hardware become subsumed by the right of the service provider to dictate how she uses it?