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 支持了运行和调试

相关推荐
优雅的造轮狮9 分钟前
WSL2 Docker Desktop配置优化及迁移D盘指南
运维·docker·容器
tian_jiangnan24 分钟前
grafana白皮书
linux·服务器·grafana
枫桥骤雨27 分钟前
我的龙虾日记
ubuntu·openclaw
大师影视解说31 分钟前
基于Web端的AI电影解说自动化生产工具实测:4步完成从文案到成片的全流程
运维·人工智能·自动化·影视解说·电影解说工具·网页版电影解说·ai电影解说
mizuhokaga1 小时前
Linux内网集群基于Docker 安装 Chat2DB
linux·运维·docker
科士威传动1 小时前
微型导轨从精密制造到智能集成的跨越
大数据·运维·科技·机器人·自动化·制造
biubiubiu07062 小时前
Vibe Coding
运维
Ricky_Theseus2 小时前
数据库关系代数 - 连接操作
linux·数据库·算法
一招定胜负2 小时前
课堂教学质量综合评分系统
java·linux·前端
学不完的3 小时前
ZrLog 高可用架构监控部署指南(Prometheus + Grafana)
linux·运维·架构·负载均衡·grafana·prometheus·ab测试