Difference between revisions of "Template:OfficialUbuntuCore"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(updated by API)
Line 74: Line 74:
 
  | NanoPi-R2C =
 
  | NanoPi-R2C =
 
===Config status LEDs===
 
===Config status LEDs===
Set the following kernel modules to be loaded automatically on boot:<br />
+
First determine whether the system already exists the leds initialization service:
 +
<syntaxhighlight lang="bash">
 +
sudo systemctl status leds
 +
</syntaxhighlight>
 +
If the leds service already exists, change the default behavior of the LEDs by editing the following file:
 +
<syntaxhighlight lang="bash">
 +
/etc/init.d/leds.sh
 +
</syntaxhighlight>
 +
Since there is no leds service in the early firmware, you need to refer to the following guide to manually configure the LEDs. First, set the following kernel modules to be automatically loaded at boot:<br />
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
echo ledtrig-netdev > /etc/modules-load.d/ledtrig-netdev.conf
 
echo ledtrig-netdev > /etc/modules-load.d/ledtrig-netdev.conf
Line 90: Line 98:
 
  | NanoPi-R5S =
 
  | NanoPi-R5S =
 
===Config status LEDs===
 
===Config status LEDs===
Set the following kernel modules to be loaded automatically on boot:<br />
+
First determine whether the system already exists the leds initialization service:
 +
<syntaxhighlight lang="bash">
 +
sudo systemctl status leds
 +
</syntaxhighlight>
 +
If the leds service already exists, change the default behavior of the LEDs by editing the following file:
 +
<syntaxhighlight lang="bash">
 +
/etc/init.d/leds.sh
 +
</syntaxhighlight>
 +
Since there is no leds service in the early firmware, you need to refer to the following guide to manually configure the LEDs. First, set the following kernel modules to be automatically loaded at boot:<br />
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
echo ledtrig-netdev > /etc/modules-load.d/ledtrig-netdev.conf
 
echo ledtrig-netdev > /etc/modules-load.d/ledtrig-netdev.conf

Revision as of 08:25, 28 September 2022

1 Work with FriendlyCore

1.1 FriendlyCore User Account

  • Non-root User:
   User Name: pi
   Password: pi
  • Root:
   User Name: root
   Password: fa

1.2 Update Software Packages

$ sudo apt-get update

1.3 Setup Network Configurations

1.3.1 Set static IP address

By default "eth0" is assigned an IP address obtained via dhcp. If you want to change the setting you need to change the following file:

vi /etc/network/interfaces.d/eth0

For example if you want to assign a static IP to it you can run the following commands:

auto eth0
iface eth0 inet static
    address 192.168.1.231
    netmask 255.255.255.0
    gateway 192.168.1.1

1.3.2 Set a DNS

You also need to modify the following file to add the DNS configuration:

vi /etc/systemd/resolved.conf

For example, set to 192.168.1.1:

[Resolve]
DNS=192.168.1.1

Restart the systemd-resolved service with the following command:

sudo systemctl restart systemd-resolved.service
sudo systemctl enable systemd-resolved.service

1.3.3 Set up to use another network interface

To change the setting of "eth1" you can add a new file similar to eth0's configuration file under the /etc/network/interfaces.d/ directory.

1.4 Install the kernel-header package

sudo dpkg -i /opt/linux-headers-*.deb