PDA

View Full Version : Success with Knoppix 3.6 and wireless networking



grant_vallance
10-19-2004, 08:53 PM
UPDATE:

Well its almost three months since I posted this, and it seems to have been useful to a number of folk.

The first post, was when I was really new to GNU/Linux -- Knoppix. I am still very inexperienced, but that is because I have had to spend time writing a thesis and looking after young children.

That said, I have been able to help out a number of you in the meantime -- learning as I go. So I thought I would share some of the extra things I have learnt in the meantime, and hopfully offer a clearer guide.

In the future I intend to add card specific tips gleaned from experience helping people out.

Right:

Preliminaries
1. This HowTo is specifically for Belkin F5D7000/7010uk v2 cards using Ndiswrapper-- but it works for other cards too. It also assumes you are using DHCP to assign IP addresses -- typically from the router.

2. Make sure all commands are made as root user by opening a root shell through the Knoppix menu. (Here I'll designate them in bold -- oh for computer novices -- hit the return key afterward.

3. Try and set your wireless card up as close to the router as possible -- at least initially. Being in a wireless deadspot can confound things. (It did with me.) E.g. you might think the card is not working but it is ...

4. TURN-OFF all encryption and protection schemes, including the router's. Ndiswrapper can be tempermental. A number of people I have helped have only gotten their cards to work with encryption turned off. And one fellow in particular needed to reset his router to factory defaults before getting his card to work.

5. In M$ or in the operating system that currently resides in your hard-drive that you use: create a high-level folder. E.g. in M$ -- create C:\Wireless -- DO NOT CREATE A FOLDER WITH SPACES IN THE TITLE -- this can confuse ndiswrapper. (I am not sure whether this is an issue with the configuration script; but if you use ndiswrapper by hand i.e. in the console, it will be. Again this is the experience of someone I have helped, and it was an issue for me too.

6. Transfer the driver into this directory, i.e. the *.inf file. While I am not sure whether it is necessary or not; I would also add another other file that happened to be in the directory of the installation CD (if you have it).


Bringing the card up by hand
1. Type: ndiswrapper -i /mnt/hda1/Wireless/<name-of-driver-file.inf>
2. Type: modprobe ndiswrapper
3. Type: iwconfig wlan0 essid any
4. Type: iwconfig wlan0 channel 11
5. Type: ifconfig wlan0 up
6. Type: pump -i wlan0

Notes [Should be self-explanatory but, note 1.1, 1.2 etc., apply to 1 above, 2.1, to note 2 etc.]:
1.1 Manufacturers change the version of the card and even chipset, so it is important to make sure you use the right .inf file. Usually, the CD that comes with the card is the best, but some people have found that this is incompatible with ndiswrapper/GNU/Linux and have had to go to the web for other versions of the driver. For example, my Belkins use bcmwl5.inf, whereas later versions use bcmwl5a.inf; and some people have found for later versions of my card that the CD drivers causes the system to crash, but other versions work well. See this thread: http://www.knoppix.net/forum/viewtopic.php?t=16009

1.2 Sometimes you get an error about hardware not found -- ignore it for the moment; this is typical and generally does not mean anything.

1.3 Remember that folder names ARE case sensitive.

2.1 You should not get any errors here ...

3.1 Instead of iwconfig wlan0 essid any you can type iwconfig wlan0 essid <name-of-your-wireless-network> 'any' is better at this point for reasons of troubleshooting. Once everything is working then you can get more sophisticated.

3.2 I believe some cards set themselves up as ath0, so modify commands accordingly.

4.1 Obviously, only use channel 11 if that is the channel your network is on ...

4.2 You can check whether things have worked properly by the command: iwconfig -- important things to see: a. the name of your essid if you have set it; b. the channell number, and c. THE MAC ADDRESS OF YOUR ACCESSPOINT. If this is not there things are not going to work ...

4.3 You can see if the card can otherwise recognise the access point by typing in the command: iwlist wlan0 scanning

5.1 No comment

6.1 If pump fails then often you have to start again.


Bringing the card up by script
1. Run the ndiswrapper configuration script found in Knoppix menu on the KDE taskbar under the Network/Internet menu.
2. Run the Network card configuration script found in Knoppix menu on the KDE taskbar under the Network/Internet menu.

2a Or type in netcardconfig in root menu, as root. The same thing will happen.



OLD POST IS BELOW FOR REFERENCE ....

Dear All,

One of the reasons I am writing is to express my gratitude for the support this fora (among others) has been in helping me get up and running with Linux and wireless networking. I know I have not asked a question, but I have benefited from others questions and answers to find out what I needed to know (eventually).

Please bear in mind I am a _completely_ new to Linux/Knoppix. :?

The other reason I am writing is to share with you all (esp. fellow noob's) how I finally succeeded in getting wireless up and running with Knoppix 3.6, including internet connection.

Given some of the posts I have seen, some are wondering wethehr it is possible, or how one gets wireless networking operating using cards based on Broadcom chipsets. The key, of course is ndiswrapper.

I have managed to get wireless networking and Internet working with _both_ a Belkin Fd57010 PCMIA card on my laptop (usually running XP) and a Belkin FD57000uk PCI card on the spare Win98 box under Knoppix 3.6 and MEPIS 2004. These connect to a Buffalo WBR-54 wireless router downstairs which in turn is connectd to NTL cable broadband (300k). (The router is also connected to another WinXP box)

Here is the proceedure I discovered that eventually worked for me. The instructions are very detailed for fellow Linux/Knoppix novices ...

[Edit3: Below the detailed instructions is a *new* simpler proceedure, that I have recently gotten to work under 3.6 & 2.6 kernel. The following is a description of the many things I have tried that have worked when the simple things fail ...]

Requirements: Belkin wireless cards; CD with drivers; Computers; Knoppix 3.6 live CD

1. In Windows, open Windows Explorer (or equivalent) and create a new directory C:\Belkin

2. Put the CD with drivers in the CD and _do not_ let the install program run; rather navigate to the Driver directory and copy the contents into the newly created C:\Belkin directory. I believe the critical files are bcwl5.inf and bcwl5.sys. I also copied bcm43xx.cat, but I do not think this is relevant.

3. Run Knoppix 3.6 booting with the 2.6 kernel. (I have had some success with 2.4, but 2.6 seems more reliable in both Knoppix and Mepis).

[Edit: 3a. Er Sorry I missed some things. I forgot to add that you need to mount the Hard Disk Partion. You do this by clicking on the Hard Disk Partion [hda1] in the main window.]

4. Run the ndiswrapper configuration script found in Knoppix menu on the KDE taskbar under the Network/Internet menu.

5. Follow the instructions ...

[Edit: I also forgot to give instructions on how to navigate to where the bcmw5.inf file is. For those new to Linux, this is found in my example at:

/mnt/hda1/Belkin

Once you know where you are going its fairly intuitive. Basically get back to the root directory / and follow you nose. It should be fairly obvious to those familiar to windows.]

6. Hopefully, it will come up that the module has been successfully installed and to configure the wireless card with iwconfig. If it doesn't you are screwed.

Some people say later versions of the driver work better, but this failed for me. Another thing, is _do not_ copy the driver directly from Windows. I found that did not work either (why I do not know). You need the vanilla driver from the original CD.

7. Open the Root Shell found in the Knoppix menu

8. Type:

iwconfig

9. Hopefully, the details of your network should be there, bu. The critical details are: essid, wireless accesspoint MAC address, channel (usually 11) and mode of access (usually managed). They should all be correct. If not do not dispair. These can be activated.

[Edit2: Re-reading this made me realise that I had forgotten to inform you how the various parameters can be set. The command is:

iwconfig wlan0 <command - option>

E.g: iwconfig wlan0 essid any
iwconfig wlan0 channell 11

To find out the sytax and what you can do is type:

man iwconfig

What I would suggest is that you open another (non-root) console to have it as a side-by-side reference.

The man command is your friend. Use it and try things out. E.g. Another useful command is:

iwlist wlan0 scanning

which if your card is operational, will tell you the various access points the card can find. However, whether this command works, I believe is dependent upon the driver and card itself. It certainly works with my Belkin cards.]

One thing to bear in mind is that some places in a house are wireless deadspaces. I had terrible trouble getting everthing to work. I managed it with far greater effectiveness once I moved the box about 5 cm further forward. I can now activate wireless a 100% of the time within 5 attempts of the following.

10. First try:

iwconfig wlan0 essid <name-of-your-network>

11. Check whether the correct configuration has been set up by:

iwconfig

12. Try again and again, if it does not work because this sometimes it does not.

12. If this fails second, try:

iwconfig wlan0 essid any

Do this at least a couple of times if it does not work.

13. Keep checking to see if the details have been detected correctly by typing :

iwconfig

13. At last gasp try a combination of #10, #11 and:

iwconfig wlan0 essid on.

14. I usually have success with #10 and #11 after a couple of attempts. The key thing is all the details are correct for the wireless network.

15. Once details are correct then type:

ifconfig

And check whether the wlan0 card is activated. It probably wont be. If it is activated you will see details of wlan0 and lo, otherwise it will just be details of lo

16. Then type:

ifconfig wlan0 up

17. This should work immediately, i.e. you will get the root prompt again.

18. Run the Network card configuration script found in Knoppix menu on the KDE taskbar under the Network/Internet menu. Or type in netcardconfig in root menu. The same thing will happen.

19. Select wlan0

20 If running DHCP say yes after #19. Otherwise fill in the details in the script. I operate with DHCP with everything else, not being very network savvy yet to do it with static IP addresses. Don't ask me about static IP addresses etc. :shock:

21 If all goes well everything should work after that. :)

22. It might not, but do not despair. Try the steps mentioned above again. If the network has been correctly detected, at most this usually takes 3 attempts. If the network is correctly detected you only need to repeat #16 onward, otherwise you need to run through from #10 onward.

[Edit: In getting on to fix this it took me 4 attempts. Another thing I have found that _can_ help is to activate dhcp manually. You do this by typing:

pump -i wlan0

For some reason, it usually fails for me, but if I attempt to use netcardconfig after it works a treat. Usually. Sometimes it just works.]

HTH.

I _hope_ I have not left anything out. The reason they are detailed as I found some people helping assumed certain steps as being obvious. They are not for noobs ... The following is what I do exactly IIRC.

The next challenge is to install GNU/Linux on to the hard drive...

Regards,

Grant D. Vallance

[Edit 3: Simplified proceedure. Steps #1-8 are the same. if your network is correctly detected just run the netcardconfig scrip, selecting saying OK to using DHCP broadcase (if that is what you want -- I do). You should be good to go after. Cheers. GV]

grant_vallance
10-19-2004, 10:48 PM
Hello All,

Did a moderator Sticky the post? Because I am sure I did not. Reasonably sure. :?

I am flattered if this is the case. It means, I presume, that the post was useful. :)

Otherwise, I must of made a mistake, and I will unsticky it with my apologise. :oops:

I assure you that I have no illusions of grandeur.

Regards,

Grant D. Vallance

Harry Kuhman
10-19-2004, 11:27 PM
Did a moderator Sticky the post? Because I am sure I did not. Reasonably sure. :?
Yea, I'm to blame. It looked like to could be handy and should stay at the top of the heap, at least for a while. Don't be offended if someday the sticky is removed; too many sticky articles defeats the point of having some that are sticky, but this coverage deserves to get some viewers.

grant_vallance
10-20-2004, 10:14 AM
Dear Harry,

Thank-you for letting me know.

I certainly will not be offended when the Sticky gets removed. I am pleased that my post might be of some use. :)

Cheers,

Grant D. Vallance

spandit
10-22-2004, 01:30 AM
Dear All,
...

[Edit: I also forgot to give instructions on how to navigate to where the bcmw5.inf file is. For those new to Linux, this is found in my example at:

/mnt/hda1/Belkin

Once you know where you are going its fairly intuitive. Basically get back to the root directory / and follow you nose. It should be fairly obvious to those familiar to windows.]
...

hey man i think iam newer than you are can you give me more details as to what happened in the step mentioned in quotes above?

grant_vallance
10-22-2004, 11:51 AM
Sure I can help ... I hope ...

Right, I presume you have managed to do the other steps correctly. It is
important that you mount your hard drive first.

So I assume in M$ you have created a directory C:\Belkin, and you have copied the requisite files.

I also assume you have mounted the hard drive by clicking once on the icon "Hard Disk Partition [hda1]", which is on the left-hand side near the top in between the Floppy disk and Knoppix. You know you have mounted it correctly when you see a little green triangle on the bottom right corner of the icon.

Right ...

Now go the Penguin icon along the bottom of the screen, click on that, and then navigate to Network/Internet sub-menu, and then to the ndiswrapper script (its the one on the bottom), <click>.

After going throught the welcome screen (<click> on the OK button) there will be a screen with the title "Knoppix Nidswrapper Tool" underneath the title thatwill say select <driver>.inf file.

Go to the box underneath which has /home/knoppix with a little arrow, <click>, then <click> on the / option

Below this box there are two boxes; one with the title Directories (left) and the other Files (right).

Scroll down to mnt (its in alphabetical order) and double-click on this.

The options change: double click on the hda1 option in the Directories box.

The options change: double click on the Belkin option in the Directories box.

The options change: click on the bcmlw5.inf file option in the Files box; then click on the OK box.

After about 10-20 seconds you should get a message saying that the module was successfully loaded and to configure the card using iwconfig.

Follow the rest of the instructions if you can.

HTH.

Grant D. Vallance

bsaber
10-22-2004, 06:37 PM
I have 64-bit encryption on my wireless router which is a Linksys. Could that be interfering when I'm trying to get the card to broadcast the DHCP signal? I've done and finished all the steps up to getting this point. Can anyone help me out?

And I'm also new to Linux. As a matter of fact this is my first time using it. Thanks for your help.

Ron

bsaber
10-22-2004, 07:01 PM
Nevermind I got it figured out. Thanks anyways. Your instructions helped me big time.

sci_fi
10-29-2004, 12:32 PM
Hello Grant,

A note of appreciation for your write up on your wireless success. It saved me many hours of trial and error. I am now 100% reliable with an MN-720 (legacy, here) wireless adapter.

jgs

fester13
11-15-2004, 04:07 AM
I just wanted to take a minute and thank you. I was at my wits end trying to get my wireless card to work. After reading this (a couple of times mind you), I finally figured it out and I am writing you through Konqueror. Woo Hoo. Thanks for the help.

b:-)

pureone
12-07-2004, 12:19 AM
well im posting this after "some" success with knoppix 3.6 kernal 2.6.7.

i tryed the drivers from a loads of places none ever working till today i used the drivers that came with my wireless card cd.

i will print up the infomation and send it to the makers of ndiswrapper. because it should be helpfull to other people.


i copied the drivers from the cd that came with my wireless card to my desktop while using knoppix. opened up ndiswrapper pointed it to the direction of the inf file and it shocking enough found them :O well i then went into wlan config and tryed to config the card. but with no joy. i dont have any idea how to put in the wep key correctly.


i tryed to config everything right but there was some things that i know i didnt do right because it never fully worked. i will read over the sticky page (again) and save it to disk so i can read it while in knoppix.

i will report back if i have any real success.

thank you for shareing your infomation

pureone

minghai
01-11-2005, 04:06 AM
Hi all, I'm trying to access the internet using my Linksys Wireless-B WUSB11 Network Adapter. When I run "iwconfig", I get :-

lo no wireless extension
eth0 no wireless extension

I don't see eth1 or wlan0. Does this mean the adapter is not detected at all. If so, how do I get it detected? When I ran ndiswrapper, I get a dialog box saying:"The ndiswrapper module has been loaded but there is no new device. Perhaps Ndiswrapper is not working with your driver file". I'd really appreciate any help anyone can give me. Thank you.

Ming Hai

grant_vallance
01-12-2005, 11:04 AM
Hi all, I'm trying to access the internet using my Linksys Wireless-B WUSB11 Network Adapter. When I run "iwconfig", I get :-

lo no wireless extension
eth0 no wireless extension

I don't see eth1 or wlan0. Does this mean the adapter is not detected at all. If so, how do I get it detected? When I ran ndiswrapper, I get a dialog box saying:"The ndiswrapper module has been loaded but there is no new device. Perhaps Ndiswrapper is not working with your driver file". I'd really appreciate any help anyone can give me. Thank you.

Ming Hai

Apologise for not getting back to you sooner; but I had a day of teaching yesterday.

Before we begin could you do two things: one, start a new thread with the same title, rather than clutter up this one; two, tell me exactly; in as much detail as possible what you have done so far in trying to get the network card going.

Cheers,

Grant D. Vallance

jMon54
02-08-2005, 02:32 PM
I am having a devil of a time getting my wireless to work with my harddrive installed Knoppix 3.6. I am using a Belkin F5D7000 card. I can only get so far before the system just hangs. I think the modprobe does it. I downloaded (via Windows) another driver from the Belkin site and got the same results. If I can't get Knoppix to work with my new wireless connection, I will have to go back to Windows... One question: what if instead of DHCP I use static addresses, what should I do differently from the given instructions?

grant_vallance
02-09-2005, 09:57 AM
I am having a devil of a time getting my wireless to work with my harddrive installed Knoppix 3.6. I am using a Belkin F5D7000 card. I can only get so far before the system just hangs. I think the modprobe does it. I downloaded (via Windows) another driver from the Belkin site and got the same results. If I can't get Knoppix to work with my new wireless connection, I will have to go back to Windows... One question: what if instead of DHCP I use static addresses, what should I do differently from the given instructions?

A couple of things:

1. Rather than clog this thread up; could you please start another thread, say with the title: Trouble with Knoppix 3.6 and Belkin F5D7000 -- and I'll try and be of assistance

2. In that thread could you tell me exactly where things hang?

3. The name of the driver you are using and the version of the card you are using?

4. It does not necessarily follow that if you fail to get Knoppix to work with your wireless connection you have to go back to M$ -- your choice of course. There are many other fine distributions of Linux that are likely to work -- indeed one comes from your neck of the woods -- MEPIS.

5. I little idea what you do differently if you use static addresses, as I use DHCP and am not a networking guru. In any case, I doubt it is this issue that is causing your system to hang.

Cheers,

Grant D. Vallance

studio26
02-14-2005, 06:42 AM
Thanks for the info on the wifi card! I worked just like you said.... for months now I've been getting errors because of my encryption being turned on. I turned it off and poof, just like magic! Thanks for the advice.

ssfc72
02-22-2005, 06:47 AM
Thanks Grant and other users for your posts on getting WIFI to work.

I have an HP Notebook ze5600ca with built in WIFI and WinXP Home. I was able to get the WIFI working with help from your posts.
I found the name and location of the Windows WIFI driver in WinXP, then I started up Knoppix and clicked on the Penquin icon at the bottom left of the screen and ran ndiswrapper and pointed it to the Window driver location.
I then ran the WLAN program, also from the Penquin location and I just chose all the default values.

I am not too sure if the next step is necessary but to get the WIFI functioning for this session I had to go to the network card confiquration program and run it. I didn't think I had to do that the previous session?

This got my Notebook to connect with a neighbours WIFI which apparently is not locked down.

Bill

grant_vallance
02-22-2005, 08:34 PM
Thanks Grant and other users for your posts on getting WIFI to work.

I have an HP Notebook ze5600ca with built in WIFI and WinXP Home. I was able to get the WIFI working with help from your posts.
I found the name and location of the Windows WIFI driver in WinXP, then I started up Knoppix and clicked on the Penquin icon at the bottom left of the screen and ran ndiswrapper and pointed it to the Window driver location.
I then ran the WLAN program, also from the Penquin location and I just chose all the default values.

I am not too sure if the next step is necessary but to get the WIFI functioning for this session I had to go to the network card confiquration program and run it. I didn't think I had to do that the previous session?

This got my Notebook to connect with a neighbours WIFI which apparently is not locked down.

Bill

I am wondering what precisely your question is -- at least one that I may answer ...

I have no idea what you did in the previous session; but running the network config prog. is a possibility.

I should also add two comments: (1) If you have a particular query start a new thread titled specifically rather than clog this one up; (2) encryption and ndiswrapper are commonly not happy bedfellows.

I am pleased to have been of some assistance. :-)

Cheers,

Grant D. Vallance

trust_no1
02-23-2005, 12:01 AM
Great post Grant. I have been searching for weeks on how to get wifi to work, but I couldn't find anything as helpful, detailed, or easy to follow as your post. Thank you for bringing me one step closer to freeing myself from Microsoft.



-Fox

Fattbizkit
02-23-2005, 05:34 AM
Knoppix 3.6 running on IBM Thinkpad A21m w/SMC2635W after several installs.

Knoppix hangs while booting w/card inserted. Where can I find a log of this? I think syslog but I'm green so....

Remove card, reboot. Insert card, NDISWRAPPER seems to work as the light on the card starts to flash indiacating driver is working. In order to get an IP I have to run the network configuration program.

I'd like to know how I could make this automatic and I'd like to find the log so I can post it and hopefully someone can point me in the right direction to solve boot hang issue.

I'd also like to find a Remote Desktop program that will allow me to connect to my XP box from Knoppix and one for XP allowing me to connect to Knoppix. Does this exist?

grant_vallance
02-23-2005, 10:19 AM
Knoppix 3.6 running on IBM Thinkpad A21m w/SMC2635W after several installs.

Knoppix hangs while booting w/card inserted. Where can I find a log of this? I think syslog but I'm green so....

Remove card, reboot. Insert card, NDISWRAPPER seems to work as the light on the card starts to flash indiacating driver is working. In order to get an IP I have to run the network configuration program.

I'd like to know how I could make this automatic and I'd like to find the log so I can post it and hopefully someone can point me in the right direction to solve boot hang issue.

I'd also like to find a Remote Desktop program that will allow me to connect to my XP box from Knoppix and one for XP allowing me to connect to Knoppix. Does this exist?

Hello,

In order to get better service it would be a good idea to start a separate thread rather than clog this one up and ask questions of someone, who, still, for all-intents-and-purposes is a Linux noob. In fact the only thing I know how to do well is get ndiswrapper working ... So:

1. I do not know where the log is of the boot process, except after the fact. The command I believe is dmesg; but this would only be useful if boot was successful.

2. I do not have an automatic script for wireless when I run Knoppix; but I know it is possible. (This is because my HD install uses MEPIS since I read that an HD install of Knoppix can be problematic; and I did not need that being so new to the OS).

3. Connecting XP and Linux can be achieved via Samba. I am learning about this one very slowly, so I cannot help now. Unfortunately, I do not have much time to devote to Linux with writing a thesis.

Cheers,

Grant D. Vallance

NitroCrzy
03-07-2005, 10:15 PM
Dude you rock!
I followed your steps exactly and was able to get my card working. I have the same card Belkin FD57011 V1 or whatever that version is. I couldn't get it to work with the original driver to save my life but downloaded the bcmwl5a from a link in the forum and it finally activated the link light. It still took some playing but then I noticed I had both the bcmwl5 and the bcmwl5a loaded so I removed the extra and a few more loops of ndiswrapper and now I'm in business! Awesome!! :wink:

froman1991
06-24-2007, 02:17 AM
when i got to step 3 i get a message that the action is prohibited how do i fix this?

also how do i shut off all protection?