Ethernet Cable Usage Tutorial
tip
The screen firmware needs to be manually updated.
Screen Firmware Download
- Click to download screen firmware
-
A memory card no larger than 32GB is required, and the TF card transfer speed must be Class10 or higher. It is recommended to use brands such as SanDisk.
Ethernet Cable Wiring
System Package for Use with FLY Host
tip
Applicable to C8 PI_V2 PI GEMINI series
Service Installation
tip
Other hosts need to install services themselves.
Note
The installation process requires internet access.
sudo apt install isc-dhcp-server
Network Configuration
tip
- This tutorial will occupy the host's network port, allowing only the screen to be used.
- If not needed, simply delete all the modified and added configurations below.
Modify /etc/network/interfaces.d/eth0
auto eth0
iface eth0 inet static
address 192.168.251.100
netmask 255.255.255.0
broadcast 192.168.251.255
network 192.168.251.0
gateway 192.168.251.1
Modify /etc/default/isc-dhcp-server
# Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server)
# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
#DHCPDv4_CONF=/etc/dhcp/dhcpd.conf
#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf
# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
#DHCPDv4_PID=/var/run/dhcpd.pid
#DHCPDv6_PID=/var/run/dhcpd6.pid
# Additional options to start dhcpd with.
# Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACESv4="eth0"
#INTERFACESv4="eth0"
INTERFACESv6=""
#INTERFACES="eth0"
INTERFACES="eth0"
Modify /etc/dhcp/dhcpd.conf
, add the following content at the end
# ddns-update-style none;
subnet 192.168.251.0 netmask 255.255.255.0 {
range 192.168.251.100 192.168.251.200;
option routers 192.168.251.1;
option domain-name-servers 8.8.8.8, 8.8.4.4; # Example using Google Public DNS
default-lease-time 600; # Default lease time in seconds
max-lease-time 7200; # Maximum lease time in seconds
}
Reboot the system first, then execute the following service restart
Or restart the network service
sudo systemctl restart NetworkManager
This operation will cause a network disconnection and reconnection.
Restart the service
sudo systemctl restart isc-dhcp-server
The local IP address should be 192.168.251.100
.
Increase WIFI Priority
tip
- This command is to increase network priority. If not added, normal internet access and downloads will not be possible!!!
- Please add the following instruction in
/etc/rc.local
on the host
sudo ip route del default && sudo ip route add default via $(ip route show dev wlan0 | grep 'default via' | awk 'NR==1 {print $3}') dev wlan0