I've recently downloaded and installed Ubuntu on my lenovo ideapad 100, and once in a while it seems it is connected to the wi-fi, but the browser doesn't load any page; but, after turning off and on the "Enable Wi-Fi" option, it usually reconnects. Right now, it won't connect again and won't show any available wi-fi around. Any way to get the internet back without restarting the whole system?
Asked
Active
Viewed 1,150 times
1 Answers
0
Sure, are you using WPA or WEP encryption? You can use ifconfig
to check if your adapter is being recognized; possibly something is causing it to be blocked or taken "down":
sudo ifconfig
if you see your wireless adapter there, then move on to step 2. If not, use
sudo lshw
to see if the adapter has been
rfkill
ed or something else.If you're using WEP and your wireless adapter's name is "wlan0":
sudo ifconfig wlan0 up sudo iwconfig wlan0 essid network_name key network_key sudo dhclient wlan0
If you're using WPA and your wireless adapter's name is
wlan0
:sudo apt-get install wpasupplicant cd /etc sudo nano wpa_supplicant.conf
And add:
network={ ssid="ssid_name" psk="password" }
Then press Ctrl+x to save. Controls vary using vi, vim, etc. You could use a text editor, as well.
sudo wpa_supplicant -B -iwlan0 -c/etc/wpa_supplicant.conf -Dwext sudo dhclient wlan0
*Some information gathered from this link:
How do I connect to a WPA wifi network using the command line?
Also try this if the above does not work:
-
what should I put in /etc ? As you can see, I am very new to this, so which directory should it be? Or it doesn't matter? – Ilan Kaboom Jun 14 '16 at 12:41
-
Ok, I am such a noob. I got it and continued, and after doing wpa_spplicant -B ... -Dwext, it returned "Successfully initialized wpa_supplicant" but also "ioctl[SIOCSIWENCODEEXT]: Invalid argument" twice. I tried moving on to the dhclient but it got stuck and the net went out – Ilan Kaboom Jun 14 '16 at 12:59
-
Ok, it finished and I restarted, so far working great. Thank you, I'm a little embarrassed – Ilan Kaboom Jun 14 '16 at 13:06
-
Ok, it didn't work, once again the wi-fi stopped working but seems connected – Ilan Kaboom Jun 14 '16 at 13:40
-
haha, sorry I missed all these! Are you still having the issues as of now? – P Smith Jun 14 '16 at 20:57
-
That's all that matters! Consider editing with your solution if you happen(ed) to figure out the specific fix! :) Cheers! – P Smith Jun 14 '16 at 22:13
lshw
in terminal though and then paste the results to your question I'm pretty sure either myself or someone else will be able to help you. :) – proprocastinator Jun 13 '16 at 21:54That's all the networking part
– Ilan Kaboom Jun 14 '16 at 12:46This is the same wifi adaptor I have in my laptop and this worked a charm! :)
– proprocastinator Jun 14 '16 at 16:26