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
修改完一定记得执行: apt update
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