ndiswrapper は Linux で Windows 用の無線LAN用のドライバを使うためのアプリ。
Windows用のドライバの hogehoge.inf と hogehoge.sys を同じディレクトリに置く。
ドライバのインストール
# ndiswrapper -i hogehoge.inf
インストールの確認
# ndiswrapper -l
ndiswrapper をモジュールとしてロード
# modprobe ndiswrapper
起動時に読み込むよう /etc/modprobe.dに書き込む
# ndiswrapper -m
iwconfig で 無線LANが認識されているか確認
# iwconfig
後は、無線LANの設定
(注)netcardconfig で設定する場合は全てやってくれる。
# iwconfig wlan0 essid harehare
# iwconfig wlan0 key restricted xxxxxxxxxxxxxx
# iwconfig wlan0 channel *
# dhclient wlan0
これでは再起動時に消えてしまう。
/etc/network/interfaces に以下の記述を加える。
iface wlan0 inet dhcp
wireless-mode Managed
wireless-channel *
pre-up iwconfig wlan0 key xxxxxxxxxxxxxxx
wireless-essid harehare
pre-up /sbin/ifconfig wlan0 up
次回起動時もネットに自動で接続するために
先頭の方にある auto lo の後にスペースを空けて wlan0 を加える。
(参考)ドライバの削除
# rm /etc/modprobe.d/ndiswrapper
# rmmod ndiswrapper ←これは不要かも
# ndiswrapper -e hogehoge (ドライバ名)
◎問題はLinux用のドライバが入っていて自動的にロードされる場合
例えば、バッファローのWLI-U2-KG54はrt2570というドライバが自動で
ロードされるので、ndiswrapperがうまく動かない。
# rmmod rt2570 でrt2570をアンロードする。
そして、
# ndiswrapper -i hogehoge.inf
# modprobe ndiswrapper
# ndiswrapper -m
ただし、再起動すると、やはり rt2570 のドライバモジュールが自動で
読み込まれる。
# rmmod rt2570
# modprobe ndiswrapper
で、使えるようになるが、起動ごとにこんなことをやってられない。
(KANOTIXの場合)
/lib/modules/2.6.14-kanotix-9/kernel/drivers/net/wireless/rt2570.ko
これをリネームするなり、削除するなりする。
(このドライバはまともに使えないのであっても仕方ない)
Windows用のドライバの hogehoge.inf と hogehoge.sys を同じディレクトリに置く。
ドライバのインストール
# ndiswrapper -i hogehoge.inf
インストールの確認
# ndiswrapper -l
ndiswrapper をモジュールとしてロード
# modprobe ndiswrapper
起動時に読み込むよう /etc/modprobe.dに書き込む
# ndiswrapper -m
iwconfig で 無線LANが認識されているか確認
# iwconfig
後は、無線LANの設定
(注)netcardconfig で設定する場合は全てやってくれる。
# iwconfig wlan0 essid harehare
# iwconfig wlan0 key restricted xxxxxxxxxxxxxx
# iwconfig wlan0 channel *
# dhclient wlan0
これでは再起動時に消えてしまう。
/etc/network/interfaces に以下の記述を加える。
iface wlan0 inet dhcp
wireless-mode Managed
wireless-channel *
pre-up iwconfig wlan0 key xxxxxxxxxxxxxxx
wireless-essid harehare
pre-up /sbin/ifconfig wlan0 up
次回起動時もネットに自動で接続するために
先頭の方にある auto lo の後にスペースを空けて wlan0 を加える。
(参考)ドライバの削除
# rm /etc/modprobe.d/ndiswrapper
# rmmod ndiswrapper ←これは不要かも
# ndiswrapper -e hogehoge (ドライバ名)
◎問題はLinux用のドライバが入っていて自動的にロードされる場合
例えば、バッファローのWLI-U2-KG54はrt2570というドライバが自動で
ロードされるので、ndiswrapperがうまく動かない。
# rmmod rt2570 でrt2570をアンロードする。
そして、
# ndiswrapper -i hogehoge.inf
# modprobe ndiswrapper
# ndiswrapper -m
ただし、再起動すると、やはり rt2570 のドライバモジュールが自動で
読み込まれる。
# rmmod rt2570
# modprobe ndiswrapper
で、使えるようになるが、起動ごとにこんなことをやってられない。
(KANOTIXの場合)
/lib/modules/2.6.14-kanotix-9/kernel/drivers/net/wireless/rt2570.ko
これをリネームするなり、削除するなりする。
(このドライバはまともに使えないのであっても仕方ない)