作为全球最流行且最有影响力的Linux开源系统之一,Ubuntu自发布以来在应用体验方面:有较大幅度的提升,即使对比Windows、MacoS等操作系统,最新版本的Ubuntu也不逊色。下面教大家在win10系统中安装ubuntu子系统及图形界面。
图1
第二步:找到并打开windows应用商店,搜索ubuntu选择最高版,此处我已经下载安装,就不演示了。
图2
图3
Tips
在Ubuntu中可以通过/mnt/小写盘符/路径访问到win10对应路径,例如cd /mnt/d/workspace/就是进入win10系统中D盘的workspace目录;
win10向Ubuntu粘贴文本,在win上复制ok后,在Ubuntu的命令窗口右击鼠标完成粘贴;
Ubuntu向win粘贴文本,鼠标选中需要复制的文本,同样鼠标右键完成复制;
子Linux系统和win10是使用的相同 络,端口也都是共用的,避免端口占用冲突;
在win系统的文件系统中查看ubuntu系统的目录路径是C:Userswin系统用户名AppDataLocalPackages
CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgscLocalStaterootfs,为了下次能快速打开这个超级长的目录,有很多方式,我这里教大家一种我最经常用的快速打开方式:给rootfs目录创建一个桌面快捷方式,下次打开这个目录直接双击这个目录就可以了。
图4
图5
图6
图7
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src 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-backports main restricted universe multiverse
图8
sudo apt-get update
安装 xorg
sudo apt-get install xorg
安装xfce4
sudo apt-get install xfce4
安装xrdp
sudo apt-get install xrdp
配置xrdp(配置端口)
sudo sed -i ‘s/port=3389/port=3390/g’ /etc/xrdp/xrdp.ini
向xsession中写入xfce4-session
sudo echo xfce4-session >~/.xsession
重启xrdp服务
sudo service xrdp restart
图9
图10
图11
不用装虚拟机就能玩转ubuntu系统。不用为开个虚拟机电脑卡的让人崩溃!值得收藏!哈哈。
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!