forked from flyher/shumeipai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
debian 无线命令配置(WAP2)_在路上_百度空间.html
1 lines (1 loc) · 3.74 KB
/
debian 无线命令配置(WAP2)_在路上_百度空间.html
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta name="exporter-version" content=mNote Mac 2.4.10"/><meta name="created" content="2013-07-29T14:38:52Z"/><meta name="updated" content="2013-07-29T14:38:52Z"/><title>debian 无线命令配置(WAP2)_在路上_百度空间</title></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><div style="border: 0px none rgb(69, 69, 69); color: rgb(69, 69, 69); display: block; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: Tahoma, Helvetica, Arial, STHeiti; height: 861px; outline: rgb(69, 69, 69) none 0px; overflow: hidden; padding: 0px; text-decoration: initial; width: 758px; word-break: break-all; word-wrap: break-word;"> 在有如 gnome/kde/xfce 等图形环境里可以用 networkmanager 或 wicd 来进行图形方式的配置,只是没有通用性。<br>并且回到终端下无线网络就不可用,也太让人不爽了。<br><br>下面介绍用命令行方式来对无线网络进行配置,以我的机器配置为例。<br>注:1、图形界面的网络配置工具与下面修改文本配置方式冲突,请移除这些软件包。<br>2、下面无线网络配置使用 WPA2 加密。WEP加密很容易破解,WPA1已经过时。<br><br>1、安装驱动<br>识别网卡<br>$lspci | grep Wireless<br>03:00.0 Network controller: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection<br>安装驱动<br>$sudo aptitude install firmware-iwlwifi<br>加载驱动<br>$sudo modprobe iwl3945<br><br>2、安装软件<br>$sudo aptitude install wireless-tools wpasupplicant<br><br>3、收集信息<br>获取 SSID<br>$sudo iwlist scan<br><br>4、配置无线网络<br>把下面文件中的 ssid 和 passwd 换成无线网络的 ssid 和密码。<br>$sudo vim /etc/network/interfaces<br><br>auto wlan0<br>iface wlan0 inet dhcp<br>pre-up ip link set wlan0 up<br>pre-up iwconfig wlan0 essid ssid<br>wpa-ssid ssid<br>wpa-psk password<br><br>5、启用无线网线<br>$sudo ifup wlan0<br>#每次重启之后会自动连接无线网络<br><br>参考:<a href="http://wiki.debian.org/WiFi/HowToUse" style="border: 0px none rgb(63, 167, 203); color: rgb(63, 167, 203); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: Tahoma, Helvetica, Arial, STHeiti; margin: 0px; outline: rgb(63, 167, 203) none 0px; padding: 0px; text-decoration: underline; word-break: break-all; word-wrap: break-word;">http://wiki.debian.org/WiFi/HowToUse</a><br><a href="http://wiki.debian.org/iwlwifi" style="border: 0px none rgb(63, 167, 203); color: rgb(63, 167, 203); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: Tahoma, Helvetica, Arial, STHeiti; margin: 0px; outline: rgb(63, 167, 203) none 0px; padding: 0px; text-decoration: underline; word-break: break-all; word-wrap: break-word;">http://wiki.debian.org/iwlwifi</a><br><a href="http://www.cactus.org.cn/2010/05/debian-linux-wifi-config-wpa.html" style="border: 0px none rgb(63, 167, 203); color: rgb(63, 167, 203); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: Tahoma, Helvetica, Arial, STHeiti; margin: 0px; outline: rgb(63, 167, 203) none 0px; padding: 0px; text-decoration: underline; word-break: break-all; word-wrap: break-word;">http://www.cactus.org.cn/2010/05/debian-linux-wifi-config-wpa.html</a> [❤]<br> </div></div></body></html>