iwctl
device list
station wlan0 connect xxx
passwd
下面转局域网电脑,复制命令更快!
timedatectl set-ntp true cfdisk mkfs.ext4 /dev/sda2 mkfs.vfat /dev/sda1 mount /dev/sda2 /mnt mkdir /mnt/boot/efi mount /dev/sda1 /mnt/efi ---mount /dev/sda1 /mnt(如果是mbr分区 systemctl stop reflector.service nano /etc/pacman.d/mirrorlist Server = https://mirrors.sjtug.sjtu.edu.cn/archlinux/$repo/os/$arch Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch Server = http://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch Server = https://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch pacstrap /mnt base base-devel linux linux-firmware dhcpcd nano openssh sudo iwd 无线) genfstab -U /mnt >> /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 nano /etc/hostname pvearch nano /etc/hosts 127.0.0.1 localhost ::1 localhost 127.0.1.1 pvearch pacman -S intel-ucode pacman -S grub efibootmgr grub-install --target=x86_64-efi --efi-directory=/efi ---grub-install --target=i386-pc /dev/sda (如果是mbr分区 nano /etc/default/grub 改0,增加nowatchdog grub-mkconfig -o /boot/grub/grub.cfg nano /etc/ssh/sshd_config PermitRootLogin yes passwd systemctl enable dhcpcd systemctl start sshd systemctl start iwd (如果使用无线 exit umount -R /mnt reboot
下面是xfce桌面,如果按照openbox桌面,另参见博客另一个文章
桌面
pacman -S xorg xfce4 xfce4-goodies lightdm lightdm-gtk-greeter
pacman -S adobe-source-han-serif-cn-fonts ttf-dejavu wqy-bitmapfont wqy-microhei wqy-zenhei noto-fonts-emoji
pacman -S fcitx5-im fcitx5-chinese-addons fcitx5-pinyin-zhwiki(词库)
pacman -S networkmanager network-manager-applet (openbox不用 xfce看着,不装记得启动下面的dhcpcd命令。如果像笔记本那些可以装一下,后一个应该是可以显示WiFi状态列表的指示器)
systemctl enable NetworkManager / systemctl enable dhcpcd
systemctl enable lightdm
nano /etc/environment
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx
useradd -m -G wheel -s /bin/bash l
passwd l
nano /etc/sudoers
%wheel ALL=(ALL) ALL
pacman -S gvfs gvfs-smb samba pavucontrol pulseaudio remmina zerotier-one freerdp git
ssh远程 回收站u盘自动挂载 局域网共享 声音 安装yay及aur需要
代理,安装yay用得上
export http_proxy=”http://192.168.0.5:1082″
export https_proxy=”http://192.168.0.5:1082″
source /etc/profile
git clone https://aur.archlinux.org/yay
cd yay
makepkg -si
yay -S google-chrome todesk
加入组织
sudo systemctl start zerotier-one.service
sudo zerotier-cli join 83048a0632a2cb16acc
删除无用包、清理
sudo pacman -Rns $(pacman -Qdtq)
sudo pacman -Rcc
yay -Rcc