Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
I tried to install FC4, but only had problems with it. So I reinstalled FC3, and now I cannot get the ndiswrapper to work. I know how to install it. I have done it hundred times, but I cannot get it to work. Can someone please help me ASAP?
I have ndiswrapper 1.7 and run the following codes.
Code:
make distclean
make
make install
When I try to load my Windows driver I am told:
Quote:
bash: ndiswrapper: command not found
When I run
Code:
which ndiswrapper
I get:
Quote:
/usr/bin/which: no ndiswrapper in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/ajthornton/bin)
The following is the output from the install
Code:
[root@thorncom ndiswrapper-1.7]# make distclean
make -C driver clean
make[1]: Entering directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver'
rm -rf ndiswrapper.ko ndiswrapper.o hal.o iw_ndis.o loader.o misc_funcs.o ndis.o ntoskernel.o ntoskernel_io.o pe_linker.o pnp.o proc.o wrapndis.o wrapper.o usb.o divdi3.o usb.o x86_64_stubs.o \
divdi3.o .*.ko.cmd .*.o.cmd ndiswrapper.mod.[oc] *~ .tmp_versions
make[1]: Leaving directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver'
make -C utils clean
make[1]: Entering directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/utils'
rm -f *~ *.o loadndisdriver
make[1]: Leaving directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/utils'
rm -f *~
rm -fr ndiswrapper-1.7 ndiswrapper-1.7.tar.gz *.deb patch-stamp
make -C driver distclean
make[1]: Entering directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver'
rm -rf ndiswrapper.ko ndiswrapper.o hal.o iw_ndis.o loader.o misc_funcs.o ndis.o ntoskernel.o ntoskernel_io.o pe_linker.o pnp.o proc.o wrapndis.o wrapper.o usb.o divdi3.o usb.o x86_64_stubs.o \
divdi3.o .*.ko.cmd .*.o.cmd ndiswrapper.mod.[oc] *~ .tmp_versions
rm -f *_exports.h .\#* x86_64_stubs.h
make[1]: Leaving directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver'
make -C utils distclean
make[1]: Entering directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/utils'
rm -f *~ *.o loadndisdriver
rm -f .\#*
make[1]: Leaving directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/utils'
rm -f .\#*
[root@thorncom ndiswrapper-1.7]# make
make -C driver
make[1]: Entering directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver'
make -C /lib/modules/2.6.12-1.1381_FC3/build SUBDIRS=/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver \
DRIVER_VERSION=1.7
make[2]: Entering directory `/lib/modules/2.6.12-1.1381_FC3/build'
LD /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/built-in.o
CC [M] /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/hal.o
CC [M] /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/iw_ndis.o
CC [M] /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/loader.o
CC [M] /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/misc_funcs.o
CC [M] /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/ndis.o
CC [M] /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/ntoskernel.o
CC [M] /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/ntoskernel_io.o
CC [M] /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/pe_linker.o
CC [M] /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/pnp.o
/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/pnp.c: In function `start_pdo':
/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/pnp.c:281: warning: ignoring return value of `pci_set_power_state', declared with attribute warn_unused_result
CC [M] /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/proc.o
CC [M] /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/wrapndis.o
CC [M] /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/wrapper.o
CC [M] /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/usb.o
CC [M] /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/divdi3.o
LD [M] /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/ndiswrapper.o
Building modules, stage 2.
MODPOST
CC /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/ndiswrapper.mod.o
LD [M] /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/ndiswrapper.ko
make[2]: Leaving directory `/lib/modules/2.6.12-1.1381_FC3/build'
*** WARNING: Kernel is compiled with 4K stack size option (CONFIG_4KSTACKS); many Windows drivers will not work with this option enabled. Disable CONFIG_4KSTACKS option, recompile and install kernel
make[1]: Leaving directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver'
make -C utils
make[1]: Entering directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/utils'
gcc -g -Wall -DUTILS_VERSION=\"1.7\" -o loadndisdriver loadndisdriver.c
make[1]: Leaving directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/utils'
[root@thorncom ndiswrapper-1.7]# make install
make -C driver install
make[1]: Entering directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver'
make -C /lib/modules/2.6.12-1.1381_FC3/build SUBDIRS=/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver \
DRIVER_VERSION=1.7
make[2]: Entering directory `/lib/modules/2.6.12-1.1381_FC3/build'
Building modules, stage 2.
MODPOST
make[2]: Leaving directory `/lib/modules/2.6.12-1.1381_FC3/build'
*** WARNING: Kernel is compiled with 4K stack size option (CONFIG_4KSTACKS); many Windows drivers will not work with this option enabled. Disable CONFIG_4KSTACKS option, recompile and install kernel
mkdir -p /lib/modules/2.6.12-1.1381_FC3/misc
install -m 0644 ndiswrapper.ko /lib/modules/2.6.12-1.1381_FC3/misc
/sbin/depmod -a
make[1]: Leaving directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver'
make -C utils install
make[1]: Entering directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/utils'
install -D -m 755 loadndisdriver /sbin/loadndisdriver
install -D -m 755 ndiswrapper /usr/sbin/ndiswrapper
install -D -m 755 ndiswrapper-buginfo /usr/sbin/ndiswrapper-buginfo
NOTE: Windows driver configuration file format has changed since 1.5. You must re-install Windows drivers if they were installed before.
make[1]: Leaving directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/utils'
mkdir -p -m 0755 /usr/share/man/man8
install -m 644 ndiswrapper.8 /usr/share/man/man
I know there is a blurb about the 4kb stack, but I have never had any problems with this in the past/
and see if that works. Or edit your .bashrc and put /usr/sbin in your path.
Code:
PATH=$PATH:/usr/sbin
make sure you restart your shell/terminal before you try command if trying the path method.
Hope this helps.
__________________
All right, brain. You don't like me and I don't like you, but let's just do this and I can get back to killing you with beer. All New Users Read This!!! If you have a grub problem please look at GRUB MANUAL
[root@thorncom ndiswrapper-1.7]# /usr/sbin/ndiswrapper
Usage: ndiswrapper OPTION
Manage ndis drivers for ndiswrapper.
-i inffile Install driver described by 'inffile'
-d devid driver Use installed 'driver' for 'devid'
-e driver Remove 'driver'
-l List installed drivers
-m Write configuration for modprobe
where 'devid' is either PCIID or USBID of the form XXXX:XXXX
[root@thorncom ndiswrapper-1.7]#
[root@thorncom ndiswrapper-1.7]# install -D -m 755 loadndisdriver /sbin/loadndisdriver
install: cannot stat `loadndisdriver': No such file or directory
What next? Do I need to edit the .bashrc? Is there any problem with doing this?
Have you tried running ndiswrapper as root? I recently installed 1.7 and the only way I can access it is as root (I'm lazy and haven't gotten around to changing the permissions yet)
You seem to have it installed
Code:
[root@thorncom ndiswrapper-1.7]# /usr/sbin/ndiswrapper
Usage: ndiswrapper OPTION
Manage ndis drivers for ndiswrapper.
-i inffile Install driver described by 'inffile'
-d devid driver Use installed 'driver' for 'devid'
-e driver Remove 'driver'
-l List installed drivers
-m Write configuration for modprobe
use the -i option to install the driver and then the -l option to check that it is the right driver.
Then
you might want to make sure your PATH and ROOTPATH variables are all in order. My guess is that everything is installed correctly, but it's not looking in the right places. I know that in Gentoo things like this are located in /etc/env.d/ but FC3 might be different. Best of luck.
After some working I was able to get the ndiswrapper installed and the windows drivers working. However, I am not sure if this is caused by the paths not being correct, I cannot get on the internet with the wireless. I have an ip, but not able to connect to the web. I do not keep the eth0 and wlan0 running at the same time, only done to for obvious reasons.
Open Source Security Myths Dispelled Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization subscribe
InformationWeek InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology. subscribe