| f | <div style="width: 650px; padding: 0pt 2em; margin | f | <div style="width: 650px; padding: 0pt 2em; margin |
| : 1em 0pt 2em 1em; border: 1px solid rgb(136, 136, | | : 1em 0pt 2em 1em; border: 1px solid rgb(136, 136, |
| 136); background-color: rgb(224, 238, 238);"> | | 136); background-color: rgb(224, 238, 238);"> |
| | | |
| | | |
| <br/><br/> | | <br/><br/> |
| <h2 id="toc1"><span><strong>Steps for installing t | | <h2 id="toc1"><span><strong>Steps for installing t |
| he driver with "Ndiswrapper":</strong></span></h2> | | he driver with "Ndiswrapper":</strong></span></h2> |
| <br/> | | <br/> |
| n | <p><strong>1.</strong>As stated previously, the de | n | <p><strong>1.</strong>As stated previously, the de |
| velopers of SAM installed ndiswrapper in SAM, so t | | velopers of SAMity installed ndiswrapper in SAMity |
| here is no need to install it yourself. If you fin | | , so there is no need to install it yourself. If y |
| d ndiswrapper is corrupted or is not working, open | | ou find ndiswrapper is corrupted or is not working |
| Synaptic and reinstall it. Or do it from the cons | | , open Synaptic and reinstall it. Or do it from th |
| ole:</p> | | e console:</p> |
| <div id="code"> | | <div id="code"> |
| <pre> | | <pre> |
| n | [quest@sam ~]$ su | n | [quest@samity ~]$ su |
| Password: | | Password: |
| n | [root@sam]# apt-get install ndiswrapper</code> | n | [root@samity]# apt-get install ndiswrapper</code> |
| </pre></div> | | </pre></div> |
| <p><strong>2.</strong> Next we have to determine t | | <p><strong>2.</strong> Next we have to determine t |
| he PCI ID of our newly installed NIC (Network Inte | | he PCI ID of our newly installed NIC (Network Inte |
| rface Card) card. First use lspci command to find | | rface Card) card. First use lspci command to find |
| the IRQ number of the NIC card. The IRQ will be li | | the IRQ number of the NIC card. The IRQ will be li |
| sted in the first column. In this case the IRQ is | | sted in the first column. In this case the IRQ is |
| 01:08.0:</p> | | 01:08.0:</p> |
| <div id="code"> | | <div id="code"> |
| <pre> | | <pre> |
| n | [root@sam]# lspci | n | [root@samity]# lspci |
| ... | | ... |
| ... | | ... |
| 01:08.0 Network controller: Ralink Turbo Cardbus R | | 01:08.0 Network controller: Ralink Turbo Cardbus R |
| T61 (rev 01) | | T61 (rev 01) |
| ... | | ... |
| ... | | ... |
| n | [root@sam]# | n | [root@samity]# |
| </pre></div> | | </pre></div> |
| <p><strong>3.</strong>The lspci -n command can the | | <p><strong>3.</strong>The lspci -n command can the |
| n be used to obtain the PCI ID which has the forma | | n be used to obtain the PCI ID which has the forma |
| t xxxx:xxxx. Our NIC has the ID 1260:3873 :</p> | | t xxxx:xxxx. Our NIC has the ID 1260:3873 :</p> |
| <div id="code"> | | <div id="code"> |
| <pre> | | <pre> |
| n | [root@sam]# lspci -n | n | [root@samity]# lspci -n |
| ... | | ... |
| ... | | ... |
| 01:08.0 Class 0280: 1260:3873 (rev 01) | | 01:08.0 Class 0280: 1260:3873 (rev 01) |
| ... | | ... |
| ... | | ... |
| n | [root@sam]# | n | [root@samity]# |
| </pre></div> | | </pre></div> |
| <p><strong>4.</strong>The ndiswrapper website has | | <p><strong>4.</strong>The ndiswrapper website has |
| a table of PCI IDs and the matching Windows driver | | a table of PCI IDs and the matching Windows driver |
| s to be used for each at the following URL:</p> | | s to be used for each at the following URL:</p> |
| <div id="code"> | | <div id="code"> |
| <pre>http://ndiswrapper.sourceforge.net/joomla/ind | | <pre>http://ndiswrapper.sourceforge.net/joomla/ind |
| ex.php?/component/option,com_openwiki/Itemid,33/id | | ex.php?/component/option,com_openwiki/Itemid,33/id |
| ,list/ | | ,list/ |
| </pre></div> | | </pre></div> |
| <p>The website's list provides the names of driver | | <p>The website's list provides the names of driver |
| s that are known to work. Download from this site | | s that are known to work. Download from this site |
| your driver or you can also just grab your driver | | your driver or you can also just grab your driver |
| form Windows,find the files with the extension <st | | form Windows,find the files with the extension <st |
| rong>*INF</strong> and <strong>*SYS</strong>.</p> | | rong>*INF</strong> and <strong>*SYS</strong>.</p> |
| <p><strong>5.</strong> Once downloaded, extract th | | <p><strong>5.</strong> Once downloaded, extract th |
| e driver files . Under the main driver directory t | | e driver files . Under the main driver directory t |
| here will usually be subdirectories with drivers m | | here will usually be subdirectories with drivers m |
| atching various versions of Windows. Enter the sub | | atching various versions of Windows. Enter the sub |
| directory of the most recent version.</p> | | directory of the most recent version.</p> |
| <p><strong>6.</strong>The main windows driver file | | <p><strong>6.</strong>The main windows driver file |
| will have a .INF extension. Install this driver u | | will have a .INF extension. Install this driver u |
| sing the ndiswrapper command with the -i option fo | | sing the ndiswrapper command with the -i option fo |
| llowed by the driver filename. Use the ndiswrapper | | llowed by the driver filename. Use the ndiswrapper |
| command again with the -l option to verify that t | | command again with the -l option to verify that t |
| he installation was successful:</p> | | he installation was successful:</p> |
| <div id="code"> | | <div id="code"> |
| <pre> | | <pre> |
| n | [root@sam /home/rt61]# ls | n | [root@samity /home/rt61]# ls |
| RT61.sys RT61.INF | | RT61.sys RT61.INF |
| n | [root@sam /home/rt61]# ndiswrapper -i RT61.INF | n | [root@samity /home/rt61]# ndiswrapper -i RT61.INF |
| | | |
| Installing RT61 | | Installing RT61 |
| n | [root@sam /home/rt61]# ndiswrapper -l | n | [root@samity /home/rt61]# ndiswrapper -l |
| Installed drivers: | | Installed drivers: |
| RT61 driver installed, hardware pres | | RT61 driver installed, hardware pres |
| ent | | ent |
| n | [root@sam /home/rt61]# | n | [root@samity /home/rt61]# |
| </pre></div> | | </pre></div> |
| <p><strong>7.</strong> Next the Linux kernel modul | | <p><strong>7.</strong> Next the Linux kernel modul |
| es tables will have to be updated to include ndisw | | es tables will have to be updated to include ndisw |
| rapper in the listing. This is done with the depmo | | rapper in the listing. This is done with the depmo |
| d command with the -a flag:</p> | | d command with the -a flag:</p> |
| <div id="code"> | | <div id="code"> |
| <pre> | | <pre> |
| n | [root@sam /home/rt61]# depmod -a | n | [root@samity /home/rt61]# depmod -a |
| [root@sam /home/rt61]# | | [root@samity /home/rt61]# |
| </pre></div> | | </pre></div> |
| <p><strong>8.</strong> When ndiswrapper loads, it | | <p><strong>8.</strong> When ndiswrapper loads, it |
| will need to assign a device name to your NIC card | | will need to assign a device name to your NIC card |
| . This is done using the ndiswrapper command with | | . This is done using the ndiswrapper command with |
| the -m flag. Here we see that the new device name | | the -m flag. Here we see that the new device name |
| will be wlan0:</p> | | will be wlan0:</p> |
| <div id="code"> | | <div id="code"> |
| <pre> | | <pre> |
| n | [root@sam /home/rt61]# ndiswrapper -m | n | [root@samity /home/rt61]# ndiswrapper -m |
| Adding "alias wlan0 ndiswrapper" to /etc/modprobe. | | Adding "alias wlan0 ndiswrapper" to /etc/modprobe. |
| d/ndiswrapper | | d/ndiswrapper |
| n | [root@sam /home/rt61]# | n | [root@samity /home/rt61]# |
| </pre></div> | | </pre></div> |
| <p><strong>9.</strong> Now its time to load the nd | | <p><strong>9.</strong> Now its time to load the nd |
| iswrapper kernel module with the modprobe command. | | iswrapper kernel module with the modprobe command. |
| You can also verify the success of this operation | | You can also verify the success of this operation |
| by searching the end of the /var/log/messages fil | | by searching the end of the /var/log/messages fil |
| e for correct execution of the command:</p> | | e for correct execution of the command:</p> |
| <div id="code"> | | <div id="code"> |
| <pre> | | <pre> |
| n | [root@sam /home/rt61]# modprobe ndiswrapper | n | [root@samity /home/rt61]# modprobe ndiswrapper |
| [root@sam /home/rt61]# tail /var/log/messages | | [root@samity /home/rt61]# tail /var/log/messages |
| ... | | ... |
| ... | | ... |
| Mar 17 23:25:21 bigboy kernel: ndiswrapper version | | Mar 17 23:25:21 bigboy kernel: ndiswrapper version |
| 1.6 loaded (preempt=no,smp=no) | | 1.6 loaded (preempt=no,smp=no) |
| n | [root@sam /home/rt61]# | n | [root@samity /home/rt61]# |
| </pre></div> | | </pre></div> |
| <p>The dmesg command will give status messages for | | <p>The dmesg command will give status messages for |
| the loading of both your NIC driver and the ndisw | | the loading of both your NIC driver and the ndisw |
| rapper module. There should be no errors:</p> | | rapper module. There should be no errors:</p> |
| <div id="code"> | | <div id="code"> |
| <pre> | | <pre> |
| n | [root@sam /home/rt61]# dmesg | n | [root@samity /home/rt61]# dmesg |
| ... | | ... |
| ... | | ... |
| ... | | ... |
| ndiswrapper version 1.16 loaded (preempt=no,smp=no | | ndiswrapper version 1.16 loaded (preempt=no,smp=no |
| ) | | ) |
| ndiswrapper: driver rt61 (Ralink,04/21/2005, 3.100 | | ndiswrapper: driver rt61 (Ralink,04/21/2005, 3.100 |
| .65.1) loaded | | .65.1) loaded |
| ACPI: PCI Interrupt 0000:01:08.0[A] -> Link [LN | | ACPI: PCI Interrupt 0000:01:08.0[A] -> Link [LN |
| KB] -> GSI 10 (level, low) -> IRQ 10 | | KB] -> GSI 10 (level, low) -> IRQ 10 |
| ndiswrapper: using irq 10 | | ndiswrapper: using irq 10 |
| wlan0: vendor: | | wlan0: vendor: |
| wlan0: ndiswrapper ethernet device 00:06:25:1b:b2: | | wlan0: ndiswrapper ethernet device 00:06:25:1b:b2: |
| a9 using driver rt61 14E4:4301.5.conf | | a9 using driver rt61 14E4:4301.5.conf |
| wlan0: encryption modes supported: WEP; TKIP with | | wlan0: encryption modes supported: WEP; TKIP with |
| WPA, WPA2, WPA2PSK, WPA2, WPA2PSK | | WPA, WPA2, WPA2PSK, WPA2, WPA2PSK |
| n | [root@sam /home/rt61]# | n | [root@samity /home/rt61]# |
| </pre></div> | | </pre></div> |
| <p><strong>10.</strong>Now you can use the ifup co | | <p><strong>10.</strong>Now you can use the ifup co |
| mmand to activate the NIC, and the iwconfig comman | | mmand to activate the NIC, and the iwconfig comman |
| d will show the interface as connecting correctly | | d will show the interface as connecting correctly |
| to an access point :</p> | | to an access point :</p> |
| <div id="code"> | | <div id="code"> |
| <pre> | | <pre> |
| n | [root@sam /home/rt61]# ifup wlan0 | n | [root@samity /home/rt61]# ifup wlan0 |
| [root@sam /home/rt61]# iwconfig | | [root@samity /home/rt61]# iwconfig |
| ... | | ... |
| ... | | ... |
| n | wlan0 IEEE 802.11g ESSID:"johncr0w" Nicknam | n | wlan0 IEEE 802.11g ESSID:"johncr0w" Nicknam |
| e:"sam" | | e:"samity" |
| Mode:Managed Frequency:2.462GHz Access | | Mode:Managed Frequency:2.462GHz Access |
| Point: 00:09:5B:C9:19:22 | | Point: 00:09:5B:C9:19:22 |
| Bit Rate=54Mb/s Tx-Power:32 dBm | | Bit Rate=54Mb/s Tx-Power:32 dBm |
| RTS thr=2347 B Fragment thr=2346 B | | RTS thr=2347 B Fragment thr=2346 B |
| Encryption key:98D1-26D5-AC Security mo | | Encryption key:98D1-26D5-AC Security mo |
| de:restricted | | de:restricted |
| Power Management:off | | Power Management:off |
| Link Quality:88/100 Signal level:-55 dBm | | Link Quality:88/100 Signal level:-55 dBm |
| Noise level:-256 dBm | | Noise level:-256 dBm |
| Rx invalid nwid:0 Rx invalid crypt:0 Rx | | Rx invalid nwid:0 Rx invalid crypt:0 Rx |
| invalid frag:0 | | invalid frag:0 |
| Tx excessive retries:96 Invalid misc:115 | | Tx excessive retries:96 Invalid misc:115 |
| 7 Missed beacon:0 | | 7 Missed beacon:0 |
| ... | | ... |
| ... | | ... |
| t | [root@sam /home/rt61]# | t | [root@samity /home/rt61]# |
| </pre></div> | | </pre></div> |
| <br> | | <br> |
| | | |
| <br> | | <br> |