解决Manjaro安装后的基本配置问题.

基本配置

添加国内镜像源

  • 测试镜像源
1
sudo pacman-mirrors -i -c China -m rank
  • 修改/etc/pacman.conf文件
1
2
3
[archlinuxcn]
SigLevel = Optional TrustedOnly
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
  • 增加archlinuxcn库和antergos库
1
2
3
4
5
6
[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
  • 或者选择Arch参考
1
2
3
4
5
6
[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch
[archlinuxcn]
SigLevel = Optional TrustedOnly
Server =https://mirrors.ustc.edu.cn/archlinuxcn/$arch

导入GPG key

1
2
sudo pacman -Syy 
sudo pacman -S archlinuxcn-keyring

输入法

方案一

1
2
3
4
5
6
7
8
9
# 搜狗输入法
sudo pacman -S fcitx-sogoupinyin
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"
# 重新登录之后就可以使用中文输入法啦

方案二

1
2
3
4
5
6
7
8
#安装中文输入法:
pacman -S fcitx fcitx-libpinyin kcm-fcitx
#修改.xprofile
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
export LC_CTYPE=zh_CN.UTF-8
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx

Oh-My-Zsh

参考文档
参考文档

  • 安装
1
2
3
4
5
6
7
8
# zsh install
$: sudo pacman -S zsh
# oh-my-zsh install curl方式
$: sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# 或者wegt方式
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
# 更换默认的shell
$: chsh -s /bin/zsh
  • 设置主题

终端输入命令 open ~/.zshrc
找到 ZSH_THEME=”robbyrussell” ,robbyrussell是默认的主题,修改 ZSH_THEME=”样式名称”
保存这个文件文件,重新打开终端。

  • 查看主题名称

OhMyZsh自带一些主题,存放在~/.oh-my-zsh/themes目录
终端输入 ~/.oh-my-zsh/themes
查看 ls

vim配置

1
2
3
git clone https://github.com/chxuan/vimplus.git ~/.vimplus
cd ~/.vimplus
./install.sh

https://www.jianshu.com/p/75cde8a80fd7

引导修复

1
sudo grub-mkconfig -o /boot/grub/grub.cfg

软件

网易云音乐

1
sudo pacman -S netease-cloud-music

Manjaro 桌面调整

安装深度桌面

1
sudo pacman -S deepin deepin-extra

修改/etc/lightdm/lightdm.conf

1
sudo vim /etc/lightdm/lightdm.conf
1
greeter-session=lightdm-deepin-greeter

禁用sddm

1
systemctl disable sddm

启用lightdm

1
systemctl enable lightdm

重启

1
reboot

卸载KDE配套工具(可选)

1
2
pacman -Rsc plasma
pacman -Rsc kde-applications