I had a hard time connecting the BeagleBone Black to the internet while I was working from Fedora 19. The tutorials for other Linux distros were pretty straight forward. After having pondered over it for a day or two I finally managed to access internet from the Black. Special credits to Gaurav Jain :D.
So here is what I did,
SSH to your Black using ssh email@example.com. Once this is done run the following commands from the beaglebone shell.
- root@beaglebone:/ # /sbin/route add default gw 192.168.7.1
- root@beaglebone:/ # echo “nameserver 22.214.171.124” » /etc/resolv.conf
On the host Linux Machine except Fedora:
sudo iptables -A POSTROUTING -t nat -j MASQUERADE
This instruction enables the masquerading option allowing any device in the subnet to act on behalf of the host machine.
sudo echo 1 sudo tee /proc/sys/net/ipv4/ip_forward > /dev/null
This instruction enables the ipv4 forwarding providing the beaglebone with access to the internet.
On a Fedora machine instead of above two intsructions:
Open Firewall settings.
Select zone as public.
In the side tab panel select masquerading
Enable Masquerade zones.
Switch back to the BeagleBone Black terminal
root@beaglebone:/ # ping google.com
A successful ping implies beaglebone black now has internet access.
Go ahead and update your Black!
root@beaglebone:/ # opkg update
(opkg is the package manager for the BeagleBone Black.)
Also here is one nice tutorial for getting a hands on with the BBB BBB-Workshop by Anuj Deshpande