If you're just getting started and are new to using the BeagleBone Black 
(as I am) you've no doubt read and watched countless videos that insist you 
must get this ethernet over USB working in order to change the BBB to a 
static IP before you can move forward. I've not found this to be true. You 
can connect directly via ethernet. Just connect one end of an ethernet 
cable into your BBB, and the other directly into your Mac, or connect the 
BBB directly to your router (many of these tutorials say you need a 
crossover cable for a direct connection to your computer... it's 2015, you 
do not need a crossover cable to connect directly to your computer (well, 
unless you're using a relic). 

I suspect you may know some of the following, I'm just going to explain it 
down to the basics just in case there are others who are new to the *NIX 
command line.

The default config of the BBB is for a DHCP connection... this will work 
great (all of these tutorials seem to suggest you need a static IP, you do 
not). The Mac's default config on the Ethernet port will of course also be 
DHCP.

Open a terminal window and type:

ssh [email protected]

If it asks for a password, just hit return (there is none). You should now 
be connected to the BBB. If you want to find the IP so you can use Cloud9 
just type:

ifconfig

It will respond with something like this:

eth0      Link encap:Ethernet  HWaddr 6c:ec:eb:b0:0e:a0  

          inet addr:192.168.2.2  Bcast:192.168.2.255  Mask:255.255.255.0

          inet6 addr: fe80::6eec:ebff:feb0:ea0/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:10051 errors:0 dropped:0 overruns:0 frame:0

          TX packets:866 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000 

          RX bytes:808671 (789.7 KiB)  TX bytes:114797 (112.1 KiB)

          Interrupt:40 


lo        Link encap:Local Loopback  

          inet addr:127.0.0.1  Mask:255.0.0.0

          inet6 addr: ::1/128 Scope:Host

          UP LOOPBACK RUNNING  MTU:65536  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0 

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


usb0      Link encap:Ethernet  HWaddr 6c:ec:eb:b0:0e:a1  

          inet addr:192.168.7.2  Bcast:192.168.7.3  Mask:255.255.255.252

          UP BROADCAST MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000 

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


Your IP is under eth0, in this case my board has an address of 192.168.2.2


If you want to launch Cloud9, open up a browser and enter 192.168.2.2:3000 
for the URL and hit return. Cloud9 will take a few seconds to start up, and 
then you're good to go. 


If your want your BBB to be able to access the net from your Mac, open up 
your system preferences, click on sharing, and then make sure the internet 
sharing box is checked, and the appropriate ethernet port is selected. You 
can test to see if it's working by pinging Google from the terminal (either 
in Cloud9, or from the terminal window you opened for SSH)


ping www.google.com


Now... if you DO want to configure a static IP, you can do that now by 
typing:


nano /etc/network/interfaces


There are plenty of tutorials that can show you how to modify this file... 
just make sure you know exactly what you want to do as modifications to 
this file may prevent you from connecting via ethernet the next time around.


Cheers, Joe

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to