赞赏微软的进步,虽然没有啥用处,其实安装git就可以替代这个蹩脚的微软产品了
以下是安装过程:
Microsoft Windows [版本 10.0.15063]
(c) 2017 Microsoft Corporation。保留所有权利。
C:\Users\qdmca>bash
– Beta 版功能 –
这将在 Windows 上安装由 Canonical 分发的 Ubuntu,
根据其条款的授权参见此链接:
https://aka.ms/uowterms
键入“y”继续: y
正在从 Windows 应用商店下载… 100%
正在提取文件系统,这将需要几分钟的时间…
是否要将 Ubuntu 区域设置设置为与 Windows 区域设置(zh-CN)匹配?
默认区域设置为 en_US。
键入“y”继续: y
请创建默认的 UNIX 用户帐户。该用户名不需要与 Windows 用户名匹配。
有关详细信息,请访问: https://aka.ms/wslusers
请输入新的 UNIX 用户名: qdmcad
输入新的 UNIX 密码:
重新输入新的 UNIX 密码:
passwd: password updated successfully
安装成功!
环境将立即启动…
文档在以下网址提供: https://aka.ms/wsldocs
To run a command as administrator (user “root”), use “sudo
See “man sudo_root” for details.
qdmcad@DESKTOP-LIANLI:/mnt/c/Users/qdmca$
用户名qdmcad,密码j2
安装putty
$ sudo apt-get install putty
[sudo] qdmcad 的密码:
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
将会同时安装下列软件:
fontconfig fontconfig-config fonts-dejavu-core hicolor-icon-theme libatk1.0-0 libatk1.0-data libavahi-client3
libavahi-common-data libavahi-common3 libcairo2 libcups2 libdatrie1 libfontconfig1 libfreetype6 libgdk-pixbuf2.0-0
libgdk-pixbuf2.0-common libgraphite2-3 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libharfbuzz0b libjbig0
libjpeg-turbo8 libjpeg8 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpixman-1-0 libthai-data libthai0
libtiff5 libxcb-render0 libxcb-shm0 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxi6 libxinerama1 libxrandr2
libxrender1 putty-tools
建议安装:
cups-common librsvg2-common gvfs putty-doc
下列【新】软件包将被安装:
fontconfig fontconfig-config fonts-dejavu-core hicolor-icon-theme libatk1.0-0 libatk1.0-data libavahi-client3
libavahi-common-data libavahi-common3 libcairo2 libcups2 libdatrie1 libfontconfig1 libfreetype6 libgdk-pixbuf2.0-0
libgdk-pixbuf2.0-common libgraphite2-3 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libharfbuzz0b libjbig0
libjpeg-turbo8 libjpeg8 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpixman-1-0 libthai-data libthai0
libtiff5 libxcb-render0 libxcb-shm0 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxi6 libxinerama1 libxrandr2
libxrender1 putty putty-tools
升级了 0 个软件包,新安装了 43 个软件包,要卸载 0 个软件包,有 70 个软件包未被升级。
需要下载 6,588 kB 的归档。
解压缩后会消耗 24.0 MB 的额外空间。
您希望继续执行吗? [Y/n]
执行putty会返回错误
$ putty
(putty:1193): Gtk-WARNING **: cannot open display:
putty需要图形界面支持,改用ssh:
$ ssh root@45.63.21.165
The authenticity of host ‘45.63.21.165 (45.63.21.165)’ can’t be established.
ECDSA key fingerprint is SHA256:QpMioeRnRBsNngcPxqcPWMOneUE4EeAi9rTouolDH0U.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘45.63.21.165’ (ECDSA) to the list of known hosts.
root@45.63.21.165‘s password:
Permission denied, please try again.
root@45.63.21.165‘s password:
Permission denied, please try again.
root@45.63.21.165‘s password:
Last failed login: Sat Jun 17 13:08:19 UTC 2017 from 45.63.21.165 on ssh:notty
There were 69648 failed login attempts since the last successful login.
Last login: Fri Jun 2 13:25:50 2017 from tk2-214-16715.vs.sakura.ne.jp
[root@vultr ~]#
以上操作有两次密码错误,是我忘记密码了,汗!再来一次:
$ ssh root@45.63.21.165
root@45.63.21.165‘s password:
Last failed login: Sat Jun 17 13:11:08 UTC 2017 from 116.31.116.11 on ssh:notty
There were 6 failed login attempts since the last successful login.
Last login: Sat Jun 17 13:08:30 2017 from 45.63.21.165
进入VPS后,命令行反应很迟钝,不知道啥原因。