Difference between revisions of "Template:OfficialUbuntuCore"
From FriendlyELEC WiKi
(updated by API) |
(updated by API) |
||
Line 1: | Line 1: | ||
− | == | + | ==Work with FriendlyCore== |
− | === | + | ===FriendlyCore User Account=== |
− | * | + | *Non-root User: |
− | + | User Name: pi | |
− | + | Password: pi | |
− | * | + | *Root: |
− | + | User Name: Root | |
− | + | Password: fa | |
− | === | + | ===Update Software Packages=== |
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
$ sudo apt-get update | $ sudo apt-get update | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | === | + | ===Setup Network Configurations=== |
− | + | 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: | |
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
vi /etc/network/interfaces.d/eth0 | vi /etc/network/interfaces.d/eth0 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | For example if you want to assign a static IP to it you can run the following commands: | |
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
auto eth0 | auto eth0 | ||
Line 24: | Line 24: | ||
gateway 192.168.1.1 | gateway 192.168.1.1 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | 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. |
Revision as of 10:30, 10 February 2020
Contents
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
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
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.