??????? 經(jīng)過(guò)4年的不斷摸索和使用屡律,已經(jīng)能較為完備的摸清manjaro的使用方法,現(xiàn)將其中最常用的功能進(jìn)行整合方便安裝后配置扭弧。我的用戶(hù)名為franksun如遇見(jiàn)可以替換市框。本文為Manjaro-gnome配置通過(guò),其它版本參照?qǐng)?zhí)行佑笋。
-----------------------------------------------------------
? ? ? ? ? ? ? ? ? ? ? ? ? 1.換源
-----------------------------------------------------------
sudo gedit? /etc/pacman.d/mirrorlist
清空后輸入以下內(nèi)容:
## Country : China
Server = https://mirrors.ustc.edu.cn/manjaro/stable/$repo/$arch
-----------------------------------------------------------
? ? ? ? ? ? ? ? ? 2.Arch中國(guó)AUR源
-----------------------------------------------------------
sudo gedit? /etc/pacman.conf
打開(kāi)pacman.conf配置文件翼闹,在末尾添加如下內(nèi)容
[archlinuxcn]
#SigLevel = Optional TrustedOnly
SigLevel = Never
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
-----------------------------------------------------------
? ? ? ? ? ? ? ? ? ? ? ? ? 3.更新系統(tǒng)
-----------------------------------------------------------
sudo pacman -Syy
sudo pamac update
-----------------------------------------------------------
? ? ? ? ? ? ? ? 4.防止PGP簽名錯(cuò)誤
-----------------------------------------------------------
sudo pacman -S archlinuxcn-keyring
-----------------------------------------------------------
? ? ? ? ? ? ? ? 5.安裝打包基本工具
-----------------------------------------------------------
sudo pacman -Sy base-devel
-----------------------------------------------------------
? ? ? ? 6.安裝內(nèi)核頭文件header file
-----------------------------------------------------------
sudo pacman -S linux linux-headers
-----------------------------------------------------------
? ? ? ? ? ? 7.安裝輸入法框架fcitx
-----------------------------------------------------------
sudo pacman -S fcitx fcitx-configtool fcitx-im fcitx-gtk2 fcitx-gtk3 fcitx-qt5
配置 ~/.xprofile文件
sudo gedit? ~/.xprofile
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
export XIM=fcitx
export XIM_PROGRAM=fcitx
在manjaro gnome環(huán)境下使用fcitx輸入,總是提示環(huán)境變量未配置蒋纬,經(jīng)過(guò)不懈鉆研得知猎荠,此系統(tǒng)環(huán)境僅僅設(shè)置用戶(hù)級(jí)別的~/.xprofile是不行的,還要配置/etc/profile文件
sudo gedit? /etc/profile
最末尾添加
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
export XIM=fcitx
export XIM_PROGRAM=fcitx
-----------------------------------------------------------
???? 8.雙系統(tǒng)時(shí)間相差8個(gè)小時(shí)
-----------------------------------------------------------
sudo timedatectl status
sudo timedatectl set-local-rtc 0
sudo hwclock --localtime --systohc
到這里就可以愉快的玩耍了!J癖浮9匾 !D敫蟆J涫!
以下為進(jìn)階:
-----------------------------------------------------------
??????????????? 9.校準(zhǔn)時(shí)間
-----------------------------------------------------------
安裝時(shí)間ntp客戶(hù)端
yay -S? ntpdate
yay -S ntpdate
用阿里云服務(wù)器校準(zhǔn)時(shí)間
sudo ntpdate ntp1.aliyun.com
-----------------------------------------------------------
?????????????? 10.安裝yay
-----------------------------------------------------------
sudo pacman -S yay
-----------------------------------------------------------
?????????????? 11.顯示manjaro版本信息
-----------------------------------------------------------
yay -S screenfetch