The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "Install/Finishing/zh-cn"
Mmwweettyy (talk | contribs) (Created page with "现在应该可以看到已经系统重启,过几秒 GRUB 引导器界面会显示,接下来能看到 Linux 内核以及 initramfs 加载。之后,应该可以看到 Fun...") |
(Updating to match new version of source page) |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
<languages/> | <languages/> | ||
= | = 安装指南:告一段落 = | ||
{{InstallNavigation|num=16|prev=Network|next=Profiles}}</noinclude> | {{InstallNavigation|num=16|prev=Network|next=Profiles}}</noinclude> | ||
=== | === 设置根用户密码 === | ||
重启前一定要设置好 root 密码,这样才能登录。 | |||
{{console|body= | {{console|body= | ||
%chroot% ##i##passwd | %chroot% ##i##passwd | ||
Line 16: | Line 16: | ||
}} | }} | ||
=== | === 创建常规用户 === | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
It's also a good idea to create a regular user for daily use. If you're using GNOME, this is a requirement as you cannot log in to GDM (The GNOME Display Manager) as root. This can be accomplished as follows: | It's also a good idea to create a regular user for daily use. If you're using GNOME, this is a requirement as you cannot log in to GDM (The GNOME Display Manager) as root. This can be accomplished as follows: | ||
</div> | |||
{{console|body= | {{console|body= | ||
Line 24: | Line 26: | ||
}} | }} | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
You will also likely want to add your primary user to one or more supplemental groups. Here is a list of important groups and their effect: | You will also likely want to add your primary user to one or more supplemental groups. Here is a list of important groups and their effect: | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
{{TableStart}} | {{TableStart}} | ||
{{2ColHead|Group|Description}} | {{2ColHead|Group|Description}} | ||
{{2Col|{{c|wheel}}|Allows your user account to '{{c|su}}' to root. Recommended on your primary user account for easy maintenance. Also used with {{c|sudo}}.}} | {{2Col|{{c|wheel}}|Allows your user account to '{{c|su}}' to root. Recommended on your primary user account for easy maintenance. Also used with {{c|sudo}}.}} | ||
{{2Col|{{c|audio}}|Allows your user account to directly access audio devices. Required if using ALSA; otherwise optional.}} | {{2Col|{{c|audio}}|Allows your user account to directly access audio devices. Required if using ALSA; otherwise optional.}} | ||
{{2Col|{{c|video}}|Allows your user account to directly access video devices. Required for certain video drivers and webcams.}} | |||
{{2Col|{{c|plugdev}}|Allows your user account work with various removable devices. Allows adding of a WiFi network in GNOME without providing root password. Recommended for desktop users.}} | {{2Col|{{c|plugdev}}|Allows your user account work with various removable devices. Allows adding of a WiFi network in GNOME without providing root password. Recommended for desktop users.}} | ||
{{2Col|{{c|portage}}|Allows extended use of Portage as regular user. Recommended.}} | {{2Col|{{c|portage}}|Allows extended use of Portage as regular user. Recommended.}} | ||
{{TableEnd}} | {{TableEnd}} | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
To add your user to multiple groups, use the {{c|usermod}} command, specifying a complete group list: | To add your user to multiple groups, use the {{c|usermod}} command, specifying a complete group list: | ||
</div> | |||
<div class="mw-translate-fuzzy"> | |||
{{console|body= | {{console|body= | ||
%chroot% ##i##usermod -G wheel,audio,plugdev,portage drobbins | %chroot% ##i##usermod -G wheel,audio,plugdev,portage drobbins | ||
}} | }} | ||
</div> | |||
和 root 账户一样,不要忘记设置密码。 | |||
{{console|body= | {{console|body= | ||
Line 49: | Line 60: | ||
}} | }} | ||
=== | === 安装熵发生器 === | ||
Linux 内核使用各种来源,如用户输入来产生熵,而熵又用于产生随机数。加密通信可能会使用大量的熵,往往你的系统产生的熵量是不够的。这通常是无头服务器系统上的问题,其中也可以包括 Raspberry Pi 等 ARM 系统,并可能导致比正常的 ssh 连接更慢等问题。 | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
To compensate for this, a user-space entropy generator can be emerged and enabled at boot time. We will use {{c|haveged}} in this example, although others are available, such as {{c|rng-tools}}. | To compensate for this, a user-space entropy generator can be emerged and enabled at boot time. We will use {{c|haveged}} in this example, although others are available, such as {{c|rng-tools}}. | ||
</div> | |||
{{console|body= | {{console|body= | ||
Line 60: | Line 73: | ||
}} | }} | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
Haveged will now start at boot and will augment the Linux kernel's entropy pool. | Haveged will now start at boot and will augment the Linux kernel's entropy pool. | ||
</div> | |||
=== 重启系统 === | === 重启系统 === | ||
<div class="mw-translate-fuzzy"> | |||
现在退出 chroot 环境,卸载 Funtoo Linux 分区和文件,重启电脑。重启后,GRUB 启动引导器会启动,并加载 Linux 内核及 initramfs,之后系统会开始启动。 | 现在退出 chroot 环境,卸载 Funtoo Linux 分区和文件,重启电脑。重启后,GRUB 启动引导器会启动,并加载 Linux 内核及 initramfs,之后系统会开始启动。 | ||
</div> | |||
<div class="mw-translate-fuzzy"> | |||
离开 chroot 环境,将当前工作目录更改为 /mnt,卸载 Funtoo 分区,并且重启电脑。 | 离开 chroot 环境,将当前工作目录更改为 /mnt,卸载 Funtoo 分区,并且重启电脑。 | ||
{{console|body= | {{console|body= | ||
Line 73: | Line 91: | ||
# ##i##reboot | # ##i##reboot | ||
}} | }} | ||
</div> | |||
{{ | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
If you used manual chroot steps, you can use the following sequence of commands prepare to restart: | |||
{{console|body= | |||
%chroot% ##i##exit | |||
# ##i##cd /mnt | |||
# ##i##umount -lR funtoo | |||
}} | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
Now, you are ready to reboot into Funtoo: | |||
{{console|body= | |||
# ##i##reboot | |||
}} | |||
</div> | |||
现在应该可以看到已经系统重启,过几秒 GRUB 引导器界面会显示,接下来能看到 Linux 内核以及 initramfs 加载。之后,应该可以看到 Funtoo Linux 启动。并且应该看到 <code>login:</code> 提示。至此即成功安装了 Funtoo Linux。 | 现在应该可以看到已经系统重启,过几秒 GRUB 引导器界面会显示,接下来能看到 Linux 内核以及 initramfs 加载。之后,应该可以看到 Funtoo Linux 启动。并且应该看到 <code>login:</code> 提示。至此即成功安装了 Funtoo Linux。 | ||
<noinclude>{{InstallNavigation|num=16|prev=Network|next=Profiles|align=right}}</noinclude> | <noinclude>{{InstallNavigation|num=16|prev=Network|next=Profiles|align=right}}</noinclude> |
Latest revision as of 04:57, June 23, 2022
安装指南:告一段落
Install Guide, Chapter 16 | < Prev | Next > |
设置根用户密码
重启前一定要设置好 root 密码,这样才能登录。
chroot # passwd New password: ********** Retype new password: ********** passwd: password updated successfully
创建常规用户
It's also a good idea to create a regular user for daily use. If you're using GNOME, this is a requirement as you cannot log in to GDM (The GNOME Display Manager) as root. This can be accomplished as follows:
chroot # useradd -m drobbins
You will also likely want to add your primary user to one or more supplemental groups. Here is a list of important groups and their effect:
Group | Description |
---|---|
wheel | Allows your user account to 'su ' to root. Recommended on your primary user account for easy maintenance. Also used with sudo . |
audio | Allows your user account to directly access audio devices. Required if using ALSA; otherwise optional. |
video | Allows your user account to directly access video devices. Required for certain video drivers and webcams. |
plugdev | Allows your user account work with various removable devices. Allows adding of a WiFi network in GNOME without providing root password. Recommended for desktop users. |
portage | Allows extended use of Portage as regular user. Recommended. |
To add your user to multiple groups, use the usermod
command, specifying a complete group list:
chroot # usermod -G wheel,audio,plugdev,portage drobbins
和 root 账户一样,不要忘记设置密码。
chroot # passwd drobbins New password: ********** Retype new password: ********** passwd: password updated successfully
安装熵发生器
Linux 内核使用各种来源,如用户输入来产生熵,而熵又用于产生随机数。加密通信可能会使用大量的熵,往往你的系统产生的熵量是不够的。这通常是无头服务器系统上的问题,其中也可以包括 Raspberry Pi 等 ARM 系统,并可能导致比正常的 ssh 连接更慢等问题。
To compensate for this, a user-space entropy generator can be emerged and enabled at boot time. We will use haveged
in this example, although others are available, such as rng-tools
.
chroot # emerge haveged chroot # rc-update add haveged default
Haveged will now start at boot and will augment the Linux kernel's entropy pool.
重启系统
现在退出 chroot 环境,卸载 Funtoo Linux 分区和文件,重启电脑。重启后,GRUB 启动引导器会启动,并加载 Linux 内核及 initramfs,之后系统会开始启动。
离开 chroot 环境,将当前工作目录更改为 /mnt,卸载 Funtoo 分区,并且重启电脑。
chroot # exit root # cd /mnt root # umount -lR funtoo root # reboot
If you used manual chroot steps, you can use the following sequence of commands prepare to restart:
chroot # exit root # cd /mnt root # umount -lR funtoo
Now, you are ready to reboot into Funtoo:
root # reboot
现在应该可以看到已经系统重启,过几秒 GRUB 引导器界面会显示,接下来能看到 Linux 内核以及 initramfs 加载。之后,应该可以看到 Funtoo Linux 启动。并且应该看到 login:
提示。至此即成功安装了 Funtoo Linux。
Install Guide, Chapter 16 | < Prev | Next > |