Auto-NDISWrapper hard to run for amateur user

Asked by Brett Alton

I apologize for such a vague bug title, but I wanted to share my experience with Auto-NDISwrapper to help make a better product.

A couple things went wrong for me, as you can see in the log below:

1) I tried to run the script without sudo (my fault)
2) ndiswrapper was not installed on my system (my fault, but auto-ndiswrapper could, potentially use apt-get or yum, etc. to install it, could it not?)
3) There is no package called 'ndiswrapper' (as your program stated) so I had to install 'ndiswrapper-common' and 'ndiswrapper-utils-1.9' in Ubuntu
4) The card was supported, and your program tried to open Firefox, but it was already open and it got stuck saying I had to close Firefox and try again -- apport has the same problem and it is really annoying. Not your fault, I know, buy disables the functionality you were trying to provide with your software
5) So I took the URL and I hit an error page (someone submitted incorrect information to the database).
6) So I took my driver CD, popped it in, took the .inf file from the winxp/ folder and tried to put it into '/tmp/auto-ndis/10ec:8180 (rev 20)' like it asked me. But I need root privileges to use Nautilus. So I get onto the command line and run 'gksu nautilus' and copy and paste the .inf file in the /tmp folder as directed.
7) Then, your program continues, but it fails.
8) I also noticed it detected the wrong card, so I added it to http://easylinuxwifi.org/forms.php (err, at least tried)

Here's the lspci -v output showcasing the wireless card:
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8180L 802.11b MAC (rev 20)
 Subsystem: Linksys Unknown device 0019
 Flags: medium devsel, IRQ 11
 I/O ports at 1c00 [disabled] [size=256]
 Memory at 14000000 (32-bit, non-prefetchable) [disabled] [size=512]
 Capabilities: [50] Power Management version 2

It's a Linksys Wireless-B Notebook Adapter (WPC11 rev. 4)

$ Linux ubuntu 2.6.24-19-generic #1 SMP Fri Jul 11 23:41:49 UTC 2008 i686 GNU/Linux
nautilus:
  Installed: 1:2.22.3-0ubuntu2
  Candidate: 1:2.22.3-0ubuntu2
  Version table:
 *** 1:2.22.3-0ubuntu2 0
        500 http://archive.ubuntu.com hardy-updates/main Packages
        100 /var/lib/dpkg/status
     1:2.22.2-0ubuntu4 0
        500 http://archive.ubuntu.com hardy/main Packages
ndiswrapper-common:
  Installed: 1.50-1ubuntu1
  Candidate: 1.50-1ubuntu1
  Version table:
 *** 1.50-1ubuntu1 0
        500 http://archive.ubuntu.com hardy/main Packages
        100 /var/lib/dpkg/status

$ wget http://easylinuxwifi.org/Auto-NDIS-0.1.tar.gz
--14:17:34-- http://easylinuxwifi.org/Auto-NDIS-0.1.tar.gz
           => `Auto-NDIS-0.1.tar.gz'
Resolving easylinuxwifi.org... 72.167.131.146
Connecting to easylinuxwifi.org|72.167.131.146|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 29,585 (29K) [application/x-tar]

100%[========================================================>] 29,585 91.67K/s

14:17:34 (91.46 KB/s) - `Auto-NDIS-0.1.tar.gz' saved [29585/29585]

$ tar -xvf Auto-NDIS-0.1.tar.gz
Auto-NDIS-0.1/
Auto-NDIS-0.1/database.py
Auto-NDIS-0.1/INSTRUCTIONS
Auto-NDIS-0.1/RELEASE NOTES
Auto-NDIS-0.1/LICENSE
Auto-NDIS-0.1/TODO
Auto-NDIS-0.1/auto-ndis.py
Auto-NDIS-0.1/BUGS

$ python /home/brett/Auto-NDIS-0.1/auto-ndis.py
Auto-NDISwrapper 0.1
Please remember to always try to use the latest version of NDISwrapper with this script
[ERROR] You must be root to run this script
Try, "su then python auto-ndis.py" or "sudo python auto-ndis.py"

$ sudo python /home/brett/Auto-NDIS-0.1/auto-ndis.py
Auto-NDISwrapper 0.1
Please remember to always try to use the latest version of NDISwrapper with this script
[ERROR] NDISwrapper not found!!!
Please look for "ndiswrapper" in your distribution's package manager and install it or go to www.ndiswrapper.com and download the latest sources

$ sudo aptitude install ndiswrapper
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
Couldn't find package "ndiswrapper". However, the following
packages contain "ndiswrapper" in their name:
  ndiswrapper-common ndiswrapper-modules-1.9 ndiswrapper-utils-1.9
Couldn't find package "ndiswrapper". However, the following
packages contain "ndiswrapper" in their name:
  ndiswrapper-common ndiswrapper-modules-1.9 ndiswrapper-utils-1.9
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done

$ sudo aptitude install ndiswrapper-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following NEW packages will be installed:
  ndiswrapper-common
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.4kB of archives. After unpacking 94.2kB will be used.
Writing extended state information... Done
Get:1 http://archive.ubuntu.com hardy/main ndiswrapper-common 1.50-1ubuntu1 [11.4kB]
Fetched 11.4kB in 0s (11.6kB/s)
Selecting previously deselected package ndiswrapper-common.
(Reading database ... 136431 files and directories currently installed.)
Unpacking ndiswrapper-common (from .../ndiswrapper-common_1.50-1ubuntu1_all.deb) ...
Setting up ndiswrapper-common (1.50-1ubuntu1) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Building tag database... Done

$ sudo aptitude install ndiswrapper-utils-1.9
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following NEW packages will be installed:
  ndiswrapper-utils-1.9
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 19.0kB of archives. After unpacking 119kB will be used.
Writing extended state information... Done
Get:1 http://archive.ubuntu.com hardy/main ndiswrapper-utils-1.9 1.50-1ubuntu1 [19.0kB]
Fetched 19.0kB in 0s (25.4kB/s)
Selecting previously deselected package ndiswrapper-utils-1.9.
(Reading database ... 136443 files and directories currently installed.)
Unpacking ndiswrapper-utils-1.9 (from .../ndiswrapper-utils-1.9_1.50-1ubuntu1_i386.deb) ...
Setting up ndiswrapper-utils-1.9 (1.50-1ubuntu1) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Building tag database... Done

$ sudo python /home/brett/Auto-NDIS-0.1/auto-ndis.py
Auto-NDISwrapper 0.1
Please remember to always try to use the latest version of NDISwrapper with this script

[*] Card Supported
[*] Will attempt to fetch and install driver for the card with id: 10ec:8180 (rev 20)
[*] Will attempt to fetch driver from: http://www.realtek.com.tw/downloads/downloads1-3.aspx?keyword=8180
[*] Will attempt to install driver: .inf
[*] Beginning Setup Procedure:

Do you agree with this proprietary driver's End User License Agreement? You can find it in the website of your card's manufacturer.
(Y)es or (N)o, if you don't agree the program will quit: y
Tmpdir created

The driver needs to be fetched manually from: http://www.realtek.com.tw/downloads/downloads1-3.aspx?keyword=8180
Please place the ".inf" file, along with the .sys files into:
/tmp/auto-ndis/10ec:8180 (rev 20)
When you have succesfully dowloaded the driver and extracted it press <Enter>:

Driver file found! Continuing installation.

A driver has not been specified yet for this card, will attempt procedure with the first found driver in /tmp/auto-ndis/10ec:8180 (rev 20): /tmp/auto-ndis/10ec:8180 (rev 20)/lswlnds5.inf
module configuration information is stored in /etc/modprobe.d/ndiswrapper
Installation finished

NDISwrapper output:
lswlnds5 : invalid driver!

Is your wireless connection working now with NDISwrapper thanks to this script?
(Y)es and I would like to help this project by reporting my installation manually trough www.easylinuxwifi.org, (N)o it did not work for me: n

We are sorry that the procedure failed, but don't get discouraged! Please visit easylinuxwifi.org for help or any other community support website. Remember, the community is here to help. You may also want to try with other .inf files if more than one was included in the dowloaded driver. You may do this by entering manual mode with -m flag. and removing all .inf files from /tmp/auto-ndis/10ec:8180 (rev 20)/ except the one you want to try to install. Also if possible report any broken urls as bugs in our bug tracker.

Question information

Language:
English Edit question
Status:
Answered
For:
Auto-NDISwrapper Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #252377.

Revision history for this message
Vadim Peretokin (vperetokin) said :
#1

Thanks for the input. This is just the first release of the program, so many aspects aren't polished (there is no GUI yet even!). But your comments are appreciated to help polish it :)

Revision history for this message
Vadim Peretokin (vperetokin) said :
#2

Setting it as 'invalid' since it's informational, not a concrete "bug".

Revision history for this message
Brett Alton (brett-alton-deactivatedaccount) said :
#3

Excellent, thanks for listening!

I wasn't knocking your program, just trying to help and I wasn't sure where to post this information.

Best of luck!

Revision history for this message
climatewarrior (gabrieljoel) said :
#4

Yep, thanks for your input. Keep it coming ;) Be on the watch for the next version.

Revision history for this message
Nils Schlupp (nilsschlupp) said :
#5

moved to the questions area

Revision history for this message
Nils Schlupp (nilsschlupp) said :
#6

1) Is this a good solution right now?
2) On the to-do list
3) well, this will differ on different systems, so we might just have to work on getting 2 done
4) yeah, i really think just providing the url might be the best solution
5) yeah, this is a continuous process, and the community will hopefully help us out
6) considering changing it to global write while in maunal mode.
7) cant say why, next version will be a touch better.

Can you help with this problem?

Provide an answer of your own, or ask Brett Alton for more information if necessary.

To post a message you must log in.