linux
在 Linux 中查看字体名称
2021-03-04
在 Linux 环境下,一些应用程序的字体是需要通过配置文件来进行配置的,我们就需要知道字体的确切名字。通过 fc-list 命令可以查看所有安装的字体信息,比如,下面…
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
用了很长一段时间的 Windows + WSL2,最终我还是回到了 Linux。之前一直用的是 openSUSE,真真是坚如磐石,包括后来换成 Tumbleweed 源,体验一把滚动发…
使用反向代理加速 Ubuntu PPA
2021-01-10
Ubuntu 的 PPA(Personal Package Archives)可以下载其他用户上传的编译好的软件,很便捷地解决一些软件版本落后、自己不想编译等等的问题(这…
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.…
不安装桌面环境在WSL2中使用GUI程序
2020-11-03
最近要用到 Selenium,我的开发环境在 WSL2 下,需要在 WSL2 下安装 Chrome 和 ChromeDriver,所以就有了这篇记录。 本文的目标是在 WSL2 下使用 GUI 程序…