1、换源
选择一个速度最快的源,一个就行,选多了会降低速度
sudo pacman-mirrors -i -c China -m rank
2、更新系统
Manjaro 属于滚动式更新的系统,最好每天上来更新一次系统
sudo pacman -Syyu
3、安装软件
yay是一个用Go语言写的一个AUR助手,有些时候官方仓库没有你想要的软件,就需要通过yay来安装
sudo pacman -S yay
4、安装拼音输入法
建议安装 rima + 自定义输入配置的方式
# 安装小企鹅输入法框架,这里使用的是 fcitx 4的版本,5的版本还有点问题等待修复
pacman -S fcitx fcitx-qt5 fcitx-configtool
# 然后配置 fcitx 的环境变量,在~/.xprofile 文件中写入
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
export LANG="zh_CN.UTF-8"
export LC_CTYPE="zh_CN.UTF-8"
# 安装 rima 输入法
pacman -S fcitx-rime
安装输入方案
yay -S rime-cloverpinyin
到~/.config/fcitx/rime文件夹下创建 default.custom.yaml,内容为
# 其中 8 表示打字的时候输入面板的每一页的候选词数目,可以设置成 1~9 任意数字
patch:
"menu/page_size": 8
schema_list:
- schema: clover
写好该文件之后,点击右下角托盘图标右键菜单,点“重新部署”,然后再点右键,在方案列表里面应该就有“ 🍀️四叶草拼音输入法”的选项
5、安装 II命令
vim ~/.bashrc
# 加上
alias ll='ls -l'
6、配置字体
安装字体
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</pre>
在~/.config/fontconfig/fonts.conf 文件中编辑以下内容
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<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 Config</description>
<!-- Font directory list -->
<dir>/usr/share/fonts</dir>
<dir>/usr/local/share/fonts</dir>
<dir prefix="xdg">fonts</dir>
<dir>~/.fonts</dir> <!-- this line will be removed in the future -->
<!-- 自动微调 微调 抗锯齿 内嵌点阵字体 -->
<match target="font">
<edit name="autohint"> <bool>false</bool> </edit>
<edit name="hinting"> <bool>true</bool> </edit>
<edit name="antialias"> <bool>true</bool> </edit>
<edit name="embeddedbitmap" mode="assign"> <bool>false</bool> </edit>
</match>
<!-- 英文默认字体使用 Roboto 和 Noto Serif ,终端使用 DejaVu Sans Mono. -->
<match>
<test qual="any" name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Serif</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Roboto</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>monospace</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>DejaVu Sans Mono</string>
</edit>
</match>
<!-- 中文默认字体使用思源宋体,不使用 Noto Sans CJK SC 是因为这个字体会在特定情况下显示片假字. -->
<match>
<test name="lang" compare="contains">
<string>zh</string>
</test>
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend">
<string>Source Han Serif CN</string>
</edit>
</match>
<match>
<test name="lang" compare="contains">
<string>zh</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Source Han Sans CN</string>
</edit>
</match>
<match>
<test name="lang" compare="contains">
<string>zh</string>
</test>
<test name="family">
<string>monospace</string>
</test>
<edit name="family" mode="prepend">
<string>Noto Sans Mono CJK SC</string>
</edit>
</match>
<!-- 把Linux没有的中文字体映射到已有字体,这样当这些字体未安装时会有替代字体 -->
<match target="pattern">
<test qual="any" name="family">
<string>SimHei</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Source Han Sans CN</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>SimSun</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Source Han Serif CN</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>SimSun-18030</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Source Han Serif CN</string>
</edit>
</match>
<!--
<match target="pattern">
<test qual="any" name="family">
<string>Microsoft YaHei</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Source Han Sans CN</string>
</edit>
</match>
-->
<!-- Load local system customization file -->
<include ignore_missing="yes">conf.d</include>
<!-- Font cache directory list -->
<cachedir>/var/cache/fontconfig</cachedir>
<cachedir prefix="xdg">fontconfig</cachedir>
<!-- will be removed in the future -->
<cachedir>~/.fontconfig</cachedir>
<config>
<!-- Rescan in every 30s when FcFontSetList is called -->
<rescan> <int>30</int> </rescan>
</config>
</fontconfig>
7、安装截图软件
yay -S flameshot
配置快捷键
8、安装oh-my-zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
安装完成后,修改终端的默认启动方式
安装zsh-syntax-highlighting:提供命令高亮
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
安装autosuggestions:记住你之前使用过的命令
git clone git://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
9、安装 The fuck 提示正确命令
pip install --user thefuck
10、安装微信
yay -S deepin-wine-wechat
# 无法发送图片、文件的bug
安装低版本2.7(哭)
11、安装WPS
yay -S wps-office-mui-zh-cn
如果打开发现是英文,下载中文包,然后点击编辑页面右上角的【A】图标,切换中文
sudo pacman -S wps-office-mui-zh-cn
12、安装坚果云
yay -S nutstore
# 如果出现坚果云打不开或者没有登录页面的情况,安装坚果云相关依赖
yay -S python-gobject
13、安装 refind,修改引导页面
yay -S refind
refind -install
# 在/boot/EFI/refind 目录下创建 themes 文件夹,进入文件夹执行命令
git clone https://github.com/EvanPurkhiser/rEFInd-minimal.git
# 修改 refind.conf 文件,在末尾加上
menuentry "Arch Linux" {
icon /EFI/refind/themes/rEFInd-minimal/icons/os_arch.png
loader vmlinuz-linux
initrd initramfs-linux.img
options "rw root=UUID=dfb2919d-ff78-48db-a8a7-23f7542c343a loglevel=3"
}
menuentry "Windows" {
icon /EFI/refind/themes/rEFInd-minimal/icons/os_win.png
loader /EFI/Microsoft/Boot/bootmgfw.efi
}
menuentry "OSX" {
icon /EFI/refind/themes/rEFInd-minimal/icons/os_mac.png
loader /EFI/Apple/Boot/bootmgfw.efi
}
# 自定义主题地址
include themes/rEFInd-minimal/theme.conf
# 排除多余的启动项
dont_scan_files /boot/efi/EFI/Manjaro/grubx64.efi