LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ndiswrapper -m (https://www.linuxquestions.org/questions/linux-newbie-8/ndiswrapper-m-441633/)

klasact 05-04-2006 01:11 PM

ndiswrapper -m
 
Using Damn Small Linux. Ndiswrapper -m tells me[modprobe config already contains an alias directive] How do i find out what this directive is and then remove it. I want [alias wlan0 prism2_usb] to prevail. When trying on my own I get all sorts of permission denied although using sudo su. Thanks

jschiwal 05-04-2006 01:47 PM

Look for "alias wlan0 ndiswrapper" in /etc/modprobe.conf or in /etc/modprobe.d/ndiswrapper.

If you want the interface aliased to prism2_usb, you need
"alias prism2_usb ndiswrapper" in it's place. "prism2_usb" is what you will need to call the interface when you will configure it, and afterwords you may want to grep /etc/ to see if "wlan0" still exists in any network startup or udev scripts.

What's wrong with the name wlan0?

You could name the interface prism2_usb without aliasing the kernel module name.

klasact 05-04-2006 04:35 PM

modprobe.conf does not allow root to look at aliases.
modprobe.d does not show /ndiswrapper.
grep/etc/ reads no such command.

I want to install a lnksys wusb11 wireless adapter for 2 weeks now without success. I would prefer wlan0 and no aliases,however everything seems to be stuck to something else. After boot the control panel shows netcard config, prism 2, ndiswrapper etc--all showing an assortment of network setups but none are changeable and none work so i decided to clear out this network debris and start fresh with ndiswrapper but numerous changes that i would like to make are not allowed no matter what. If i want to crash and burn i should be allowed to do so. Any comments or help appreciated. Thanks

bosewicht 05-04-2006 04:44 PM

Quote:

Originally Posted by klasact
grep/etc/ reads no such command.

Quote:

Originally Posted by jschiwal
afterwords you may want to grep /etc/ to see if "wlan0" still exists in any network startup or udev scripts.

The first key to learning something is folowing directions. There is a difference between

grep/etc/ and grep /etc/

Freestone 05-04-2006 04:55 PM

klasact,

I only messed around with Damn Small Linux for a few days so my knowledge is limited to how it works compared to other distros.

I do understand from my experience that you don't log in as 'root', but you use an 'su'.....so, I'm wondering if you have explored changing the
permissions in /etc/modprobe.d or modprobe.conf ?? (chmod command). When you ' su' -c or whatever you have to do to get administrative privledges, does it allow you to change permissions?

Let us know and if you can change file permissions, that may be the first step.
I battled ndiswarper (my little pet name for ndiswrapper) for two weeks in FC5 before I got it working. It can be done!!!!!

Let us know what you come up with on pernissions.

klasact 05-05-2006 02:16 PM

OK guys i was a good boy and got permissions.
1 ndiswrapper tells me driver installed----hardware present
2 ndiswrapper -m tells me [modprobe config already contains alias directive]
3 ndiswrapper -a tells me [module alias info is stored in/etc/modprobe.d/ndiswrapper then advises me to copy it to where udev expects it and configure udev] I NEED HELP WITH THIS ONE. and a step by step from this point to a wireless connection. I use broadband by a cable company and after connection everything works without my intervention{i think).No WEP

Freestone 05-05-2006 04:21 PM

Quote:

OK guys i was a good boy and got permissions.
1 ndiswrapper tells me driver installed----hardware present
2 ndiswrapper -m tells me [modprobe config already contains alias directive]
3 ndiswrapper -a tells me [module alias info is stored in/etc/modprobe.d/ndiswrapper then advises me to copy it to where udev expects it and configure udev] I NEED HELP WITH THIS ONE. and a step by step from this point to a wireless connection. I use broadband by a cable company and after connection everything works without my intervention{i think).No WEP
klasact,

I was given the same directions about udev. Guess what? I didn't do a thing with udev. Once I got to that point I'd like to say I was smart
and made everything work because I'm brilliant. But, I'm not brilliant so that tells me that it just magically worked from there.
Now, for getting online everytime you boot up you will need an 'ifcfg-wlan0' text file in /etc/sysconfig/network-scripts. If you don't have one, here's mine:

DEVICE=wlan0
BOOTPROTO=dhcp
ONBOOT=yes
METRIC=10
#MII_NOT_SUPPORTED=no
WIRELESS_MODE=Managed
WIRELESS_ESSID=any
#NEEDHOSTNAME=yes
NETMASK=
DHCP_HOSTNAME=
IPADDR=
DOMAIN=
HWADDR=00:14:a5:69:2b:e7
USERCTL=yes
IPV6INIT=no
PEERDNS=yes
TYPE=Wireless
ESSID=
CHANNEL=1
MODE=Auto
RATE=Auto

Just copy that text into an editor of your choice and save it as 'ifcfg-wlan0' in /etc/sysconfig/network-scripts.
This is a general script, or text file and I'm sure it can get fancier per your needs. Just do a search in these forums or google it
and look for 'ifcfg-wlan0' scripts and there may be something a little fancier but you may not need it. But just in case...

That should have your wlan0 fire up each time you boot into Linux.

Let us know if you need more assistance.
Have a great day!

klasact 05-10-2006 10:00 PM

To make a very long story short I installed ver 2.4rc2 of Damn Small Linux and got my Linksys wireless usb adaptor working. The command iwconfig shows all the necessary parameters adjacent to "wlan0" Is there any way to capture this and save to filetool.lst so the internet connection will be activated every time i boot up. Which file or dir contains the info displayed by iwconfig. I need a very easy way to save the working wireless connection. I tried the ifcfg-wlan0 text file but couldnt get it to make the save. Help Thanks


All times are GMT -5. The time now is 10:13 PM.