haiku/docs/userguide/zh_CN/workshop-wlan.html
2020-05-30 10:43:56 +01:00

140 lines
8.2 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN" xml:lang="zh-CN">
<head>
<!--
*
* Copyright 2012-2019, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Humdinger <humdingerb@gmail.com>
* Translators:
* Humdinger
* Pengphei Han
*
-->
<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>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="../Haiku-doc.css" />
</head>
<body>
<div id="banner">
<div><span>User guide</span></div>
</div>
<div class="nav">
<div class="inner">
<ul class="lang-menu">
<li class="now"> 中文 [中文]&nbsp;<span class="dropdown-caret">&#9660;</span></li>
<li><a href="../id/workshop-wlan.html">Bahasa Indonesia</a></li>
<li><a href="../ca/workshop-wlan.html">Català</a></li>
<li><a href="../de/workshop-wlan.html">Deutsch</a></li>
<li><a href="../en/workshop-wlan.html">English</a></li>
<li><a href="../es/workshop-wlan.html">Español</a></li>
<li><a href="../fr/workshop-wlan.html">Français</a></li>
<li><a href="../fur/workshop-wlan.html">Furlan</a></li>
<li><a href="../it/workshop-wlan.html">Italiano</a></li>
<li><a href="../hu/workshop-wlan.html">Magyar</a></li>
<li><a href="../pl/workshop-wlan.html">Polski</a></li>
<li><a href="../pt_PT/workshop-wlan.html">Português</a></li>
<li><a href="../pt_BR/workshop-wlan.html">Português (Brazil)</a></li>
<li><a href="../ro/workshop-wlan.html">Română</a></li>
<li><a href="../sk/workshop-wlan.html">Slovenčina</a></li>
<li><a href="../fi/workshop-wlan.html">Suomi</a></li>
<li><a href="../sv_SE/workshop-wlan.html">Svenska</a></li>
<li><a href="../tr/workshop-wlan.html">Türkçe</a></li>
<li><a href="../ru/workshop-wlan.html">Русский</a></li>
<li><a href="../uk/workshop-wlan.html">Українська</a></li>
<li><a href="../jp/workshop-wlan.html">日本語</a></li>
</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>
<div class="box-info">The translation of this page isn't yet complete. Until it is, unfinished parts use the English original.</div>
<table class="index" id="index" summary="index">
<tr class="heading"><td>索引</td></tr>
<tr class="index"><td>
<a href="#gui">Joining a wireless network</a><br />
<a href="#commandline">Joining from the command line</a><br />
<a href="#firmware">Getting supported hardware to work</a>
</td></tr>
</table>
<h1>操作练习:无线网络</h1>
<p>Getting the networking to run is essential in today's need for permanent internet connection. As keeping up to date with all the different and ever changing hardware and drivers is quite impossible for a small project, Haiku relies on a <a href="http://www.freebsd.org">FreeBSD</a> compatibility layer for its networking drivers.<br />
This ensures a massive amount of supported hardware, though probably not 100% of what's out there. See <a href="http://www.freebsd.org/releases/12.0R/hardware.html#wlan">FreeBSD 12.0's release hardware notes</a> for a list of supported models.</p>
<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="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/WPA2WEP不再是一个安全的加密方式 和无线网络密码。点击 <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>
<p>如果您对命令行情有独钟,或者喜欢使用脚本,或者使用 <span class="path">~/config/settings/boot/UserBootscript</span> 在系统启动时自动连接指定网络,您可以使用命令 <tt>ifconfig</tt></p>
<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 />
该命令的输出结果将会显示所有发现网络的公开名称SSIDMAC 地址,信号强度以及加密方法。</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="firmware" name="firmware">添加支持硬件</a></h2>
<p>All supported modern wireless hardware works out of the box.</p>
<p>A few quite old chipsets (Intel 2100/2200/2225/2915, Broadcom 43xx, Marvell 88w8335) require binary firmware modules that Haiku cannot include due to licensing issues, though. To get these wireless cards to work, a simple script is included which will retrieve and install all of the needed proprietary bits for you.</p>
<p>打开终端,输入:</p>
<pre class="terminal">install-wifi-firmwares.sh</pre>
<p>接下来查看授权协议,然后接受协议并安装所有可用的固件文件。</p>
<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 />
该脚本将会下载所需要的文件,并创建一个可以解压到 Haiku <tt>/boot</tt> 目录的压缩文件。在解压之后,在终端中输入如下指令:
</p>
<pre class="terminal">install-wifi-firmwares.sh</pre>
<p>检查授权并接受一边安装所有目前可用的固件文件。</p>
</div>
</div>
<div class="nav">
<div class="inner"><span>
«  <a href="workshop-email.html">Workshop: Managing Email</a> 
::  <a href="contents.html" class="uplink">Contents</a> 
::  <a href="applications.html">应用程序
</a>  »
</span></div>
</div>
</body>
</html>