Sunday, September 30, 2012

Pi

I haven't actually had very much time to explore it yet, but the Raspberry Pi is officially out.

"Officially", because it's been sort of a running joke with my friends that it hasn't been for the past while. The two sites that sold them had "Register your Interest" buttons, rather than the expected "Add To Cart" or "Buy Now"[1], and while many told tales of the legendary owners of these boards, I had failed to meet one for quite a while.

The Pi sitting on my left knee at the moment was picked up at Creatron Inc on College. It cost about $50[2], and came with nothing but the board, but I still see myself picking up a few more down the line. This first one is going to get get plugged into some of the mobile computing experiments I plan to do shortly. The next one will either replace the media center PC or my backup server, since it's lower power than either.

At first glance, it seems like I'm a bit late to the party, since the installation went perfectly. Got my Pi, got an SD card[3], downloaded the installation images[4], unzipped them, then ran

dcfldd bs=4M if=2012-09-18-wheezy-raspbian.img of=/dev/mmcblk0

/dev/mcblk0 is the name of my SD card drive. Also, you'll probably need to install dcfldd before running that; if you're ok with not having any kind of progress feedback, just run the same command with dd instead.

And that was that. After getting the resulting cards into dat Pi, it booted flawlessly.

Like I said, haven't had much time to explore, but what I can tell you is that the Debian version

  • uses the LXDE desktop[5]
  • comes with Python 2.7, Python 3.2, and a bunch of python-based games
  • takes about three seconds to start up a Python 3.2 shell in X, and seems to be able to run at most one
  • comes with Scratch and Squeak[6]

By contrast, the Arch distribution they ship is very minimal. Which I guess makes sense, all things considered. As a note here, the Downloads page mentions that Arch boots to a useable prompt in about 10 seconds. Firstly, that doesn't sound very impressive, given that the Debian version does exactly the same thing if you tell it to run from command line. Secondly, in practice it seems to be closer to 5 hippopotami, which actually is impressive out of a general purpose computer the size of my business card.

The Arch Pi doesn't come with anything other than bash, perl and a root account[7], and that includes the standard raspi-config script that lets you resize your initial SD card partition. Ah well, I suppose there are worse things than having to play around with parted and friends.

Anyway, like I said, not much time this weekend, between the various work work and play work I've been up to around here. I've literally managed to install the OS, apt-get a copy of mplayer and get the thing onto my network.

In case you were wondering, I consider that a success

Next order of business, getting a Haskell and a Common Lisp running on it, getting a "case"[8], and figuring out some sort of portable input/output strategy.


Footnotes

1 - [back] - That's changed by now, obviously, and it's theoretically possible to buy n of them rather than just one per customer, though I've yet to test this theory.

2 - [back] - Canadian dollars.

3 - [back] - A 16 GB class 10. Class 10 is the important part since that indicates read/write speed. I could have gotten away with as little as 2 GB in terms of size, but the store I walked into happened to have a special on the 16 GBs, so a pair of those ended up costing me about $10 less than a pair of two gig class 10s would have. No, I have no idea how this made sense from their perspective. It's not as though flash memory goes stale in blister packs.

4 - [back] - One copy each of Raspbian and Arch ARM.

5 - [back] - Look-and-feel-wise, it's a slightly shinier XFCE.

6 - [back] - Though to be fair, I've yet to get Squeak running successfully. Scratch looks like a very interesting teaching tool. The sort of thing you could give a curious six-year-old if you wanted them to learn about programming.

7 - [back] - Ok, ok, that's a half-lie. It also comes with the usual *nix suspects, but you know what I mean dammit. It's been a long while since I've actually had to install Python anywhere.

8 - [back] - Or possibly a case, depending on how adventurous I feel.

No comments:

Post a Comment