首先查看默认的Linux发行版,如果默认为docker之类的则设置Kali linux或其他linux系统为默认,下面是wsl的常用命令: 查看帮助信息:wsl--help或wsl-h更新WSL:wsl--update查看可用的Linux发行版:wsl--list--online或wsl-l-o安装Linux发行版:wsl--install-d<Distro>,例如安装Debian:wsl--install-dDebian设置默认Linux发...
http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware # deb Index of /debian-security/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror http://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-f...
# This file is part of the debianisation of systemd.## systemd is free software; you can redistribute it and/or modify it# under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2 of the License, or# (at your option) any later...
继续完善WSL2的图形界面不爱游戏的ri712编辑于 2023年10月14日 13:24 wsl -d debian sudo nano /etc/sudoers ri712 ALL=(ALL) NOPASSWD:ALL nano ~/.profile export LIBGL_ALWAYS_INDIRECT=ON export WAYLAND_DISPLAY= export MESA_GL_VERSION_OVERRIDE=3.3 sudo rm -rf /tmp/.X1-lock sudo umount /...
PS C:\Users\admin> wsl --list --online NAME FRIENDLY NAME Ubuntu Ubuntu Debian Debian GNU/Linux kali-linux Kali Linux Rolling Ubuntu-18.04 Ubuntu 18.04 LTS Ubuntu-20.04 Ubuntu 20.04 LTS Ubuntu-22.04 Ubuntu 22.04 LTS OracleLinux_7_9 Oracle Linux 7.9 OracleLinux_8_7 Oracle Linux ...
打开Microsoft Store,搜索你需要的Linux发行版(如Ubuntu、Debian等)。 点击“获取”按钮进行下载和安装。 安装过程中,系统会提示你设置Linux用户账户和密码。验证WSL2安装: 安装完成后,打开“Windows Terminal”或“命令提示符”。 输入以下命令来验证WSL2是否已成功安装并运行: bash wsl --version 你应该会看到输...
安装使用图形化界面,笔者目前只接触了Debian系的Linux系统,故以Debian GNU/Linux系统和xfce4为例介绍(Ubuntu系统装完Xming就能使用,在此不再叙述,详情请关注IT之家极客学院,同时本文也是为了方便一些有一定Linux使用经验朋友而写的,不喜勿喷).另外,如果是Linux使用比较多的话,笔者推荐使用Debian系统,稳定性.依赖方面...
WSL下其他的Linux系统安装大同小异,例如CentOS,在百度上搜索CentOSWSL就可以找到安装包。甚至一部分的发行版Linux可以直接在Windows商店里下载运行,只需要最后安装图形界面(如果你需要的话)就行了。 (比如说图上Ubuntu、Debian等)
wsl --install -d Debian 不过你也可以在后续查看安装各种发行版本。 命令执行完毕后,最好需要重启计算机以完成安装。 重启后,打开已安装的Linux发行版,它会自动打开一个控制台窗口。 2.2 查找WSL2和安装支持的其它发行版 之前提到-d Debian可以选择初始化时一个默认版本,如未选择就是使用默认的Ubuntu。实际上我们...
逆风漫步 TW 11 看到repos也有增多,说明可用的软件变多了。不过图形化的软件还是比较鸡肋,需要设置远程连接才能通过VNC使用;命令行工具多点倒是好的。 做梦者之思 LP 8 我本来装的openSUSE wsl电脑重置后再装就没法更新源了,只能用Debian了登录百度账号 下次自动登录 忘记密码? 扫二维码下载贴吧客户端 下载贴吧AP...