Control PanelAll Control Panel ItemsPrograms and Features--->turn windows features on or off--->Windows subsystem for linux选中安装
【拯救萌新】五分钟轻松安装Linux系统——Windows自带的Linux子系统_哔哩哔哩_bilibili介绍如何才能启用Windows10下的Linux子系统,以取代虚拟机和双系统。https://www.bilibili.com/video/BV1CJ411F7Ax/?spm_id_from=autoNext
修改root密码(17条消息) Ubuntu如何开启root账户登录_亲亲Friends的博客-CSDN博客https://blog.csdn.net/u014261408/article/details/89981549
1
2
3
4
5[user@Orz 15:59 /mnt/d/exp]$sudo passwd root [sudo] password for user: New password: Retype new password: passwd: password updated successfully
开机启动乌班图
在开始菜单的搜索栏内或者在“运行”窗口内输入以下命令后回车:shell:Common Startup,打开启动文件夹。
将应用软件生成快捷方式放入C:ProgramDataMicrosoftWindowsStart MenuProgramsStartUp 文件夹。
https://jingyan.baidu.com/article/e8cdb32b3869ed37052bad29.htmlhttps://jingyan.baidu.com/article/e8cdb32b3869ed37052bad29.html
关于SSH登录
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21sudo apt remove --purge openssh-server //卸载自带的ssh sudo apt install openssh-server //重新安装 sudo vim /etc/ssh/sshd_config 修改文件 #PermitRootLogin prohibit-password 复制上面这行修改为 PermitRootLogin yes PasswordAuthentication yes # 改成yes #Port 22 默认就是22号端口可以不用改 #AddressFamily any #ListenAddress 0.0.0.0 #ListenAddress :: 保存文件 sudo service ssh restart
在Windows子系统(WSL)中配置开机启动服务 - vaynewang - 博客园 (cnblogs.com)https://www.cnblogs.com/vaynewang/p/10169134.html
Win10 wsl linux子系统ssh服务自启动设置_SimonLiu的博客-CSDN博客https://blog.csdn.net/toopoo/article/details/85733566
(17条消息) 开启win10下Ubuntu子系统的SSH服务 并设置为开机启动_dz45693的专栏-CSDN博客https://blog.csdn.net/ma_jiang/article/details/89421129?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2~default~CTRLIST~default-1.no_search_link&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2~default~CTRLIST~default-1.no_search_link
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17# 开机自动启动ssh命令 sudo systemctl enable ssh # 关闭ssh开机自动启动命令 sudo systemctl disable ssh # 单次开启ssh sudo systemctl start ssh # 单次关闭ssh sudo systemctl stop ssh # 设置好后重启系统 reboot #查看ssh是否启动,看到Active: active (running)即表示成功 sudo systemctl status ssh
(1条消息) 如何在Ubuntu上开启SSH服务 并开机启动_最数据的专栏-CSDN博客https://blog.csdn.net/hwt0101/article/details/112527027
最后
以上就是心灵美砖头最近收集整理的关于Linux WSL ubuntu设置的全部内容,更多相关Linux内容请搜索靠谱客的其他文章。
发表评论 取消回复