2. 虚拟机环境安装¶
2.1. VMware + Ubuntu 设置¶
下载安装
VMware
虚拟机安装增强功能
网络: 桥接网卡
共享文件夹 -> 制定一个需要共享的目录
安装完系统,进行快照保存
小技巧
快照非常有用,关键节点上要保存一下快照,缺点是会增大虚拟文件的大小。
2.2. VirtualBox + Ubuntu 设置¶
下载安装 VirtualBox
系统 -> 指点设备(P): PS/2 鼠标
显示 -> 显示控制器(G): VBoxVGA
存储 -> 控制器:IDE -> VBoxGuestAdditionis.iso 安装增强功能
网络 -> 连接方式(A): 桥接网卡
网络 -> 控制芯片(T): PCnet-FAST III
网络 -> 混杂模式(P): 拒绝
共享文件夹 -> 制定一个需要共享的目录
2.3. Ubuntu 设置¶
下载并安装 Ubuntu
更新国内源,
/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
配置
SSH
VSCODE
,安装插件Remote Development
等,通过远程编辑与调试代码