装机配置参考 https://pcpartpicker.com/list/fxjBQ6。由于硬件不是本文重点,按下不表

image.png

ZSH

sudo apt install -y zsh
which zsh
chsh
# also change the shell in vscode by editing settings.json

推荐的配置文件  https://github.com/skywind3000/vim/blob/master/etc/prezto.zsh, 作者在知乎解释了怎么用

为什么说 zsh 是 shell 中的极品?

SSH

SSH Keygen and add it into github

ssh-keygen -t ed25519 -C "[email protected]"
cat ~/.ssh/id_ed25519.pub

Setup SSH Server

sudo apt-get install openssh-server
sudo systemctl enable ssh
sudo systemctl enable ssh --now
sudo systemctl start ssh
sudo vim /etc/ssh/sshd_config # disable password auth
vim .ssh/authorized_keys # add known pubkey
sudo systemctl restart ssh.service

Sleep and Wake-on-LAN

The Wattage for idle state is 70W so the power consumption is 50 kWh per month based on measure power usage, which is 20 dollars in bay area.

We can set auto sleep, but with wake-on-lan enabled, the idle usage will still save energy.

Quality of life improvements

Basic input method

sudo apt install fcitx
sudo apt remove --purge ibus
sudo apt install fcitx-rime
fcitx-diagnose # will tell env var in .xprofile