No internet with Ubuntu
#1
Posted 13 March 2009 - 07:47 PM
#2
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
Posted 13 March 2009 - 08:18 PM
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
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
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
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
Posted 14 March 2009 - 08:39 AM
#8
Posted 16 March 2009 - 03:10 AM
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
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
ubuntu@ubuntu:~$
#9
Posted 16 March 2009 - 04:27 AM
Are your drivers configured to work with ndiswrapper? What is the output of ndiswrapper -l?
#10
Posted 16 March 2009 - 01:14 PM
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
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 Atherosand post back the results.
#12
Posted 16 March 2009 - 02:02 PM
#13
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
For most cases, they work fine, but can I use Kismet with the MadWifi drivers?
Yep, you should be able to.
#14
Posted 16 March 2009 - 02:56 PM
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
#15
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
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
Posted 16 March 2009 - 04:20 PM
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!













