Jump to content


Photo
- - - - -

No internet with Ubuntu


  • Please log in to reply
15 replies to this topic

#1 deickos

deickos

    HACK THE PLANET!

  • Members
  • 62 posts
  • Location:Balbec

Posted 13 March 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?

#2 phasma

phasma

    Hakker addict

  • Members
  • 527 posts
  • Country:
  • Gender:Male
  • Location:Pennsylvania

Posted 13 March 2009 - 08:04 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?


Does the internet work on the Windows side?

#3 Ohm

Ohm

    I could have written a book with all of these posts

  • Members
  • 3,209 posts
  • Gender:Male
  • Location:Maine, USA

Posted 13 March 2009 - 08:18 PM

I have to use the Windows drivers for my Eee PC, which also uses Atheros.

First, do this.

sudo apt-get install ndiswrapper-common ndiswrapper-utils-1.9

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.

http://packages.ubun...amp;section=all

And then install them with dpkg.

sudo dpkg -i ndiswrapper-common_1.52-1ubuntu1_all.deb
sudo dpkg -i ndiswrapper-utils-1.9_1.52-1ubuntu1_i386.deb

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

sudo ndiswrapper -i your_driver.inf

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

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

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

sudo rmmod ath5k

Then load ndiswrapper.

sudo modprobe ndiswrapper

Then make sure it gets loaded next time you reboot.

sudo gedit /etc/modules
# Add the following line
ndiswrapper

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.

#4 deickos

deickos

    HACK THE PLANET!

  • Members
  • 62 posts
  • Location:Balbec

Posted 13 March 2009 - 08:28 PM

I have to use the Windows drivers for my Eee PC, which also uses Atheros.

First, do this.

sudo apt-get install ndiswrapper-common ndiswrapper-utils-1.9

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.

http://packages.ubun...amp;section=all

And then install them with dpkg.

sudo dpkg -i ndiswrapper-common_1.52-1ubuntu1_all.deb
sudo dpkg -i ndiswrapper-utils-1.9_1.52-1ubuntu1_i386.deb

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

sudo ndiswrapper -i your_driver.inf

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

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

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

sudo rmmod ath5k

Then load ndiswrapper.

sudo modprobe ndiswrapper

Then make sure it gets loaded next time you reboot.

sudo gedit /etc/modules
# Add the following line
ndiswrapper

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.



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

#5 SwartMumba

SwartMumba

    mad 1337

  • Members
  • 145 posts
  • Gender:Male
  • Location:TX <-- I'm here

Posted 13 March 2009 - 08:54 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?


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

#6 deickos

deickos

    HACK THE PLANET!

  • Members
  • 62 posts
  • Location:Balbec

Posted 14 March 2009 - 08:20 AM

I have to use the Windows drivers for my Eee PC, which also uses Atheros.

First, do this.

sudo apt-get install ndiswrapper-common ndiswrapper-utils-1.9

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.

http://packages.ubun...amp;section=all

And then install them with dpkg.

sudo dpkg -i ndiswrapper-common_1.52-1ubuntu1_all.deb
sudo dpkg -i ndiswrapper-utils-1.9_1.52-1ubuntu1_i386.deb

(...)


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?

#7 mirrorshades

mirrorshades

    aviatorglasses

  • Agents of the Revolution
  • 951 posts
  • Gender:Male

Posted 14 March 2009 - 08:39 AM

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.

#8 deickos

deickos

    HACK THE PLANET!

  • Members
  • 62 posts
  • Location:Balbec

Posted 16 March 2009 - 03:10 AM

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:~$

#9 Ohm

Ohm

    I could have written a book with all of these posts

  • Members
  • 3,209 posts
  • Gender:Male
  • Location:Maine, USA

Posted 16 March 2009 - 04:27 AM

Is the ndiswrapper module loaded? What is the output of lsmod | grep ndiswrapper?

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

#10 tekio

tekio

    5(R1P7 |<1DD13

  • Binrev Financier
  • 1,102 posts
  • Gender:Male
  • Location:The Blue Nowhere

Posted 16 March 2009 - 01:14 PM

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, 16 March 2009 - 01:30 PM.


#11 SwartMumba

SwartMumba

    mad 1337

  • Members
  • 145 posts
  • Gender:Male
  • Location:TX <-- I'm here

Posted 16 March 2009 - 01:59 PM

It would help if the exact chipset was posted, as atheros has dozens.


Yes, do a
lspci | grep Atheros
and post back the results.

#12 Ohm

Ohm

    I could have written a book with all of these posts

  • Members
  • 3,209 posts
  • Gender:Male
  • Location:Maine, USA

Posted 16 March 2009 - 02: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?

#13 tekio

tekio

    5(R1P7 |<1DD13

  • Binrev Financier
  • 1,102 posts
  • Gender:Male
  • Location:The Blue Nowhere

Posted 16 March 2009 - 02:17 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?


Yep, you should be able to.

#14 Ohm

Ohm

    I could have written a book with all of these posts

  • Members
  • 3,209 posts
  • Gender:Male
  • Location:Maine, USA

Posted 16 March 2009 - 02:56 PM

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 apt-get install linux-backports-modules-intrepid and it works fine for me. I don't know what version these drivers are though. It's convenient at least :P

#15 phr34kc0der

phr34kc0der

    SUPR3M3 31337 Mack Daddy P1MP

  • Members
  • 469 posts
  • Country:
  • Gender:Male

Posted 16 March 2009 - 03:45 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?


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

#16 Ohm

Ohm

    I could have written a book with all of these posts

  • Members
  • 3,209 posts
  • Gender:Male
  • Location:Maine, USA

Posted 16 March 2009 - 04:20 PM

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.




BinRev is hosted by the great people at Lunarpages!