先完成 Arch Linux Base Install - 基礎安裝
 官網KDE,作者 bash 檔 kde.txt

 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
78
79
80
81
82
83
84
#!/bin/bash
#--------------------------------
# Created by chuanjang(at)gmail(dot)com
# Download: wget https://diii.neocities.org/kde.txt
# Usage:
# chmod +x kde.txt
# sh kde.txt

# COLORS
Reset=$(tput sgr0)
# Regular Colors
Red=$(tput setaf 1)
Green=$(tput setaf 2)
Yellow=$(tput setaf 3)
Purple=$(tput setaf 5)
Cyan=$(tput setaf 6)

print_line() { #{{{
  printf "%$(tput cols)s\n"|tr ' ' '-'
} #}}}

read_input_text() { #{{{
  read -p "$1 [y/N]: " OPTION
  OPTION=`echo "$OPTION" | tr '[:upper:]' '[:lower:]'`
} #}}}

pause_function() { #{{{
  print_line
  read -e -sn 1 -p "Press enter to continue..."
} #}}}

sudo sh -c "pacman -Syu --noconfirm"

#Media Driver for Nvidia
#sudo sh -c "pacman -S nvidia nvidia-settings --noconfirm"

#Xorg and pipewire low-level multimedia framework
sudo sh -c "pacman -S xorg-server pipewire --noconfirm"

echo -e "\n\n"
#KDE desktop,  plasma-meta, plasma, plasma-desktop
PS3="Select {Cyan}KDE desktop environment${Reset} package please: "
items=("plasma-meta" "plasma" "plasma-desktop")
select item in "${items[@]}"
do
    case $REPLY in
        1) break;;
        2) break;;
        3) break;;
        #$((${#items[@]}+1))) echo "We're done!"; break;;
        *) echo "Ooops - unknown choice $REPLY";;
    esac
done

sudo sh -c "pacman -S $item kde-applications plasma-wayland-session --noconfirm"

#Display Manager (SDDM)
sudo sh -c "pacman -S --noconfirm sddm"

#Autologin
sudo sh -c "mkdir -p /etc/sddm.conf.d"
sudo sh -c "echo '[Autologin]' >> /etc/sddm.conf.d/autologin.conf"
sudo sh -c "echo 'User=$USER' >> /etc/sddm.conf.d/autologin.conf"
sudo sh -c "echo 'Session=plasma' >> /etc/sddm.conf.d/autologin.conf"

sudo sh -c "echo '[General]' >> /etc/sddm.conf"
sudo sh -c "echo 'Numlock=on' >> /etc/sddm.conf"

sudo sh -c "systemctl enable sddm"
echo -e "\n${Cyan}SDDM${Reset} installed and set ${Green}Autologin${Reset} & ${Green}NumLock${Reset}\n"

pause_function

wget https://diii.neocities.org/localize.txt
chmod +x localize.txt
sh localize.txt
rm -rf localize.txt

echo -e "\nMust reboot to enable setting."
pause_function
  
reboot

exit 0

安裝

 以具有 sudo 權限之使用者登入
 wget https://diii.neocities.org/kde.txt
 chmod +x kde.txt
 sh kde.txt

後續

 重啟後自動登入, 可刪除 chi_in.txt, fonts.txt, kde.txt, setlang.txt, 也可以使用文字編輯器查看
 顯示管理器SDDM已安裝並設置自動登入、啟用數字鎖定鍵

Arch 使用者儲存庫 (AUR)

 於 Konsole

sudo pacman -S git fakeroot make
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
cd ..

 例:安裝 Google Chrome

yay -S google-chrome