1. 制作装机工具 Ventoy
2. 下载 archlinux 镜像
archlinux 种子文件
3. 选择U盘启动 Ventoy
4. 步骤
timedatectl set-ntp true
fdisk -l
mount /dev/nvme0n1p2 /mnt
mount --mkdir /dev/nvme0n1p1 /mnt/boot
vim /etc/pacman.d/mirrorlist
pacstrap /mnt base linux linux-firmware
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
hwclock --systohc
pacman -S vim
vim /etc/locale.gen
locale-gen
touch /etc/locale.conf
echo LANG=en_US.UTF-8 > /etc/locale.conf
touch /etc/hostname
echo name > /etc/hostname
mkinitcpio -P
passwd
pacman -S sudo
useradd -m -G wheel -s /bin/bash [username]
passwd [username]
chmod u+w /etc/sudoers
vim /etc/sudoers
chmod u-w /etc/sudoers
pacman -S amd-ucode
pacman -S intel-ucode
pacman -S noto-fonts noto-fonts-cjk noto-fonts-emoji
pacman -S gnome gnome-tweaks
systemctl enable gdm
pacman -S networkmanager
systemctl enable NetworkManager
pacman -S bluez bluez-utils
systemctl enable bluetooth
pacman -S grub efibootmgr
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=Arch
grub-mkconfig -o /boot/grub/grub.cfg
5. Gnome 插件
a. 托管图标
AppIndicator and KStatusNotifierItem Support
b. 透明导航栏
Transparent Top Bar
c. Dock 栏目
Dash to Dock
7. 触摸板手势
sudo pacman -S touchegg
sudo systemctl start touchegg
sudo systemctl enable touchegg
8. 安装后配置
git clone https://github.com/micheleg/dash-to-dock.git
make
make install
sudo reboot
设置国内镜像源
sudo pacman-mirrors -i -c China -m rank
更新本地数据包
sudo pacman -Syy
添加 archlinux cn 源
sudo vim /etc/pacman.conf
>>
[archlinuxcn]
SigLevel = Optional TrustedOnly
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
安装 archlinuxcn-keyring 包导入 GPG key
sudo pacman -Syy && sudo pacman -S archlinuxcn-keyring
安装 yay
sudo pacman -S yay
zsh 配置
sudo pacman -S zsh
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search
vim ~/.zshrc
输入法 fcitx5-rime
sudo pacman -S fcitx5-rime
sudo pacman -S fcitx5-qt
sudo pacman -S fcitx5-gtk
sudo pacman -S fcitx5-configtool
vim ~/.pam_environment
GTK_IM_MODULE DEFAULT=fcitx
QT_IM_MODULE DEFAULT=fcitx
XMODIFIERS DEFAULT=@im=fcitx
vim ~/.xprofile
export QT_IM_MODULE=fcitx
export GTK_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
yay -S fcitx5-breeze
8. 常用软件安装
yay -S gnome-terminal-transparency
yay -S google-chrome
yay -S deepin-wine-wechat
yay -S wps-office
yay -S ttf-wps-fonts
yay -S visual-studio-code-bin
yay -S baidunetdisk-bin
yay -S netease-cloud-music
sudo pacman -S qtcreator
sudo pacman -S cuda
sudo pacman -S cudnn
sudo pacman -S docker
-> start
sudo systemctl start docker
-> enable
sudo systemctl enable docker
-> remove sudo
sudo gpasswd -a ${USER} docker
-> logout
sudo pacman -S gimp
sudo pacman -S postman-bin
sudo pacman -S trojan
sudo pacman -S base-devel
sudo pacman -S mariadb
sudo mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
sudo systemctl start mariadb
su
mysql
> use mysql;
> SET password=PASSWORD('xxxxxx');
> FLUSH PRIVILEGES;
yay -S sunloginclient
sudo systemctl start runsunloginclient.service
sudo pacman -S downgrade
sudo pacman -S virtualbox
sudo pacman -S linux-headers virtualbox-guest-iso virtualbox-guest-utils
sudo /sbin/rcvboxdrv setup
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)