安装 vim
sudo apt-get install vim
更换国内源
用下列内容替换/etc/apt/sources.list中原有内容:
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
依次执行下列命令
sudo apt-get update
sudo apt-get upgrade
安装 build-essential
sudo apt install build-essential
开启 openssh-server
安装 openssh-server
sudo apt install openssh-server -y
启用 openssh-server
sudo systemctl enable --now ssh
检查 openssh-server 运行状态
sudo systemctl status ssh
配置 UFW 防火墙(默认不开启)
启用22端口
sudo ufw allow 22/tcp
安装 emacs
sudo apt install emacs
安装 cmake
sudo apt install cmake
安装 git
sudo apt install git
安装 global/gtags
sudo apt install global
emacs 中运行 M-x package-install RET ggtags RET
安装 dos2unix/unix2dos
sudo apt install tofrodos
安装 clang
sudo apt install llvm clang
在终端运行 clang --version 获知 clang 版本14.0.0
sudo apt install libclang-14-dev
不安装 libcang-14-dev,在有的编译依赖中,会报缺失 libclangBasic.a 文件
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。