pacman -S dialog wifi-menu
wifi-menu
查看网卡信息:
# iwconfig
无线网卡一般是wlan0
# ifconfig wlan0 up #启用无线网卡
查看附近可用的无线接入点(AP)
# iwlist wlan0 scan
wifi-menu
查看网卡信息:
# iwconfig
无线网卡一般是wlan0
# ifconfig wlan0 up #启用无线网卡
查看附近可用的无线接入点(AP)
# iwlist wlan0 scan
让无线网卡接入WEP无线网络:
# iwconfig wlan0 ESSID "linkname" KEY "password" openWPA/WPA2无线网络 :
vim /etc/network/interfaces
===================
===================
auto wlan0
iface wlan0 inet dhcp
#if it's a hidden wifi,add 2 lines below
#wpa-ap-scan 1
#wpa-scan-ssid 1
wpa-ssid x
wpa-psk zhaohuandabaojian!
Wifi Hotspot :
# apt-get install hostapd
Edit /etc/default/hostapd, enter:
Add a line :
# vi /etc/default/hostapd
Add a line :
Next create a text file called /etc/hostapd/hostapd.conf, enter:
Set interface name:
Set interface name:
Set driver name:
Set country name code in ISO/IEC 3166-1 format. This is used to set regulatory domain. Set as needed to indicate country in which device is operating. This can limit available channels and transmit power.
Set your SSID:
Set operation mode (a = IEEE 802.11a, b = IEEE 802.11b, g = IEEE 802.11g)
Set channel number (some driver will only use 0 as value)
hw_mode=g
Set channel number (some driver will only use 0 as value)
Set wpa mode to 2:
Set your passphrase (WiFi password):
Set key and auth optionsmanagement for WPA2:
Save and close the file.
How Do I start / stop / restart AP?
Use the following commands:
# /etc/init.d/hostapd start
# /etc/init.d/hostapd stop
# /etc/init.d/hostapd restart
评论
发表评论