如何安装 Archlinux + Gnome 桌面环境

从 Arch Live CD 启动后

timedatectl set-ntp true
fdisk -l
cfdisk /dev/sda
mkfs.ext4 /dev/sda3
mount /dev/sda3 /mnt
mkdir /mnt/boot
mount /dev/sdb1 /mnt/boot

nano /etc/pacman.d/mirrorlist
pacstrap /mnt base base-devel
genfstab -U /mnt >> /mnt/etc/fstab
cat /mnt/etc/fstab
arch-chroot /mnt

ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
hwclock --systohc
nano /etc/locale.gen
locale-gen
nano /etc/locale.conf
nano /etc/hostname
nano /etc/hosts
pacman -S wpa_supplicant intel-ucode grub efibootmgr os-prober
# pacman -S dialog
# pacman -S linux-lts
mkinitcpio -p linux
passwd
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=archlinux
grub-mkconfig -o /boot/grub/grub.cfg
# pacman -S gdm gnome gnome-extra
pacman -S kde-applications plasma plasma-wayland-session sddm
systemctl enable sddm
systemctl enable NetworkManager

useradd -U maghsk -m
sudo gpasswd -a maghsk input
sudo gpasswd -a maghsk wheel
sudo gpasswd -a maghsk bumblebee
exit

umount /mnt/boot
umount /mnt
reboot
<p>/etc/hosts</p>
<pre>127.0.0.1	localhost
::1		localhost
127.0.1.1	<i>myhostname</i>.localdomain	<i>myhostname</i></pre>

发表评论

电子邮件地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据