How to config RaspBerry's Wireless Networking Setting

76 篇文章 0 订阅
12 篇文章 0 订阅

1.Check the status of Network Card

input ifconfig -a to see if the output has information of wlan0.Yes means the status is OK,you can ignore the second topic.If not,you should setup the driver of the Network Card.

2.Check the Information of Network Card

input * dmesg | grep usb* to check the information,mainly on the manufacturer,such as:

usb 1-1.3:Manufacturer Realtek

For example,if I want to setup the driver of Realtek:

apt-cache search realtek

you can see the information like:

firmware-realtek – Binary firmware for Realtek wired and wireless network adapters

setup the driver:

sudo apt-get install firmware-realtek

also you can download the driver through the mirror station
send the firmware-realtek_0.43_all.deb to /tmp,input:

sudo dpkg -i /tmp/firmware-realtek_0.43_all.deb

3.Config the Wireless Networking

sudo nano /etc/network/interfaces

the content is like this:

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

change to:

auto lo

iface lo inet loopback
iface eth0 inet dhcp

auto wlan0
#allow-hotplug wlan0
#iface wlan0 inet manual
iface wlan0 inet dhcp
wpa-conf /etc/wpa.conf
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

then edit the wpa.conf:

sudo nano /etc/wpa.conf

if your wifi does’t have password:

network={
[Tab] ssid="your wifi name(ssid)"
[Tab] key_mgmt=NONE
}

with WEP encryption:

network={
[Tab] ssid="your wifi name(ssid)"
[Tab] key_mgmt=NONE
[Tab] wep_key0="your wifi password"
}

with WPA/WPA2 encryption:

network={
[Tab] ssid="your wifi name(ssid)"
[Tab] key_mgmt=WPA-PSK
[Tab] wep_key0="your wifi password"
}

at last start the Network Card:

sudo ifup wlan0
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值