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

相关推荐
不剪发的Tony老师1 分钟前
Navop:一款工具搞定数据库、SSH、SFTP、远程桌面、AI Agent
运维·数据库·ssh
学烹饪的小胡桃5 分钟前
WGCLOUD支持哪些告警方式
linux·运维·服务器·网络·安全
qq7590353667 分钟前
2026 docker部署Hub 监控中心管理多台服务器硬盘和内存
运维·服务器
weixin_4407305021 分钟前
socket简单介绍-三次握手四次断开+一个例子
运维·服务器
墨有66632 分钟前
#Linux系统命令行操作指南
linux
做运维的阿瑞36 分钟前
Linux ELF 文件
linux·运维·服务器
Escalating_xu36 分钟前
【Makefile 进阶】从自动发现源文件、模式规则到目录分离与多模块递归构建
linux·开发语言
遇见小修修36 分钟前
打印机连不上电脑无法打印
大数据·运维·python·电脑
星辰徐哥43 分钟前
鸿蒙PC平台 Gnote 笔记应用适配实战:从 Linux 到 鸿蒙PC 的 Electron 迁移
linux·笔记·electron·harmonyos·gnote
一直C1 小时前
Linux应用软件编程|嵌入式轻量级数据库SQLite3完整学习笔记(命令行+C语言API)
linux·sqlite