Manjaro installation and configuration encountered problems and solutions

System installation and configuration

The startupdriverchoose

  • The default isfree, indicates the open source drivernofreeRepresents a closed source driver

Partition (refer to) Manual partition

The file system The mount point The size of the
FAT32 /boot/efi 300MiB
ext4 /opt 15GiB
ext4 / 30GiB
linuxswap (Temporary storage space) 8GiB
ext4 /home other

Post-installation Configuration

Change the source

$ sudo pacman -Syy
$ sudo pacman-mirrors -i -c China -m rank
$ sudo pacman -Syyu
Copy the code

Add the following content to /etc/pacman.conf using root permission

[archlinuxcn]
SigLevel = Optional TrustedOnly
Server =https://mirrors.ustc.edu.cn/archlinuxcn/$arch
Copy the code

Then perform

$ sudo pacman -Syy && sudo pacman -S archlinuxcn-keyring
Copy the code

Install Chinese input method

sudo pacman -S fcitx-lilydjwg-git
sudo pacman -S fcitx-sogoupinyin
sudo pacman -S fcitx-im         # Install all
Copy the code

Edit the ~/.xprofile file and add the following content to the end of the file

export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
Copy the code

Installing Chinese fonts

sudo pacman -S ttf-roboto noto-fonts ttf-dejavu
# spring of letters
sudo pacman -S wqy-bitmapfont wqy-microhei wqy-microhei-lite wqy-zenhei
# Siyuan font
sudo pacman -S noto-fonts-cjk adobe-source-han-sans-cn-fonts adobe-source-han-serif-cn-fonts
Copy the code

Install the WPS

sudo pacman -S wps-office
sudo pacman -S ttf-wps-fonts
Copy the code

AUR assistant (in case the official repository doesn’t have the desired software)

sudo pacman -S yay
Copy the code

Install Chrome

sudo pacman -S google-chrome
Copy the code

Plug-ins and system beautification

pythonInstall third-party libraries using install PIP

  • Problem:

    ERROR: Could not find a version that satisfies the requirement XXX (from versions: none)
    
    ERROR: No matching distribution found for XXX
    Copy the code
  • Solution:

    1. Using domestic image source download:

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

    2. Modify the pip.conf configuration file

      Enter vim ~/. PIP /pip.conf to access the file

    Set the following parameters:

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