Manjaro-KDE 安装以及配置

Manjaro-KDE 安装以及配置

系统安装

启动盘制作

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

系统分区

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

  1. / (根分区) 15-20 GB
  2. /boot 512 MB
  3. /var 12-16 GB
  4. linuxswap 4 GB
  5. /home >20GB

配置

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

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

更换中国源

执行命令:

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

在 ~/.zshrc 中配置

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

vim配置

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

参考

  1. zsh+on-my-zsh配置教程指南(程序员必备)【已备份】
  2. Manjaro安装,配置,美化指南
  3. 人生苦短,我用Manjaro

猜你喜欢

转载自www.cnblogs.com/wheszza/p/12519403.html