REV_A5A

Setting up the Beaglebone Black with Ubuntu 13.10 and configuring WiFi

This post runs through the flashing of Ubuntu onto your Beaglebone Black. We highly recommend Ubuntu over Angstrom, as its prone to less bugs. Included in this post is the setting up of WiFi, assuming you have a WiFi dongle attached.

Download the Ubuntu 13.10 image for Beaglebone Black from the following link: Ubuntu Image

Create a MicroSD card with the downloaded image.

To accomplish this, run the following commands:

unxz BBB-eMMC-flasher-ubuntu-14.04.1-console-armhf-2014-10-29-2gb.img.xz
sudo dd if=./BBB-eMMC-flasher-ubuntu-14.04.1-console-armhf-2014-10-29-2gb.img of=/dev/sdX

sdX is the MicroSD card to load it on.

Once it is done copying the image onto the MicroSD card, safely remove it from your card reader, and insert it into the Beaglebone Black.  Hold down the boot button on the Beaglebone Back, and plug in the power to the Beaglebone Black.  Continue to hold down the BOOT button for approximately 10 seconds, or until the 4 BOOT LEDs start to flicker.

You will know that the loading of Linux is complete when all 4 LEDs remain solidly lit.  Power the Beaglebone down then remove the MicroSD card.  Plug the Mini USB cable from your computer into the Beaglebone.

Default user: ubuntu pass: temppwd

tinkernow@host_computer:~$ ssh ubuntu@192.168.7.2

tinkernow@beaglebone:~$ sudo apt-get update

tinkernow@beaglebone:~$ sudo apt-get install vim

Setup the wifi

To set up the WiFi, the first thing you are going to need to do is input your wireless network’s SSID and Passphrase into the beaglebone network configuration file.  the path for the network configuration fire is /etc/network/interfaces.  To input our SSID and Passphrase, we are going to use the command vi to edit the file, as shown below:

tinkernow@beaglebone:~$ sudo vi /etc/network/interfaces

change the section in the file that looks like this

# WiFi Example #auto wlan0 #iface wlan0 inet dhcp # wpa-ssid "essid" # wpa-psk "password"
To look like this. YourSSID and YourPassword is the information to connect to your WiFi network.
# WiFi Example auto wlan0 iface wlan0 inet dhcp wpa-ssid "YourSSID" wpa-psk "YourPassword"
Restart the network

tinkernow@beaglebone:~$ sudo service networking restart

tinkernow@beaglebone:~$ ifconfig

If your wifi information is correct you should now see wlan0 that is you wifi network information

eth0      Link encap:Ethernet  HWaddr 9b:59:af:54:a8:c2
inet addr:192.168.1.24  Bcast:192.168.1.255  Mask:255.255.255.0
inet6 addr: fe80::9259:afff:fe54:a5c2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:681 errors:0 dropped:0 overruns:0 frame:0
TX packets:122 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:106738 (106.7 KB)  TX bytes:15303 (15.3 KB)
Interrupt:56

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 36:da:73:aa:86:e9
inet addr:192.168.7.2  Bcast:192.168.7.3  Mask:255.255.255.252
inet6 addr: fe80::34da:73ff:feaa:86e9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:175 errors:0 dropped:0 overruns:0 frame:0
TX packets:140 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:21003 (21.0 KB)  TX bytes:28372 (28.3 KB)

wlan0     Link encap:Ethernet  HWaddr 00:13:17:00:24:d3
inet addr:192.168.1.57  Bcast:192.168.1.255  Mask:255.255.255.0
inet6 addr: fe80::213:13ff:fe00:4d3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:105 errors:0 dropped:0 overruns:0 frame:0
TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:28974 (28.9 KB)  TX bytes:9331 (9.3 KB)

Python Wifi Management

Infomation about the Wifi management tool can be found at the link http://wifi.readthedocs.org/en/latest/index.html

  • sudo apt-get install python-pip python-dev build-essential
  • sudo pip install wifi

To scan for wifi networks

  • sudo wifi scan | sort -rn

, , , , ,

Trackbacks/Pingbacks


    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 453919 bytes) in /home/hessl/public_html/tinkernow.com/wp-includes/class-walker-comment.php on line 173