再见Windows,你好Manjaro!

392 阅读1分钟

Manjaro 安装及配置过程中遇到的问题及其解决方案

系统安装及配置

启动时的driver选择

  • 默认为free, 表示开源驱动,可改成nofree表示闭源驱动

分区(参考)手动分区

文件系统挂载点大小
FAT32/boot/efi300MiB
ext4/opt15GiB
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:

    1. 采用国内镜像源下载:

      pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple

    2. 修改pip.conf配置文件

      终端下输入vim ~/.pip/pip.conf进入文件 设置如下内容:

        [global]
        index-url = https://pypi.tuna.tsinghua.edu.cn/simple
        [install]
        trusted-host=mirrors.aliyun.com