Difference between revisions of "Template:S5Pxx18-APmode"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
 
(updated by API)
 
Line 1: Line 1:
<!--待翻译为英文-->
+
===Setup Wi-Fi AP===
===配置Wi-Fi无线热点===
+
Follow the steps below. Since our OS image by default already has the NetworkManager utility you will be prompted to uninstall it first:<br />
先执行以下命令,默认情况下如果系统中安装了NetworkManager,会提示你先卸载NetworkManager:<br />
+
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
sudo turn-wifi-into-apmode yes
 
sudo turn-wifi-into-apmode yes
 
</syntaxhighlight>
 
</syntaxhighlight>
卸载NetworkManager完成后,按提示重启开发板。<br />
+
After you uninstall the NetworkManager reboot your board.<br />
重启后,再执行上面的命令一次,这次会提示你输入WiFi热点的名称和密码,按提示操作即可。<br />
+
After your board is rebooted run the above commands again and you will be prompted to type in a WIFI's name and password. Type in your wanted name and password<br />
 
<br />
 
<br />
操作成功后,你可以在电脑上搜索并连接热点,然后通过192.168.8.1这个地址来登录开发板:
+
If this is successful you will be able to find and connect your board to a WIFI. Login to your board at 192.168.8.1:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
ssh root@192.168.8.1
 
ssh root@192.168.8.1
 
</syntaxhighlight>
 
</syntaxhighlight>
在提示输入密码时,输入预设的密码fa,即可登入。<br />
+
Type in a password. In our system the password is "fa".<br />
 
<br />
 
<br />
为了保证ssh的流畅,我们用以下命令关闭wifi的省电模式:
+
To login smoothly via SSH we recommend you turning off WIFI's power save mode by running the following commands:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
sudo iwconfig wlan0 power off
 
sudo iwconfig wlan0 power off
 
</syntaxhighlight>
 
</syntaxhighlight>
WiFi工作模式可通过以下命令查询:<br />
+
You can check your WiFi's mode by running the following command:<br />
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
sudo cat /sys/module/bcmdhd/parameters/op_mode
 
sudo cat /sys/module/bcmdhd/parameters/op_mode
 
</syntaxhighlight>
 
</syntaxhighlight>
输出为数字2则表示当前处于无线热点模式,要切换回普通的Station模式,输入如下命令:<br />
+
Number 2 means your WiFi is in AP mode. You can switch to the Station mode by running the following command:<br />
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
sudo turn-wifi-into-apmode no
 
sudo turn-wifi-into-apmode no
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 03:36, 29 January 2018

Setup Wi-Fi AP

Follow the steps below. Since our OS image by default already has the NetworkManager utility you will be prompted to uninstall it first:

sudo turn-wifi-into-apmode yes

After you uninstall the NetworkManager reboot your board.
After your board is rebooted run the above commands again and you will be prompted to type in a WIFI's name and password. Type in your wanted name and password

If this is successful you will be able to find and connect your board to a WIFI. Login to your board at 192.168.8.1:

ssh root@192.168.8.1

Type in a password. In our system the password is "fa".

To login smoothly via SSH we recommend you turning off WIFI's power save mode by running the following commands:

sudo iwconfig wlan0 power off

You can check your WiFi's mode by running the following command:

sudo cat /sys/module/bcmdhd/parameters/op_mode

Number 2 means your WiFi is in AP mode. You can switch to the Station mode by running the following command:

sudo turn-wifi-into-apmode no