Category Archives: DIY

OpenWRT

I’ve been using various consumer routers hacked with dd-wrt both at home and on campus for years, and was shopping for a new one to use in the apartment I’ll be moving in to in a couple weeks, only to discover that the desired feature set wasn’t possible with dd-wrt. In particular, I wanted 802.11n, Gigabit Ethernet, USB printer sharing, and the ability to share an ext4-formatted USB hard disc via SMB and SSHFS. Hardware with the requisite bits isn’t too hard to come by, but no stock firmware supports the range of printer and storage features I wanted (and most of them are missing basic features and/or just plain suck). DD-WRT isn’t a solution, because it uses ancient kernels that don’t support modern file systems. I figured since OpenWRT was well spoken of and claimed to do everything I wanted when coupled with suitable hardware I would give it a try, and picked up a TP-Link WL-1043ND based on reviews and price, and followed the Wiki Instructions to flash it from the web interface.

This turns out to have been an excellent decision, because not only are the basic packages in OpenWRT a good five years newer than in in DD-WRT, it turns out to be superior in virtually every way. The OpenWRT documentation isn’t as inviting as DD’s, but the install process is no more complicated, the Web GUI is better laid out and more responsive, and features can be easily added and removed with a well-designed, well-integrated package manager (opkg). I’m aware that DD-WRT supports ipkg, but it has always felt hacked on and never worked terribly well for me, but opkg just works on OpenWRT. It even has a friendly Web interface for managing packages. Even the warning about the stock WL-1043ND image not coming with the appropriate WiFi modules is apparently out of date, because everything was already in place.
Continue reading

Posted in Computers, DIY, Electronics, General, Objects | Tagged , | Leave a comment

Udisks2 and UNIX Philosophy

Apparently the udisks devs took it upon themselves to violate the FHS and moved the path for automounted media from /media/$DEVICE_NAME to /run/media/$USER/$DEVICE_NAME.

This is a user-facing change that I can’t find primary documentation for with google, which means the developers are automatically in the wrong, even if it is a good change.

Now, let’s talk about some things this change does (The first three are the developer’s claimed features):

  • Mount paths now belong to users – Why would a device plugged in to a computer belong to a particular user? It’s just as likely to be a backup drive or some other shared resource, and the interactions with hotplugging filesystems that support proper permissions are kind of bizarre. Older auto-mounters having to work around the “priviliged mount as a user” issue was a feature.
  • Avoids name clashes – Seriously? If we make the assumption that all relevant systems are single-user interactive machines, as the FreeDesktop folks have been making, every disc will belong to the same user, so the namespace is exactly the same. Also, is this a real problem? How common are device name conflicts? Can’t we just append “-(n+1)” or something straightforward like that?
  • Works with a ro / – OK, fair enough, it’s a neat idea. Now who run anything other than a statically configured embedded system with a ro /? Bueller? Bueller?
  • Where do discs plugged in before a user logs in go? How about if you have multiple interactive users logged in? This Fedora mailing list discussion seems to indicate they didn’t even think about it before pushing the change, and the suggestions mean your disc will mount in different places depending on when you plug it in. Broken.
  • The FHS is a standard, all manner of programs and scripts follow the standard. Everyone who was following the rules just got burnt.

    It wouldn’t be so aggravating if it weren’t part of a stream of douchey autocratic decisions the the gnome and RedHat contingent among the FreeDesktop folks have been making during the transition off of HAL, that harm everyone but the narrow use case they envision while making the decision. This is the same crew that has been forcing the *Kits on us (PolicyKit, ConsoleKit, DeviceKit, etc.), which have all made things less transparent, and power users’s lives more difficult. Most of these changes seem to be dedicated to breaking features accessible from the command line or other simple interfaces and instead integrating them into one of the bloated libraries attached to Gnome and QT, just to make things easier for the big desktop environments, which I find philosophically objectionable … in the words of Doug McIlroy himself, “This is the Unix philosophy: Write programs that do one thing and do it well. Write programs to work together.”

    There is a ragier condemation of it here that fails to bring in the UNIX philosophy argument, and an obnoxious but partly correct rebuttal from someone involved here if you would like to peruse the politics.

  • Posted in Computers, DIY, General | Tagged , | 4 Comments

    I was futzing with the bushings on my longboards last night, and made an observation that should probably be visible on the Internets: Orangatang Nipples are slightly too tall for the stock 2.75″ kingpin in Churchill RKPs. One could swap … Continue reading

    Posted on by pappp | Leave a comment

    Churchill Jasmine

    Complete
    I’ve been fairly in to Longboarding this spring, and decided to pick up another board, set up to contrast with my current big surfy cruise/carve deck. I wanted something lower, with a bit of flex, easier to break out wheels, and a less popsicle-stick shape. The intention is for variety, for easier to pushing, and to improve my technical riding. It will also be nice to have a deck to lend out to get friends hooked.
    Details of the board are attached to the images of the gallery after the fold. Fair warning: they are rather high resolution. I’m sure my advisor would complain about the superimposed images with ill-matched white balance and squirrely focus, but I’m shooting with my phone and making automated fixes only in the gimp, so they will do. The WordPress gallery software also seems to be a bit confused by the non-4:3 shapes.
    Continue reading

    Posted in DIY, General, Objects | Tagged , | 1 Comment

    DARPA and the Makers

    So there has been a spat going on, where Mitch Altman is parting ways* with other important folks in the Maker movement over concerns about their accepting DARPA money for STEM education. The organization accepting the grant is largely being represented in the arguments by Tim O’Reilly.

    Altman and O’Reilly are some of the more substantial organizers of hacker/maker types, and I generally have a great deal of respect for their opinions and activities… but I don’t get what the DARPA fearmongering is about. As far as I can tell, the only problem is that from 1972-1993, and again from 1996 on, the U.S. Government’s technology investment agnecy has had “Defense” prepended to its name out of political necessity. I suppose part of my befuddlement is that the ethics of such things have long been carefully thought through in academia, so seeing the non-academic maker types fret about it is novel.

    First off, let’s talk about DARPA. Go read the mission statement. They are tied to the DoD, but their job is to develop technology. Basically, it’s in the United States’ strategic interests to make sure domestic technological advancement keeps pace with or exceeds that of the rest of the world. Strategic does not mean military, I would like to think most of learned this, if not in school, at least from playing empire-building games. The MENTOR program this grant in in particular comes from is to fund education that will nurture future engineers and scientists, to support the goal of advancing science and technology. This is fundamentally the same organization that funded most of the major advances in computing (See Project MAC, MULTICS, and the Internet), even though they grew a “D” in their name, and were founded out of fear of the Soviet’s technological capacity. As it turns out fear of annihilation is a great way to get reluctant politicians to think about the future. DARPA isn’t the armed forces, they’re the US government’s way of investing in technology.

    Next, let’s take a little dip into the philosophy of technology. Once some useful bit of technological progress has been made, it won’t be long until EVERYONE has access to it, such is the nature of history and technology. More cynically, the U.S. Military-Industrial complex will do whatever they want with any technology they dredge up, whether or not they paid for its development. Arguments about the intention of technology are kind of ridiculous, and yes, I’m aware that that makes my Utilitarian ethical precepts show. To use one of my favorite examples instead of going into a nebulous argument, the same cheap sensor and storage technology that makes mass surveillance possible also allows us all carry a recording device with which we can watch the watchers and disseminate our findings (so long as our rights to record police stay intact). The difference between menacing and empowering technology is entirely in its application, and the creators, much less the creators’ financial backers, generally don’t get a whole lot of say in the matter.

    Finally, let’s talk about practical matters about politics and money in the United States. First, if you’re involved in the technology industry, you are already complicit. Like so many things in the modern world, the technology industry is, to a distressing degree, driven by the military industrial complex. We talk about the need for funding NASA as a matter of driving the leading edge of science and engineering so that technologies trickle down into our every day lives. The same applies to defense; World War 2 and the Cold War were arguably the primary technological drivers of the 20th century. I tend to think of DARPA, like the DoD operated national labs, as “The conservatives won’t let us fund science, so we call it defense and do it anyway.” Yes, it is reprehensible that “Education” and “Science” will get cut, but “Defense” won’t. Yes, some immediate military technology comes out of DARPA programs, but whether or not we are in a decade with the “D” prepended, it has always been about advancing technology. The principle here is that the U.S. Government is offering up money to advance STEM education from a fund that looks enough like defense to remain funded, and it is even better that its use is being directed by people who’s ideas about STEM education are agreeable, to O’Reilly, to Altman, and to people like me.

    I’ll even admit there is a little bit of self-justification in here, but we’re all being a little ridiculous: Mitch made his announcement, most likely from some kind of Linux box (Which is a developed clone of a cut-down version of an old ARPA project), on the Internet (which is based entirely on the fruit of another ARPA project).

    So, my opinion? Let’s celebrate that a little piece of the DoD budget is going to paying makers to teach future makers instead of fighting wars of aggression on flimsy pretenses in random oil-rich nations on the other side of the world. It surely isn’t perfect, but it is a step in the right direction.

    * A bit of my own ideological weirdness: most of the argument took place on Facebook, which I think is sort of an embarrassment to our society, so the link to the original source is indirected through Slashdot.

    Posted in Computers, DIY, General, Navel Gazing | Leave a comment

    Watch as a Phone Stand


    I do this all the time and didn’t realize it was unusual until someone pointed it out the other day. I wear a somewhat clunky metal watch (to use as a grounding strap) and it makes a pretty solid portrait orientation phone stand. Might be a useful trick for someone else.

    Posted in DIY, Electronics, General, Objects | Leave a comment

    Google Exit Plan

    I started writing this as notes for my own use, and wasn’t really planning to post it publicly. However, I didn’t find any comprehensive google exit plans that were suitable for people in my position, and it seemed like an interesting area for discussion, so up it goes.

    While making my regular Google backups (detailed below in “Backup ALL the Things”) over the weekend, I decided it was time to update my plans for bailing out of google’s services if necessary, and discovered that there may be superior alternatives to some of the services I’ve been depending on. Google’s vast infrastructure, development resources, ubiquity and integration have tended to make them better than self hosted options. The fact that they are a single party who has thus far been generally responsible with user data makes them more attractive than other hosted solutions. Both of those situations are subject to change.

    Continue reading

    Posted in Computers, DIY, General, Objects | Tagged , | 1 Comment

    Touchpad Cyanogenmod 9

    My Touchpad (AKA “The Mobile Platform Test Device”) has had both its OSes updated in the last couple days. WebOS bumped from 3.0.4 to 3.0.5, and I updated the Android install from Cyanogenmod 7 Alpha 3.5 (Gingerbread based) to Cyanogenmod9 Alpha0 (Ice Cream Sandwich based).
    tl;dr version: Cyanogenmod9 is, by virtue of speed and features, at rough pairty with WebOS, even though its interactions are uniformly worse.
    Details below.
    Continue reading

    Posted in Computers, DIY, Electronics, Entertainment, General, Objects | Tagged , , | Leave a comment

    Another quick Linux aside/breadcrumb, I had some hand-written Udev rules start causing errors on my Arch boxes a while back, and just got around to fixing them. The basic problem is that the Udev rule syntax has changed, and statements … Continue reading

    Posted on by pappp | Leave a comment

    The previous post ended with “I have no idea why the nodes won’t boot.” Now we know. The problem is that, in terms of the mkchroot-rh script that Warewulf3 comes with, Fedora 16 is not a Redhat derivative. This makes … Continue reading

    Posted on by pappp | Leave a comment