Difference between revisions of "Template:OfficialUbuntuCore/zh"

From FriendlyELEC WiKi
Jump to: navigation, search
(Setup Network Configurations)
(updated by API)
Line 1: Line 1:
==Work with FriendlyCore==
+
==FriendlyCore的使用==
===FriendlyCore User Account===
+
===FriendlyCore默认帐户===
*Non-root User:
+
*普通用户:
     User Name: pi
+
     用户名: pi
     Password: pi
+
     密码: pi
*Root:
+
*Root用户:
     User Name: Root
+
     用户名: Root用户:
     Password: fa
+
     密码: 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:
+
默认已将 eth0 配置成 dhcp 自动获取IP地址,要更改配置,可以修改这个文件:
 
<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:
+
比如修改成静态IP地址,如下所示:
 
<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.
+
要配置另一个网口 eth1,可以在 /etc/network/interfaces.d/ 下新增一个 eth1 文件,配置格式可以参考 eth0。

Revision as of 10:30, 10 February 2020

1 FriendlyCore的使用

1.1 FriendlyCore默认帐户

  • 普通用户:
   用户名: pi
   密码: pi
  • Root用户:
   用户名: Root用户:
   密码: fa

1.2 更新软件包

$ sudo apt-get update

1.3 配置网络

默认已将 eth0 配置成 dhcp 自动获取IP地址,要更改配置,可以修改这个文件:

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。