Linux 折腾笔记

01 / 02 / 2020 | 最后修改于 01 / 02 / 2020

这个主要是记录一下折腾的详细条目,防止以后重装系统后忘掉。。。

Common(Deprecated)

Arch

Install

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mkfs.fat -F32 /dev/{esp}
mkfs.ext4 /dev/{root}
timedatectl set-local-rtc 1
timedatectl set-ntp 1
mount /dev/{root} /mnt
mount /dev/{esp} /mnt/boot
vim /etc/pacman.d/mirrorlist
Server = http://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
Server = http://mirrors.zju.edu.cn/archlinux/$repo/os/$arch
vim /etc/pacman.conf
[archlinuxcn]
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch

pacstrap /mnt base base-devel linux-zen linux-fireware xorg gvim
genfstab -L /mnt >> /mnt/etc/fstab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
hwclock --systohc
vim /etc/locale.gen
locale-gen
vim /etc/locale.conf
LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
vim /etc/hostname
vim /etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.1.1 myhostname.localdomain myhostname
passwd
pacman -S intel-ucode refind yay networkmanager plasma nbfc-linux zsh
useradd -m -s /usr/bin/zsh -G wheel bluequantum
passwd bluequantum
yay -S zsh zsh-theme-powerlevel10k zsh-syntax-highlighting zsh-history-substring-search zsh-completions zsh-autosuggestions yakuake konsole libinput-gestures xdotool wmctrl
gpasswd -a bluequantum input

Config