ubuntu基本配置

记录一下每次重新安装系统之后都要进程的操作

更新源

更新源的教程

bash 复制代码
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

美化

  1. zsh

    bash 复制代码
    sudo apt install git zsh -y 
  2. oh-my-zsh,主题默认为'ys'

    bash 复制代码
    sh -c "$(curl -fsSL https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)"
  3. 切换默认 shell

    bash 复制代码
    chsh -s $(which zsh)

    注销之后登录

  4. spaceVim

    修改tab为4

    默认的代码缩进值是 2,缩进的大小由选项 default_indent 设置, 如果希望使用 4 个空格作为缩进,只需要在 SpaceVim 配置文件中加入如下内容:

    bash 复制代码
    [options]
        default_indent = 4

    default_indent 这一选项的值,将被赋值到 Vim 的选项:&tabstop&softtabstop&shiftwidth。默认情况下,输入的 <Tab> 会被自动展开成对应缩进数量的空格, 可通过设置选项 expand_tab 的值为 false 来禁用这一特性:

    bash 复制代码
    [options]
        default_indent = 4
        expand_tab = true

vscode ssh

使用体验更好

gcc、g++保证了头文件

gdb 支持了运行和调试

相关推荐
s91236010110 分钟前
Rust Ubuntu下编译生成环境win程序踩坑指南
windows·ubuntu·rust
单车少年ing14 分钟前
linux两个特殊的宏 _RET_IP_ 和_THIS_IP_ 实现
linux·arm
Lucas64928 分钟前
项目上线流程梳理(Linux宝塔面板)
linux·运维·服务器·项目部署
手插口袋谁也不爱♡34 分钟前
远程访问你的家庭NAS服务器:OpenMediaVault内网穿透配置教程
linux·运维·服务器
眠修36 分钟前
Web技术与Nginx网站环境部署
运维·服务器
为美好的生活献上中指44 分钟前
java每日精进 4.29【框架之自动记录日志并插入如数据库流程分析】
java·linux·数据库
mljy.1 小时前
Linux《进程概念(中)》
linux
JhonKI1 小时前
【Linux网络】深入解析I/O多路转接 - Select
linux·运维·网络
伤不起bb1 小时前
Nginx 核心功能
linux·服务器·nginx