镜像源列表: https://repo.manjaro.org/
sudo pacman-mirrors -i -c China -m rank
# 在弹出的窗口中选择想要的镜像源。(结果会自动导入/etc/pacman.d/mirrorlist 配置文件中)
#或用以下命令直接查找最快镜像:
sudo pacman-mirrors --fasttrack
# 打开/etc/pacman.d/mirrorlist文件添加如下内容:
## 阿里云
Server = http://mirrors.aliyun.com/archlinux/$repo/os/$arch
## 清华大学
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
## Country : China(中科大)
Server = https://mirrors.ustc.edu.cn/manjaro/stable/$repo/$arch
Arch Linux中文社区仓库是由Arch Linux中文社区驱动的非官方用户仓库。包含中文用户常用软件、工具、字体/美化包等。
echo -e "\n[archlinuxcn]\nSigLevel = TrustAll\nServer = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/\$arch\n"|sudo tee -a /etc/pacman.conf
sudo pacman -Syy
sudo pacman -S --noconfirm archlinuxcn-keyring
sudo pacman -Syyu
sudo pacman -S yay#该命令不仅可以搜索官方基本库中的软件,同是地可以搜索AUR库。
sudo pacman -S zsh zsh-doc #zsh-doc安装在/usr/share/doc/zsh/文件夹下
sudo pacman -S manjaro-zsh-config #manjaro的zsh配置文档
cp /etc/skel/.zshrc ~/.zshrc #将配置文件复制到用户目录
zsh #启动zsh
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" #via wget
#sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" #via curl
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc #替换zsh的配置文件为oh-my-zsh
cd ~/.oh-my-zsh/themes&&ls
#更该主题方法:sudo gedit ~/.zshrc,找到ZSH_THEME=更改为ZSH_THEME="agnoster"
#安装zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/plugins/zsh-autosuggestions
#安装zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/plugins/zsh-syntax-highlighting
#安装 autojump
sudo pacman -S autojump
#安装完毕后:sudo gedit ~/.zshrc,找到plugins=(git)
#更改为plugins=(git zsh-syntax-highlighting zsh-autosuggestions autojump)
source ~/.zshrc #刷新配置,使之生效
pacman -S powerline
pacman -S powerline-fonts
pacman -S powerline-vim
chsh -s /bin/zsh
zsh --version #查看zsh版本
sudo pacman -S wqy-bitmapfont
sudo pacman -S wqy-zenhei
sudo pacman -S wqy-microhei-lite
#依次打开终端(xfce)->编辑->外观,字体选择Noto Sans Mono Medium
#依次打开终端(xfce)->编辑->外观,勾选使用自定义样式以将标签页变窄(需要重启终端)
sudo pacman -S ttf-roboto noto-fonts ttf-dejavu
# 文泉驿
sudo pacman -S wqy-bitmapfont wqy-microhei wqy-microhei-lite wqy-zenhei
# 思源字体
sudo pacman -S noto-fonts-cjk adobe-source-han-sans-cn-fonts adobe-source-han-serif-cn-fonts
创建文件.config/fontconfig/fonts.conf,加入下面的配置
<fontconfig>
<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
<its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
its:rules>
<description>Manjaro Font Configdescription>
<dir>/usr/share/fontsdir>
<dir>/usr/local/share/fontsdir>
<dir prefix="xdg">fontsdir>
<dir>~/.fontsdir>
<match target="font">
<edit name="autohint"> <bool>falsebool> edit>
<edit name="hinting"> <bool>truebool> edit>
<edit name="antialias"> <bool>truebool> edit>
<edit name="embeddedbitmap" mode="assign"> <bool>falsebool> edit>
match>
<match>
<test qual="any" name="family">
<string>serifstring>
test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Serifstring>
edit>
match>
<match target="pattern">
<test qual="any" name="family">
<string>sans-serifstring>
test>
<edit name="family" mode="prepend" binding="strong">
<string>Robotostring>
edit>
match>
<match target="pattern">
<test qual="any" name="family">
<string>monospacestring>
test>
<edit name="family" mode="prepend" binding="strong">
<string>DejaVu Sans Monostring>
edit>
match>
<match>
<test name="lang" compare="contains">
<string>zhstring>
test>
<test name="family">
<string>serifstring>
test>
<edit name="family" mode="prepend">
<string>Source Han Serif CNstring>
edit>
match>
<match>
<test name="lang" compare="contains">
<string>zhstring>
test>
<test name="family">
<string>sans-serifstring>
test>
<edit name="family" mode="prepend">
<string>Source Han Sans CNstring>
edit>
match>
<match>
<test name="lang" compare="contains">
<string>zhstring>
test>
<test name="family">
<string>monospacestring>
test>
<edit name="family" mode="prepend">
<string>Noto Sans Mono CJK SCstring>
edit>
match>
<match target="pattern">
<test qual="any" name="family">
<string>SimHeistring>
test>
<edit name="family" mode="assign" binding="same">
<string>Source Han Sans CNstring>
edit>
match>
<match target="pattern">
<test qual="any" name="family">
<string>SimSunstring>
test>
<edit name="family" mode="assign" binding="same">
<string>Source Han Serif CNstring>
edit>
match>
<match target="pattern">
<test qual="any" name="family">
<string>SimSun-18030string>
test>
<edit name="family" mode="assign" binding="same">
<string>Source Han Serif CNstring>
edit>
match>
<include ignore_missing="yes">conf.dinclude>
<cachedir>/var/cache/fontconfigcachedir>
<cachedir prefix="xdg">fontconfigcachedir>
<cachedir>~/.fontconfigcachedir>
<config>
<rescan> <int>30int> rescan>
config>
fontconfig>
# 修改配置文件 ~/.config/user-dirs.dirs
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
# 打开终端,输入以下命令
cd ~
mv 公共 Public
mv 模板 Templates
mv 视频 Videos
mv 图片 Pictures
mv 文档 Documents
mv 下载 Downloads
mv 音乐 Music
mv 桌面 Desktop
sudo ln -sf /usr/share/zoneinfo/Asia/Shanghai/etc/localtime #设置时区
sudo pacman -S openntpd #安装openNTPD
systemctl restart openntpd #重启openNTPD
systemctl enable openntpd #设置开机启动