haiku/docs/userguide/zh_CN/workshop-wlan.html
2015-02-23 18:29:56 +01:00

138 lines
8.7 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="en" xml:lang="en">
<head>
<!--
*
* Copyright 2012-2015, Haiku, Inc. All rights reserved.
* 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>
<link rel="stylesheet" type="text/css" href="../Haiku-doc.css" />
</head>
<body>
<div id="banner">
<div><span>用户指南</span></div>
</div>
<div class="nav">
<div class="inner">
<ul class="lang-menu">
<li class="now"><img src="../images/flags/zh_CN.png" alt="" />  中文 [中文]</li>
<li><a href="../fr/workshop-wlan.html"><img src="../images/flags/fr.png" alt="" />Français</a></li>
<li><a href="../de/workshop-wlan.html"><img src="../images/flags/de.png" alt="" />Deutsch</a></li>
<li><a href="../it/workshop-wlan.html"><img src="../images/flags/it.png" alt="" />Italiano</a></li>
<li><a href="../ru/workshop-wlan.html"><img src="../images/flags/ru.png" alt="" />Русский</a></li>
<li><a href="../es/workshop-wlan.html"><img src="../images/flags/es.png" alt="" />Español</a></li>
<li><a href="../sv_SE/workshop-wlan.html"><img src="../images/flags/sv_SE.png" alt="" />Svenska</a></li>
<li><a href="../jp/workshop-wlan.html"><img src="../images/flags/jp.png" alt="" />日本語</a></li>
<li><a href="../uk/workshop-wlan.html"><img src="../images/flags/uk.png" alt="" />Українська</a></li>
<li><a href="../pt_PT/workshop-wlan.html"><img src="../images/flags/pt_PT.png" alt="" />Português</a></li>
<li><a href="../fi/workshop-wlan.html"><img src="../images/flags/fi.png" alt="" />Suomi</a></li>
<li><a href="../sk/workshop-wlan.html"><img src="../images/flags/sk.png" alt="" />Slovenčina</a></li>
<li><a href="../hu/workshop-wlan.html"><img src="../images/flags/hu.png" alt="" />Magyar</a></li>
<li><a href="../pt_BR/workshop-wlan.html"><img src="../images/flags/pt_BR.png" alt="" />Português (Brazil)</a></li>
<li><a href="../ca/workshop-wlan.html"><img src="../images/flags/ca.png" alt="" />Català</a></li>
<li><a href="../pl/workshop-wlan.html"><img src="../images/flags/pl.png" alt="" />Polski</a></li>
<li><a href="../en/workshop-wlan.html"><img src="../images/flags/gb.png" alt="" />English</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">本节的翻译还未完成。在未完成之前,所有的未完成部分都将使用英语原文。</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>
<p>在目前永久网络连接需求下网络的运行就显得尤为必要。对于小的项目来说对日新月异的硬件提供驱动支持基本上是不可能的Haiku 目前基于 <a href="http://www.freebsd.org">FreeBSD</a> 兼容层提供网络驱动的支持。<br />
尽管并没有提供 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>
<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/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="tips" name="tips">建议</a></h2>
<h3>Offline download of binary firmware files</h3>
<p>If you cannot obtain the binary firmware files via the <tt>install-wifi-firmwares.sh</tt> script (for example due to lack of internet connection within Haiku), you can also download <a href="http://www.haiku-os.org/files/download-data-for-wlan-firmwares.txt">this shell script</a>, and run it from any other OS that has <tt>wget</tt> and <tt>zip</tt> installed.<br />
The script will download the needed files and create a zip file that is to be extracted to Haiku's <tt>/boot</tt>. Once unpacked, open a Terminal and type:</p>
<pre class="terminal">install-wifi-firmwares.sh</pre>
<p>Review the licenses and accept them to install all of the now available firmware files.</p>
</div>
</div>
<div class="nav">
<div class="inner"><span>
«  <a href="workshop-email.html">操作练习:邮件管理</a> 
::  <a href="contents.html" class="uplink">内容</a> 
::  <a href="applications.html">应用程序
</a>  »
</span></div>
</div>
</body>
</html>