LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 01-24-2005, 08:12 PM   #1
meping
Member
 
Registered: Sep 2004
Posts: 73

Rep: Reputation: 15
how to setup nic in fedora core 2 help...newbie


I had been trying to setup my wireless card but gave up on that, having unknowingly bought the cursed wpc11 v4 nic. So I'm trying to setup my onboard wired nic, but have no idea what to do.

I'm running:

Fedora Core 2 release 2.6.5-1.358 dual booted w/ XP Professional
Acer Travelmate 290E
-Celeron 1.3GHZ
-256MB DDR
-Realtek 8139
Linksys Wireless - B Router
ISP is ADSL w/ Telus

Now the card is officially installed, fedora core 2 found and installed drivers during install, I'm behind a router which is configured I have a another XP pro box working fine off it.

If someone could provide simple instructions on how to configure fedora core to get the internet running it would be greatly appreciated.

I'm eager to learn linux but this is way hindering me.

I should say that my system is basically as it is fresh off the install.

Thanks...PLEASE HELP
 
Old 01-30-2005, 02:14 AM   #2
bushidozen
Member
 
Registered: Oct 2004
Posts: 215

Rep: Reputation: 30
I recommend that you first download a program called ndiswrapper. You can find it at www.sourceforge.net. This program allows you to use you windows NIC drivers to use your NIC in linux. I currently use ndiswrapper to run my Linksys Wireless G NIC, and it works without a hitch.
 
Old 01-30-2005, 01:39 PM   #3
meping
Member
 
Registered: Sep 2004
Posts: 73

Original Poster
Rep: Reputation: 15
I had tried ndiswrapper in the past, wouldn't work properly among other problems it never identified my hardware properly, in all the tutorials it always said Realtek present, software present....All I ever got was Hardware present, software present so I have no idea if I ever found it. & I just couldn't get it configured properly, hey if you know how to do it and don't mind doing up some simple instructions I would really appreciate it
 
Old 01-30-2005, 02:29 PM   #4
bushidozen
Member
 
Registered: Oct 2004
Posts: 215

Rep: Reputation: 30
well, I have a Linksys wireless G NIC, but I think these instructions should work for your NIC as well. By the way, am running fc3 now but this also worked on fc1 and fc2 for me:

first, download ndiswrapper. I would recommend either ndiswrapper-0.12.tar.gz or ndiswrapper-1.0rc4.tar.gz which both work for me and are the most recent versions of the program. I think that ndiswrapper-1.0rc4 also works for 64 bit linux. The following instructions come from
http://ndiswrapper.sourceforge.net/p...p?Installation

Installation guide

Have a look at the Distributions page for distribution-specific instructions.
Prerequisites

* You need a recent kernel (at least 2.6.6 or 2.4.26) with source. Under Red Hat or Mandrake, the sources can be installed using the package kernel-source<kernel-version>.rpm.
* Make sure there is a link to the kernel source from the modules directory. /lib/modules/VERSION/build should be a link to the kernel source, where VERSION is the version of the kernel you are running. If there is no link, you'll get an error at the make install step. To create a link, assuming the kernel sources are present, use the command

ln -s /usr/src/linux-<kernel-version> /lib/modules/VERSION/build

* Make sure you have started compiling the kernel sources, so needed header files are present.
* Some vendors ship ndiswrapper in their distributions. Either use it or make sure you remove it before installing ndiswrapper by yourself.
* Make sure you have the Wireless Tools installed. Again, there is a package that comes along with Red Hat and Mandrake distributions.

Building own kernel package with ndiswrapper

Sometimes people need to build the linux kernel package with a unique patch set. If you want to create a kernel package with the ndiswrapper driver, you must make the patch from source. Download the helper script from http://sourceforge.net/tracker/index...2&atid=604450, put it in the root directory of the ndiswrapper source tree and run it. You should get the linux-2.6.9-ndiswrapper-version.patch.
Upgrading

It is always a good idea to uninstall the current version and reinstall the new version. This way, if there are changes in formats of configuration files etc., the new version will work without problems.
Downloading

Download the latest version of the ndiswrapper sources from http://sourceforge.net/projects/ndiswrapper and extract it with tar zxvf ndiswrapper-version.tar.gz This will create ndiswrapper-version directory. Change to that directory with cd ndiswrapper-version.

If you are having problems with release version or you want to try bleeding-edge version, you can either get the latest nightly tar ball from http://ndiswrapper.sourceforge.net/s...rapper.tar.gz, or latest CVS version with

cvs -z3 -dserver:anonymous@cvs.sourceforge.net:/cvsroot/ndiswrapper co ndiswrapper

Note that the nightly tar balls and CVS versions may or may not work (they may not even compile). If you have problems with these, please don't complain. However, sometimes, these may work better than release versions, as bugs are fixed, features are added etc.
Installation
1. Compile and install

When you are upgrading an already existing source-directory do

make distclean

before compiling the sources.

As root run

make

and then

make install

This should compile and install both the kernel module and the userspace utilities.
2. Install your Windows driver

You need to download Windows XP driver for your card. The list of known to work drivers is available at the Wiki entry List. To identify the driver that you need, first identify the card you have with "lspci" and note the first column (such as 0000:00:0c.0) and then find out the PCI ID of the card that with "lspci -n" corresponding to the first column of "lspci" output. The PCI ID is third column (or fourth in some distributions) and of the form "104c:8400". Now you need to get the Windows driver for this chipset. In the list of drivers, find out an entry for the same PCI ID and download the driver corresponding to it. Unpack the Windows driver with unzip/cabextract/unshield tools and find out the INF file (i.e., file with .INF or .inf extension) and SYS file (i.e., file with .SYS or .sys extension). If there are multiple INF/SYS files, you may look in the List if there are any hints about which of them should be used. Make sure the INF file, SYS file and any BIN files (for example, TI drivers use BIN firmware files) are all in one directory. Now use "ndiswrapper" tool to install the driver with

ndiswrapper -i filename.inf

This copies all necessary files to /etc/ndiswrapper and creates the config files for your card.

Note on directories with spaces in them: (applicable at least to ndiswrapper-0.11)

'ndiswrapper' choked on my CD with the INF sources because the directories had spaces in them. You can tell if this is happening if you get this string in the output: basename: too many arguments

Note: you might see a message starting with "Warning: Cannot locate ".

If that line doesn't contain something that looks like a filename then the warning is harmless (i think).

After installing you can run

ndiswrapper -l

to see the status of your installed drivers. If you have installed the correct driver you should see something like this

Installed ndis drivers
bcmwl5 hardware present

Where "present" means that you have a card that can be used with the driver installed. In this case, broadcom driver bcmwl5 is used.
3. Load module

To load the module type

modprobe ndiswrapper

If you get no error the driver should now be loaded. You can verify this by checking system log (produced by dmesg). If the driver is loaded successfully, you should see a message in the system log

ndiswrapper version V loaded

Make sure the version V here matches the version of ndiswrapper package that you downloaded and installed. If you get a different version, you have old version of package, which you should uninstall and go back to step 1.

If after modprob'ing, system is locked up (no response to keyboard etc.), it indicates that kernel has crashed. See Distributions and FAQ for hints on what may cause problems for your distribution/kernel.

If you have successfully installed windows drivers earlier (with ndiswrapper -i INFfile), the ndiswrapper module will load them all. You should then see the following messages in system log

ndiswrapper: driver driver1 added

for each of the drivers. If you don't see these messages, it usually means that there are no (usable) drivers installed in /etc/ndiswrapper directory. Check if the /etc/ndiswrapper directory has one sub-directory for each driver and if in each driver's directory there are inf, sys and conf files. Otherwise, you may need to repeat step 2.

If the system has a card that works with one of the loaded drivers, you should see the following message in the system log

wlan0: ndiswrapper ethernet device xx:xx:xx:xx:xx:xx

4. Configure interface

Use iwconfig to configure wireless network interface. First, see if the interface is available, with

iwconfig

This tool is not likely to be present on your system : it is part of the package 'wireless-tools', which you shall install.

This will print the wireless interface (e.g., wlan0). In the examples below wlan0 is used; replace wlan0 with the interface reported by iwconfig above. The wireless configuration to be used should match what your Access Point (AP) uses. First, find out if you can see your AP with

iwlist wlan0 scan

Note: You may have to set the network name before the scan can find
your Access Point. If the scan does not find your AP, try issuing the
command
iwconfig wlan0 essid ESSID

before the using the command
iwlist wlan0 scan

If this lists your AP, you can continue. Otherwise, you may have one of two problems: Your AP doesn't broadcast SSID (see the FAQ for more information) or the radio of the card is off (again, see the FAQ for details).

If you see the AP in scan above, set the operating mode of the interface according to your setup. In most cases, it is Managed

iwconfig wlan0 mode Managed

If you use encryption (WEP), set the key
iwconfig wlan0 key restricted XXXXXXXX

You can use 10 hex digits for 40-bit encryption or 26 hex digits for 128-bit encryption. You may need to use open security mode instead of restricted depending on the setup of your AP. If you want to write the key in ASCII use s: (e.g. iwconfig wlan0 key restricted sassword).

Set the network name

iwconfig wlan0 essid ESSID

Replace ESSID with the network name used by your AP.

Now, setup the network parameters for the interface wlan0. This varies from distribution to distribution. Refer to your distribution's documents on how to do this. Once this is done, you can use network tools to bring up the network; e.g.,

ifconfig wlan0 up

or

dhclient wlan0

or

dhcpcd wlan0

etc.
5. Automate

Once everything works fine you can write the correct modprobe settings to load ndiswrapper automatically when wlan0 interface is used, by running

ndiswrapper -m

Note that this doesn't automatically load ndiswrapper module at boot time. If you want the module to be loaded automatically at boot time, you should configure your module setup, which depends on the distrbution. Most distributions will load all modules listed in /etc/modules at boot time. Mandrake 10.x uses /etc/modprobe.preload. For them, you can add a line

ndiswrapper

in /etc/modules.
6. WPA support

See WPA Wiki on how to use WPA with ndiswrapper.

Good luck to you.
 
  


Reply



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
usb nic not working with fedora core 4 aytope Linux - Laptop and Netbook 5 11-02-2005 10:05 AM
Fedora Core 3 -Can't install Ether16 NIC Pmagn Linux - Hardware 1 11-24-2004 06:30 PM
Fedora Core 2 will not initialize NIC Nelse Fedora 3 10-23-2004 08:41 PM
RTL8169 NIC and Fedora Core 2 putnampp Linux - Networking 0 08-25-2004 08:44 PM
fedora core 2 no internet, yet working nic ravalox Linux - General 1 06-24-2004 04:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 09:55 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