Arch Linux list installed packages by date
2021-01-31
This is a simple tip to determine all installed packages by date. You can search for some approach using pacman with some bash script. But we can also use pacman log to achieve it. Pacman log is located in /var/log/pacman.log and it records all events related to pacman. And grep will help us to find what we want in massive logs. Use the following command: grep installed /var/log/pacman.log If you like to use ripgrep, replace grep with rg.…
Archlinux 安装记录
2021-01-14
按照 arch wiki 的方法安装基本的 archlinux,以及后续的一些基本软件和桌面环境的安装。
使用反向代理加速 Ubuntu PPA
2021-01-10
Ubuntu 的 PPA(Personal Package Archives)可以下载其他用户上传的编译好的软件,很便捷地解决一些软件版本落后、自己不想编译等等的问题(这…
[Vim Tips]Jump to link in Vim's help
2021-01-05
When I use Vim’s help, I usually forget how to jump to the links. So I write the tips down to keep mind in them. The links in Vim' help is not really links, they are tags. Following shortcut will simplely jump into tags and jump back. Follow the link(jump to the link) Ctrl-] Jump back previous location Ctrl-t or Ctrl-o Also you can jump to a specific subjects(tags) by using :ta {subjects}" instead of Ctrl-].…
2020,文字长存
2021-01-01
2020 给我们留下了不平凡的记忆。不平凡在何处?很多人都能给出自己的答案。大到新冠肺炎疫情,小到生活中随之而来的方方面面的变化,工作、感情乃至健康…
Update WSL2 kernel to a newer version
2020-12-27
Microsoft maintains a custom linux kernel for WSL2. Keeping with the offical version has many benefits. For instance, the linux kernel in WSL2 can be updated when the Windows itself updates since Windows 10 version 20041. And also the automatic updates will service capabilities. But the WSL2 kernel drops behind the mainline kernel version unless you are in Windows Insiders. You may want to follow the mainline kernel version or a newer version at least.…
Use zsh as default login shell
2020-12-23
Zsh is a shell with rich features. Comparing with bash, zsh is more suitable for interactive use. But most linux distributions use bash as the default login shell. If you don’t want to type zsh every time in bash prompt, it’s time to change the default shell to zsh. We can simplely use command chsh (means ‘change shell’) to achieve the goal. Use the following command to detect where zsh located in and change default shell one-step.…