遇到‘Release is not valid yet’: 通常是因為時間跑掉。
解決方式:
date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
Debian幫助快捷的安裝包:
- bash-completion: 自動補全命令與套件
sudo apt install update && sudo apt install bash-completion
- command-not-found: 提示缺少的安裝包
sudo apt update
sudo apt update && sudo apt install command-not-found
apt-file update
sudo update-command-not-found
sudo apt update
Debian 關閉vim 的預設開啟VISUAL mode
比起在vimrc中設置set mouse-=a,可以直接修改vim package config
以Debian 12 為例,路徑在:
/usr/share/vim/vim90/defaults.vim
找到以下的內容並將其註解調:
" In many terminal emulators the mouse works just fine. By enabling it you
" can position the cursor, Visually select and scroll with the mouse.
" Only xterm can grab the mouse events when using the shift key, for other
" terminals use ":", select text and press Esc.
"if has('mouse')
" if &term =~ 'xterm'
" set mouse=a
" else
" set mouse=nvi
" endif
"endif