SLAM-学习笔记(II):安装 Ubuntu 常用软件包 与 配置
- 修改 Ubuntu 开关机等待时间
配置文件如下:sudo gedit /etc/systemd/system.conf
DefaultTimeoutStartSec=15s #DefaultTimeoutStopSec=90s DefaultTimeoutStopSec=15s #DefaultTimeoutStopSec=90s
- git 工具
# 安装 sudo apt install -y git ssh git config --global user.name "" git config --global user.email "" git config --global color.ui true # 配置 ssh-keygen -t rsa -C "邮箱地址" # 生成密钥 cat ~/.ssh/id_rsa.pub # 查看并复制本地密钥,将此密钥添加至 Github 账户中
gedit ~/.ssh/config # 修改 ssh 连接 Github 的端口 Host github.com port 443 HostName ssh.github.com IdentityFile ~/.ssh/id_rsa
# 常用命令 git add . git commit -m "" git push