window10 子系统 Ubuntu 开发环境配置

使用 sudo vim /etc/apt/sources.list 修改apt源,以下为阿里源

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

1.安装ssh-server

sudo apt-get install openssh-server

sudo vim vim /etc/ssh/sshd_config 

修改:

Port 22 // 去掉前面的注释

PasswordAuthentication yes //修改为yes

执行命令启动ssh server 服务:service ssh start

2.c/c++开发环境配置

sudo apt-get install -y build-essential

sudo apt-get install cmake

sudo apt install make

window10 子系统 Ubuntu 开发环境配置

上一篇:Windows 10用固态硬盘还是太卡?教你一个提速神招


下一篇:【前端部署】阿里云 windows2019服务器用node部署静态项目