1. First, open up a terminal:

In the far upper left of the screen click on the Ubuntu symbol and type in terminal. Click on “Terminal”


2. Change your password (given to you by Matt) by typing in the terminal:

> passwd

and follow the prompts. Set it to something non-trivial, but that you can remember. (Matt or any other CS professor can reset your password, should you forget it.)


3. Fill out course hardware agreement (or let Matt know you're not comfortable with the terms).


4. Get: Scribbler, Fluke, 6 AA batteries, USB dongle


5. Plug in USB stick. Plug in Fluke firmly, insert batteries, turn on scribbler


6.In the terminal, type:

> hcitool dev

Devices:

hci0 00:1F:81:00:08:30

If nothing shows up, try other USB port, try unplugging & replugging it, and try running the above command multiple times (uparrow and then enter). If this still doesn't work, you may need to try a different USB dongle or even ask Matt for a different Fluke board.


7.

> hcitool scan

Scanning ...

00:1E:19:01:0F:5B IPRE6-365611

Make sure that the IPRE ID number (i.e., 365611) matches the number on the small white label above the ipre logo on the fluke board.

(If it doesn't show up, try rebooting robot.)


8. Tell Matt the IP address from above (e.g., 00:1E:19:01:0F:5B) and tell him your Fluke number (e.g., 365611)


9. Give Matt your Scribbler and Fluke and he will update your hardware setup (this takes a while, and may not be done by the time lab finishes)

10. While this is happening, you can copy BlueJ into your home directory by returning to your home directory (cd with no parameters) and then using the copy command (cp). In the terminal:

> cd

> cp -r /usr23/taylorm/bluej .

You should now be able to see this new directory when you (“list stuff” via ls):

> ls


11. Edit the configuration file by going into the bluej directory (“call directory” via cd) and editing the file with an editor called emacs:

> cd bluej

> emacs bluej

Replace my account information with your account by changing the second line to:
APPBASE=''/usr22/yourname/bluej''

using your login name. Save the file and exit emacs.


We've now finished the setup. What follows will be part of your normal workflow for the rest of the semester when you come to lab.


12. Start BlueJ:

> cd bluej

> ./bluej

OR

Go to left side of screen

Click on HOME FOLDER

In the new window, double click on BlueJ

double click on bluej and choose “Run”


13. Now, let's open the scribbler project

Project->Open Project

Navigate to the bluej directory

Select Sandbox

A new project should open


14. Click the Compile button on the left to compile everything (you'll get some pop-up warning's but that's OK).


15. Right click on Scribbler and select

New Myro.Scribbler()


16. Once you get your scribbler back, you can right click on the new scribbler object you made (in the lower left) and select the connect method. You'll get a dialogue box asking for your port, which will be given to you by matt (e.g., "/dev/rfcomm10")

If things go right, you'll see a picture of a scribbler. If not, you'll get some ugly looking error messages.

Assuming things go right, try playing around with some of the built in functions. For instance, in the new object you created (in the lower left of your project), you can right click on the object and call one of the methods. Try figuring out how to use the beep function!



When you're done, you can go to the upper right and Log Out. Don't forget the USB stick!