一. 安裝ieee80211 subsystem
1. 在安装之前,ieee80211文档说要将kernel原先的ieee80211删除,可是我删除后make Intel® PRO/Wireless 3945ABG Driver 时出错
害得我重新安装之前的ieee80211版本,第二次我忽略了ieee80211的安装,才成功。所以大家可以跳过ieee80211,除非你系统里没有ieee80211。
通常会在 /lib/modules/$(uname -r)/kernel/net/ 看到ieee80211 目录,说明你的系统已经有了它。
2. 到
http://ieee80211.sourceforge.net/ 下载最新版本(写此文时是1.2.18版)
3. 编译安装ieee80211
引用:
# tar zxvf ieee80211-1.2.15.tgz
# cd ieee80211-1.2.15
# source remove-old
# make 或 make IEEE80211_INC=/usr/include (INSTALL 说这将会把 ieee80211.h 头文件安装到 /usr/include/net)
# make install
二. 安装binary microcode image
1. 到
http://bughost.org/ipw3945/ 下載
http://bughost.org/ipw3945/ucode/ipw3945-ucode-1.14.2.tgz (版本可能有更新)
2. 解压,进去目录把ipw3945.ucode 复制到 /lib/firmware/
引用:
# tar zxvf ipw3945-ucode-1.13.tgz
# cd ipw3945-ucode-1.13
# cp ipw3945.ucode /lib/firmware/
三. 安装binary user space regulatory daemon
1. 到
http://bughost.org/ipw3945/ 下载
http://bughost.org/ipw3945/daemon/ipw3945d-1.7.22.tgz(版本可能有更新)
2. 解压,进去该目录查看 README.ipw3945d的说明。简短步骤如下:
引用:
# tar zxvf ipw3945d-1.7.22.tgz
# cd ipw3945d-1.7.22
# cp x86/ipw3945d /sbin/
四. 安裝Intel® PRO/Wireless 3945ABG Driver
到
http://ipw3945.sourceforge.net/ 下载最新模块
http://jaist.dl.sourceforge.net/ ... 5/ipw3945-1.2.2.tgz(版本可能有更新)
引用:
# tar zxvf ipw3945-1.1.0.tgz
# cd ipw3945-1.1.0
# make
# cp ipw3945.ko /lib/modules/`uname -r`
# depmod -a
到此为止,就可以说是完成了模块的安装,但是有关于开机自己启动以及无线网络加密的部分,可能还是会不知道如何下手.所以以下是针对CentOS做的简易修改,大家可以参考.
首先我们希望可以开机自己载入无线模块,所以建立/etc/modprode.d/ipw3945,并加入这两行:
引用:
install ipw3945 /sbin/modprobe --ignore-install ipw3945 ; sleep 0.5 ; /sbin/ipw3945d --quiet
remove ipw3945 /sbin/ipw3945d --kill ; /sbin/modprobe -r --ignore-remove ipw3945
然后
然後我們抓下
http://www.atworkonline.it/~bibe/etch/ipw3945 存檔(假設存在當前目錄、檔名為ipw3945),輸入下列指令:
引用:
# install -m 755 ipw3945 /etc/init.d/
# chkconfig --add ipw3945
# chkconfig ipw3945 on
# chkconfig --list ipw3945
ipw3945 0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭
复制内容到剪贴板
代码:
#! /bin/sh
#
# chkconfig: 2345 20 80
# description: ipw3945 Sets up network profile
# processname: ipw3945
# Version: @(#)ipw3945 0.0.1-1 01-Apr-2006 bibe@atworkonline.it
#
set -e
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DESC="Intel PRO/Wireless 3945"
NAME=ipw3945
SCRIPTNAME=/etc/init.d/$NAME
# Exit if not root
if [ $(id -u) -gt 0 ]
then
echo "This script must be run as root."
exit 99
fi
# Gracefully exit if the package has been removed.
test -x $SCRIPTNAME || exit 0
# These lines are supposet to be put in /etc/modprobe.d/ipw3945, but at boot time the regulatory daemon doesn't start.
# install ipw3945 /sbin/modprobe --ignore-install ipw3945 && sleep 0.5 && /sbin/ipw3945d --quiet
# remove ipw3945 /sbin/ipw3945d --kill; /sbin/modprobe -r --ignore-remove ipw3945
# Loads the driver and starts the regulatory daemon
load() {
/sbin/modprobe --ignore-install ipw3945
/sbin/ipw3945d --timeout=-1 --quiet
}
# Unloads the driver (killing the regulatory daemon)
unload() {
/sbin/ipw3945d --kill 2>/dev/null
/sbin/modprobe -r --ignore-remove ipw3945
}
case "$1" in
start|restart)
echo -n "Starting $DESC: $NAME"
unload
sleep 0.5
load
sleep 1.0
echo "."
;;
stop)
echo -n "Stopping $DESC: $NAME"
unload
echo "."
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|restart}" >&2
exit 1
;;
esac
exit 0另外,由於我的無線網路有啟用WPA-AES加密,所以建議可以安裝network-manager-gnome,可以方便的搜尋無線網路訊號、以及設定加密。記得要設定sudo,才可以順利的在圖形介面上啟動這個程式(有更方便的方式嗎?)。這部份就沒什麼好寫的了,祝各位設定順利Very Happy對了,記得重新開機唷。
感謝aprotoss提供的連結,只要將你所用的帳號加入/etc/group中的netdev群組,就可以不用設定sudo的情況下啟動network-manager-gnome囉