RSS Link

Windows10运行Ubuntu Linux Subsystem并开启后台ssh服务

Ricky posted @ 2017年11月14日 15:11 in Other , 3256 阅读

相比运行一个虚拟机来运行命令,显然WSL要轻便的多,打算主要用来更新各种需要在线更新以来包和镜像的工具,比如docker, npm, yum等

1. 当然是开启开发者模式

2. 控制面板程序和功能中安装WSL

3. 运行bash安装即可,现在安装速度比以往快了很多,应该有CDN加速了

4. lxrun.exe /setdefaultuser root 设置bash默认用户为root

5. 使用阿里源 http://blog.csdn.net/Hehailiang_Dream/article/details/54094634

6. sudo vim /etc/ssh/sshd_config 添加两行

    KexAlgorithms diffie-hellman-group1-sha1,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1

Ciphers 3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr
7. chmod +s /usr/sbin/sshd
8. sudo vim /etc/sudoers添加一行 %sudo ALL=(ALL) NOPASSWD: /usr/sbin/sshd -D
9. https://github.com/131/dispatcher 下载编译,并按说明添加一个bash配置文件
Install WSL on your new machine (do not create a user account, just control-C out of that prompt).
Delete the %localappdata%\lxss directory on your new machine.
Copy your saved lxss directory to %localappdata%\lxss
run lxrun.exe /setdefaultuser oldusername
Launch bash.
Bangalore Escorts 说:
2021年11月03日 14:45

This is a post that kept me in touch with greatness. With regard to the creator.

Chandigarh Escort 说:
2022年1月18日 17:42

A debt of gratitude is in order for imparting decent data to us. I like your post and all you share with us is forward-thinking and very enlightening, I might want to bookmark the page so I can come here again to understand you, as you have worked effectively

Escorts Service in G 说:
2022年2月05日 16:24

A debt of gratitude is so for presenting extremely good facts to us. I like your area up and all you percent with us is earlier-thinking and genuinely enlightening, I can also additionally moreover probably want to bookmark the net internet net web page so I can come right proper proper proper here all over again to understand you, as you've got were given worked efficaciously

tinasingh 说:
2022年2月05日 20:28

Truly exceptional data. I generally love to investigate and spread such data that is uncommon and really illuminating. Keep up the mind blowing work. Regards
<a href="http://www.shalinibangaloreescorts.in/">Bangalore Escorts</a>
<a href="http://www.bangalorehotescorts.com/">Escorts in Bangalore</a>
<a href="http://www.jasmineescortsbangalore.com/">Bangalore Escorts Service</a>
<a href="http://www.femaleescortbnagalore.com/">Bangalore Escort</a>
<a href="http://www.escortsinbangalore.biz/">Escort in Bangalore</a>

登录 *

loading captcha image...
or Ctrl+Enter