注意:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "Install/Finishing/zh-cn"

From Funtoo
Jump to navigation Jump to search
(Created page with "{{note|系统恢复 CD 会将卸载新的 Funtoo 分区过程作为自身一般的关机步骤来处理。}}")
(Created page with "现在应该可以看到已经系统重启,过几秒 GRUB 引导器界面会显示,接下来能看到 Linux 内核以及 initramfs 加载。之后,应该可以看到 Fun...")
Line 76: Line 76:
{{note|系统恢复 CD 会将卸载新的 Funtoo 分区过程作为自身一般的关机步骤来处理。}}
{{note|系统恢复 CD 会将卸载新的 Funtoo 分区过程作为自身一般的关机步骤来处理。}}


You should now see your system reboot, the GRUB boot loader appear for a few seconds, and then see the Linux kernel and initramfs loading. After this, you should see Funtoo Linux itself start to boot, and you should be greeted with a <code>login:</code> prompt. Funtoo Linux has been successfully installed!
现在应该可以看到已经系统重启,过几秒 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>

Revision as of 17:48, March 14, 2021

Other languages:
English • ‎español • ‎português do Brasil • ‎русский • ‎中文(中国大陆)‎

安装指南:大功告成

Install Guide, Chapter 16 < Prev Next >

Set your root password

It's imperative that you set your root password before rebooting so that you can log in.

chroot # passwd
New password: **********
Retype new password: **********
passwd: password updated successfully

Create a Regular User

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:

GroupDescription
wheelAllows your user account to 'su' to root. Recommended on your primary user account for easy maintenance. Also used with sudo.
audioAllows your user account to directly access audio devices. Required if using ALSA; otherwise optional.
plugdevAllows your user account work with various removable devices. Allows adding of a WiFi network in GNOME without providing root password. Recommended for desktop users.
portageAllows 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

As with your root account, don't forget to set a password:

chroot # passwd drobbins
New password: **********
Retype new password: **********
passwd: password updated successfully

Install an Entropy Generator

The Linux kernel uses various sources such as user input to generate entropy, which is in turn used for generating random numbers. Encrypted communications can use a lot of entropy, and often the amount of entropy generated by your system will not be sufficient. This is commonly an issue on headless server systems, which can also include ARM systems such as Raspberry Pi, and can result in slower than normal ssh connections among other issues.

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
   Note

系统恢复 CD 会将卸载新的 Funtoo 分区过程作为自身一般的关机步骤来处理。

现在应该可以看到已经系统重启,过几秒 GRUB 引导器界面会显示,接下来能看到 Linux 内核以及 initramfs 加载。之后,应该可以看到 Funtoo Linux 启动。并且应该看到 login: 提示。至此即成功安装了 Funtoo Linux。

Install Guide, Chapter 16 < Prev Next >