0. Preface
After installing manjora, the basic configuration is often not enough for our daily needs, and then we need to make some modifications to it to make it a tool we call it handy.
First introduce the commonly used software commands, and they will be used frequently in the following process.
- Software Installation
pacman -S softwareName
- Software update
pacman -Syu
- Software removal
pacman -R softwareName
1. Basic configuration
1.1 Configure domestic sources
sudo pacman -Syy
sudo pacman-mirrors -i -c China -m rank # 选一个清华源就行
sudo pacman -Syyu
1.2 System update
sudo pacman -Syyu
1.3 Add Archlinuxcn source
Open the file, and then add the following two lines at the end;
[archlinuxcn]
SigLevel = Optional TrustedOnly
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
1.4 Install the anchorlinuxcn signature key
After adding the previous step, import the GPG key to avoid prompting the GPG signature damage problem when installing the software later;
sudo pacman -S archlinuxcn-keyring
1.5 Chinese font installation
sudo pacman -S wqy-zenhei
sudo pacman -S wqy-bitmapfont
sudo pacman -S wqy-microhei
sudo pacman -S adobe-source-han-sans-cn-fonts
2. Software installation
2.1 Sogou Pinyin Input Method
First install the following software:
sudo pacman -S fcitx-im
# 安装fcitx-qt4可能与之前安装的有冲突,但必须安装,不然搜狗安装后无法正常使用。
sudo pacman -S fcitx-qt4
sudo pacman -S fcitx-configtool
sudo pacman -S fcitx-sogoupinyin
Then configure the fcitx environment, create a new ~/.xprofile
file, and add the following content at the same time, restart the system to switch the Sogou Chinese input method;
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=“@im=fcitx”
2.2 yay
A very easy-to-use AUR package manager assistant, used to install software, can provide a pacman interface with minimal user input, yaourt-style search, and almost no dependent software;
sudo pacman -S yay
Then modify the aur source to be a Tsinghua mirror image;
yay --aururl "https://aur.tuna.tsinghua.edu.cn" --save
2.3 Chrome
Although it already comes with firefox, I still prefer Chrome;
yay -S google-chrome
2.4 NetEase Cloud Music
In my spare time at work, how can I not be accompanied by music?
yay -S netease-cloud-music
2.5 Typora
There is no one of the best Markdown editors;
yay -S typora
2.6 WPS
As a productivity tool, how can there be fewer office tools;
yay -S wps-office
After installation, you will be prompted for missing fonts, which can be solved by installing fonts;
yay -S ttf-wps-fonts
For the case that the menu bar is in English after opening, you can switch after installing the WPS Chinese language pack;
yay wps|grep zh
After installation, just switch;
2.7 flameshot
Very easy to use screenshot software, not only supports basic functions such as annotations, but also supports uploading pictures to the image bed;
yay -S flameshot
2.8 git
yay -S git
Configuration after installation;
git config --global user.name "xxxx"
git config --global use.email "xxx@qq.com"
ssh-keygen -t rst -C "xxx@qq.com"
2.9 zsh
This is a powerful shell, recommended to use, use the following command to install;
yay -S zsh
After installation, set it as the default shell, and then restart the shell to take effect;
chsh -s /bin/zsh
Then install oh-my-zsh ;
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
Then you can configure ~/.zshrc
our favorite theme in the configuration file, and configure and activate it after installing related plug-ins. Commonly used plug-ins are recommended as follows;
- extract
Used to decompress files, no matter what compressed files, you can use the following commands to decompress, no need to remember the parameters;
x filename
- zsh-autosuggestions
Automatic suggestion completion;
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
- zsh-syntax-highlighting
Syntax highlighting;
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
Then add the following configuration to the configuration file:
# 主题
ZSH_THEME="dallas"
# 插件
plugins=(
git zsh-syntax-highlighting zsh-autosuggestions extract z
)
2.10 utools
Efficiency tool artifact;
yay -S utools
2.11 XMind
Mind mapping tool;
yay -S xmind
2.12 okular
PDF reader;
yay -S okular
2.13 WeChat
yay -S wechat
2.14 QQ
yay -Sy deepin.com.qq.office
Solve the problem of font faint:
yay -S lib32-freetype2-infinality-ultimate
2.15 Nut Cloud
yay -S nutstore
2.16 Baidu SkyDrive
yay -S baidunetdisk-bin
3. Development Environment
3.1 IntelliJ IDEA
The strongest Java IDE;
yay -S intellij-idea-ultimate-edition
3.2 VSCode
Microsoft's own editor;
yay -S visual-studio-code-bin
3.3 Postman
Web development tool;
yay -S postman-bin
3.4 Pycharm
A Python IDE;
yay -S pycharm-professional
3.5 JDK
Enter the following command, and then select the version you want to install to install;
yay jdk
After installation, you can use the following command to view the existing JDK version, and then set the default JDK version;
# 查看已有 JDK
archlinux-java status
# 设置默认版本
sudo archlinux-java set java-11-openjdk
3.6 MySQL
- Database installation;
yay -S mysql
- Initialize the database, the database login password will be generated at this time, remember to save
sudo mysqld --initialize --user=root --basedir=/usr --datadir=/var/lib/mysql
- Start the database
sudo systemctl start mysqld
- Login and change password
# 登录,密码是刚才初始化时生产的密码
mysql -u root -p
# 修改密码
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密码';
# 使得密码生效
FLUSH PRIVILEGES;
- Then use the modified password when logging in again after logging out;
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。