Difference between revisions of "Translations:FAQ/72/zh"

From GhostBSD Wiki
Jump to: navigation, search
(Created page with "如果未输出,则 GhostBSD 网络配置可能未检测到无线网卡。这时需要查看有没有安装了无线驱动。 : <code>sudo ifconfig | grep -B 3 802.11</code>...")
 
 
Line 8: Line 8:
 
       media: IEEE 802.11 Wireless Ethernet autoselect mode 11a
 
       media: IEEE 802.11 Wireless Ethernet autoselect mode 11a
 
</pre>
 
</pre>
如果输出了类似上面的,则可以配置 ''/etc/rc.conf''文件(ee 为文本管理器,可替换为你喜欢的 vim、nano和 pluma等)。
+
如果输出了类似上面的,则可以配置 ''/etc/rc.conf'' 文件(ee 为文本管理器,可替换为你喜欢的 vim、nano和 pluma等)。
 
: <code>sudo ee /etc/rc.conf</code>
 
: <code>sudo ee /etc/rc.conf</code>
 
在 ''/etc/rc.conf'' 中添加文本(替换run0 为你的无线设备)
 
在 ''/etc/rc.conf'' 中添加文本(替换run0 为你的无线设备)

Latest revision as of 12:18, 12 October 2019

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (FAQ)
If you have no output, this mean the GhostBSD network configuration system have not detected your WiFi card. The next step for you will be to look if GhostBSD have your WiFi drivers install.
: <code>sudo ifconfig | grep -B 3 802.11</code>
In this case run0 is the WiFi drivers.
<pre>
run0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
       ether 00:1e:e5:e6:5d:1
       nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
       media: IEEE 802.11 Wireless Ethernet autoselect mode 11a
</pre>
If you have an output similar from the example above, you need to configure the file ''/etc/rc.conf''.
: <code>sudo ee /etc/rc.conf</code>
Add those line in the file ''/etc/rc.conf'' (Replace run0 by your drivers).
<pre>
wlans_run0="wlan0"
ifconfig_wlan0="WPA DHCP"
</pre>
[[wikipedia:en:Esc key|Esc]] and save the file. Now you need to restart <code>netif</code>.
: <code>sudo /etc/rc.d/netif restart</code>
Your wifi is now configured, you might have to turn wlan0 up.
: <code>sudo ifconfig wlan0 up</code>
Translation如果未输出,则 GhostBSD 网络配置可能未检测到无线网卡。这时需要查看有没有安装了无线驱动。
: <code>sudo ifconfig | grep -B 3 802.11</code>
通常 run0 是无线驱动。
<pre>
run0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
       ether 00:1e:e5:e6:5d:1
       nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
       media: IEEE 802.11 Wireless Ethernet autoselect mode 11a
</pre>
如果输出了类似上面的,则可以配置 ''/etc/rc.conf'' 文件(ee 为文本管理器,可替换为你喜欢的 vim、nano和 pluma等)。
: <code>sudo ee /etc/rc.conf</code>
在 ''/etc/rc.conf'' 中添加文本(替换run0 为你的无线设备)
<pre>
wlans_run0="wlan0"
ifconfig_wlan0="WPA DHCP"
</pre>
[[wikipedia:en:Esc key|Esc]] 并保存,然后重启<code>netif</code>。
: <code>sudo /etc/rc.d/netif restart</code>
则无线已配置好,可能需要开启无线。
: <code>sudo ifconfig wlan0 up</code>

如果未输出,则 GhostBSD 网络配置可能未检测到无线网卡。这时需要查看有没有安装了无线驱动。

sudo ifconfig | grep -B 3 802.11

通常 run0 是无线驱动。

run0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
       ether 00:1e:e5:e6:5d:1
       nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
       media: IEEE 802.11 Wireless Ethernet autoselect mode 11a

如果输出了类似上面的,则可以配置 /etc/rc.conf 文件(ee 为文本管理器,可替换为你喜欢的 vim、nano和 pluma等)。

sudo ee /etc/rc.conf

/etc/rc.conf 中添加文本(替换run0 为你的无线设备)

wlans_run0="wlan0"
ifconfig_wlan0="WPA DHCP"

Esc 并保存,然后重启netif

sudo /etc/rc.d/netif restart

则无线已配置好,可能需要开启无线。

sudo ifconfig wlan0 up