1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
| genfstab -U /mnt >> /mnt/etc/fstab arch-chroot /mnt visudo #注{将root ALL=(ALL) ALL 下面的 %wheel ALL=(ALL) ALL的注释去掉--》允许wheel整个组里的所有用户有权限用sudo} ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime #设置系统时区 hwclock --systohc --utc #设置时间标准 为 UTC,并调整 时间漂移: vim /etc/locale.gen #移除对应行前面的注释符号(#)即可,建议选择帶UTF-8的項{建议移除注释 en_US.UTF-8 UTF-8 zh_CN.UTF-8 UTF -8 zh_TW.UTF-8 UTF-8} locale-gen #生成locale讯息 echo “LANG=en_US.UTF-8” > /etc/locale.conf #将系统 locale 设置为en_US.UTF-8 echo “myhostname” > /etc/hostname #设置myhostname为主机名 systemctl enable NetworkManager systemctl enable netctl #配置网络管理器自动启动 useradd -m -g users -G wheel username #设置username为用户名 passwd #为root设置密码 passwd username #为username设置密码
|