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

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, 作者在知乎解释了怎么用
Need to set colored prompt by commenting the line zstyle ':prezto:module:prompt' theme 'redhat'
Next step is to append the config line in the end
PROMPT='[%F{green}%n%f@%F{cyan}%m%f %F{blue}%B%~%b%f]$ '
The final effect will be [zpj@hostname ~]$ but with green, cyan, and blue colors
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
sudo ubuntu-drivers autoinstall
sudo apt install kde-full
cp /var/lib/snapd/desktop/applications/firefox_firefox.desktop ~/.local/share/applications/
sudo apt install ttf-mscorefonts-installer fonts-open-sans
# 安装monaco menlo 字体 <https://github.com/ueaner/fonts>
Extract the AppImage…
[peijun-zhu@legion ~/bin]$ ls
cursor Cursor-2.3.35-x86_64.AppImage
[peijun-zhu@legion ~/bin]$ ls cursor
usr AppRun co.anysphere.cursor.png code.png cursor.desktop
[peijun-zhu@legion ~]$ head ~/.local/share/applications/cursor.desktop
[Desktop Entry]
Name=Cursor
Comment=The AI Code Editor.
GenericName=Text Editor
Exec=/home/peijun-zhu/bin/cursor/AppRun --no-sandbox
Icon=/home/peijun-zhu/bin/cursor/code.png
Icon=co.anysphere.cursor
Type=Application
StartupNotify=false
StartupWMClass=Cursor