2010-01-18

Ubuntu on the Dell Adamo

I went ahead and got the Adamo from Dell, so here’s my review of it, and what I did to set it up and get it work­ing the way I wanted.

Firstly, on the hard­ware: AC adapters is the weak point of this guy. For my old MacBook, I had three: one in my bag, one at home, one at the office. While it was a decent extra cost, it was one I under­took after I for­got my adapter a cou­ple times and had to go with­out for a while — some­thing that every­one with a lap­top deals with at some point.

This was par­tic­u­larly a pain since the one that Dell shipped with the lap­top died after the first charge — which meant another three days of being unable to use it after I received it. Not cool, Dell.

With the power sup­ply prob­lem fixed, I moved on to get­ting Linux on the thing. The thing ships with Windows 7, which I wanted to keep on there as an option, and there’s enough travel and sen­si­tive work stuff that I do on my lap­tops to jus­tify encrypt­ing the disk, which requires using the Ubuntu alter­na­tive installer. I also wanted to use LVM for my disks for when I start run­ning out of space and want to shrink the Windows partition.

The way to make this work is non-obvious, and it required two attempts to get going:

  1. Resize the Windows par­ti­tion to some­thing less than the full disk. I chose to give it 100G, and allo­cate the rest for Linux. This works out of the box in the installer, which is nice.
  2. Setup LVM on the remain­ing space next.
    • 200M for a /boot partition
    • 20G for swap (SSD disk means I assume that hit­ting swap is nowhere near as painful as it used to be)
    • The rest for a root partitiion.
  3. Setup encrypted vol­umes on the LVM par­ti­tions you cre­ated for root and swap (not /boot). You want to encrypt your swap as well, because Linux isn’t going to zero-out your swap vol­ume when you shut­down, mak­ing it effec­tively an on-disk mem­ory dump of what­ever your appli­ca­tions were doing…

I tried set­ting up sin­gle root/swap par­ti­tions on top of a sin­gle large encrypted vol­ume, but Ubuntu aparently requires your /boot par­ti­tion be un-encrypted, so there wasn’t an obvi­ous way to boot it after doing so…

With that issue out of the way, the rest of the instal­la­tion went smoothly and things booted just fine. I’ll note that Windows 7 boots much faster than Ubuntu 9.10, but I’ve only actu­ally booted the thing from a POST onwards a few times in the last cou­ple weeks, so who cares? The time it takes to resume from sleep is much more impor­tant for a lap­top, honestly.

With every­thing installed, I used rsync to copy my doc­u­ments and such off my old lap­top. I had enough disk to rsync my music col­lec­tion off of my world book, so I went ahead and did that too, and I’ve writ­ten a sim­ple upstart con­fig that per­forms the rsync prop­erly when the net­work comes back:

#!/bin/bash
# Script to dispatch NetworkManager events
#
# Runs rsync when WiFi or ethernet is connected.

set -x

if [ -z "$1" ]; then
    echo "$0: called with no interface" 1>&2
    exit 1;
fi

# Fake ifupdown environment
export IFACE="$1"
export ACTION="$2"
export USERNAME="me"
export REMOTE_USERNAME="me"
export REMOTE_HOST="stuff.mine.nu"

case "$ACTION" in
    up)
	if [ "$IFACE" = "eth0" -o "$IFACE" = "wlan0" ]; then
		if [ -z "$(pidof rsync)" ]; then
			sudo -n -u $USERNAME rsync -a /home/$USERNAME/Music/* $REMOTE_USERNAME@$REMOTE_HOST:/shares/internal/MUSIC
		fi
	fi
	;;
esac

I used to try and just mount the drive via SSHfs/nautilus and play via Rhythmbox, but it would skip the first 30 sec­onds of the song, requir­ing man­ual inter­ven­tion every three minutes.

After that comes the cus­tom repos­i­to­ries I’m using to add a lit­tle snazz­i­ness and breakage:

ppa:ricotz/testing
Latest and great­est GNOME Shell
ppa:telepathy/ppa
Bleeding Edge Telepathy/Empathy (my at-work XMPP server man­ages to con­sis­tently crash Empathy)
ppa:ubuntu-mozilla-daily/ppa
Nightlies of Firefox 3.6
ppa:cmsj/lifesaver
Lifesaver screen­saver, search term “#fml” ;-)
ppa:chromium-daily/ppa
Chromium Web Browser nightly builds

Comment on this...


2009-12-25

Dear Lazyweb

Does any­one have any expe­ri­ences with Karmic on the white Dell Adamo?

Update: It seems pos­i­tive, at least com­pared with the cheaper MacBook Air where you have to fuss with ker­nel boot options and whatnot.

Comment on this...


2009-09-25

Siding with the Bastards

Let me pref­ace this by stat­ing a few things: if you are going to tell me that girls are inher­ently bad at tech­nol­ogy, pro­gram­ming, or are get­ting their panties in a twist, please fuck the fuck off. I feel con­fi­dent in judg­ing you a waste of an oppor­tu­nity for a per­fectly good pair of ovary and sperm.

Secondly, I haven’t read a tran­script or seen a video, because the peo­ple rant­ing about this are seem­ingly unable to link to either, lest you judge it for yourself.

So all I have to go on is the quotes and snip­pets and attempts at con­text. It sounds like the obvi­ously poorly-delivered joke (I say so because it’s caus­ing a brou-ha-ha rather than a laugh) was meant to go some­thing like this:

  1. Have you ever tried to explain your mud­dled think­ing to some­one else?
  2. You know how it causes embar­rass­ment when the other per­son gives you that quiz­zled look, and you real­ize you’re an idiot?
  3. As a multi-millionaire and astro­naut, I find myself embar­rassed try­ing to explain how my soft­ware works to mem­bers of the gen­der to which I’m attracted, even though my soft­ware is awesome.
  4. If my soft­ware was easy to explain — thus sav­ing me the embar­rass­ment of mud­dled think­ing about design — it would also be easy for peo­ple to use.
  5. Mush the last few steps together: if my soft­ware is easy to use, it’s easy to explain how it works, and I can sell it (and by exten­sion, myself) to mem­bers of the gen­der to which I’m attracted in social situations.

This is a log­i­cal pro­gres­sion, and an attempt to appeal to evo­lu­tion­ary processes in order to make a bunch of mis­fit worka­holics socially useful.

Unfortunately for him, Mark Shuttleworth is a well-socialized het­ero­sex­ual gen­tle­men from some­where other than the sub­ur­ban United States, so he’s attracted to women, and appar­ently isn’t aware that in the US, it’s not OK in polite com­pany to refer to some­one he’s inter­ested in chat­ting up at the bar a girl. It hon­estly sounds like he’s try­ing to be cute with it, but falling on his face because some peo­ple are offended when they hear about promi­nent fig­ures talk­ing about women as girls. Either that or one advan­tage of being a astro­naut is that your world is post-gendered.

Yes, I’m jeal­ous of the money and space travel. I’m also young and ambi­tious, so not too ter­ri­bly wor­ried about it.

Regardless, part of the reac­tion is defense against the asser­tion of priv­i­lege and con­trol: dudes don’t get mad when women talk about boys in those terms in our pres­ence because the matri­archy hasn’t existed for thou­sands of years and we don’t have to worry about it. The reac­tion we (boys) have is either blush­ing or strut­ting a bit, because we rec­og­nize it as a sign of selec­tion and an asser­tion of power.

And, of course, bad-assed women are very attrac­tive to guys my age — so many video games, so lit­tle time… Our great-great-grandsons, how­ever, will curse us for our blind­ness. ;-)

Conversely, ladies may bris­tle when men talk about the girls, because it’s a term of endear­ment that is inex­orably tied back to when all women, in all cir­cum­stances, were con­sid­ered girls. There’s an extremely ugly legacy lurk­ing close enough to the col­lec­tive mem­o­ries of both women and men when it comes to a man assert­ing power and show­ing signs of selection.

That’s, I think, why Mark’s com­ments are com­pared to RMS’s. Even though — at least in my third-hand decon­struc­tion — they are log­i­cally to get the audi­ence to do the right thing because of a woman’s dom­i­nance in selec­tion sit­u­a­tions, the lan­guage he is using is loaded enough to tell a dif­fer­ent narrative.

Collective mem­o­ries!? Narrative!? Holy pre­ten­tious fuck. Fuck this, who’s play­ing at the club tonight? Yeesh!

Update: Thanks to Mackenzie for post­ing the link to the video and slides.

As noted by nukeedit, the release com­ment (in the first few min­utes), has a con­nec­tion to orgasm, but it was not gen­der spe­cific, and had no con­nec­tion to hook­ers at all. Now, I’ve read Emma Goldman, and claim to under­stand it, but iter­at­ing that pre­cise chain of logic to any­thing related to sex ends up with your pro­scrip­tions effec­tively indis­tin­guish­able from moral tra­di­tion­al­ists, and results mat­ter more than inten­tions. To put it another way: dark­mat­ter may be a tool, but sex is not the enemy.

On the “girls” com­ment… (at 36:00, slide starts at 35:00) ugh. He ends up elud­ing to the fact that he’s refer­ring to “girls” as “peo­ple who don’t care about free soft­ware.” In con­text, the com­ment is actu­ally worse than it is with­out con­text. Logically, there really isn’t a way to sal­vage his com­ments as some­how dif­fer­ent from the “teach it to your grandma”, even though I don’t think that was actu­ally what he was try­ing for.

Results do mat­ter more than inten­tions. To me, as a native-born white male engi­neer in the US, the results are this: an oth­er­wise engag­ing talk on how to make FOSS not suck, which gives voice to my own thoughts from years ago about UX and code — par­tic­u­larly the inti­mate rela­tion­ship between the APIs you’re writ­ing and the UIs that can rest atop them — is com­pletely for­got­ten, and the only thing peo­ple are talk­ing about is what a com­plete cobag Mark was for jok­ing about girls.

Comment on this...


2009-05-07

Laptop Suspend, Status

I’ve inad­ver­tently stum­bled onto the calo­rie cycling method of weight loss. Two days of rad­i­cally low calo­rie intakes (1300) fol­lowed by two days of “nor­mal” intakes for my desired loss (1850). I’ve seen vary­ing num­bers, but the rec­om­mended course is to use this method when your weight loss flat­tens out, I was using it because I couldn’t keep up the 1300 calo­rie day for more than a cou­ple days at a time. The goal is to con­dense your calo­ries into waves over the course of a week, so you trick body into keep­ing your metab­o­lism up even though you’re eat­ing less — short-circuiting the “star­va­tion” mechanism.

I also dis­cov­ered, finally, one rea­son why my lap­top has always had trou­ble sus­pend­ing: if Rhythmbox is play­ing when you shut the lid it won’t prop­erly sus­pend. IMO, this is a tremen­dously evil behav­ior, and I’ve stuffed my lap­top into a bag and let it nearly cook itself to death many times because of it.

Comment on this...


2009-01-17

Ubuntu Ruined My Life

[There’s a whole bunch of mean­der­ing aca­d­e­mic pon­tif­i­cat­ing and me tak­ing myself too seri­ously. About two thirds of the way down it gets really good, though. I promise. Also, the woman is now online and back in school. –JC]

So appar­ently, some­one was try­ing to take online courses, ordered the cheap­est Dell with a CD — which hap­pens to be run­ning Ubuntu — she could find, and then couldn’t get online to her courses. So she with­drew from the University, and the Linux Lusers rushed in — talk­ing about how dumb she was for not being able to slickly nav­i­gate Linux through cus­tomer sup­port in a Windows-only world, and appar­ently, this degen­er­ated into peo­ple harass­ing her on Facebook.

There are a cou­ple take­aways to this for the world at large:

  1. Facebook works fine on Ubuntu (or the stu­dent in ques­tion has got­ten a dif­fer­ent Dell).
  2. If you aren’t rais­ing your kid to be able to han­dle com­put­ers like a nerd, you are hand­i­cap­ping your children’s abil­ity to prosper.

Obviously, the sec­ond is the con­tro­ver­sial opin­ion. While the new impe­ri­al­ist geek over­lords are kinder, gen­tler over­lords than the rob­ber barons of the past, tech­nol­ogy is a big ugly mess. The de-facto real­ity this illus­trates is that if you are attempt­ing to live in a mod­ern­ized coun­try, but are unable to fig­ure out how to pur­chase and use a com­puter, you are fucked. Those who can­not fig­ure out how to scam Central Services to get online are des­tined to be crushed under­foot in the infor­ma­tion rev­o­lu­tion. It’s an ugly, bru­tal real­ity. Fortunately, when deal­ing with econ­omy, real­ity is what you make of it. There are a cou­ple points for the demo­c­ra­tic wing of the new masters:

  1. There is a con­tin­gent of rav­ing lunatics who have decided to immi­grate to Linux as their cho­sen nationality.
  2. When you smirk at the clue­less n00b, you are the sadis­tic prison guard tor­ment­ing the hap­less inmate. By mak­ing your sys­tem dif­fi­cult for oth­ers to use, you are actu­ally hurt­ing them — not only in terms of time and stress, but also in finan­cially mea­sur­able ways.

But none of that works on the real issue of this story: What was it about the Ubuntu desk­top as shipped with Dell that pre­vented her from going to school? If you haven’t already, find out why our OS didn’t work for her, pub­li­cize the prob­lems, and fix them. If it’s a tech­ni­cal prob­lem then it’s com­pletely triv­ial to fix: we’re all geeks here. If it was a more mushy social rea­son — the bureau­cratic pro­nounce­ments of over­worked sup­port staff at her Uni and ISP: you must use MS Word on Windows (because we won’t sup­port any­thing else)—then that’s some­thing we have tra­di­tion­ally sucked at, but some­thing which com­mu­nity growth could address in an indi­rect way, and B2B schmooz­ing could address in a direct way. Remember, she’s not the only one going through these dif­fi­cul­ties, she’s just the only one who’s dif­fi­cul­ties were severe enough to war­rant a news­pa­per arti­cle on it.

Comment on this...


2008-12-23

Status Report

I’ve fin­ished read­ing How to Lose Your Altruism How to Win Friends and Influence People, and the review is up. Also upgraded to Wordpress 2.7, although since I’m using my own cus­tom theme the changes will be all on the backend.

I attempted to install OpenSolaris 2008.11 on my Macbook, which failed pretty spec­tac­u­larly. The prob­lem is that I still want OS X to be acces­si­ble because all my stuff is there1, but the Solaris installer’s fdisk doesn’t han­dle the GUID par­ti­tion table that MacOS X/rEFIt requires. There used to be hackarounds in 2008.05 (which is what all the “installer howto”-style blog posts were writ­ten for), but those paths were closed in 2008.11. Specifically, in 2008.05 the installer used to have a remount­able root par­ti­tion and exe­cutes fdisk using path-aware meth­ods (i.e. “sys­tem()”). In the new installer, the root par­ti­tion can­not be remounted read-write, and the installer calls fdisk using an absolute path (i.e. using “exec()”), so you can’t use the hacky over­rides to make it not over­write OS X’s par­ti­tion table.

After a dozen times around the block using var­i­ous online-suggested meth­ods, I couldn’t jus­tify not being able to use my lap­top any longer and just re-installed OS X, then put Ubuntu 8.10 on, which I’m using pretty much exclu­sively now.

  1. Yes, I’m a prag­matic freedom-hating douchebag… or was, so long as OS X worked bet­ter than I could rea­son­ably expect out of a Linux sys­tem. It hasn’t really been up to my angry stan­dards for a while, so fuck it.

Comment on this...


2008-05-15

FIY

It’s prob­a­bly worth not­ing at this point that there are a few lessons to the debian OpenSSL débâcle:

  1. There is now a corol­lary to “do not write your own cryp­to­graphic rou­tines”: “do not fix bugs in some­one else’s cryp­to­graphic rou­tines.” If there is a anno­tated view of the OpenSSL tree (I don’t know/don’t care), the DD who patched OpenSSL would have been bet­ter off con­tact­ing the per­son who wrote the offend­ing line in the orig­i­nal source than try­ing to find the cor­rect channel.
  2. Developers must pub­lish cor­rect infor­ma­tion on how to con­tact them. Incorrect infor­ma­tion on the OpenSSL web­site main­te­nance is just as much to blame for this as the DD in ques­tion, who did ask the sug­gested chan­nels about his patch.
  3. Distros should have peer review of patches in security-critical code — by expe­ri­enced devel­op­ers — if they do not already.
  4. Rather than all the bitch­ing, remem­ber that the cen­tral tenet of F/LOSS is Fix It Yourself. This does not cease to apply sim­ply because the prob­lem exists in some­thing you depend on. If any­thing, it should empha­size how nec­es­sary it is.

Comment on this...


2007-01-03

The Fool’s Only Teacher 3

Sometimes life works. Other times it doesn’t. Hopefully you get to the point where you can spot the “doesn’t” parts in advance…

  1. If you’re lucky enough to get a tech­ni­cal per­son call­ing you in for the inter­view, remem­ber to ask about a dress-code range. It’s uncom­fort­able to be pimp­ing a suit when the guy who wants to hire some­one is wear­ing a T-shirt and jeans.
  2. Remember how you aren’t sup­posed to lean back in the chair (if it leans back) dur­ing an inter­view, so you don’t appear overly relaxed or arro­gant? That applies dou­bly if you’re wildly over­dressed. Lock the seat-back if need be.
  3. Sitewide QuickBooks upgrades go smoothly, pro­vided that:
    1. You aren’t using roam­ing pro­files for any­one who needs to use the silly thing.
    2. You wait about three months from the Major.0 release for all the suck­ers to find the land mines.
  4. Related: Intuit tech sup­port has roughly the same reac­tion to the phrase “roam­ing pro­file” as your broad­band provider does to the word “Linux” — they only hear “null and void”, and then try to get you off the phone as quicky as politely fea­si­ble so their stats don’t suf­fer, even if you are just look­ing for enough infor­ma­tion to make it go on your own.
  5. Microsoft’s “Certification Authority” com­po­nent is a pile of shit, like every­thing else PKI-related, ever. I am, for exam­ple, con­vinced the openssl com­mand line can be used to open the 9th gate, if invoked properly.
  6. Fedora Core 6 will pre­tend to install itself onto an XFS par­ti­tion (either within LVM or not) if you use “linux xfs”, and then promptly eat it’s young if you try to boot it.
  7. Ubuntu 6.10 makes it much eas­ier to get Sun’s Java, MP3, Flash, fglrx and DVD play­back work­ing (sim­ply a mat­ter of check­ing the Restricted/Multiverse/Universe check­boxes in the GUI repo tool and reload­ing the apt cache).
  8. FC6 (and Debian Etch) let you cre­ate and install onto an LVM group from the jump, whereas Ubuntu 6.10 requires you use the “alter­nate” ISO image.
  9. FC6 + Xen + ATI’s fglrx bull­shit via Livna = b0rked. Though it’s a nice excuse to play with RPM packaging.
  10. Apache on Mac OS X will pre­tend your 18GB tar­ball backup is 1.8G when you try to down­load it via HTTP. The FTP dae­mon on OS X works fine, though the fire­wall will block incom­ing PASV con­nec­tion attempts even if you’ve selected the FTP ser­vice excep­tion in the GUI.
  11. The JRE (Sun 1.5.0_6) which comes with ZendStudio 5.5.0a will not ren­der win­dow con­tents when run­ning under AIGLX + com­piz on FC6, and the RE which ships with ZendStudio 5.2.0 is spotty under Xgl + beryl on Ubuntu. I’ve not tested with 1.6.0 or later revi­sions of 1.5.0.

Kinda sad how it devolved from use­ful infor­ma­tion into straightup whiny bug reports, isn’t it?

Comment on this...


2006-11-27

Slide

Thoggen

Cool lit­tle shot of back­ing up a DVD in Ubuntu via Thoggen.

Comment on this...