Installation de Scratch sur 12.10 (12.04 à valider)

1. NE PAS INSTALLER LA VERSION DANS LES PAQUETAGES
  • problèmes de sons!
2. Télécharger la version ici
https://launchpad.net/~scratch/+archive/ppa/+files/scratch_1.4.0.1-0ubuntu5_i386.deb

3. Pour faire fonctionner le PicoBoard, suivre la procédure ici: http://www.scratchguide.com/picoboard-on-linux/ voir l'intervention de Myra { 06.27.12 at 2:20 am } http://www.scratchguide.com/picoboard-on-linux/comment-page-1/#comment-9739 suivant l'article (voir copie ci-bas)

4. Pour faire fonctionner Lego WeDo:
http://solinfpc.blogspot.ca/2011/09/wedo-et-scratch-sur-ubuntu.html



PicoBoard

Load the Module

The ftdi_sio module is included with the kernel, but it wasn’t loaded for me. Here’s the command to load it:

sudo modprobe ftdi_sio


Myra { 06.27.12 at 2:20 am }
OK, I got this working, with the help of my very able husband. It turned out to be a permissions problem. I will describe how we found and solved the problem here, in case it proves useful to anyone else.

First, to check if the Picoboard was being recognized correctly, we did (in a terminal window)

tail -f /var/log/syslog

in order to monitor what was happening with the system, then plugged in the Picoboard. Some new lines were printed out, the last 3 of where were something like:

….FTDI USB Serial Device converter now attached to ttyUSB0
….bus: 5, device was not an MTP device
….WPA: Group rekeying completed with

Hubby said this looked good, so we thought we’d try to get Scratch to tell us what was going on. We started Scratch not from a GUI, but just by typing “scratch” into a terminal window, not even putting it into the background. That way any error messages would be printed to the terminal.

I plugged in the Picoboard and brought up the ScratchBoard? watcher. The terminal window now said

Error opening serial port /dev/ttyUSB0 – permissions denied(13).

So we did

ls -l /dev/ttyUSB0

and it said

crw-rw—- 1 root dialout 188, 0 2012-06-26 1-:15 /dev/ttyUSB0

Ah, ha! I (myra) don’t have read or write permissions for this file. But the “dialout” group does. So the solution was to add me to the dialout group. So we did

sudo vi /etc/group

(replace vi with your favourite editor). The dialout line looked like this:

dialout:x:20:skr

(skr is hubby). I changed it to add me:

dialout:x:20:skr,myra

Then I logged out and back into the computer to allow the group changes to take effect, then the next time I started Scratch it worked! Hooray!
Il n'y a pas de commentaire sur cette page. [Afficher commentaires/formulaire]
 
IMP :: RSS :: HTML :: TXT :: Clone :: Historique :: Propriétaire : PierreCouillard