From the Canyon Edge -- :-Dustin

Monday, April 4, 2011

Austin Blind Cafe

Kim and I experienced something truly unique, and entirely perspective-changing a couple of weeks ago...

Accepting an invitation from our friends Christian and Julia, we attended the first presentation of the Blind Cafe in Austin.

I had heard of something similar in London, where several of my colleagues attended a "team building" dinner some time ago.  But as far as I'm aware, this was a first for Austin.

We attended with a big group, I think there were 10 of us in our party (of which Kim and I only really knew one other couple).  We spent a few minutes in anxious anticipation in the hallway, and received a few instructions from our hosts.

Eventually, we were led through two ante-chambers of darkness by our blind guide, toward our seats in a banquet room, completely and absolutely devoid of all light!  You could open your eyes as wide as you could, and strain as hard as you wanted, but you would see absolutely nothing :-)  It took quite a while to get used to it, even after the immediate nervousness subsided.

Kim managed to put her hand directly into someone's salad as we made our way to our seats -- oops :-)  She sat on the end of a table, and had the security of a wall to her right.  I sat on her left, with the rest of our new friends to my left and across the table.

Eating in blindness was a distinct, unique experience.  Most of my friends and family know how much I hate salad, but here I had a huge salad sitting right in front of me :-)  Under normal circumstances, I might have been able to pick through and eat the "good" parts.  But here, I couldn't :-)  And I couldn't really tell how much I had left to eat.  I think that was the longest salad of my entire life!

Now the salad plate was already served for us when we sat down, but we had to help ourselves to the main course -- rice and curry.  We immediately dropped the rice serving utensil on the ground, never to be found again.  And so we improvised, with each of us sort of grabbing a handful of sticky rice, cupping it against our forks.  The curry was a little easier to serve, as thankfully we didn't drop that spoon.  The food was good, if a little bland for my tastes.  Everyone was served the same thing, which sort of necessitates a lowest common denominator of accessibility, so the food was vegan and not very spicy.  Dessert, though was absolutely delicious!  Vegan cuisine is exceptionally good at chocolate and dessert :-)  Mmm.

Okay, food aside, the experience was second to none.  It was particularly disarming in that most of our conversations were with people whom we had never really met (friends of Christian's and Julia's).  This was really interesting, talking and listening, without the aides of reading or displaying body language.

After dinner and still in the dark, we were treated to an excellent concert, mostly led by the organizer/producer of the Blind Cafe, Rosh.  He has sort of a John Mayer style, with a great voice and an acoustic guitar.  The additional acoustic instrumentation -- a pair of violins, a cello, and a viola, really filled out the ensemble.  As a musician myself, it was engrossing to listen, and only listen, to the music in the room around us.  With no visual distractions, the music just seemed to pour through me.

At the end of the evening, Kim said that she really didn't want to leave.  She was having a great time, and was still in the process of absorbing the experience.  The organizers lit one, lone candle in the middle of the room before we left.  The revelation of the room around us was mesmerizing, finally being able to "see" how the room was arrange, how big the space was, how far (or near) the next table was, and where that damn rice spoon went! :-)

Listen, if you ever get a chance to attend a presentation of the Blind Cafe in your town, don't hesitate -- do it!  Proceeds benefited charity and help with blindness awareness, and you'll enjoy an experience that will perhaps change your perspective entirely.  It seems that the event has been held in Portland OR, Boulder CO, and Austin TX so far, and there are events on the calendar for Cincinnati OH and Seattle WA.

:-Dustin

Friday, April 1, 2011

Windows in EC2 takes 15-30 minutes to generate a password? What the...?!?

I needed to check something on Windows today.  I don't have any Windows installations locally, so my good buddy Scott Moser suggested  that I just launch one in EC2.  A t1.micro Windows instances costs something like $0.03/hour.  Good idea.  That can't be too hard...

Here's what I did...
  1. I started at the web console, http://aws.amazon.com/console/
  2. Logged in, and then clicked on the EC2 tab
  3. Then I clicked on Launch Instance
  4. There was a popup for Quick Start, which listed a few AMIs, mostly Amazon's ripoff of CentOS, a couple of SUSE images, and Windows.  Notably, there's no Ubuntu AMIs here...
  5. I selected Windows Server 2008 Base (ami-c3e40daa), 32-bit
  6. I used a t1.micro, and clicked Launch Instance
  7. I clicked continue enough times to make a Canonical Design Team member drive a stake through their MacBook Pro
  8. I selected my ec2 keypair
  9. I accepted the default Security Group configuration, which opens the RDP port 3389
  10. I clicked Launch again (I think this is the 3 button in this process that said "Launch")
  11. Then I clicked a link to View your instances on the Instances page
  12. From there, I could see my instance running, and was given the hostname, and instructions on how to connect to the instance through Windows
  13. Instead, I dropped to an Ubuntu shell and ran:
    rdesktop ec2-NN-NN-NN-NN.compute-1.amazonaws.com
  14. Alternatively, I could have clicked Applications -> Internet -> Terminal Server Client
  15. Now I tried to login
  16. I wasn't able to do so, as I needed a password, so I went back to my AWS web page, right clicked on my running instance, and my jaw hit the floor when I saw this:

  17. Wow.  Wow.  Wow.  15-30 minutes to generate a 10-character password.  All I can think is that it takes this long to gather enough entropy to seed their equivalent of /dev/random.  Still, this seems broken, in so many ways...
  18. So I waited the obligatory 15-30 minutes, right-clicking and checking if my password was ready multiple times.  Eventually, it was.  I needed to dig up the clear text of my private ec2-keypair.pem to symmetrically decrypt that 10-character password.  (Another thing that seems so broken to me about AWS ... they generated my private key and gave it to me, rather than me giving them my public key, and us operating with a public/private asymmetric scheme.)
  19. Anyway, once this was all said and done, I had a Windows machine running in EC2.  That 30 minutes spent waiting for a password was kind of a waste, though...  :-/


If nothing else, it reminds me why I love me some Ubuntu and ssh-import-id :-)

:-Dustin

Thursday, March 31, 2011

Dosbox for the win!


My Mom is almost 100% Ubuntu.  I've given her a couple of computers running Ubuntu over the years, and she's gotten really adept at using it, but she still has one Windows XP desktop hanging around.  And it seems like it's always ailing...

She's been a professional photographer for years, and she has one, ancient MS-DOS program that she uses for tracking all of her small business finances, transactions, and pictures.  It's a classic database called Q&A 4.  Of course, I've showed her newer databases (of which there are many).  But she's been using this program for 20+ years, and has schemas and views that are just that old.  So let's just take it as a given that she's not moving off of that, okay?

That one program is pretty much the only thing holding her to her Windows desktop, which is several years old now, and of course, cluttered and slow and on its death spiral.  So she asked me if there was any way I could get her Q&A running on Ubuntu.  Ooooh, a challenge :-)

I started with Wine, of course, but that promptly blew up with multiple errors.  Googling for those errors, though, turned up a few hits referencing "dosbox", a program already in the Ubuntu archive for running old-school MS-DOS programs.  It seems it's been around and in the archive forever, I've just never stumbled across it, so yeah, I'm out of the loop...
sudo apt-get install dosbox
dosbox QA4.EXE
And wow, she's working like a charm!!!  She's ever so much closer to dumping her last Windows PC :-)

Anyway, toying with dosbox got me thinking about some of those old-school MS-DOS games I played as a kid...Oregon Trail, Scorched Earth, Ultima, Warcraft I, Wolfenstein.  All games that I owned and loved, at some point.

I stumbled on oldschooldos.com where I found a couple of old school games that ran perfectly under dosbox, like this one...


Anyone up for a modem game of WarCraft?  atd...ata :-)

:-Dustin

Wednesday, March 30, 2011

Ubuntu Server Quick Install, No Questions Asked!



priority=critical locale=en_US url=http://bit.ly/uinstall

As you might imagine, I install the Ubuntu Server a lot, so I'm frequently asked about preseeding Ubuntu Server installations.

There are some excellent resources out there.  I have learned much from several Debian sites, as well as from fellow members of the Ubuntu and Debian developer communities.

Most of my daily installations are throwaway KVM virtual machines on my development laptop.  I have answered the same questions in Ubuntu's installer thousands of times...  "Yes, I still speak English, my keyboard is US, please do remove all partitions and yes that partition layout is just fine!"

Of course these questions are preseedable in Ubuntu.  You just need to craft that magic preseed file, but that's necessarily trivial.  In this post, I am sharing just such a layout with you at http://bit.ly/uinstall.

Start with a released or daily development Ubuntu Server ISO, or just use TestDrive, as I always do.  Append the following options to your kernel command line (ESC, then F6 at the boot screen):

priority=critical locale=en_US url=http://bit.ly/uinstall
 And your installation should proceed from start to finish, with no questions asked!

The preseed I've provided at http://bit.ly/uinstall is generally useful, but you may well want to customize it yourself.  A few important notes about the choices I have made in that preseed configuration:
  1. Keyboards and language are US/English
  2. Networking is default DHCP
  3. Target disk is completely repartitioned/reformatted
    • fine for my VMs, might not be so fine for real hardware!
  4. Default username/password is ubuntu/ubuntu
    • again, fine for my VMs with no outside connectivity
  5. Additionally install a couple of essential tools, in case they aren't already there
    • linux-server kernel, openssh-server
  6. Launch Byobu by default at login
You are welcome to point your installations at http://bit.ly/uinstall, if you like.  I'll keep the above documentation up-to-date, and that URL active and functional, as I'm using it all the time!

 Enjoy
:-Dustin

Monday, March 28, 2011

Bikeshed: apply-patch (auto detect strip level and apply the specified patch)

It's been a while since I blogged a Bikeshed post, and I still have plenty of utilities to cover :-)

But this one just made it into Ubuntu Natty (11.04), and my bash history says that I've used it 30+ times already this week...

I think Larry Wall's diff and patch utilities are among the most important programs in all of free software.  These are the most fundamental tools that allow us to modify code, share those modifications with one another in both a human and machine readable format, and apply those changes elsewhere.  It's not uncommon for me to use the two of them more than a hundred times in a work day.

And yet there's two things that bother me about patch...
  1. the -p|--strip parameter should be auto detected, if unspecified
  2. usually, I just want to pass a file in as a parameter using tab-completion, rather than piping it or redirecting it from standard input
So, I'd like to introduce you to the apply-patch utility, which addresses both (1) and (2)!  It takes a patch or a diff file as an argument, and then quietly tries to apply the patch using --dry-run, for -p=0..16, until it finds the correct strip level.  Once it does, it actually applies the patch.

Example:

kirkland@x201:/tmp/foo/patch-2.6$ apply-patch debian/patches/lenny-options 
patching file src/patch.c
patching file patch.man

Useful to anyone besides me?

I'm pretty sure I could hack patch.c and pch.c in the upstream source for patch to do this auto detection of strip level, but I wonder if upstream would take it?


:-Dustin

Monday, March 21, 2011

Texas Linux Fest 2011

 
If you're anywhere around the Austin area on April 2, 2011, I hope you'll join us at the Hilton in downtown Austin for the 2nd annual Texas Linux Fest!  Last year's conference was a resounding success with a tremendous turnout.

I'll be there again this year, where I'm giving a fun and exciting presentation and real-time demo.  Here's the abstract.  Hope to see you there!

Byobu -- a Damn Fine Command Line!


Beginners, novices, and expert Linux users -- if you spend any
appreciable amount of time working in a command line environment,
consider learning Byobu, the text window manager based on GNU Screen.
Establish a single shell session (in a terminal, through SSH, or in a
tty), launch Byobu, create multiple windows, navigate back and forth
between those windows, detach from the session while your programs are
still running, re-attach to the same session later, split your screen
vertically and/or horizontally, monitor the status of 30+ indicators
in real time at the bottom of your screen, and write your own custom
indicators.  These are the basic features of Byobu!  Attend this
tutorial-style session and you'll get started with these introductory
features and quickly move into more advanced configuration and usage
of your damn fine command line.

:-Dustin

SCALE 9x 2011



Okay, I have to get this out there...  What a conference!

This is the most impressive end-user Linux conference I have ever attended.  My highest compliments to the organizers, attendees, and sponsors.  1800 people, just wild about Linux and free software.  I loved it!

I arrived on Thursday night, driving down from Santa Barbara with my colleague Clint, and we both attended the Friday sessions.  Friday was dedicated to a series of themed tracks, with tutorials and other somewhat hands-on sessions.  I spent most of the day in the Cloud track, listening to talks about OpenStack, Chef, and a number of other players in the Cloud space.  I learned a fair amount, and as always, I was quite pleased to see how pervasive the Ubuntu Server continues to be in the Cloud.  Few sessions, if any, failed to mention their use of Ubuntu in one form or another.  Our pulse continues to be quite strong in the cloud!

The meat of the conference took place over the weekend.  Unfortunately, I was only able to attend Saturday, as I flew out of LAX for London and then Cape Town, South Africa late Saturday evening (more on those trips in my personal blog) soon.

The first keynote was really, really interesting!  Leigh Honeywell talked about "Hackerspaces", a term with which I was only vaguely familiar.  During the Jaunty Distro Sprint in Berlin, we visited one of the more famous Hackerspaces in the world, C-Base.  I just thought it was a cool place to drink beer and hack in a warehouse decorated like a space station :-)  I didn't understand that this space was one of hundreds, covering most major cities on the globe.  Leigh talked about dozens of different hackerspaces, why they exist, what they're used for, how they're governed, and so on.  It has inspired me to check out the local Austin hackerspace sometime soon...

Remarkably, in Leigh's keynote, she mentioned my presentation on Byobu, Screen for Human Beings during her talk.  I certainly appreciated her unsolicited advertisement!  I don't know if it was related or not, but my talk was just after her keynote and was absolutely standing room only.  I counted 120 people before I started (and more trickled in during the talk).

A video of my talk should be available somewhere (?), though I haven't found it yet.  I really enjoyed the presentation.  It was basically 10 minutes of slides, and then 50 minutes of demonstration.  The audience was quite interactive, asking some great questions about GNU Screen and Byobu.  I'm giving a similar talk at the Texas Linux Fest in Austin in April, so if you missed the SCALE version, join us in Austin for an encore.

And if you're on the west coast and haven't been to SCALE, you really must get out there and see this conference.  I'm really impressed and hope to return again in the future.

Cheers,
:-Dustin

Printfriendly