This is why Shoes 3.2 exists

Some may have noticed my constant promoting of Shoe 3.2’s new gem handling and my pride at creating a Raspberry pi distribution of Shoes. I stumbled up on a great example. pi_co_op_on_pi__61805.1389718875.1280.1280The Pi Co-op board is something I’m really tempted to buy although I have no immediate use for it. Of course it’s Python based and there’s nothing wrong with that and some good reasons the python is popular on Pi.

But, if you chase down the links from the article you’ll see that there is a Ruby gem ‘firmata’ that will talk to the board. It uses the ‘serialport’ gem which has been a long running problem with Shoes. It shouldn’t be a problem now. Lets see what happens. On a pi with minimal installed software. I could spend a couple of hours getting rvm and ruby and all the shoes deps and the compile Shoes 3.2 from source. I did that on another SD card – its boring. Let;s pretend I’m a PI user and don’t know a whole lot about Ruby or Shoes so I’ll download the binary distrbution of Shoes.


ccoupe@bronco:~/Projects/shoes3.2$ ssh -X pi
ccoupe@pi ~ $ which ruby
ccoupe@pi ~ $ wget shoes.mvmanila.com/public/shoes/shoes-3.2b8-gtk2-armhf.run
--2014-05-26 15:07:44-- http://shoes.mvmanila.com/public/shoes/shoes-3.2b8-gtk2-armhf.run
Resolving shoes.mvmanila.com (shoes.mvmanila.com)... 208.113.218.222
Connecting to shoes.mvmanila.com (shoes.mvmanila.com)|208.113.218.222|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17943171 (17M) [application/x-makeself]
Saving to: `shoes-3.2b8-gtk2-armhf.run'

100%[======================================>] 17,943,171 666K/s in 28s

2014-05-26 15:08:12 (637 KB/s) - `shoes-3.2b8-gtk2-armhf.run' saved [17943171/17943171]

ccoupe@pi ~ $ chmod +x shoes-3.2b8-gtk2-armhf.run
ccoupe@pi ~ $ ./shoes-3.2b8-gtk2-armhf.run
Verifying archive integrity... All good.
Uncompressing Shoes....................................................................................................................................................................................................................................................................................................................................................................................................
Shoes has been copied to /home/ccoupe/.shoes/federales. Need root password
to copy Shoes.desktop to /usr/share/applications
Password:
ccoupe@pi ~ $
ccoupe@pi ~ $ ./.shoes/federales/shoes -c

My pi is running headless at the moment so I ssh in and redirect the X session back to my main computer. I don’t have a Ruby installed. I grab the Shoes distribution, install it and run the Cobbler. Then I’ll list the gems that come with Shoes’s builtin ruby, search for serialport, and install it.
Screenshot-List

Screenshot-Search

Screenshot-Setup

If by chance you’re following along click by click you might ask “Why does Setup take so freaking long?”. I don’t know, yet. It pegs the PI at 100%, half Shoes and half Xserver. I suspect the animation is part of it. It’s slow on all systems, you just don’t notice it as much on a faster, multicore system. But that’s not the only reason.

Screenshot-Building

Screenshot-Installed

I’m sure glad that worked. Otherwise I’d look really foolish.

Leave a Reply

Your email address will not be published. Required fields are marked *