Link to home
Start Free TrialLog in
Avatar of fario
farioFlag for Italy

asked on

Need to type "sudo modprobe ndiswrapper" at every single reboot to have wireless working

I'm very new to Linux,

after having installed ubuntu i needed some tricks with ndiswrapper to make my wireless PCI adapter work.

The problem is that every time i reboot my machine, i need to enter  sudo modprobe ndiswrapper  into the console

If i forget to do that command, i can't see my wlan0 in the ifconfig -a screen.


I've tried to edit

/etc/rc.local

in the purpose of adding the  "sudo modprobe ndiswrapper"  string but i can't save it, maybe because is a read only file.

Neither sudo ndiswrapper -m made the tricks

I'm using Ubuntu 10.04 beta2

Thank you for your help
Avatar of Maciej S
Maciej S
Flag of Poland image

Add "ndiswrapper" (without "") to /etc/modules.
ASKER CERTIFIED SOLUTION
Avatar of TobiasHolm
TobiasHolm
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Or use: sudo nano /etc/etc/modules
if you want to edit the modules file instead.
typo... Should of course be: sudo nano /etc/modules
Really, don't use rc.local unless you've tried everything else.  rc.local is a fallback for things you can't do anywhere else.  It will quickly become unwieldy if you start putting things in there.  This belongs in /etc/modules (which is what "sudo ndiswrapper -m" is admittedly supposed to do, but I've never seen it work).

Also, please don't advise using "nano".  Use "editor", which may  be "nano", but may be whatever other editor the system admin has installed as the default.  Not all Linuxes will use nano by default.