Sign in to follow this  
Followers 0
deickos

No internet with Ubuntu

16 posts in this topic

I just installed Ubuntu on a usb flash with persistent changes and had no internet, after a while i discovered i had to install windows drivers for wireless ( atheros ) and i did that and still have no internet - what can be wrong?

Share this post


Link to post
Share on other sites
[quote name='deickos' post='332690' date='Mar 13 2009, 08:47 PM']I just installed Ubuntu on a usb flash with persistent changes and had no internet, after a while i discovered i had to install windows drivers for wireless ( atheros ) and i did that and still have no internet - what can be wrong?[/quote]

Does the internet work on the Windows side?

Share this post


Link to post
Share on other sites
I have to use the Windows drivers for my Eee PC, which also uses Atheros.

First, do this.

[code]sudo apt-get install ndiswrapper-common ndiswrapper-utils-1.9[/code]

Or, if you don't have Internet access at all, download the .deb files onto the USB drive. These files can be gotten directly from the Ubuntu repositories from the following link.

[url="http://packages.ubuntu.com/search?keywords=ndiswrapper&searchon=names&suite=intrepid&section=all"]http://packages.ubuntu.com/search?keywords...amp;section=all[/url]

And then install them with dpkg.

[code]sudo dpkg -i ndiswrapper-common_1.52-1ubuntu1_all.deb
sudo dpkg -i ndiswrapper-utils-1.9_1.52-1ubuntu1_i386.deb[/code]

Download and extract your Windows wifi drivers. Next, add them to ndiswrapper like this.

[code]sudo ndiswrapper -i your_driver.inf[/code]

Then you have to blacklist your native wifi driver if there is one loaded (check with lsmod). On my Eee PC, I do this.

[code]sudo gedit /etc/modprobe.d/blacklist
# Then add the following line
# Replace ath5k with your wifi drivers
blacklist ath5k[/code]

Almost there! Remove that module from the currently running OS.

[code]sudo rmmod ath5k[/code]

Then load ndiswrapper.

[code]sudo modprobe ndiswrapper[/code]

Then make sure it gets loaded next time you reboot.

[code]sudo gedit /etc/modules
# Add the following line
ndiswrapper[/code]

That did the trick for me, works great! Though I do have one problem with it taking forever to connect to a wireless network. I have to rmmod then modprobe ndiswrapper and then it works. Not sure what causes it, but it's not a big problem.

Share this post


Link to post
Share on other sites
[quote name='Ohm' post='332694' date='Mar 13 2009, 08:18 PM']I have to use the Windows drivers for my Eee PC, which also uses Atheros.

First, do this.

[code]sudo apt-get install ndiswrapper-common ndiswrapper-utils-1.9[/code]

Or, if you don't have Internet access at all, download the .deb files onto the USB drive. These files can be gotten directly from the Ubuntu repositories from the following link.

[url="http://packages.ubuntu.com/search?keywords=ndiswrapper&searchon=names&suite=intrepid&section=all"]http://packages.ubuntu.com/search?keywords...amp;section=all[/url]

And then install them with dpkg.

[code]sudo dpkg -i ndiswrapper-common_1.52-1ubuntu1_all.deb
sudo dpkg -i ndiswrapper-utils-1.9_1.52-1ubuntu1_i386.deb[/code]

Download and extract your Windows wifi drivers. Next, add them to ndiswrapper like this.

[code]sudo ndiswrapper -i your_driver.inf[/code]

Then you have to blacklist your native wifi driver if there is one loaded (check with lsmod). On my Eee PC, I do this.

[code]sudo gedit /etc/modprobe.d/blacklist
# Then add the following line
# Replace ath5k with your wifi drivers
blacklist ath5k[/code]

Almost there! Remove that module from the currently running OS.

[code]sudo rmmod ath5k[/code]

Then load ndiswrapper.

[code]sudo modprobe ndiswrapper[/code]

Then make sure it gets loaded next time you reboot.

[code]sudo gedit /etc/modules
# Add the following line
ndiswrapper[/code]

That did the trick for me, works great! Though I do have one problem with it taking forever to connect to a wireless network. I have to rmmod then modprobe ndiswrapper and then it works. Not sure what causes it, but it's not a big problem.[/quote]


thanks you're great
I'll try it all and then post again

Share this post


Link to post
Share on other sites
[quote name='deickos' post='332690' date='Mar 13 2009, 07:47 PM']I just installed Ubuntu on a usb flash with persistent changes and had no internet, after a while i discovered i had to install windows drivers for wireless ( atheros ) and i did that and still have no internet - what can be wrong?[/quote]

Have you checked out the madwifi drivers? That is what I used for my atheros card.

Share this post


Link to post
Share on other sites
[quote name='Ohm' post='332694' date='Mar 13 2009, 09:18 PM']I have to use the Windows drivers for my Eee PC, which also uses Atheros.

First, do this.

[code]sudo apt-get install ndiswrapper-common ndiswrapper-utils-1.9[/code]

Or, if you don't have Internet access at all, download the .deb files onto the USB drive. These files can be gotten directly from the Ubuntu repositories from the following link.

[url="http://packages.ubuntu.com/search?keywords=ndiswrapper&searchon=names&suite=intrepid&section=all"]http://packages.ubuntu.com/search?keywords...amp;section=all[/url]

And then install them with dpkg.

[code]sudo dpkg -i ndiswrapper-common_1.52-1ubuntu1_all.deb
sudo dpkg -i ndiswrapper-utils-1.9_1.52-1ubuntu1_i386.deb[/code]

(...)[/quote]

that's what happened

ubuntu@ubuntu:~$ sudo apt-get install ndiswrapper-common ndiswrapper-utils-1.9
Reading package lists... Done
Building dependency tree
Reading state information... Done
ndiswrapper-common is already the newest version.
ndiswrapper-common set to manually installed.
ndiswrapper-utils-1.9 is already the newest version.
ndiswrapper-utils-1.9 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ubuntu@ubuntu:~$



ok if i go there you say and download those files from ubuntu repositories where should i put them - just throw them in the usb flash?

Share this post


Link to post
Share on other sites
If you already have them installed, then just follow Ohm's directions starting with the next step. He really broke it down step-by-step, you can't get much more explicit than that.

Share this post


Link to post
Share on other sites
here is what i got after i followed all the steps above


ubuntu@ubuntu:~$ iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

pan0 no wireless extensions.

ubuntu@ubuntu:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1e:ec:88:6f:25
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:16 Base address:0x1000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:376 (376.0 B) TX bytes:376 (376.0 B)

ubuntu@ubuntu:~$

Share this post


Link to post
Share on other sites
Is the ndiswrapper module loaded? What is the output of [b]lsmod | grep ndiswrapper[/b]?

Are your drivers configured to work with ndiswrapper? What is the output of [b]ndiswrapper -l[/b]?

Share this post


Link to post
Share on other sites
It would help if the exact chipset was posted, as atheros has dozens. Like SwartMumba said, try MadWifi first. With those you can inject (with patches) and capture in promiscuous mode, and offer overall better performance. Much better than the Windows drivers, depending on the exact chipset.


EDIT:
Don't do an apt-get for these drivers. Go to the project site and get the very latest stable release (or unstable with newer chipsets), and build them from source. The binaries are usually way out of date and do not run newer chipsets very well, ie poor performance, take too much power, etc.... Edited by tekio

Share this post


Link to post
Share on other sites
[quote name='tekio' post='332879' date='Mar 16 2009, 01:14 PM']It would help if the exact chipset was posted, as atheros has dozens.[/quote]

Yes, do a [code]lspci | grep Atheros[/code] and post back the results.

Share this post


Link to post
Share on other sites
I think I'm going to try the MadWifi drivers tonight. The ndiswrapper drivers were so handy though :P For most cases, they work fine, but can I use Kismet with the MadWifi drivers?

Share this post


Link to post
Share on other sites
[quote name='Ohm' post='332884' date='Mar 16 2009, 03:02 PM']I think I'm going to try the MadWifi drivers tonight. The ndiswrapper drivers were so handy though :P For most cases, they work fine, but can I use Kismet with the MadWifi drivers?[/quote]

Yep, you should be able to.

Share this post


Link to post
Share on other sites
It's really nice of them to tell you that madwifi.org is dead. Every link there is dead or broken in some way. I guess I need madwifi-project.org.

On Ubuntu, you can just [b]apt-get install linux-backports-modules-intrepid[/b] and it works fine for me. I don't know what version these drivers are though. It's convenient at least :P

Share this post


Link to post
Share on other sites
[quote name='Ohm' post='332884' date='Mar 16 2009, 07:02 PM']I think I'm going to try the MadWifi drivers tonight. The ndiswrapper drivers were so handy though :P For most cases, they work fine, but can I use Kismet with the MadWifi drivers?[/quote]

Why did you use ndiswrapper in the first place? Any specific reason?

BTW, I use backtrack with my asus eee which includes the madwifi drivers, and it supports everything. Packet injection, monitor mode etc

Share this post


Link to post
Share on other sites
It was easy and I already knew how to do it. I had no idea what version these binary drivers I installed are, but the array.org kernel I'm running doesn't seem to have a /build directory to build from source. I'll sort it all out though.

Monitor mode is a bonus, I'm mostly having trouble connecting to access points. Most of the time it'll connect in 15 seconds or so, but sometimes it just won't connect at all.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0