zoukankan      html  css  js  c++  java
  • Manjaro-KDE 安装以及配置

    Manjaro-KDE 安装以及配置

    系统安装

    启动盘制作

    官网下载系统镜像,选择合适的桌面系统。(本人选择了KDE)
    使用rufus制作启动盘。

    系统分区

    双系统安装需要将/boot/efi挂载到win10的efi分区

    1. / (根分区) >20 GB
    2. /boot 512 MB
    3. linuxswap 4 GB
    4. /home >20GB

    配置

    更改打开文件的方式为双击

    System Settings->Workspace->Workspace Behavior->General Behavior->Click behavior

    双系统时间同步

    执行命令:

    timedatectl set-local-rtc 1
    

    更换中国源

    执行命令:

    sudo pacman-mirrors -i -c China -m rank
    

    命令执行结束之后弹出窗口选择源,选择速度最快的即可。
    修改/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 -Syyu
    

    安装常用软件

    1.输入法

    sudo pacman -S fcitx-im #全部安装
    sudo pacman -S fcitx-configtool
    

    ~/.xprofile文件(没有则需要新建)中加入:

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

    重启后输入法即可使用。

    2.Tim/Wechat

    KDE桌面需要先安装gnome-settings-daemon

    sudo pacman -S gnome-settings-daemon
    

    系统设置->开机或关机->自动启动->添加脚本->输入/usr/lib/gsd-xsettings
    安装包管理器以及Tim,Wechat

    sudo pacman -S yay
    yay -S deepin.com.qq.office
    yay -S deepin-wine-wechat
    

    重启即可使用Tim,Wechat

    3.安装常用工具

    yay -S vim
    yay -S wps-office
    yay -S ttf-wps-fonts
    yay -S typora
    yay -S google-chrome
    

    简单美化

    系统主题
    System Settings -> Appearance -> Global Theme -> Get New Global Themes
    选择合适主题安装。
    终端
    Settings -> Appearance -> Get New
    选择合适颜色以及字体。

    zsh配置

    manjaro自带zsh,未自带可使用yay -S zsh安装
    查看已有shell

    cat /etc/shells
    

    可在终端设置中切换为zsh
    也可通过命令切换:

    chsh -s /bin/zsh
    

    一般需要重启终端生效
    安装 oh-my-zsh

    sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"#可能需要代理
    

    zsh主题
    通过如下命令可以查看可用的Theme:

    ls ~/.oh-my-zsh/themes
    

    修改主题,编辑~/.zshrc文件,改为ZSH_THEME="agnoster"
    zsh拓展
    ~/.zshrc中找到plugins关键字,就可以自定义启用的插件了,系统默认加载git。
    zsh-autosuggestions 插件安装

    git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
    

    zsh-syntax-highlighting 插件安装

    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
    

    zsh-completions 插件安装

    git clone https://github.com/zsh-users/zsh-completions ~/.oh-my-zsh/custom/plugins/zsh-completions
    

    ~/.zshrc 中配置

    plugins=(
       git
       zsh-syntax-highlighting
       zsh-autosuggestions
       zsh-completions
    )
    

    autojump 插件安装

    git clone git://github.com/joelthelion/autojump.git
    

    cd autojump,执行

    ./install.py
    

    ~/.zshrc末尾加入

    [[ -s ~/.autojump/etc/profile.d/autojump.sh ]] && . ~/.autojump/etc/profile.d/autojump.sh
    

    只显示当前工作目录
    ~/.zshrc中加入DEFAULT_USER=$USER
    .oh-my-zsh/themes/agnoster.zsh中找到

    prompt_dir() {
      prompt_segment blue $CURRENT_FG '%~'
    }
    

    %~改为%c
    该方法可能不适用于其他主题。

    vim配置

    可以安装别人的配置,如:https://github.com/amix/vimrc

    参考

    1. zsh+on-my-zsh配置教程指南(程序员必备)【已备份】
    2. Manjaro安装,配置,美化指南
    3. 人生苦短,我用Manjaro
    4. oh-my-zsh 插件推荐 : autojump、zsh-autosuggestion 以及 zsh-syntax-highlighting
  • 相关阅读:
    MidPayinfoVO
    IPayablebillItf
    预算oracle
    oracle怎么查看表字段的类型
    orcale授权
    ORCAL
    【转】Oracle
    其他网站api
    生成pdf入门
    有关一个java项目到eclipse中运行
  • 原文地址:https://www.cnblogs.com/wheszza/p/12519403.html
Copyright © 2011-2022 走看看