wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
sudo apt-get update && sudo apt-get install -y dotnet-sdk-6.0
时区设置
timedatectl status
timedatectl set-timezone Asia/Shanghai
#24 hour,cat /etc/default/locale
# /usr/share/i18n/locales/zh_CN
#localectl set-locale LC_TIME="zh_CN.UTF-8"
localectl set-locale LC_TIME="en_DK.UTF-8"
#ntp 同步
#timedatectl set-ntp yes
vim 设置
vi /etc/vim/vimrc
再打开的文件末尾添加如下内容:
set filetype=python
au BufNewFile,BufRead *.py,*.pyw setf python
set autoindent " same level indent
set smartindent " next level indent
set ts=4
set expandtab
set autoindent
set number
其中
set tabstop=4表示Tab表示4个空格的宽带
set expandtab 表示Tab自动转换成空格
set autoindent表示换行后自动缩进
set number 显示行号