LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   WIFI was working now can't connect. (https://www.linuxquestions.org/questions/linux-newbie-8/wifi-was-working-now-cant-connect-4175506944/)

Millington 06-03-2014 04:48 PM

WIFI was working now can't connect.
 
I have disconnected and reconnected nothing happened. I have looked at setings. SSID set, don't know much about the rest. MTU: Automatic.IPv4: automatic. Wireless security WPA is set. What else do I need?
My WiFi adapter is a Linksys compact wireless G usb. my system is Ubuntu 12.04. I am writing this on my laptop, for some reason, I am unable to show the results because when I try to copy the results, I am unable to copy them to my finger drive.

soldersplash 06-03-2014 05:59 PM

Hello Millington,
I see you're new around here so welcome aboard!

Your question doesn't give us much to go on. On my system (Currently Ubuntu 13.10) I can use dmesg to to see whats going on when I disconnect/re-connect to wifi. This may give us some clue as to what is going on for you.
Disconnect from WiFi then open up a terminal and use the foillowing command:
Code:

you@your_host:~$ dmesg | tail -n20
(the | aka 'pipe' redirects the dmesg output to the tail command which with the optional -n20 just shows us the last 20 lines of the dmesg output; we don't need to see it all)

Now attempt to re-connect to WiFi, give it 30seconds maybe then run the command again:
Code:

you@your_host:~$ dmesg | tail -n20
You should be able to see what messages spat out after the attempted re-connect by comparing before and after. Post the dmesg output back here and we'll try and help work out your problem :)

Best regards,
Soldersplash.

Millington 06-04-2014 12:21 PM

My WiFi adapter is a Linksys compact wireless G usb. my system is Ubuntu 12.04. I am writing this on my laptop, for some reason, I am unable to show the results because when I try to copy the results, I am unable to copy them to my finger drive for transfer to laptop.I cold started my router and that didn't work. I am going to reload Ubuntu and start over from scratch. It worked when I first booted the system.

Thanks for your help.

Fred Caro 06-04-2014 07:43 PM

Millington,
is your 'finger drive' a usb stick/pendrive/removable drive? Is it formated to fat, or some other file system or broke? Or are you copying incorrectly?
If wifi worked first time round after rebooting a new install it should continue to work but strengh of signal can be an issue.
From the signal icon you can click to see available 'networks' does yours show up?
Alternativly show the output of '/sbin/iwconfig' from a terminal no quotes.

Fred

Shadow_7 06-04-2014 08:49 PM

There's basically 3 things that make up a network connection. The device driver and configuration. The routing. And the firewall. Any of the three can disable your network.

# iptables-save

# route -n
$ netstat -r

# ifconfig
# iwconfig

You can pipe the output to files. 2>&1 redirects STDERR to STDOUT. Pipe "|" plus tee sends it to a file while letting you see the output. So:

# route -n 2>&1 | tee logfile.txt

or redirect it to a file and not see the output.

# route -n 2>&1 > logfile.txt

l33y 06-04-2014 08:56 PM

Millington,

When you are logged into a command terminal in Ubuntu and have your memory stick plugged in, try the following commands.
Quote:

sudo fdisk -l
This will show you the device name of your memory stick. Then mount it
Quote:

sudo mount /dev/sdb1 /mnt
Quote:

cd /mnt
Then you can type in the commands soldiersplash and Shadow 7 were recommending, and pipe them out to a file on your memory stick.
Quote:

dmesg | tail -n20 >> tailer
Then try opening tailer as a text file in Windows, and posting the output here. You might also want to try the following:

Quote:

dmesg | grep wlan0
Quote:

iwlist wlan0 scanning


All times are GMT -5. The time now is 06:45 PM.