Connect to wireless network

Android tablets usually don't have Ethernet port, so there can be problems with internet connection. But thank to preinstalled package wireless-tools, we can surf the Net without problems.

  • Note: after every reboot of tablet, you have to connect to internet again.

Connection

Modprobe module

My tablet is using Realtek 8192cu module. However, Linux was not recognizing my wireless card. I found solution - just type sudo modprobe 8192cu and here you are!

If you don't know, what module to modprobe, reboot for a while to Android, run terminal, and type lsmod. Use a search engine to know what is model of your wireless adapter.

Power on WLAN card

sudo ifconfig wlan0 up

Scan for networks

sudo iwlist wlan0 scan

Connect to network

sudo iwconfig wlan0 essid name_of_network
  • If your Wi-Fi network is secured with hexadecimal key, add key your_password
  • If your Wi-Fi network is secured with ASCII key, add key s:your_password

Lookup for DHCP

dhclient wlan0

Test connection

You can ping google.com

ping -c 10 google.com

You can also install lynx and browse internet

sudo apt-get install lynx
lynx

If sometimes goes wrong

If there is no internet connection:

  • Add these lines to /etc/resolv.conf:
    nameserver 8.8.8.8
    nameserver 8.8.4.4
  • Decrease the distance between router and tablet, and try again
  • Reboot device, and try again
  • Check if another device (for example PC) recognize network and is capable to browse websites