LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-18-2004, 10:05 AM   #1
Roel Thijs
Member
 
Registered: Aug 2004
Location: Belgium
Distribution: Gentoo 2005
Posts: 31

Rep: Reputation: 15
errors installing ndiswrapper-0.9 in red hat 9.0


I'm trying to get my D-Link DWL-510 wireless network card working in red hat 9.0. After some searching I found a topic on this site explaining how it can be done by using ndiswrapper. Unfortunaly I'm not getting past step 1: installing ndiswrapper.

Since I never installed something before ( yes I'm a noob ) in red hat I don't have any idea what I'm doing wrong.

I logged in as root, opened the terminal window and try to enter the commands as in the manual.

[root@Roel root]# cd ndiswrapper-0.9
[root@Roel ndiswrapper-0.9]# make install
make -C driver install
make[1]: Binnengaan van map '/root/ndiswrapper-0.9/driver'
cc -DDRV_VERSION=\""0.9"\" -DLINUX -D__KERNELL__ -DMODULE -I/lib/modules/2.4.20-8/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -02 -c -o wrapper.o wrapper.c
/bin/sh: line 1: cc: command not found
make[1]: ***[wrapper.o] Fout 127
make[1] weggaan uit map '/root/ndiswrapper-0.9/drivers'
make: *** [install] Fout 2


"binnengaan van map" means entering directory and "weggaan uit map" means leaving directory, "fout" means error.


I thought it didn't look like ndiswrapper was doing strange so I tried typing the "make" command without anything behind it and then I got some stuff including this line:

"You don't seem to have sources for your kernel; install them in /usr/src, link /lib/modules/2.4.20-8/build to it and try again"

that's just greek to me but I remembered the ndiswrapper quickstart guide saying "make sure there is a link to the source from the modules directory: '/lib/modules/<version>/build' should be a link to the kernel source"

I went to that map and the build directory was there so what does al this mean? Will this problem be solved when I reinstall red hat (using the default everywhere) or not and what can I do about this now?
 
Old 08-18-2004, 10:25 AM   #2
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
Try installing a gcc compile first
 
Old 08-18-2004, 10:54 AM   #3
Roel Thijs
Member
 
Registered: Aug 2004
Location: Belgium
Distribution: Gentoo 2005
Posts: 31

Original Poster
Rep: Reputation: 15
does that comes standard with red hat?

If it does I'll reinstall red hat (or the correct extra package) and if it doesn't where do I get it?

edit: is this it? http://gcc.gnu.org/

Last edited by Roel Thijs; 08-18-2004 at 10:59 AM.
 
Old 08-18-2004, 11:01 AM   #4
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
I use redhat and its on the installation cd's ( software/kernel development )
 
Old 08-18-2004, 11:05 AM   #5
Roel Thijs
Member
 
Registered: Aug 2004
Location: Belgium
Distribution: Gentoo 2005
Posts: 31

Original Poster
Rep: Reputation: 15
ok thanks, i'll see if I can add it using the red hat install extra packages thingy and if I can't I'll just reinstall the whole bunch

Thanks for your advice, I'll start at it now.
 
Old 08-18-2004, 12:35 PM   #6
Roel Thijs
Member
 
Registered: Aug 2004
Location: Belgium
Distribution: Gentoo 2005
Posts: 31

Original Poster
Rep: Reputation: 15
I added the packages I needed and now I got ndiswrapper to install, thanks arno

I got an error saying he couldnt find netdlwl.sys so I got back to windows searched and copied the file and pasted it in red hat next to the netdlwl.inf file, no errors this time.

modprobe ndiswrapper

now my keyboard starts acting strange but i managed to type in the other commands

iwconfig wlan0 channel 6
iwconfig wlan0 mode Managed
iwconfig wlan0 key restricted ##########
iwconfig wlan0 essid thijs

when i typed iwconfig wlan0 i got a summary but it looks like i didn't manage to connect to the acces point, it sais nothing about a channel and the AP sais 00.00.00.00 etc mode is still on auto

what am i doing wrong this time?
 
Old 08-18-2004, 01:59 PM   #7
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
try
iwconfig wlan0 essid default
 
Old 08-19-2004, 01:49 AM   #8
Roel Thijs
Member
 
Registered: Aug 2004
Location: Belgium
Distribution: Gentoo 2005
Posts: 31

Original Poster
Rep: Reputation: 15
i doubt that will work because I set essid "thijs" on my AP, but I'm going to try again now without any wep and stuff to see if it works.
 
Old 08-19-2004, 02:37 AM   #9
Roel Thijs
Member
 
Registered: Aug 2004
Location: Belgium
Distribution: Gentoo 2005
Posts: 31

Original Poster
Rep: Reputation: 15
I disabled wep and changed essid to default on my AP, now I managed to connect to the AP (I think I did because when I typed iwconfig wlan0 it showed the correct settings and my keyboard responded normally again).

Then I entered:

ndiswrapper -m

and got a line saying :

adding "alias wlan0 ndiswrapper" to /etc/modules.conf

what am I supposed to do now? everything went well but the card isn't showing up in red hats network device controll or network configuration and when I typ:

ifup wlan0

I get an error saying:

no configuration found for wlan0

what do I have to do now?
 
Old 08-19-2004, 05:37 AM   #10
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
in the map
/etc/sysconfig/network-scripts
there must be the script
ifcfg-wlan0
and this if your AP functions as a dhcp server
DEVICE=wlan0
ONBOOT=yes
BOOTPROTO=dhcp # change this to static to specify an IP addr
IPADDR=192.168.0.11
GATEWAY=192.168.0.1
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
GATEWAYDEV=wlan0 # this is for setting default route
TYPE=Ethernet
USERCTL=yes
PEERDNS=yes # this lets DHCP define the DNS setup
 
Old 08-20-2004, 02:23 AM   #11
Roel Thijs
Member
 
Registered: Aug 2004
Location: Belgium
Distribution: Gentoo 2005
Posts: 31

Original Poster
Rep: Reputation: 15
I created the file icfg-wlan0 and typed in the code you gave me, i went back to the command and entered

ifup wlan0

then my pc works for a while checking the ip settings and then it sais "Failed" and my pc starts lagging.

Do I have to add lines in the icfg-wlan0 file if I use wep?

How do I change it to a static IP adress?

BOOTPROTO=static
IPADDR=192.168.0.11

like that?

Do I need a line for the name of my essid?
 
Old 08-20-2004, 07:40 AM   #12
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
static is the keyword
ESSID=
 
Old 08-20-2004, 08:47 AM   #13
Roel Thijs
Member
 
Registered: Aug 2004
Location: Belgium
Distribution: Gentoo 2005
Posts: 31

Original Poster
Rep: Reputation: 15
That worked, not a single error or warning this time. I got connected to my AP but still no internet.

I can ping to my wireless card but not to the router, there is a connection made because I can see that in the router logs but the ping just returns a "host unreachable".

When red hat starts up I get a big red "FAILED" after red hat trys to enable the wlan0 and sais something like ndiswrapper network card wlan0 isn't there.

What can possibly go wrong? Maybe I'll just have to buy one of those wireless ethernet bridges to connect to my normal-not-wireless NIC.
 
Old 08-20-2004, 10:37 AM   #14
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
To load modules at boot you have to add the line
alias wlan0 ndiswrapper
to
/etc/modules.conf

look at the output of
route -n
when there no line Flags = UG
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 wlan0


you need to execute
route add default gw xx.xx.xx.xx
where xx.xx.xx.xx is the addres of your router
 
Old 08-21-2004, 06:12 AM   #15
trel
LQ Newbie
 
Registered: Mar 2004
Location: London
Distribution: Red Hat 9
Posts: 15

Rep: Reputation: 0
hi,
I use ndiswrapper with RH9 and wlan0 fails on boot too - after booting I have to do (as root):
modprobe -r ndiswrapper
modprobe ndiswrapper

I don't know if this will help, worked for me!
also you can use redhat-config-network graphical utility to edit/create wlan0, but only after ndiswrapper is setup & automated with 'ndiswrapper -m'.

Last edited by trel; 09-16-2004 at 11:11 AM.
 
  


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
NDisWrapper and Red Hat 9.0 Errors JamesProctor Linux - Wireless Networking 3 03-11-2005 07:46 AM
ndiswrapper / Red Hat 8.0 / 2.4.23 kernel tsale80 Linux - Wireless Networking 1 01-13-2005 08:32 AM
FYI: Ndiswrapper and Red Hat Hangdog42 Linux - Wireless Networking 5 05-31-2004 01:47 AM
Help :: Red Hat installation errors Jammie Linux - Newbie 8 10-06-2002 06:05 AM
Red hat installation errors Relfx Linux - Software 3 01-02-2002 08:58 PM

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

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