8,367
edits
Changes
→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 > used to set whether to delete the orangepi_first_run.txt file > after the first startup. The default is 1, that is, delete. If > it is set to 0, orangepi_first_run.txt will be renamed to > orangepi_first_run.txt after the first startup .old, generally > keep the default value</p></li><li><p>'''FR_net_change_defaults''' variable is used to set whether to > change the default network settings, this must be set to 1, > otherwise all network settings will not take effect</p></li><li><p>'''FR_net_ethernet_enabled''' variable is used to control whether > to enable the configuration of the Ethernet port. If you need > to set the static IP address of the Ethernet port, please set > it to 1</p></li><li><p>'''FR_net_wifi_enabled''' variable is used to control whether to > enable WIFI configuration. If you need to set the development > board to automatically connect to WIFI hotspots, you must set > it to 1. In addition, please note that if this variable is set > to 1, the setting of the Ethernet port will be will fail. That > is to say, the WIFI and Ethernet ports cannot be set at the > 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 > WIFI hotspot you want to connect to</p></li><li><p>'''FR_net_wifi_key''' variable is used to set the password of the > WIFI hotspot you want to connect to</p></li><li><p>'''FR_net_use_static''' variable is used to set whether to set the > static IP address of WIFI or Ethernet port</p></li><li><p>'''FR_net_static_ip''' variable is used to set static IP address, > please set according to your actual situation</p></li><li><p>'''FR_net_static_gateway''' variable is used to set the gateway, > 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 > board to automatically connect to the WIFI hotspot after the > 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 > want to connect to</p></li><li><p>d) Set '''FR_net_wifi_key''' to the password of the WIFI hotspot > you want to connect to</p></li></ol>
</li>
<li><p>For example, if you want the Linux system of the development > board to automatically connect to the WIFI hotspot after the > first startup, and set the IP address of the WIFI to a > specific static IP address (so that when the Linux system is > started, you can directly use the set static IP address to ssh > remotely Log in to the development board without checking the > IP address of the development board through the background of > 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 > want to connect to</p></li><li><p>d) Set '''FR_net_wifi_key''' to the password of the WIFI hotspot > 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 > address</p></li></ol>
</li>
<li><p>For example, if you want to automatically set the IP address of > the Ethernet port to the desired static IP address after the > Linux system of the development board starts for the first > 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 > address</p></li></ol>
</li></ol>
</li>