Manjaro安装
pacman包管理器使用
1 | pacman -S package_name # 安装软件 |
2 | pacman -S extra/package_name # 安装不同仓库中的版本 |
3 | pacman -Syu # 升级整个系统,y是更新数据库,yy是强制更新,u是升级软件 |
4 | pacman -Ss string # 在包数据库中查询软件 |
5 | pacman -Si package_name # 显示软件的详细信息 |
6 | pacman -Sc # 清除软件缓存,即/var/cache/pacman/pkg目录下的文件 |
7 | pacman -R package_name # 删除单个软件 |
8 | pacman -Rs package_name # 删除指定软件及其没有被其他已安装软件使用的依赖关系 |
9 | pacman -Qs string # 查询已安装的软件包 |
10 | pacman -Qi package_name # 查询本地安装包的详细信息 |
11 | pacman -Ql package_name # 获取已安装软件所包含的文件的列表 |
12 | pacman -U package.tar.zx # 从本地文件安装 |
13 | pactree package_name # 显示软件的依赖树 |
更新源
1 | sudo pacman-mirrors -i -c China -m rank |
2 | # 选择清华源并刷新 |
3 | sudo pacman -Syy |
4 | |
5 | vim /etc/pacman.conf # 文件末尾追加 |
6 | [archlinuxcn] |
7 | Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch |
8 | |
9 | # 安装archlinuxcn-keyring |
10 | sudo pacman -Sy archlinuxcn-keyring |
常用软件
1 | sudo pacman -S yay # 不需要使用root |
2 | yay -S netfetch # 装逼:终端中输出配置信息 |
3 | yay -S google-chrome # chrome浏览器 |
4 | yay -S netease-cloud-music # 网易云音乐 |
5 | yay -S wps-office && yay -S ttf-wps-fonts # office办公 |
6 | yay -S electronic-wechat # 微信 |
7 | yay -S docker # docker |
8 | yay -S albert # 软件启动器 |
9 | yay -S filezilla # ftp |
开发工具
1. jdk8
使用AUR安装,搜索jdk8即可
2. JetBrains使用Toolbox安装
下载:https://www.jetbrains.com/toolbox-app/
3. oh-my-zsh
- 查看本地是否有zsh并切换到zsh
1 | cat /etc/sheels |
2 | chsh -s /bin/zsh |
- 修改终端默认shell
终端-》首选项-》命令-》勾选运行自定义命令而不是shell,自定义为zsh
- 安装oh-my-zsh配置文件
1 | sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" |
- 替换zsh配置文件为oh-my-zsh
1 | cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc |
- 更改主题
1 | vim ~/.zshrc |
2 | ZSH_THEME="agnoster" |
- 安装插件
1 | git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/plugins/zsh-autosuggestions |
2 | git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/plugins/zsh-syntax-highlighting |
3 | |
4 | vim ~/.zshrc |
5 | plugins=( |
6 | git |
7 | zsh-syntax-highlighting |
8 | zsh-autosuggestions |
9 | ) |
- 配置文件生效
1 | source ~/.zshrc |
4. sublime
下载地址:http://www.sublimetext.com/3
下载64位到电脑后解压,把解压的文件夹sublime_text_3移动到/opt/
下
然后修改文件夹里的sublime_text.desktop文件移动到/usr/share/applications
把sublime_text.desktop文件里的所有Exec开头的路径修复Exec=/opt/sublime_text/sublime_text %F
改为Exec=/opt/sublime_text_3/sublime_text %F
保存
至此完成安装,在菜单里找到图标便可启动
搜狗输入法
1 | yay -S fcitx-im |
2 | yay -S fcitx-configtool # 图形化的配置工具 |
3 | yay -S fcitx-sogoupinyin |
4 | # yay -S fcitx-qt4 |
5 | |
6 | vim /etc/environment # 创建配置文件,贴入如下内容并重启 |
7 | GTK_IM_MODULE=fcitx |
8 | QT_IM_MODULE=fcitx |
9 | XMODIFIERS=@im=fcitx |
字体
1. 安装字体
1 | sudo pacman -S ttf-roboto noto-fonts ttf-dejavu |
2 | # 文泉驿 |
3 | sudo pacman -S wqy-bitmapfont wqy-microhei wqy-microhei-lite wqy-zenhei |
4 | # 思源字体 |
5 | sudo pacman -S noto-fonts-cjk adobe-source-han-sans-cn-fonts adobe-source-han-serif-cn-fonts |
2. 创建文件夹及路径
1 | vim .config/fontconfig/fonts.conf |
1 | <?xml version="1.0"?> |
2 | <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> |
3 | |
4 | |
5 | |
6 | <fontconfig> |
7 | |
8 | <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0"> |
9 | <its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/> |
10 | </its:rules> |
11 | |
12 | <description>Manjaro Font Config</description> |
13 | |
14 | <!-- Font directory list --> |
15 | <dir>/usr/share/fonts</dir> |
16 | <dir>/usr/local/share/fonts</dir> |
17 | <dir prefix="xdg">fonts</dir> |
18 | <dir>~/.fonts</dir> <!-- this line will be removed in the future --> |
19 | |
20 | <!-- 自动微调 微调 抗锯齿 内嵌点阵字体 --> |
21 | <match target="font"> |
22 | <edit name="autohint"> <bool>false</bool> </edit> |
23 | <edit name="hinting"> <bool>true</bool> </edit> |
24 | <edit name="antialias"> <bool>true</bool> </edit> |
25 | <edit name="embeddedbitmap" mode="assign"> <bool>false</bool> </edit> |
26 | </match> |
27 | |
28 | <!-- 英文默认字体使用 Roboto 和 Noto Serif ,终端使用 DejaVu Sans Mono. --> |
29 | <match> |
30 | <test qual="any" name="family"> |
31 | <string>serif</string> |
32 | </test> |
33 | <edit name="family" mode="prepend" binding="strong"> |
34 | <string>Noto Serif</string> |
35 | </edit> |
36 | </match> |
37 | <match target="pattern"> |
38 | <test qual="any" name="family"> |
39 | <string>sans-serif</string> |
40 | </test> |
41 | <edit name="family" mode="prepend" binding="strong"> |
42 | <string>Roboto</string> |
43 | </edit> |
44 | </match> |
45 | <match target="pattern"> |
46 | <test qual="any" name="family"> |
47 | <string>monospace</string> |
48 | </test> |
49 | <edit name="family" mode="prepend" binding="strong"> |
50 | <string>DejaVu Sans Mono</string> |
51 | </edit> |
52 | </match> |
53 | |
54 | <!-- 中文默认字体使用思源宋体,不使用 Noto Sans CJK SC 是因为这个字体会在特定情况下显示片假字. --> |
55 | <match> |
56 | <test name="lang" compare="contains"> |
57 | <string>zh</string> |
58 | </test> |
59 | <test name="family"> |
60 | <string>serif</string> |
61 | </test> |
62 | <edit name="family" mode="prepend"> |
63 | <string>Source Han Serif CN</string> |
64 | </edit> |
65 | </match> |
66 | <match> |
67 | <test name="lang" compare="contains"> |
68 | <string>zh</string> |
69 | </test> |
70 | <test name="family"> |
71 | <string>sans-serif</string> |
72 | </test> |
73 | <edit name="family" mode="prepend"> |
74 | <string>Source Han Sans CN</string> |
75 | </edit> |
76 | </match> |
77 | <match> |
78 | <test name="lang" compare="contains"> |
79 | <string>zh</string> |
80 | </test> |
81 | <test name="family"> |
82 | <string>monospace</string> |
83 | </test> |
84 | <edit name="family" mode="prepend"> |
85 | <string>Noto Sans Mono CJK SC</string> |
86 | </edit> |
87 | </match> |
88 | |
89 | <!-- 把Linux没有的中文字体映射到已有字体,这样当这些字体未安装时会有替代字体 --> |
90 | <match target="pattern"> |
91 | <test qual="any" name="family"> |
92 | <string>SimHei</string> |
93 | </test> |
94 | <edit name="family" mode="assign" binding="same"> |
95 | <string>Source Han Sans CN</string> |
96 | </edit> |
97 | </match> |
98 | <match target="pattern"> |
99 | <test qual="any" name="family"> |
100 | <string>SimSun</string> |
101 | </test> |
102 | <edit name="family" mode="assign" binding="same"> |
103 | <string>Source Han Serif CN</string> |
104 | </edit> |
105 | </match> |
106 | <match target="pattern"> |
107 | <test qual="any" name="family"> |
108 | <string>SimSun-18030</string> |
109 | </test> |
110 | <edit name="family" mode="assign" binding="same"> |
111 | <string>Source Han Serif CN</string> |
112 | </edit> |
113 | </match> |
114 | <!-- |
115 | <match target="pattern"> |
116 | <test qual="any" name="family"> |
117 | <string>Microsoft YaHei</string> |
118 | </test> |
119 | <edit name="family" mode="assign" binding="same"> |
120 | <string>Source Han Sans CN</string> |
121 | </edit> |
122 | </match> |
123 | --> |
124 | |
125 | <!-- Load local system customization file --> |
126 | <include ignore_missing="yes">conf.d</include> |
127 | <!-- Font cache directory list --> |
128 | <cachedir>/var/cache/fontconfig</cachedir> |
129 | <cachedir prefix="xdg">fontconfig</cachedir> |
130 | <!-- will be removed in the future --> |
131 | <cachedir>~/.fontconfig</cachedir> |
132 | |
133 | <config> |
134 | <!-- Rescan in every 30s when FcFontSetList is called --> |
135 | <rescan> <int>30</int> </rescan> |
136 | </config> |
137 | |
138 | </fontconfig> |
美化
1. 安装图标及主题
1 | yay -S numix-circle-icon-theme-git |
2 | yay -S papirus-icon-theme |
3 | sudo pacman -S arc-gtk-theme |