笔者随手记下的一些碎碎念,如果有错误欢迎在评论区吐槽。

可以在~/.bashrc里增加相应条目,但更好的方法是在~/.local/bin/env中增加。例如:

~/.local/bin/env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# add binaries to PATH if they aren't added yet
# affix colons on either side of $PATH to simplify matching
case ":${PATH}:" in
*:"$HOME/.local/bin":*)
;;
*)
# Prepending path in case a system-installed binary needs to be overridden
export PATH="$HOME/.local/bin:$PATH"
;;
esac

export http_proxy=http://192.168.1.2:7890
export https_proxy=http://192.168.1.2:7890

运行:

1
2
sudo apt install -y language-pack-zh-hans
sudo localectl set-locale LANG=zh_CN.UTF8

WSL发布的安装路径一般位于:

1
%USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited<...>

其中<...>代表具体的发布名称。

阅读全文 »

1
2
3
4
5
6
lsb_release -a
cat /etc/issue
cat /etc/os-release
cat /etc/lsb-release
cat /etc/debian_version
cat /proc/version
阅读全文 »
0%