更换国内源
sudo pacman-mirrors -i -c China -m rank
安装基础包
sudo pacman -S base-devel yay
sudo pacman -Syyu
安装文泉驿字体
sudo pacman -S wqy-bitmapfont wqy-microhei wqy-zenhei
安装 Emoji 库
sudo pacman -S noto-fonts-emoji
安装图形界面的字库管理
sudo pacman -S font-manager
方便在图形界面安装字体,也可通过命令行+参数的形式运行
通过此软件安装字体后,不用再执行字库安装的其它命令
安装天衍字库
最全字库,只为显示生生生生生僻字
下载地址:
http://cheonhyeong.com/File/TH-Tshyn-.7z
下载解压后,可通过上一步安装的 font-manager 在图形环境下安装、使用。
DEB 包转 ArchLinux 安装包
yaourt -S debtap
升级 debtap 库
国外的源超慢,升级前替换为国内源:
sudo nano /usr/bin/debtap
http://ftp.debian.org 替换为:
https://mirrors.huaweicloud.com
http://archive.ubuntu.com 替换为:
https://mirrors.huaweicloud.com
升级 debtap 库:
sudo debtap -u
安装 oh-my-zsh
sh -c "$(curl -fsSL https://install.ohmyz.sh)"
修改 .zshrc 配置
编辑 .zshrc :
nano ~/.zshrc
修改主题、插件:
ZSH_THEME="ys"
plugins=(git archlinux colored-man-pages colorize command-not-found cp python man sudo z zsh-navigation-tools)
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
安装 Fcitx5 及 Rime 输入法
Fcitx5 基础包:
sudo pacman -S fcitx5-im fcitx5-material-color manjaro-asian-input-support-fcitx5
- fcitx5-material-color :material 主题包
- manjaro-asian-input-support-fcitx5 :实现 Fcitx5 开箱即用,安装后无需再手动添加设置
输入方案:
- fcitx5-chinese-addons :包含拼音、双拼、五笔、五笔拼音、仓颉、自然码等
- fcitx5-table-extra :包含仓颉3、仓颉5、五笔、五笔拼音、郑码等
- fcitx5-rime :rime 输入平台,用户文件夹位置:~/.local/share/fcitx5/rime
- fcitx5-sogou [AUR] :基于 Fcitx5 的搜狗输入法
samba 实现访问 Windows 共享文件夹
sudo pacman -S manjaro-settings-samba
默认已经安装 samba,只是打开 Windows 共享,安装 manjaro-settings-samba 即可,无需再手动设置 samba
打开 Windows 共享文件夹,在文件管理器地址栏输入:
smb://ip地址或共享电脑名
如:
smb://
smb:///share
或:
smb://myshare-pc
smb://myshare-pc/share
使用共享电脑名需要安装相关网络协议和服务,新版 Windows 已默认不安装这些协议和服务。
其它可能用到的包
- gdb :编程调试,有时 AUR 安装软件会用到,编绎时可能会因无此包而中断
- pandoc :文档转换,编辑软件导入、导出时调用
sudo pacman -S gdb pandoc
蓝牙及蓝牙音频
Manjaro 默认安装的蓝牙及蓝牙音频可能不全,重新安装相关包:
sudo pacman -S bluez bluez-utils
sudo pacman -S pulseaudio-bluetooth pavucontrol pulseaudio-alsa pulseaudio-bluetooth-a2dp-gdm-fix
修改蓝牙配置文件:
sudo nano /etc/bluetooth/main.conf
打开蓝牙设置:
FastConnectable = true
AutoEnable = true
安装 Microsoft Edge
yay -S microsoft-edge-stable-bin
安装完后设置为默认浏览器
解决:解压文件名字中出现中文乱码
yay -S p7zip-natspec
安装 WPS-Office
yay -S wps-office libtiff5 ttf-wps-fonts ttf-ms-fonts wps-office-fonts wps-office-mime wps-office-mui-zh-cn
安装 QQ
yay -S linuxqq-nt-bwrap
安装微信
yay -S wechat-universal-bwrap
安装 VSCode
yay -S visual-studio-code-bin
安装 EPUB 阅读器
sudo pacman -S fbreader
安装 Typora
建议使用 Typora (此版可直接使用注册码),下载 DEB 包
使用 debtap 转换为 Archlinux 包:
# typora.deb 包名替换为下载的 Typora 包名
debtap typora.deb
下载:安装 BitComet
yay -S bitcomet
设置好 tarcker 比迅雷强:
安装 AppImage 管理
个人感觉 AppImage 比 snap、flatpak 方便(能懒则懒,哈哈)
sudo pacman -S appimagelauncher
安装后,可直接在 AppImage 包上右键实现安装(拷贝到专用目录统一管理并建立菜单)、卸载(删除,包含从菜单中)或只是运行
部分 AppImage 包有问题,只能右键运行,而不能安装(安装会报错),如 QQ 官网的 QQ AppImage包
我使用的 AppImage 包软件:
- Draw.io https://github.com/jgraph/drawio-desktop/releases
- Joplin https://github.com/laurent22/joplin/releases
- Obsidian https://github.com/obsidianmd/obsidian-releases/releases
其它
手动操作 Manjaro Settings Manager(manjaro-settings-manager):
- “语言包”安装“可用语言”
- “时间和日期”设定“本地时区的硬件时钟”
- “用户账户”在“帐号类型”中加入“sambashare”组
清理系统:
# 执行一次即可
sudo pacman -Scc
# 可反复执行,直至没有多余的包
sudo pacman -R $(pacman -Qdtq)
如有其它需求,欢迎留言……