//check the status of network
//set the wlan on or off
//set the network interface
on interface the current setup is (please remove my comment on the file bellow //comment)
Code: Select all
auto lo
iface lo inet loopback
iface eht0 inet dhcp//use inet via ethernet, it is the default setting
allow-hotplug wlan0 //use inet via lan, don't know the diff between manual and static
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf //this is default setting
iface home inet static //use inet via static ip, home is used on wpa_supplicant.conf
address 10.99.10.220
netmask 255.255.255.0
gateway 10.99.10.1
iface default inet dhcp
allow-hotplug usb0 //to use internet via usb
iface usb0 inet dhcp
if you don't use static ip, you can delete from iface home inet static untill gateway 10.99.10.1
of course you need to set your own ip address, netmask, and gateway depend on your network setup
if you use custom dns
//to set up the dns server, when static use google dns 8.8.8.8
//when automatic, use 192.68.31.1 instead of 8.8.8.8
//to scan the wireless connection
then check the wpa
//to set up the wpa_supplicant to connect the inet
Code: Select all
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
//the current set up is
//please remove all my comment on the files
Code: Select all
ctrl interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="your ssid name or the wireless name"
psk="the password to your ssid"
id_str="home" //home is name of the iface settings found on network interface, if you don't use static ip, remove this line
#Protocol type can be : RSN(for WPA2) and WPA (for WPA1)
proto=WPA
#Key management type can be : WPA-PSK or WPA-EAP (Pre-Shared or Enterprise)
key_mgmt=WPA-PSK
#Pairwise can be CCMP or TKIP (for WPA2 or WPA1)
pairwise=TKIP
#Authorization option should be OPEN for both WPA1/WPA2 (in less commonly used are SHARED and LEAP
auth_alg=OPEN
}
//if you have more than one ssid to connect add them after this, if you only have 1 ssid to connect remove one of this network
network={
ssid="AndroidAP"
psk="qwerasdf"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
disabled=1
}
if problems still occur, try to reboot
if problem still occur try to check your voltage power, low voltage may be the cause of the problem, if this is the problem you need a powered usb hub