XPS 如何安装 Archlinux + Gnome 桌面环境

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

/etc/hosts

127.0.0.1	localhost
::1		localhost
127.0.1.1	myhostname.localdomain	myhostname
pacman -S linux-firmware 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

Show Comments