ADVERTISEMENT



Google       

Home -> Law Blog Directory -> Legal Research Blogs -> Slaw.ca

OR PHONE (866) 635-1838 for Bankruptcy Help, (866) 635-6190 for Divorce,
(866) 635-2689 for Personal Injury or (866) 635-9402 for Criminal Defense

Find a Local Lawyer

Bankruptcy (866) 635-1838
Divorce (866) 635-6190
Personal Injury (866) 635-2689
Criminal Defense (866) 635-9402

Bookmark

Legal Research

: Slaw.ca

Playing with Linux and a USB internet stick

By John N. Davis

ADVERTISEMENTS

Simon Fodden recently quipped that Apple was becoming so mainstream that he might have to switch to Linux to keep his “smug sense of computer specialness.” This reminded me that, a little more than a year ago, I posted a little note here indicating that I was thinking about getting a Linux netbook and an internet stick. I eventually did just that, and thought I would offer some reflections on my experience so far.

The bad news is that most people using Linux (at least those without IT support) are going to feel “special” at least some of the time, because of the extra challenges they face. If, however, you are the sort who enjoys the sense of smug self-satisfaction that comes from solving a good puzzle, Linux may be for you.

I pretty much knew what I was getting into. I knew GNU/Linux was Unix-like (though, of course, GNU’s Not Unix.) I’ve been using Unix shell accounts for one thing or another for over 20 years. In ancient times, that’s what the universities would give you for e-mail and web-sites. That ended when IT departments realized that most of the people who wanted to do e-mail and web-sites weren’t going to learn how to stay out of trouble with a Unix shell account. When that day arrived here at York, I got a shell account with an off-campus service provider. I’ve switched providers once since then, because I wanted to play with some Java applications (Apache Tomcat and Cocoon, particularly) that let you use XSLT on a web-site. (It’s not the only way to do it.) When I’m feeling brave enough, I’m going to upgrade to a VPS (Virtual Private Server) account so that I can be “root” and really get into trouble. I thought that using Linux on a netbook would help to prepare me for that, and things seem to be on track. I’m learning a lot.

If you think this resembles a continuing education project, you’re exactly right. FOSS is free and open-source software, and the open-source part should probably be more important to you than the free part if you want to do Linux as an individual. I bought a Dell Mini 10v with Ubuntu pre-installed, and nothing more. I could have had Windows too for the same price, but I just didn’t want to complicate my machine.

Getting a machine with Ubuntu pre-installed was just me being timid, I suppose. I figured Dell would probably play it pretty safe, and, as a Linux newbie, I wanted to see what their configuration looked like. My Dell came with version 8.04 (alias “Hardy Heron”), which is a long-term support release. I don’t think it will be many more months before I decide to overwrite my machine with a version from http://www.ubuntu.com/. I will probably do it when the next long-term support release (Lucid Lynx 10.04 LTS) comes out. Dell maintains its own repositories, presumably to keep the lay-support problem manageable, and they have hobbled the part of the upgrade manager that lets you do version upgrades. Apparently, that’s because of copyright issues with some proprietary drivers that they felt they needed to install. At this point, I don’t know if it’s possible just to undo Dell’s hobbling. Assuming an overwrite would be best, I would need to find out what those proprietary drivers are, and convince myself that I don’t really need them.

Dell’s actually pretty close to having something that people can just use without having to learn too much. Though learning was sort of the point for me, I wouldn’t actually have had to learn very much if it wasn’t for wanting an internet stick. As noted below, it will be simple to use an internet stick in newer versions of Ubuntu too.

These are interesting times in the mobile broadband market. Even the courts are taking an interest: Bell Canada v. Rogers Communications Inc., 2009 CanLII 39481 (ON S.C.), Telus Communications Co. v. Rogers Communications Inc., 2009 BCSC 1610 (CanLII), and “Rogers-Bell Advertising Dispute Heading to B.C. Supreme Court” (Teleclick.ca, Dec. 9, 2009).

I chose the ZTE MF668, available from Rogers, mostly due to inertia. I already dealt with Rogers for cellphone, cable, and cable-internet, and this stick can use the new HSPA Plus 21Mbps network: Luann Lasalle, “Rogers launches faster network for mobile Internet for laptop, netbook users“. (The Novatel U998, available from Bell, and the Sierra 306, available from Telus, seem comparable. I haven’t seen any announcements yet on the sticks that Wind Mobile will offer in Canada.) I opted to have my new data plan expire along with my cell phone plan, because, in the long-run, tethering seems to make sense. Maybe the smartphones will get to be as fast as the sticks, or maybe I will decide the difference in speeds doesn’t matter to me. One modem and one data plan should be enough.

None of Rogers, Bell or Telus claims to provide support for Linux. Support comes from the Linux community. Here, for example, is an Ubuntu page, “NetworkManager/Hardware/3G“, surveying progress involving the Network Manager and 3G hardware. I’m using wvdial and GnomePPP instead for now, following the lead of GeorgeVita and shailendra in “HOW TO: Use USB modem on Ubuntu 8.04 Hardy Heron“.

As often happens, something which is done to give the appearance of making things simpler actually makes them more complicated. The sticks come with some software from Option NV called “Zero-CD”. (Application Number 1420681 in the CIPO Canadian Trade-marks Database.) This software mounts the stick as if it were a cd-rom from which, in Windows 2000, XP, Vista, or Mac OS X 10.4 or above, some software is automatically installed. In Ubuntu 8.04, this is just a nuisance. With the “cd-rom” mounted, lsusb showed vendor 19d2 and product 2000. Eject the “cd-rom”, and the product was 0017 instead.

Ubuntu 9.10 and above include a module called usb_modeswitch which handles switching back and forth. To solve the problem in 8.04, the simpler (and more interesting) option was to use minicom to tell the stick not to pretend to be a cd-rom anymore. The way to do that was with a Hayes-style modem command, “AT+ZCDRUN=8″. (The best documentation I found for this–”How to use a USB data modem without the Connection Manager“– was on the site of the Australian subsidiary of ZTE.)

The standards work that now seems to matter most in Canada appears to be happening at http://www.3gpp.org/. (The other guy is http://www.3gpp2.org/.) The former site has a specification 27.007, “AT command set for User Equipment (UE)“, which suggested other ways to probe the stick. “AT+CLAC”, for example, returned a list of available commands (not–arghh!–including “AT+ZCDRUN=8″.) Another useful one was “AT+IPR=?”, which told me that the maximum baud setting was 460800.

The next thing was to do what GeorgeVita suggested in “HOW TO: Use USB modem on Ubuntu 8.04 Hardy Heron“: create a “/etc/udev/rules.d/90-zte.rules” file, and reboot. The udev command associates the zte modem with the usbserial module. All this is way beyond my depth, but interested readers can learn more in two articles in Linux Journal by Greg Kroah-Hartman, “The USB Serial Driver Layer” (Feb. 1, 2003) and “The USB Serial Driver Layer, Part II” (April 1st, 2003), as well as Daniel Drake’s “Writing udev rules“. For those using later versions of Ubuntu, it will be either more complicated or simpler: “usbserial.ko missing in Jaunty“. It’s also worth noting that the usbserial driver (or an old version of it) might not be the best match for any given modem: “Poor HSUPA Throughput with option driver“.

The next step was to see if I could make an internet connection using the wvdial program. The best thing, though, was to run the wvdialconf command first. This program was smart enough to create a wvdial.conf file which only needed a little bit of additional tweaking.

Once I had a good wvdial.conf file in place, I found that gnome-ppp gave me a simple graphical interface for everyday use.

I suspect that this setup would benefit from additional tweaking. I also have to figure out what to do about version upgrades for Ubuntu, since it’s clear that the community has recently made and is still making a lot of progress in improving support for various modems. At the moment, though, other things are higher on my to-do list.

I hope this provides a bit of insight into what life with Linux is like. I still have a ton to learn, but I’m finding it fascinating.

Full post as published by Slaw.ca on December 15, 2009 (boomark / email).

Bloggers, promote your law blog by nominating your blog for inclusion in USLaw.com's Law Blog Directory and RSS Reader. Benefits described.
Related Law Articles

Lawsuits and Settlements

Related Searches

























































































































US Law
#1 Online Legal Resource













Your Blog Subscriptions
Subscribe to blogs

10,000+ Law Job Listings
Lawyer . Police . Paralegal . Etc
Earn a law-related degree
Are you the author of this blog? Adding USLaw.com to your Blogroll increases relevance. You qualify to display a USLaw Network badge.
Suggest changes to this blog's description or nominate another for inclusion. Register for updates.


Practice Area
Zip Code:

Contact a Lawyer Now!






0.0023 secs (from cache 11/03/26 03:56:15)