Manjaro-KDE 安装以及配置
系统安装
启动盘制作
官网下载系统镜像,选择合适的桌面系统。(本人选择了KDE)
使用rufus制作启动盘。
系统分区
双系统安装需要将/boot/efi挂载到win10的efi分区
- / (根分区) >20 GB
- /boot 512 MB
- linuxswap 4 GB
- /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,Wechatsudo 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
安装
查看已有shellcat /etc/shells
可在终端设置中切换为zsh
也可通过命令切换:chsh -s /bin/zsh
一般需要重启终端生效
安装 oh-my-zshsh -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