Manjaro 安装及配置过程中遇到的问题及其解决方案
系统安装及配置
启动时的driver
选择
- 默认为
free
, 表示开源驱动,可改成nofree
表示闭源驱动
分区(参考)手动分区
文件系统 | 挂载点 | 大小 |
---|---|---|
FAT32 | /boot/efi | 300MiB |
ext4 | /opt | 15GiB |
ext4 | / | 30GiB |
linuxswap | (临时存储空间) | 8GiB |
ext4 | /home | 其他 |
安装后配置
更换源
$ sudo pacman -Syy
$ sudo pacman-mirrors -i -c China -m rank
$ sudo pacman -Syyu
使用root权限编辑/etc/pacman.conf
增加以下内容
[archlinuxcn]
SigLevel = Optional TrustedOnly
Server =https://mirrors.ustc.edu.cn/archlinuxcn/$arch
然后执行
$ sudo pacman -Syy && sudo pacman -S archlinuxcn-keyring
安装中文输入法
sudo pacman -S fcitx-lilydjwg-git
sudo pacman -S fcitx-sogoupinyin
sudo pacman -S fcitx-im # 全部安装
编辑~/.xprofile
文件,在文件末尾增加以下内容
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
安装 中文字体
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
安装 wps
sudo pacman -S wps-office
sudo pacman -S ttf-wps-fonts
AUR助手(以防官方仓库没有想要的软件)
sudo pacman -S yay
安装 chrome 浏览器
sudo pacman -S google-chrome
插件及系统美化
python
使用安装pip安装第三方库
-
Problem:
ERROR: Could not find a version that satisfies the requirement XXX (from versions: none) ERROR: No matching distribution found for XXX
-
Solution:
-
采用国内镜像源下载:
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple
-
修改
pip.conf
配置文件终端下输入
vim ~/.pip/pip.conf
进入文件 设置如下内容:
[global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple [install] trusted-host=mirrors.aliyun.com
-