【Debian 使用問題與解決方式】

遇到‘Release is not valid yet’: 通常是因為時間跑掉。
解決方式:

date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"

Debian幫助快捷的安裝包:

  1. bash-completion: 自動補全命令與套件
sudo apt install update && sudo apt install bash-completion
  1. 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
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值