記錄一下每次重新安裝系統(tǒng)之后都要進(jìn)程的操作
更新源
更新源的教程
sudo bash -c "cat << EOF > /etc/apt/sources.list && apt update
deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
EOF"
安裝軟件
- gcc
- g++
- gdb
- git
- vim
安裝
spacevim
美化
-
zsh
sudo apt install git zsh -y
-
oh-my-zsh,主題默認(rèn)為’ys’
sh -c "$(curl -fsSL https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)"
-
切換默認(rèn) shell
chsh -s $(which zsh)
注銷之后登錄
-
spaceVim
修改tab為4
默認(rèn)的代碼縮進(jìn)值是 2,縮進(jìn)的大小由選項(xiàng)
default_indent
設(shè)置, 如果希望使用 4 個空格作為縮進(jìn),只需要在 SpaceVim 配置文件中加入如下內(nèi)容:[options] default_indent = 4
default_indent
這一選項(xiàng)的值,將被賦值到 Vim 的選項(xiàng):&tabstop
、&softtabstop
和&shiftwidth
。默認(rèn)情況下,輸入的<Tab>
會被自動展開成對應(yīng)縮進(jìn)數(shù)量的空格, 可通過設(shè)置選項(xiàng)expand_tab
的值為false
來禁用這一特性:[options] default_indent = 4 expand_tab = true
文章來源:http://www.zghlxwxcb.cn/news/detail-732806.html
vscode ssh
使用體驗(yàn)更好
gcc、g++保證了頭文件
gdb 支持了運(yùn)行和調(diào)試文章來源地址http://www.zghlxwxcb.cn/news/detail-732806.html
到了這里,關(guān)于ubuntu基本配置的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!