美文网首页计算机
Manjaro安装后配置

Manjaro安装后配置

作者: 王胖BigWang | 来源:发表于2018-03-07 22:24 被阅读595次

    使用archlinuxcn和antergos镜像

    yaourt改用清华AUR镜像

    在~/.yaourtrc文件中加入

    AURURL="https://aur.tuna.tsinghua.edu.cn"
    

    增加archlinuxcn库和antergos库

    在/etc/pacman.conf中加入

    [archlinuxcn]
    SigLevel = TrustAll
    Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
    [antergos]
    SigLevel = TrustAll
    Server = https://mirrors.tuna.tsinghua.edu.cn/antergos/$repo/$arch
    

    安装中文字体

    我使用的是manjaro最小安装,安装之后中文字体无法正常显示。需要首先安装中文字体。我使用的是文泉驿的字体。

    sudo pacman -S wqy-bitmapfont
    sudo pacman -S wqy-microhei
    sudo pacman -S wqy-zenhei
    

    安装Chrome浏览器

    sudo pacman -S google-chrome
    

    安装wps

    sudo pacman -S wps-office
    sudo pacman -S ttf-wps-fonts #安装wps确实的字体
    

    安装Google Chrome

    sudo pachman -S google-chrome
    

    安装网易音乐云

    sudo pacman -S netease-cloud-music
    

    安装搜狗输入法

    sudo pacman -S fcitx-sogoupinyin
    sudo pacman -S fcitx-im
    sudo pacman -S fcitx-configtool
    
    

    然后对输入法进行配置,在/etc/environment文件中写入下面的内容:

    export GTK_IM_MODULE=fcitx
    export QT_IM_MODULE=fcitx
    export XMODIFIERS="@im=fcitx"
    

    安装R语言

    R语言我使用的是Microsoft R Open,自带Intel的MKL,虽然我的CPU是AMD的Ryzen的处理器,也一样给力。因为Linux下的R很多时候需要下载源码在本地编译,建议安装gcc和gfortran。

    sudo pacman -S microsoft-r-open
    sudo pacman -S gcc
    sudo pacman -S gcc-fortran
    

    安装Rstudio

    安装Rstudio之后会出现在括号之后光标不同步的现象,更改Rstudio的默认字体即可。

    sudo pacman -S rstudio-desktop-bin
    

    安装Miniconda

    首先到清华TUNA下载最新版本,然后在本地运行。

    ./Miniconda3-latest-Linux-x86_64.sh
    

    默认安装到/home目录,方便管理。添加清华TUNA的源,更新conda。可以在~/.condarc中删掉- defaults项,可以速度更快。但不建议添加TUNA中的conda-forge源,因为某些程序使用了rpy2会出现包依赖错误。

    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
    conda config --set show_channel_urls yes
    

    相关文章

      网友评论

        本文标题:Manjaro安装后配置

        本文链接:https://www.haomeiwen.com/subject/ceosfftx.html