Arch 安裝
本教程僅供本人記錄使用,參考需謹(jǐn)慎屈雄!
啟動盤網(wǎng)絡(luò)設(shè)置
使用 iwctl 來進(jìn)行聯(lián)網(wǎng)源梭。
iwctl
[iwd]# device list
[iwd]# station wlan0 scan
[iwd]# station wlan0 get-networks
[iwd]# station wlan0 connect <WIFI_NAME>
password: input password
[iwd]# exit
使用 ping 命令測試網(wǎng)絡(luò)。
ping bilibili.com
啟動盤安裝系統(tǒng)
使用 reflector 命令尋找最佳速率鏡像源裹驰。
reflector --country China --sort rate --save /etc/pacman.d/mirrorlist
更新系統(tǒng)并使用 archinstall 命令簡化安裝步驟。
sudo pacman -Syy
archinstall
在其后界面根據(jù)自己需要調(diào)整安裝選項(xiàng)片挂。
網(wǎng)絡(luò)與鏡像源設(shè)置
使用如下命令鏈接網(wǎng)絡(luò)幻林。
nmcli device wifi connect [WIFI_NAME] password [WIFI_PASSWORD]
添加 archlinuxcn 鏡像源。
vim /etc/pacman.conf
在文件末尾添加如下內(nèi)容音念。
[archlinuxcn]
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
更新系統(tǒng)沪饺,安裝密鑰。
sudo pacman -Syy
sudo pacman -S archlinuxcn-keyring archlinux-keyring
使用 reflector 命令尋找最佳速率鏡像源闷愤,并72小時更新一次整葡。
sudo pacman -S reflector
reflector --country China --age 72 --sort rate --protocol https --save /etc/pacman.d/mirrorlist
雙系統(tǒng)系統(tǒng)時間同步
輸入以下指令,使 linux 不修改 bios 時間
timedatectl set-local-rtc 1 --adjust-sy
安裝字體
安裝所需字體肝谭。
sudo pacman -S ttf-dejavu wqy-microhei wqy-microhei-lite noto-fonts noto-fonts-cjk noto-fonts-emoji noto-fonts-extra adobe-source-han-serif-cn-fonts adobe-source-han-sans-cn-fonts wqy-zenhei wqy-bitmapfont ttf-arphic-ukai
yay -S ttf-fira-code
修改系統(tǒng)為中文
系統(tǒng)設(shè)置為中文掘宪。
sed -i 's/^#en_US.UTF-8/en_US.UTF-8/' /etc/locale.gen
sed -i 's/^#zh_CN.UTF-8/zh_CN.UTF-8/' /etc/locale.gen
locale-gen
編輯文件蛾扇。
vim /etc/locale.conf
修改為:
LANG=en_US.UTF-8
重啟即可
代理問題(可跳過)
往下的步驟需要在手機(jī)上開啟vpn,并使用端口共享軟件進(jìn)行端口共享魏滚。也可以使用clash在命令行進(jìn)行配置()镀首。
端口共享軟件推薦:Every Proxy
若進(jìn)行端口共享,修改系統(tǒng)代理鼠次,參考安裝clash步驟中修改etc/environment(在下面)更哄,要修改為手機(jī)的ip地址與端口!
安裝 yay-bin
安裝 git base-devel
sudo pacman -S base-devel git
打開軟件目錄腥寇,克隆 yay git倉庫
cd /opt
sudo git clone https://aur.archlinux.org/yay-bin.git
更改目錄所有者成翩,要修改為你的用戶名與組。
sudo chown -R userName:users ./yay-bin
進(jìn)入目錄赦役,并編譯麻敌。
cd yay
makepkg -si
安裝 Hyprland
clone github 上的倉庫:
cd
git clone https://github.com/jqtmviyu/Hyprland-v2.1.git
git clone https://github.com/jqtmviyu/Hyprland-v2.2.git
打開目錄并設(shè)置權(quán)限。
sudo chown UserName:Users Hyprland-v2.1.git
sudo chown UserName:Users Hyprland-v2.2.git
cd ~/Hyprland-v2.1.git
sudo chmod +x install.....
cd ~/Hyprland-v2.2.git
sudo chmod +x updata.....
進(jìn)行安裝與更新掂摔,可以自行先修改腳本术羔,建議刪除nvidia檢測部分安裝
cd ~/Hyprland-v2.1.git
./install.....
cd ~/Hyprland-v2.1.git
./updata.....
在其后界面根據(jù)自己情況選擇。
注意乙漓,本腳本會安裝很多必需的軟件级历,如藍(lán)牙,網(wǎng)絡(luò)管理等等叭披,已經(jīng)安裝的會在下面省略寥殖!
安裝 debtap (可跳過)
安裝解包打包工具 debtap。
yay -S debtap
升級 debtap涩蜘。
sudo debtap -u
使用 debtap 解包嚼贡。
sudo debtap xxxx.deb
使用 pacman 安裝。
sudo pacman -U x.tar.xz
安裝 Google Chrome ( 建議用firefox )
直接使用 yay 來進(jìn)行安裝
yay -S google-chrome
安裝后打開皱坛,在外觀選項(xiàng)設(shè)置使用GTK编曼,并在 chrome://flags/ 中搜索 wayland 將前兩項(xiàng)打開。
安裝 Clash verge
在使用瀏覽器以下網(wǎng)址中下載最新版本的 Clash verge 文件剩辟,deb 結(jié)尾。
下載好安裝包往扔,使用 debtap 進(jìn)行轉(zhuǎn)換贩猎,使用 pacman 進(jìn)行安裝。
cd download
sudo debtap xxxx.deb
sudo pacman -U xxxxx.tar.xz
編輯環(huán)境變量
sudo vim /etc/environment
填入以下內(nèi)容且保存
http_proxy=http://127.0.0.1:7890/
https_proxy=http://127.0.0.1:7890/
ftp_proxy=http://127.0.0.1:7890/
HTTP_PROXY=http://127.0.0.1:7890/
HTTPS_PROXY=http://127.0.0.1:7890/
FTP_PROXY=http://127.0.0.1:7890/
最后重啟即可
安裝中文輸入法
安裝所需軟件萍膛。
sudo pacman -S fcitx5-im
sudo pacman -S fcitx5-chinese-addons fcitx5-pinyin-zhwiki
打開配置文件吭服。
vim /etc/environment
添加以下內(nèi)容。
GTK_IM_MODULE=fcitx5
QT_IM_MODULE=fcitx5
XMODIFIERS=@im=fcitx5
SDL_IM_MODULE=fcitx5
在啟動文件中添加
exec-once=fcitx5 --replace -d
安裝藍(lán)牙(上面已經(jīng)安裝)
安裝藍(lán)牙模塊蝗罗。
sudo pacman -S bluez
設(shè)置開機(jī)啟動艇棕。
systemctl enable bluetooth
systemctl start blutooth
安裝藍(lán)牙音頻蝌戒。
sudo pacman -S pluseaudio-bluetooth
修改 system.pa。
sudo vim /etc/pulse/system.pa
寫入以下內(nèi)容沼琉。
load-module module-bluetooth-policy
load-module module-bluetooth-discover
重啟即可北苟。