manjaro安装配置笔记

==================安装==================
[201020] Manjaro(KDE桌面环境)小白向完全安装教程(附Linux简要介绍)
https://www.cnblogs.com/ArrowKeys/p/13844174.html
---
启动盘制作工具 pacman -S etcher
从以下某个网站下载manjaro.iso镜像
    manjaro中国版网站--个人网站
    https://manjaro.org.cn/
    Manjaro镜像
    Manjaro稳定版下载
    https://manjaro.org.cn/category/download-manjaro
    中科大镜像下载
    https://mirrors.ustc.edu.cn/manjaro-cd/kde/20.1.2/
    # 华为云
    https://mirrors.huaweicloud.com/manjaro-cd/
    # 清华
    https://mirrors.tuna.tsinghua.edu.cn/osdn/storage/g/m/ma/
    # 浙大
    http://mirrors.zju.edu.cn/manjaro/
==================系统配置==================
卸载yakuake终端,有konsole就够了
    pacman -Rs yakuake
展示系统信息  screenfetch
手动更改源排名,选择、更换镜像网站为国内镜像站  
    pacman-mirrors -i -c China -m rank
    cat /etc/pacman.d/mirrorlist
    cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
安装vim工具  pacman -S vim
    vim /etc/pacman.d/mirrorlist
备份pacman.conf文件 cp /etc/pacman.conf /etc/pacman.conf.backup
添加archlinux源,只需要一个地址就行,其他地址注释掉,保留。
    vim /etc/pacman.conf
        [archlinuxcn]
        # The Chinese Arch Linux communities packages.
        # SigLevel = Optional TrustedOnly
        SigLevel = Optional TrustAll
        # 官方源
        #Server   = http://repo.archlinuxcn.org/$arch
        # 163源
        #Server = http://mirrors.163.com/archlinux-cn/$arch
        # 清华大学
        Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
    安装用于archlinuxcn的密匙软件包,以便让archlinuxcn软件源可以正常使用
        pacman -S archlinuxcn-keyring
安装yay工具  pacman -S yay
修改yay镜像为国内镜像  yay --aururl “https://aur.tuna.tsinghua.edu.cn” --save
查看yay配置  yay -P -g
    yay的配置文件 vim ~/.config/yay/config.json
同步仓库  pacman -Sy
安装基本打开发工具,用yay安装软件时需要以下一些工具,如gcc,binutils等
    pacman -S base-devel
        :: 在组 base-devel 中有 24 成员:
        1) autoconf  2) automake  3) binutils  4) bison  5) fakeroot  6) file  7) findutils  8) flex  9) gawk  10) gcc  
        11) gettext  12) grep  13) groff  14) gzip  15) libtool  16) m4  17) make  18) pacman  19) patch  20) pkgconf  
        21) sed  22) sudo  23) texinfo  24) which
安装输入法,包括搜狗输入法
    pacman -S fcitx
    pacman -S fcitx-sogoupinyin #搜狗输入法偶尔会崩溃,有时甚至会影响java程序的运行,导致java程序无响应、假死、卡死
    pacman -S fcitx-configtool
    vim ~/.xprofile
        export GTK_IM_MODULE=fcitx
        export QT_IM_MODULE=fcitx
        export XMODIFIERS="@im=fcitx"
    重启后生效
安装jdk
    tar -xzvf /run/media/platinum/MD_500G/software/linux/jdk-8u191-linux-x64.tar.gz -C /opt
    vim /etc/profile,追加:
        JAVA_HOME=/opt/jdk1.8.0_191
        CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar
        PATH=$JAVA_HOME/bin:$PATH
        export JAVA_HOME CLASSPATH PATH
    更新环境变量 source /etc/profile,没生效打话重启一下。
启用 TRIM(仅 SSD)
如果你的根分区已经安装在了 SSD 上,启用 TRIM 会是你在安装 Manjaro 后需要做的一件事。TRIM 会帮助清理 SSD 中的块,从而延长 SSD 的使用寿命。
要在 Manjaro 中启用 TRIM,请在终端中输入以下命令:
    sudo systemctl enable fstrim.timer
    sudo systemctl start fstrim.service
    systemctl status fstrim.service
    cat /usr/lib/systemd/system/fstrim.timer
    cat /usr/lib/systemd/system/fstrim.service
同步仓库,更新系统、软件  pacman -Syyu
更新grub引导配置文件  update-grub
修复、更新引导程序  grub-install /dev/sdb
==================其他配置==================
苹果风格的桌面环境
    参考:
        KDE仿mac  
        https://blog.csdn.net/weixin_44402295/article/details/103434529
        kde-->mac
        https://www.cnblogs.com/luoshuitianyi/p/10587788.html
    全局主题  搜索下载 "McMojave LAF"
    全局菜单
        需要安装的包有:appmenu-gtk-module
        vala-panel-appmenu-xfce(别安装那个坑爹的xfce4-topmenu-plugin),appmenu-gtk-module,appmenu-qt4 ,
        vala-panel-appmenu-registrar,vala-panel-appmenu-translations(最后一个包一般会作为第一个包的依赖安装上)。
    安装上以后,就可以在面板上添加新项目了:右键面板-》添加新项目-》全局菜单插件,然后调整全局菜单位置,重启一下即可生效
    plasma样式
        获取新的Plasma样式--搜索“MacBreeze Shadowless”--安装
        MacBreeze Shadowless
        https://store.kde.org/p/1255186
    图标 Mojave CT icons
        https://store.kde.org/p/1210856
        Mojave-CT-Night-Mode.tar.xz
    底部dock Latte Dock
        sudo pacman -S latte-dock
    苹果风格文件夹  
        pacman -S nautilus
    实现mac的launchpad
        右键顶栏--添加部件--获取新部件--下载新plasma部件--搜索“launchpad”--安装
        https://store.kde.org/p/1364064/
        launchpadPlasma.tar.gz
    实现mac的程序名顶栏显示
        右键顶栏--添加部件--获取新部件--下载新plasma部件--搜索“application title”--安装
画图工具 pacman -S kolourpaint
图片编辑工具(比较专业)pacman -S gimp
办公套件
    libreoffice
    主程序 pacman -S libreoffice-still
    汉化包 pacman -S libreoffice-still-zh-cn
    WPS   pacman -S wps-office-cn wps-office-mime-cn wps-office-mui-zh-cn ttf-wps-fonts
百度网盘 Linux版:sudo pacman -S baidunetdisk-bin
网易云音乐 Linux版:sudo pacman -S netease-cloud-music
安装IntelliJ IDEA,破解工具及方法见jetbrains-agent-2020.1.3.tar.gz
    tar -xzvf /run/media/platinum/MD_500G/software/linux/ideaIU-2020.1.2.tar.gz -C /opt

原文地址:https://www.cnblogs.com/ITKing9/p/14016047.html