Beagle Bone Black Tutorial

BeagleBone Black Tutorials:
     
You got your new BBB. You are dying to talk with it.
This is done using SSH. It would be great if you understand this but just for short it a set of rules by which two or more parties communicate with each other so that no other can listen. For more information see SSH Wikipedia

You need to download Putty. It is just a simple executable file.
Plug in your BBB with the usb cable that you got.

Putty requires ip-address of BBB. Either you can use some network port scanner tool Or the following method.

Open the BBB usb in the computer. You would find start.html. Open it.
Click on Step 3 : Browse to Web Server on board.

You would find a click here to launch : http://<BBB_IP_ADDRESS>
where BBB_IP_ADDRESS is some number like 192.168.7.2



Now you know the address of BBB where you need to send in your messages. :)

Open Putty :

Write BBB_IP_ADDRESS in Host Name, port 22 and choose SSH.
Save it.



Click on Open.

You got a command window. Type 'root' when prompted for both username and password.
Take a look at leds of your BBB and
then Type

echo 1 > /sys/class/leds/beaglebone:green:usr1/brightness

and you got one of your Leds just glowing :)
To switch it off pass 0 in the above command.

echo 0 > /sys/class/leds/beaglebone:green:usr1/brightness



And you got it working.

Troubleshooting :      
Putty Errors:
If you got something like this message :

Server unexpectedly closed the connection.

Open start.htm in the BBB usb, and find the link to open server cloud nine IDE like
           http://192.168.7.2:3000/ 
  This would open the Cloud Nine IDE.

Run in the command window at the bottom of the Page.
su
ls -s /etc/dropbear

This tells the size of files present in the directory /etc/dropbear
you will see a file dropbear_rsa_host_key
if it is of size 0 remove it with

su rm /etc/dropbear

Try again with Putty. This time it should work. It would generate a valid key this time for SSH.
If you again look at that file it would have some size (4)

Comments