Ubuntu on Windows,在Windows上的Ubuntu

在Windows最新的Windows 10系统中已可以安装Ubuntu的子系统,这样就可以在没有使用虚拟机或者是没有通过ssh连接到其他外部服务器的情况下使用Ubuntu系统,安装使用也很简单,首先先要确认你的Windows 10 14316版本,可以winver查看,如果你的Windows 10不是最新请更新下系统wKioL1mqHsrgqBgyAAA6y_HueeM897.png-wh_50

在使用时需要开启系统“设置”中的开发者模式

Ubuntu on Windows,在Windows上的Ubuntu

在使用时需要开启系统“设置”中的开发者模式

Ubuntu on Windows,在Windows上的Ubuntu

此时再到“控制面板”的“程序”中的启用和关闭Windows功能中开启“适用于Linux的Windows子系统(Beta)”,当然根据你的系统更新的情况而定,目前是有正式版的出来了

Ubuntu on Windows,在Windows上的Ubuntu

在开启以上的配置后到cmd中运行bash

Ubuntu on Windows,在Windows上的Ubuntu

然后根据提示操作,此时会从Windows的应用商店下载,时间会很久,这里建议在网络环境好的条件下下载,当然你也可以使用vpn加速,在一系列的下载安装后就会在你的C盘下的本人家目录下构建一个Ubuntu系统,而其他逻辑分区盘作为挂载盘在/mnt下

Ubuntu on Windows,在Windows上的Ubuntu

此时再进入系统把Ubuntu的源换国内比较常用的源,这样使用起来也更快

# vim /etc/apt/sources.list
#deb http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
#deb http://security.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
 
deb https://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
# apt-get update && apt-get upgrade

 

相关推荐