Table of Contents

Lubuntu Desktop/Sever Wifi Configuration

About this Article

Abstract

  1. This tutorials is about Lubuntu Desktop/sever wifi configuration on CB1、CB2 and CB3(Cubietruck).
  2. Cubieboard1 and Cubieboard2 Lubuntu Desktop/sever USB WLAN card driver module:8188eu and 8192eu.
  3. Cubietruck support Wifi wireless connection with antenna on-board,driver module is bcmdhd.
  4. " Mw150us + 8188eu" USB WLAN card was tested on CB1 and CB2 on Desktop/sever.

Cubieboard Lubuntu Sever

Install wifi tool:apt-get install wifi-radar,then ,rebooting CB1 and CB2 only with USB WLAN card ,rebooting CT without network Cable,it will take a few minutes.

1.Install wifi-radar

apt-get install wifi-radar

Rebooting you can see this

root@cubieboard:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 02:03:06:03:01:60
          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)
          Interrupt:55 Base address:0xb000

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:16436  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)

2.1 Modprobe CB1 and CB2 module

root@cubieboard:~# modprobe 8188eu
root@cubieboard:~# lsmod
Module                  Size  Used by
8188eu                495500  0
mali                  108013  0
ump                    51144  1 mali
lcd                     3701  0
pwm_sunxi               9110  0
gpio_sunxi              8204  0

2.2 Modprobe CT module

root@cubietruck:~# modprobe bcmdhd
root@cubietruck:~#
root@cubietruck:~# lsmod
Module                  Size  Used by
bcmdhd                497543  0
mali                  110767  0
ump                    51819  1 mali
lcd                     3778  0
sunxi_gmac             30667  0
pwm_sunxi               9251  0

3.Scan wifi

root@cubieboard:~# ifconfig wlan0 up
<6>ADDRCONF(NETDEV_UP): wlan0: link is not ready
root@cubieboard:~#
root@cubieboard:~#
root@cubieboard:~# ifconfig wlan0 up
root@cubieboard:~#
root@cubieboard:~# iwlist wlan0 scan
wlan0     Scan completed :
          Cell 01 - Address: EC:88:8F:BB:89:86
                    ESSID:"cubietech_2.4GHz"
                    Protocol:IEEE 802.11bgn
                    Mode:Master
                    Frequency:2.437 GHz (Channel 6)
                    Encryption key:off
                    Bit Rates:300 Mb/s
                    IE: Unknown: DD9B0050F204104A0001101044030105400080001
                    Quality=64/100  Signal level=-56 dBm

4.1 Config CB1 and CB2 wlan0 essid

root@cubieboard:~# iwconfig wlan0 essid "cubietech_2.4GHz"

root@cubieboard:~# <6>ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
         ==> rssi_level:0, rate_bitmap:0x000ff015
UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
         ==> rssi_level:2, rate_bitmap:0x000ff000
<7>wlan0: no IPv6 routers present

4.2 Config CT wlan0 essid

root@cubietruck:~# iwconfig wlan0 essid "cubietech_2.4GHz"
root@cubietruck:~#
root@cubietruck:~#
root@cubietruck:~#
root@cubietruck:~# wl_bss_connect_done succeeded with ec:88:8f:bb:89:86
wl_bss_connect_done succeeded with ec:88:8f:bb:89:86

5.Geting your WLAN IP,if you can`t go on after "dhclient wlan0",please reboot and do the previous 1-4 steps again

root@cubieboard:~# dhclient wlan0
root@cubieboard:~#
root@cubieboard:~#
root@cubieboard:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 02:03:06:03:01:60
          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)
          Interrupt:55 Base address:0xb000

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:16436  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)

wlan0     Link encap:Ethernet  HWaddr 14:cf:92:2a:d6:e4
          inet addr:192.168.1.135  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::16cf:92ff:fe2a:d6e4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:140 errors:0 dropped:186 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:24537 (24.5 KB)  TX bytes:950 (950.0 B)

6.Ping for check

root@cubieboard:~# ping google.com
PING google.com (74.125.128.102) 56(84) bytes of data.
64 bytes from hg-in-f102.1e100.net (74.125.128.102): icmp_req=1 ttl=47 time=19.0 ms
64 bytes from hg-in-f102.1e100.net (74.125.128.102): icmp_req=2 ttl=47 time=78.0 ms
64 bytes from hg-in-f102.1e100.net (74.125.128.102): icmp_req=3 ttl=47 time=118 ms
64 bytes from hg-in-f102.1e100.net (74.125.128.102): icmp_req=4 ttl=47 time=117 ms
64 bytes from hg-in-f102.1e100.net (74.125.128.102): icmp_req=5 ttl=47 time=118 ms
64 bytes from hg-in-f102.1e100.net (74.125.128.102): icmp_req=6 ttl=47 time=140 ms
64 bytes from hg-in-f102.1e100.net (74.125.128.102): icmp_req=7 ttl=47 time=117 ms
64 bytes from hg-in-f102.1e100.net (74.125.128.102): icmp_req=8 ttl=47 time=108 ms
64 bytes from hg-in-f102.1e100.net (74.125.128.102): icmp_req=9 ttl=47 time=100 ms
^C
--- google.com ping statistics ---
9 packets transmitted, 9 received, 0% packet loss, time 8012ms
rtt min/avg/max/mdev = 19.077/102.123/140.905/33.372 ms
root@cubietruck:~#
root@cubietruck:~#
root@cubietruck:~# ping google.com
PING google.com (173.194.127.41) 56(84) bytes of data.
64 bytes from hkg03s10-in-f9.1e100.net (173.194.127.41): icmp_req=3 ttl=53 time=56.9 ms
64 bytes from hkg03s10-in-f9.1e100.net (173.194.127.41): icmp_req=6 ttl=53 time=57.0 ms
64 bytes from hkg03s10-in-f9.1e100.net (173.194.127.41): icmp_req=8 ttl=53 time=38.0 ms
64 bytes from hkg03s10-in-f9.1e100.net (173.194.127.41): icmp_req=9 ttl=53 time=25.0 ms
64 bytes from hkg03s10-in-f9.1e100.net (173.194.127.41): icmp_req=11 ttl=53 time=30.6 ms
64 bytes from hkg03s10-in-f9.1e100.net (173.194.127.41): icmp_req=14 ttl=53 time=31.8 ms

7.Configuration is over

Cubieboard Lubuntu Desktop

Lubuntu Desktop configuration is same with sever,but Desktop image have installed "wifi-radar"tool,you can start on step2 to get your Lubunut Desktop IP.