ls /sys/firmware/efi/efivars
ls: cannot access ‘/sys/firmware/efi/efivars’: No such file or directory
dhcpcd
wifi-menu
ping -c 4 www.baidu.com
timedatectl set-ntp true
fdisk -l
mkfs.ext4 /dev/sda1
mkfs.vfat /dev/sda2
mount /dev/sda1 /mnt
mkdir /mnt/boot
mount /dev/sdxY /mnt/boot (将sdxY替换为之前创建或是已经存在的引导分区)
vim /etc/pacman.d/mirrorlist
pacstrap /mnt base
pacstrap -i /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
echo LANG=en_US.UTF-8 > /etc/locale.conf
echo ArchLinux > /etc/hostname
nano /etc/hosts
# 输入
127.0.0.1 localhost
::1 localhost
127.0.1.1 ArchLinux.localdomain ArchLinux
passwd
useradd -m -g users -G wheel -s /bin/bash rain
passwd rain
pacman -S vim
visudo
pacman -S iw wpa_supplicant dialog networkmanager
pacman -S intel-ucode
pacman -S os-prober
pacman -S grub
grub-install --target=i386-pc /dev/sdx (将sdx换成安装的硬盘)
grub-mkconfig -o /boot/grub/grub.cfg
pacman -S grub efibootmgr
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub
grub-mkconfig -o /boot/grub/grub.cfg
cat /boot/grub/grub.cfg
ls /boot
pacman -S linux
grub-mkconfig -o /boot/grub/grub.cfg
systemctl enable dhcpcd
exit
umount -R /mnt
reboot
dhcpcd
wifi-menu
systemctl enable dhcpcd
ip link
ip link set ens32 up
fallocate -l 2G /swapfile (请将 2G 换成需要的大小,只能以M或G为单位)
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
nano /etc/fstab
/swapfile none swap defaults 0 0
swapoff -a
rm -rf /swapfile
sudo systemctl disable netctl
sudo systemctl enable NetworkManager (注意大小写)
pacman -Ss xf86-video
pacman -S nvidia
pacman -S xf86-input-synaptics
sudo pacman -S xorg
sudo pacman -S xfce4 xfce4-goodies
sudo pacman -S plasma kde-applications kde-l10n-zh_cn
sudo pacman -S sddm
sudo systemctl enable sddm
pacman -S deepin deepin-extra
greeter-session=lightdm-deepin-greeter
systemctl enable lightdm.service
sudo vim /etc/pacman.conf
[archlinuxcn]
SigLevel = Optional TrustAll
Server = http://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
# 这是清华的,也可用下面中科大的
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
sudo pacman -Syy
sudo pacman -S adobe-source-han-serif-cn-fonts
sudo pacman -S alsa-utils
sudo pacman -S bash-completion
sudo pacman -S google-chrome
sudo pacman -S netease-cloud-music
sudo pacman -S fcitx-sogoupinyin fcitx-configtool
vim .xprofile
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
sudo pacman -S wps-office ttf-wps-fonts