2012-08-18 12:28:04 +04:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2017-10-01 14:21:40 +03:00
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "zh-CN" xml:lang = "zh-CN" >
2012-08-18 12:28:04 +04:00
< head >
<!--
*
2016-05-06 05:15:13 +03:00
* Copyright 2012-2016, Haiku, Inc. All rights reserved.
2012-08-18 12:28:04 +04:00
* Distributed under the terms of the MIT License.
*
* Authors:
* Humdinger < humdingerb @ gmail . com >
* Translators:
* Pengphei Han
* Humdinger
*
-->
< meta http-equiv = "content-type" content = "text/html; charset=utf-8" / >
< meta http-equiv = "Content-Style-Type" content = "text/css" / >
< meta name = "robots" content = "all" / >
< title > 操作练习:无线网络< / title >
2017-10-01 14:21:40 +03:00
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" / >
2012-08-18 12:28:04 +04:00
< link rel = "stylesheet" type = "text/css" href = "../Haiku-doc.css" / >
< / head >
< body >
< div id = "banner" >
2016-05-06 21:48:02 +03:00
< div > < span > 用户指南< / span > < / div >
2012-08-18 12:28:04 +04:00
< / div >
< div class = "nav" >
< div class = "inner" >
< ul class = "lang-menu" >
< li class = "now" > < img src = "../images/flags/zh_CN.png" alt = "" / > 中文 [中文]< / li >
2017-06-24 01:19:23 +03:00
< li > < a href = "../ca/workshop-wlan.html" > < img src = "../images/flags/ca.png" alt = "" / > Català< / a > < / li >
2012-08-18 12:28:04 +04:00
< li > < a href = "../de/workshop-wlan.html" > < img src = "../images/flags/de.png" alt = "" / > Deutsch< / a > < / li >
2017-06-24 01:19:23 +03:00
< li > < a href = "../en/workshop-wlan.html" > < img src = "../images/flags/gb.png" alt = "" / > English< / a > < / li >
2012-08-18 12:28:04 +04:00
< li > < a href = "../es/workshop-wlan.html" > < img src = "../images/flags/es.png" alt = "" / > Español< / a > < / li >
2017-06-24 01:19:23 +03:00
< li > < a href = "../fr/workshop-wlan.html" > < img src = "../images/flags/fr.png" alt = "" / > Français< / a > < / li >
< li > < a href = "../it/workshop-wlan.html" > < img src = "../images/flags/it.png" alt = "" / > Italiano< / a > < / li >
2012-11-16 01:36:54 +04:00
< li > < a href = "../hu/workshop-wlan.html" > < img src = "../images/flags/hu.png" alt = "" / > Magyar< / a > < / li >
2014-05-31 02:02:36 +04:00
< li > < a href = "../pl/workshop-wlan.html" > < img src = "../images/flags/pl.png" alt = "" / > Polski< / a > < / li >
2017-06-24 01:19:23 +03:00
< li > < a href = "../pt_PT/workshop-wlan.html" > < img src = "../images/flags/pt_PT.png" alt = "" / > Português< / a > < / li >
< li > < a href = "../pt_BR/workshop-wlan.html" > < img src = "../images/flags/pt_BR.png" alt = "" / > Português (Brazil)< / a > < / li >
2016-05-06 05:15:13 +03:00
< li > < a href = "../ro/workshop-wlan.html" > < img src = "../images/flags/ro.png" alt = "" / > Română< / a > < / li >
2017-06-24 01:19:23 +03:00
< li > < a href = "../sk/workshop-wlan.html" > < img src = "../images/flags/sk.png" alt = "" / > Slovenčina< / a > < / li >
< li > < a href = "../fi/workshop-wlan.html" > < img src = "../images/flags/fi.png" alt = "" / > Suomi< / a > < / li >
< li > < a href = "../sv_SE/workshop-wlan.html" > < img src = "../images/flags/sv_SE.png" alt = "" / > Svenska< / a > < / li >
< li > < a href = "../ru/workshop-wlan.html" > < img src = "../images/flags/ru.png" alt = "" / > Русский< / a > < / li >
< li > < a href = "../uk/workshop-wlan.html" > < img src = "../images/flags/uk.png" alt = "" / > Українська< / a > < / li >
< li > < a href = "../jp/workshop-wlan.html" > < img src = "../images/flags/jp.png" alt = "" / > 日本語< / a > < / li >
2012-08-18 12:28:04 +04:00
< / ul >
< span >
« < a href = "workshop-email.html" > Workshop: Managing Email< / a >
:: < a href = "contents.html" class = "uplink" > Contents< / a >
:: < a href = "applications.html" > Applications< / a > »
< / span > < / div >
< / div >
< div id = "content" >
< div >
< table class = "index" id = "index" summary = "index" >
< tr class = "heading" > < td > 索引< / td > < / tr >
< tr class = "index" > < td >
< a href = "#firmware" > 添加支持硬件< / a > < br / >
< a href = "#gui" > 无线网络连接< / a > < br / >
< a href = "#commandline" > 命令行连接< / a > < br / >
< a href = "#tips" > 建议< / a >
< / td > < / tr >
< / table >
< h1 > 操作练习:无线网络< / h1 >
2014-05-31 02:02:36 +04:00
< p > 在目前永久网络连接需求下, 网络的运行就显得尤为必要。对于小的项目来说, 对日新月异的硬件提供驱动支持基本上是不可能的, Haiku 目前基于 < a href = "http://www.freebsd.org" > FreeBSD< / a > 兼容层提供网络驱动的支持。< br / >
2015-01-17 20:26:33 +03:00
尽管并没有提供 100% 硬件的支持,但是保证了对大量硬件的支持。更多硬件支持信息请查阅 < a href = "https://www.haiku-os.org/guides/daily-tasks/wireless#hardware-notes" > 在线列表< / a > 或者 < a href = "http://www.freebsd.org/releases/9.3R/hardware.html#WLAN" > FreeBSD 9.3 硬件发布声明< / a > 。< / p >
2012-08-18 12:28:04 +04:00
< div class = "box-info" > 目前只有 PCI, PCI-X, PCI-Express, Mini PCI, and Mini PCI-Express 设备能够很好运行。< br / >
PCMCIA, CardBus, ExpressCard, USB and ISA 设备仍需要一些功能完善。< / div >
< h2 >
< a href = "#" > < img src = "../images/up.png" style = "border:none;float:right" alt = "index" / > < / a >
< a id = "firmware" name = "firmware" > 添加支持硬件< / a > < / h2 >
< p > 虽然我们已经越过了首个障碍, 提供了常用的硬件支持, 但是一些无线网卡可能需要一些二进制固件模块。由于授权问题, Haiku无法包含这些私有固件文件。Haiku 包含了一个简单的脚本,它可用于为你检索和安装所有这些需要的私有位。一般情况下,如果您计划使用无线网络,您最好执行该脚本以确保您的系统包含所有这些需要的固件文件。< / p >
< p > 打开终端,输入:< / p >
< pre class = "terminal" > install-wifi-firmwares.sh< / pre >
< p > 接下来查看授权协议,然后接受协议并安装所有可用的固件文件。< / p >
< p > 如果您在Haiku下无法访问网络, 不能够下载缺失的固件, 我们还提供了离线的方式, 详情参考如下 < a href = "#tips" > 建议< / a > 。< / p >
< h2 >
< a href = "#" > < img src = "../images/up.png" style = "border:none;float:right" alt = "index" / > < / a >
< a id = "gui" name = "gui" > 无线网络连接< / a > < / h2 >
< p > 默认情况下, 在启动之后, Haiku将会连接到其发现的首个未加密的无线网络。如果需要连接到指定网络, 您需要使用桌面小工具 < a href = "desktop-applets/networkstatus.html" > 网络状态< / a > 。< / p >
< p > 右键点击桌面栏图标, 然后从菜单中选择网络公开名称( 也就是其广播的“SSID”) 。< / p >
< img src = "images/workshop-wlan-images/join-network.png" alt = "join-network.png" / >
< p > 之后将会打开一个窗口,您可以输入加密类型(如 WPA/WPA2, WEP不再是一个安全的加密方式! ) 和无线网络密码。点击 < span class = "button" > 确定< / span > 启动登录进程。< br / > 根据硬件和网络配置的不同,需要等待的时间也会有所差异。然后您会看到如下通知:< / p >
< img src = "images/workshop-wlan-images/join-status.gif" alt = "join-network.gif" / >
< p > 当其状态显示为 "Ready" 时,桌面栏中的网络状态显示为圆浅绿色,网络连接也已建立。。如果通知显示为 "No link" ,网络状态图标将会显示为三角黄色,这也就意味着网络连接出现错误,有可能是密码错误。< / p >
< h2 >
< a href = "#" > < img src = "../images/up.png" style = "border:none;float:right" alt = "index" / > < / a >
< a id = "commandline" name = "commandline" > 命令行连接< / a > < / h2 >
2014-05-31 02:02:36 +04:00
< p > 如果您对命令行情有独钟,或者喜欢使用脚本,或者使用 < span class = "path" > ~/config/settings/boot/UserBootscript< / span > 在系统启动时自动连接指定网络,您可以使用命令 < tt > ifconfig< / tt > 。< / p >
2012-08-18 12:28:04 +04:00
< p > 启动终端,然后输入命令扫描可用无线网络:< / p >
< pre class = "terminal" > ifconfig /dev/net/iprowifi3945/0 scan
name address signal auth
haiku-top 01:d0:19:a6:88:42 30 WPA
ArcorInternet123 00:20:12:a4:29:e1 15 WPA< / pre >
< p > 当然,您需要确定无线网络适配器的路径。< br / >
该命令的输出结果将会显示所有发现网络的公开名称( SSID) , MAC 地址,信号强度以及加密方法。< / p >
< p > 为了连接网络, 请使用下面的命令, 在其中使用相应的公开名称( SSID) 和密码: < / p >
< pre class = "terminal" > ifconfig /dev/net/iprowifi3945/0 join {SSID} {password}< / pre >
< p > 在输入 < tt > ifconfig< / tt > 命令之前,请确保启动后无线网络适配器的初始化配置,否则命令将会被忽略。根据硬件和网络配置的不同,可能需要等待一段时间,请查看如下通知...< / p >
< h2 >
< a href = "#" > < img src = "../images/up.png" style = "border:none;float:right" alt = "index" / > < / a >
< a id = "tips" name = "tips" > 建议< / a > < / h2 >
2016-05-06 05:15:13 +03:00
< h3 > 离线下载二进制固件文件< / h3 >
2017-04-15 23:38:49 +03:00
< p > 如果您无法通过 < tt > install-wifi-firmwares.sh< / tt > 脚本来获取二进制固件文件(例如,在 Haiku 中缺少互联网连接),您可以下载 < a href = "http://www.haiku-os.org/files/download-data-for-wlan-firmwares.txt" > 此 shell 脚本< / a > ,然后从其他包安装有 < tt > wget< / tt > 和 < tt > zip< / tt > 命令的系统中运行。< br / >
Windows 用户需要使用 Windows 可执行的 < a href = "http://gnuwin32.sourceforge.net/packages/wget.htm" > wget< / a > 和 < a href = "http://gnuwin32.sourceforge.net/packages/zip.htm" > zip< / a > 安装在默认位置,然后使用 < a href = "https://www.haiku-os.org/files/download-data-for-wlan-firmwares.bat" > BAT脚本< / a > 。< br / >
2016-05-06 05:15:13 +03:00
该脚本将会下载所需要的文件,并创建一个可以解压到 Haiku < tt > /boot< / tt > 目录的压缩文件。在解压之后,在终端中输入如下指令:
< / p >
2012-08-18 12:28:04 +04:00
< pre class = "terminal" > install-wifi-firmwares.sh< / pre >
2016-05-06 05:15:13 +03:00
< p > 检查授权并接受一边安装所有目前可用的固件文件。< / p >
2017-04-15 23:38:49 +03:00
< h3 > 避免连接断开< / h3 >
< p > Haiku 系统的一些 WLAN 芯片驱动,如 iprowifi4965 已经证实在使用 WPA 加密时会断开连接。如果您也受此影响,可以尝试在连接网络之前,禁用 "HT 模式" (高吞吐量模式, 802.11n) 。< / p >
2016-05-06 05:15:13 +03:00
< pre class = "terminal" > ifconfig /dev/net/iprowifi4965/0 -ht< / pre >
2017-04-15 23:38:49 +03:00
< p > 如果该指令可以解决问题,可以将该指令行写入 < span class = "path" > ~/config/settings/boot/UserBootscript< / span > 启动脚本,在每次开机时自动调用执行。< / p >
2012-08-18 12:28:04 +04:00
< / div >
< / div >
< div class = "nav" >
< div class = "inner" > < span >
2016-05-06 21:48:02 +03:00
« < a href = "workshop-email.html" > 操作练习:邮件管理< / a >
:: < a href = "contents.html" class = "uplink" > 内容< / a >
:: < a href = "applications.html" > 应用程序
< / a > »
2012-08-18 12:28:04 +04:00
< / span > < / div >
< / div >
< / body >
< / html >