Difference between revisions of "Template:OfficialUbuntuCore/zh"

From FriendlyARM WiKi
Jump to: navigation, search
(FriendlyCore的使用)
(Work with FriendlyCore)
Line 7: Line 7:
 
     User Name: Root
 
     User Name: Root
 
     Password: fa
 
     Password: fa
===更新软件包===
+
===Update Software Packages===
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
$ sudo apt-get update
 
$ sudo apt-get update
 
</syntaxhighlight>
 
</syntaxhighlight>
===配置网络===
+
===Setup Network Configurations===
默认已将 eth0 配置成 dhcp 自动获取IP地址,要更改配置,可以修改这个文件:
+
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

Revision as of 05:19, 7 February 2020

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

比如修改成静态IP地址,如下所示:

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

要配置另一个网口 eth1,可以在 /etc/network/interfaces.d/ 下新增一个 eth1 文件,配置格式可以参考 eth0。