-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathyinpan_install.sh
77 lines (69 loc) · 2.73 KB
/
yinpan_install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/bin/bash
echo -e "${w} _ _ _ _ ${h}"
echo -e "${g} / \ _ __ ___| |__ | | (_)_ __ _ ___ _ ${h}"
echo -e "${b} / _ \ | '__/ __| '_ \ | | | | '_ \| | | \ \/ / ${h}"
echo -e "${y} / ___ \| | | (__| | | | | |___| | | | | |_| |> < ${h}"
echo -e "${r}/_/ \_\_| \___|_| |_| |_____|_|_| |_|\__,_/_/\_\ ${h}"
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
hwclock --systohc
echo ".....................................OK"
rm -rf /etc/locale.gen
cp ./locale.gen /etc/
locale-gen
echo ".....................................OK"
cp ./locale.conf /etc/
cp ./hostname /etc/
rm -rf /etc/hosts
cp ./hosts /etc/
rm -rf /etc/pacman.conf
cp ./pacman.conf /etc/
echo ".....................................OK"
echo "qing shu ru mi ma 请输入密码并确认密码:"
passwd
echo ".....................................OK"
pacman -Sy intel-ucode
pacman -S amd-ucode
pacman -Sy grub efibootmgr dosfstools ntfs-3g os-prober
pacman -Syu haveged
systemctl start haveged
systemctl enable haveged
rm -fr /etc/pacman.d/gnupg
pacman-key --init
pacman-key --populate archlinux
pacman -Syy archlinuxcn-keyring
pacman-key --populate archlinuxcn
echo ".....................................OK"
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Arch
echo ".....................................OK"
grub-mkconfig -o /boot/grub/grub.cfg
echo ".....................................OK"
pacman -S xf86-video-vesa
pacman -S xf86-video-intel
pacman -S xorg
pacman -S xf86-input-synaptics
pacman -S ttf-dejavu wqy-microhei
echo ".....................................OK"
useradd -m -g users -G wheel -s /bin/bash arch
echo ".....................................OK"
passwd arch
echo "qing shu ru mi ma 请输入密码并确认密码:"
echo ".....................................OK"
pacman -S alsa-utils pulseaudio pulseaudio-alsa yay google-chrome
yay --aururl "https://aur.tuna.tsinghua.edu.cn" --save
pacman -S plasma kde-applications plasma-wayland-session
systemctl enable sddm
systemctl enable NetworkManager
echo ".....................................OK"
systemctl start NetworkManager
echo ".....................................OK"
pacman -S fcitx
pacman -S fcitx-configtool
pacman -S fcitx-gtk2 fcitx-gtk3 fcitx-qt5 kcm-fcitx fcitx-im
pacman -S fcitx-googlepinyin
echo -e "${w} _ _ _ _ ${h}"
echo -e "${g} / \ _ __ ___| |__ | | (_)_ __ _ ___ _ ${h}"
echo -e "${b} / _ \ | '__/ __| '_ \ | | | | '_ \| | | \ \/ / ${h}"
echo -e "${y} / ___ \| | | (__| | | | | |___| | | | | |_| |> < ${h}"
echo -e "${r}/_/ \_\_| \___|_| |_| |_____|_|_| |_|\__,_/_/\_\ ${h}"
echo ".....................................OK"
echo ".....................................OK"