LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-04-2006, 01:11 PM   #1
klasact
LQ Newbie
 
Registered: Apr 2006
Posts: 10

Rep: Reputation: 0
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
 
Old 05-04-2006, 01:47 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.

Last edited by jschiwal; 05-04-2006 at 01:50 PM.
 
Old 05-04-2006, 04:35 PM   #3
klasact
LQ Newbie
 
Registered: Apr 2006
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
Old 05-04-2006, 04:44 PM   #4
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Rep: Reputation: 47
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/
 
Old 05-04-2006, 04:55 PM   #5
Freestone
Member
 
Registered: Jan 2003
Location: Brighton, Michigan
Distribution: FC5
Posts: 114

Rep: Reputation: 15
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.
 
Old 05-05-2006, 02:16 PM   #6
klasact
LQ Newbie
 
Registered: Apr 2006
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
Old 05-05-2006, 04:21 PM   #7
Freestone
Member
 
Registered: Jan 2003
Location: Brighton, Michigan
Distribution: FC5
Posts: 114

Rep: Reputation: 15
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!
 
Old 05-10-2006, 10:00 PM   #8
klasact
LQ Newbie
 
Registered: Apr 2006
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to load module "ndiswrapper" with modprobe; modprobe ndiswrapper doesn't work! Benjamin Linux - Wireless Networking 30 05-25-2008 07:04 AM
where can i get ndiswrapper from? jimjamjahaa Debian 14 01-25-2006 09:53 PM
Ndiswrapper rmdnet Linux - Software 1 12-21-2004 02:48 PM
Ndiswrapper sandman867 Linux - Wireless Networking 8 11-25-2004 02:40 AM
? on ndiswrapper...almost there! (i think) coltrane70 Linux - Wireless Networking 7 07-01-2004 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration