VMware-Ubuntu快速开始
# VMware-Ubuntu快速开始
# 安装Ubuntu
# 换源(18.04)
备份镜像源设置文件
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
编辑镜像源设置文件
sudo gedit /etc/apt/sources.list
阿里源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
清华源
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
中科大源
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
更新
sudo apt-get update
# 安装open-vm-tools
sudo apt-get update
sudo apt-get install open-vm-tools open-vm-tools-desktop
reboot
# 安装GCC(build-essential)
sudo apt-get update
sudo apt-get install build-essential
运行下面命令验证是否被成功安装:
gcc -v
g++ -v
make -v
# 安装CMake
在官网 (opens new window)中下载对应版本源码后执行:
./bootstrap
make
sudo make install
验证是否成功
cmake --version
如何卸载?(留下源码目录)
参考官方wiki (opens new window)描述,在源码目录下执行
sudo xargs rm < install_manifest.txt
# git安装与配置
安装:
sudo apt-get update
sudo apt-get install git
配置:
加入远端git仓库用户名等信息
git config --global user.name “xxx” git config --global user.email “xxx@xxx.xxx”
配置ssh
ssh-keygen -t rsa -C “xxx@xxx.xxx”
登录github添加ssh公钥文件,查看公钥信息
gedit ~/.ssh/id_rsa.pub
配置完成后测试与GitHub的连接
ssh -T git@github.com
编辑 (opens new window)
上次更新: 2023/07/08, 10:30:57