Open main menu

Wiki-Orange Pi β

Changes

Orange Pi Zero 3

195 bytes removed, 10:10, 11 July 2023
The method of setting the Linux system to automatically connect to the network for the first time
<li><p>Instructions for using variables in the orangepi_first_run.txt file</p>
<ol style="list-style-type: lower-alpha;">
<li><p>'''FR_general_delete_this_file_after_completion''' variable is &gt; used to set whether to delete the orangepi_first_run.txt file &gt; after the first startup. The default is 1, that is, delete. If &gt; it is set to 0, orangepi_first_run.txt will be renamed to &gt; orangepi_first_run.txt after the first startup .old, generally &gt; keep the default value</p></li><li><p>'''FR_net_change_defaults''' variable is used to set whether to &gt; change the default network settings, this must be set to 1, &gt; otherwise all network settings will not take effect</p></li><li><p>'''FR_net_ethernet_enabled''' variable is used to control whether &gt; to enable the configuration of the Ethernet port. If you need &gt; to set the static IP address of the Ethernet port, please set &gt; it to 1</p></li><li><p>'''FR_net_wifi_enabled''' variable is used to control whether to &gt; enable WIFI configuration. If you need to set the development &gt; board to automatically connect to WIFI hotspots, you must set &gt; it to 1. In addition, please note that if this variable is set &gt; to 1, the setting of the Ethernet port will be will fail. That &gt; is to say, the WIFI and Ethernet ports cannot be set at the &gt; same time (why, because it is not necessary...)</p></li><li><p>'''FR_net_wifi_ssid''' variable is used to set the name of the &gt; WIFI hotspot you want to connect to</p></li><li><p>'''FR_net_wifi_key''' variable is used to set the password of the &gt; WIFI hotspot you want to connect to</p></li><li><p>'''FR_net_use_static''' variable is used to set whether to set the &gt; static IP address of WIFI or Ethernet port</p></li><li><p>'''FR_net_static_ip''' variable is used to set static IP address, &gt; please set according to your actual situation</p></li><li><p>'''FR_net_static_gateway''' variable is used to set the gateway, &gt; please set it according to your actual situation</p></li></ol>
</li>
<li><p>The following demonstrates several specific setting examples:</p>
<ol style="list-style-type: lower-alpha;">
<li><p>For example, if you want the Linux system of the development &gt; board to automatically connect to the WIFI hotspot after the &gt; first startup, you can set it like this:</p>
<ol style="list-style-type: none;">
<li><p>a) Set '''FR_net_change_defaults''' to '''1'''</p></li>
<li><p>b) Set '''FR_net_wifi_enabled''' to '''1'''</p></li>
<li><p>c) Set '''FR_net_wifi_ssid''' to the name of the WIFI hotspot you &gt; want to connect to</p></li><li><p>d) Set '''FR_net_wifi_key''' to the password of the WIFI hotspot &gt; you want to connect to</p></li></ol>
</li>
<li><p>For example, if you want the Linux system of the development &gt; board to automatically connect to the WIFI hotspot after the &gt; first startup, and set the IP address of the WIFI to a &gt; specific static IP address (so that when the Linux system is &gt; started, you can directly use the set static IP address to ssh &gt; remotely Log in to the development board without checking the &gt; IP address of the development board through the background of &gt; the router), you can set it like this:</p>
<ol style="list-style-type: none;">
<li><p>a) Set '''FR_net_change_defaults''' to '''1'''</p></li>
<li><p>b) Set '''FR_net_wifi_enabled''' to '''1'''</p></li>
<li><p>c) Set '''FR_net_wifi_ssid''' to the name of the WIFI hotspot you &gt; want to connect to</p></li><li><p>d) Set '''FR_net_wifi_key''' to the password of the WIFI hotspot &gt; you want to connect to</p></li>
<li><p>e) Set '''FR_net_use_static''' to '''1'''</p></li>
<li><p>f) Set '''FR_net_static_ip''' to the desired IP address</p></li>
<li><p>g) Set '''FR_net_static_gateway''' to the corresponding gateway &gt; address</p></li></ol>
</li>
<li><p>For example, if you want to automatically set the IP address of &gt; the Ethernet port to the desired static IP address after the &gt; Linux system of the development board starts for the first &gt; time, you can set it like this:</p>
<ol style="list-style-type: none;">
<li><p>a) Set '''FR_net_change_defaults''' to '''1'''</p></li>
<li><p>c) Set '''FR_net_use_static''' to '''1'''</p></li>
<li><p>d) Set '''FR_net_static_ip''' to the desired IP address</p></li>
<li><p>e) Set '''FR_net_static_gateway''' to the corresponding gateway &gt; address</p></li></ol>
</li></ol>
</li>