先完成 Arch Linux Base Install - 基礎安裝
官網LXQt,作者 bash 檔 lxqt.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
|
#!/bin/bash
#--------------------------------
# Created by chuanjang(at)gmail(dot)com
# Download: wget https://diii.neocities.org/lxqt.txt
# Usage:
# chmod +x lxqt.txt
# sh lxqt.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"
#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 --noconfirm"
#LXQt desktop , breeze-icons, Trash gvfs
sudo sh -c "pacman -S lxqt oxygen-icons xdg-utils gvfs --noconfirm"
#Install additional components
sudo sh -c "pacman -S network-manager-applet xscreensaver --noconfirm"
#Install applications
sudo sh -c "pacman -S firefox l3afpad --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=lxqt' >> /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/lxqt.txt
chmod +x lxqt.txt
sh lxqt.txt
重啟後自動登入, 可刪除 chi_in.txt, fonts.txt, lxqt.txt, setlang.txt, 也可以使用文字編輯器查看
顯示管理器SDDM已安裝並設置自動登入、啟用數字鎖定鍵
已安裝 Firefox 及 文字編輯器 L3afpad
設置LXQt啟用數字鎖定鍵的方法,於 QTerminal 貼上 (如最上圖)
l3afpad ~/.config/lxqt/session.conf
增加
建議安裝APP
sudo pacman -S smplayer yt-dlp
Arch 使用者儲存庫 (AUR)#
於 QTerminal
sudo pacman -S git fakeroot make gcc
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
cd ..
例:安裝 Google Chrome