« Ending in failure
Stream of consciousness VII »

Life with walls

Fri Jan 23, 2009 23:59 (UTC -5)

Too few posts ago, I mentioned that I would have to use a certain Windows-only program to do work for my digital logic class. As a Linux user (Ubuntu, to be exact), I of course find this detestable. I first considered trying to run it under Wine, but the all-knowing app DB reports of a show-stopping issue when doing so: USB operations don’t work. Or, actually, maybe they do if you pull the right strings. I don’t know. But I was going to need to use a special USB peripheral to program circuits, so there was no room for maybes.

I decided to virtualize. As an engineering student, I’m allowed to download copies of popular Microsoft software (except Office) for free, including Windows itself. I figured I should pick Vista over XP because I’ll probably need Windows for a while in the future. I picked Vista Business, the most basic variety they had available. When it came time to download it, I hit a little snag. They couldn’t provide a simple download link. Oh no, that would be too easy. You have to download a downloader, which itself is a Windows program. Vicious cycle??

Not quite. I installed Wine to run the downloader, and it worked fine, as I could expect. Next, I downloaded VirtualBox OSE, the free software version. I’d never run a virtual instance of an operating system before, so it was a little scary. But the installation went well, and in half an hour, I had Vista running inside Ubuntu. It was then that I found out that the free version of VirtualBox doesn’t have USB support. So I uninstalled the free version and installed the non-free version. For once, I’m glad that programs leave their configuration files behind after an uninstall; I was able to keep the same virtual machine.

As is custom when I’m putzing around with my Ubuntu system, I now provide the gritty details of what I did, both for my future reference and for everyone’s benefit. (This is for Ubuntu 8.10 “Intrepid Ibex,” by the way. I don’t think I know what an ibex is. It sounds like a six-dimensional ibis or something.)

First, in the Settings window, I went to “USB” and created an empty filter so that the virtual machine would recognize all USB devices. After that, I was able to mount and use my printer from Windows. VirtualBox recognized my other USB devices but wouldn’t let me select them, so I had to do more tweaks. These fixes came from various sources and I found that they worked when applied together.

I edited /etc/udev/rules.d/40-basic-permissions.rules and replaced the two USB lines with

SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664"
SUBSYSTEM=="usb_device", MODE="0664"

For good measure, I added myself to the vboxusers group even though I think I was automatically added already.

sudo usermod -G vboxusers -a `whoami`

For my next trick, I had to go to Users and Groups to find the number of the vboxusers group. On my computer, it was 127. Thus, at the end of /etc/fstab, I added the following:

none /proc/bus/usb usbfs devgid=127,devmode=664 0 0

Then I think I rebooted, and everything went swimmingly. I was able to mount multiple USB devices from Windows.

I still hate Windows. But even when I get mad, all I have to do is think back to Tuesday, when I was at work with my friend Mark and we were watching live streaming video of Barack Obama being sworn in as President of the United States. That’s something to be happy about. Now whenever I’m unhappy about something, I can just say to myself, “Barack Obama is the President,” and I’ll feel a little better.

Here’s a computer simulation of that airplane landing in the Hudson River. (Via The Presurfer)

During the inauguration on Tuesday, the new incarnation of whitehouse.gov went online. Jason Kottke examines the country’s new robots.txt file. (Via waxy.org)


3 comments

#1 by Keith: Sat Jan 31, 2009 17:21 (UTC -5)

Perhaps this is a radical idea, but maybe you could spend some time working on WINE, so that people in the future won’t have to go through that. If you’re not using the latest version of WINE, that might be a problem too. I thought I remembered one release in the 1.1.x series having improved USB support, but I might be mistaken.

I know what you mean about Windows. I usually don’t use profanity, but it has a tendency of really coming out when I have to use Windows. I really can’t think of a single good thing to say about it.

It’s funny that your friend’s name is Mark, where the only Mark I know can’t stand me (but that’s par for the course) and hightails it when he sees me.

#2 by Jordon Kalilich: Sat Jan 31, 2009 17:30 (UTC -5)

I wish I had the time and knowhow to help out with a huge free software project, but I don’t. Even if I could work on one, I think I wouldn’t pick Wine, an app I try to use as little as possible.

According to the Wine App DB, the USB device doesn’t work because the program (Quartus II) can’t install the drivers needed for it, so I don’t think it’s actually a USB issue.

#3 by Keith: Fri Feb 06, 2009 11:45 (UTC -5)

Yeah, I don’t like using WINE either. I’m going to try to get by using Mono for my VB.NET class next semester.

Once, I did fix an issue in WINE, created a patch, and when I got to the bug report, I noticed someone had already submitted one. Doh!

Leave a Comment

Feel free to join in on the discussion of this post. Keep the following in mind:

  • Don't include links to your commercial web site, or your comment will be summarily deleted. Advertising is not allowed here, so don't waste your time.
  • You can enter your e-mail address if you'd like me to contact you via e-mail. It is never disclosed to anyone else.
  • You can use the following HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> . (Your line breaks will be converted automatically.)
  • Comments will generally be visible immediately. However, if your comment contains spam-like keywords or an unusual number of links, it will be subject to approval before appearing.


Follow the Discussion

Web feed icon Subscribe to the comment feed for this post.

« Ending in failure
Stream of consciousness VII »

Get E-mail Updates

Sub­scribe now, get an e-mail for every new post. No spam, I pro­mise.

Recently on Twit­ter

“It's a beau­ti­ful day, and Kate is here!” (5 days ago)

Fol­low @the­world­of­stuff

RSS

Sub­scribe in your favor­ite reader.

Blog­roll

Stan­dards Com­pli­ance

This page con­sists of valid XHTML + RDFa with valid CSS 3.